pipewire/spa/plugins/meson.build
Huang-Huang Bao e953bb3238
meson: fix build if bluez5 option is disabled
Don't look up codecs dependencies and don't include 'bluez5' subdir if 'bluez5' option is disabled or libbluetooth is not found.
See https://gitlab.freedesktop.org/pipewire/pipewire/-/merge_requests/707.
2021-05-28 21:01:38 +08:00

48 lines
992 B
Meson

if alsa_dep.found()
subdir('alsa')
endif
if not get_option('audioconvert').disabled()
subdir('audioconvert')
endif
if not get_option('audiomixer').disabled()
subdir('audiomixer')
endif
if not get_option('control').disabled()
subdir('control')
endif
if not get_option('audiotestsrc').disabled()
subdir('audiotestsrc')
endif
if bluez_dep.found()
subdir('bluez5')
endif
if avcodec_dep.found()
subdir('ffmpeg')
endif
if jack_dep.found()
subdir('jack')
endif
if not get_option('support').disabled()
subdir('support')
endif
if not get_option('test').disabled()
subdir('test')
endif
if not get_option('videoconvert').disabled()
subdir('videoconvert')
endif
if not get_option('videotestsrc').disabled()
subdir('videotestsrc')
endif
if not get_option('volume').disabled()
subdir('volume')
endif
if vulkan_headers
subdir('vulkan')
endif
if libudev_dep.found() and not get_option('v4l2').disabled()
subdir('v4l2')
endif
if libcamera_dep.found()
subdir('libcamera')
endif