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:
Barnabás Pőcze 2022-02-03 19:14:34 +01:00
parent 15e7a61aa7
commit cc73053512
10 changed files with 35 additions and 35 deletions

View file

@ -1,16 +1,16 @@
if alsa_dep.found()
subdir('alsa')
endif
if not get_option('audioconvert').disabled()
if get_option('audioconvert').allowed()
subdir('audioconvert')
endif
if not get_option('audiomixer').disabled()
if get_option('audiomixer').allowed()
subdir('audiomixer')
endif
if not get_option('control').disabled()
if get_option('control').allowed()
subdir('control')
endif
if not get_option('audiotestsrc').disabled()
if get_option('audiotestsrc').allowed()
subdir('audiotestsrc')
endif
if bluez_dep.found()
@ -22,19 +22,19 @@ endif
if jack_dep.found()
subdir('jack')
endif
if not get_option('support').disabled()
if get_option('support').allowed()
subdir('support')
endif
if not get_option('test').disabled()
if get_option('test').allowed()
subdir('test')
endif
if not get_option('videoconvert').disabled()
if get_option('videoconvert').allowed()
subdir('videoconvert')
endif
if not get_option('videotestsrc').disabled()
if get_option('videotestsrc').allowed()
subdir('videotestsrc')
endif
if not get_option('volume').disabled()
if get_option('volume').allowed()
subdir('volume')
endif
if vulkan_headers