mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
treewide: meson.build: use feature.allowed()
Since meson 0.59.0, a feature object has an `allowed()` method which returns true when the feature is set to 'enabled' or 'auto'. Utilize that instead of the previously used not feature.disabled()
This commit is contained in:
parent
15e7a61aa7
commit
cc73053512
10 changed files with 35 additions and 35 deletions
|
|
@ -31,7 +31,7 @@ pkgconfig.generate(filebase : 'lib@0@'.format(spa_name),
|
|||
|
||||
subdir('include')
|
||||
|
||||
if not get_option('spa-plugins').disabled()
|
||||
if get_option('spa-plugins').allowed()
|
||||
udevrulesdir = get_option('udevrulesdir')
|
||||
if udevrulesdir == ''
|
||||
# absolute path, otherwise meson prepends the prefix
|
||||
|
|
@ -74,6 +74,6 @@ endif
|
|||
|
||||
subdir('tools')
|
||||
subdir('tests')
|
||||
if not get_option('examples').disabled()
|
||||
if get_option('examples').allowed()
|
||||
subdir('examples')
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue