mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-15 07:00:05 -05: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
|
|
@ -1,6 +1,6 @@
|
|||
if not get_option('systemd-system-service').disabled()
|
||||
if get_option('systemd-system-service').allowed()
|
||||
subdir('system')
|
||||
endif
|
||||
if not get_option('systemd-user-service').disabled()
|
||||
if get_option('systemd-user-service').allowed()
|
||||
subdir('user')
|
||||
endif
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ pipewire_gst_sources = [
|
|||
'gstpipewiresrc.c',
|
||||
]
|
||||
|
||||
if not get_option('gstreamer-device-provider').disabled()
|
||||
if get_option('gstreamer-device-provider').allowed()
|
||||
pipewire_gst_sources += [ 'gstpipewiredeviceprovider.c' ]
|
||||
endif
|
||||
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@ subdir('pipewire')
|
|||
subdir('daemon')
|
||||
subdir('tools')
|
||||
subdir('modules')
|
||||
if not get_option('examples').disabled()
|
||||
if get_option('examples').allowed()
|
||||
subdir('examples')
|
||||
endif
|
||||
if not get_option('tests').disabled()
|
||||
if get_option('tests').allowed()
|
||||
subdir('tests')
|
||||
endif
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ if ncurses_dep.found()
|
|||
endif
|
||||
|
||||
build_pw_cat = false
|
||||
if not get_option('pw-cat').disabled() and sndfile_dep.found()
|
||||
if get_option('pw-cat').allowed() and sndfile_dep.found()
|
||||
build_pw_cat = true
|
||||
|
||||
pwcat_sources = [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue