meson: Require bluetooth codec library dependencies only when bluez5 is

enabled
This commit is contained in:
Oschowa 2021-05-28 11:08:14 +02:00 committed by Wim Taymans
parent c851349f17
commit 8892152b13

View file

@ -20,10 +20,10 @@ if not get_option('spa-plugins').disabled()
alsa_dep = dependency('alsa', required: get_option('alsa'))
bluez_dep = dependency('bluez', version : '>= 4.101', required: get_option('bluez5'))
sbc_dep = dependency('sbc', required: get_option('bluez5'))
ldac_dep = dependency('ldacBT-enc', required : get_option('bluez5-codec-ldac'))
ldac_abr_dep = dependency('ldacBT-abr', required : get_option('bluez5-codec-ldac'))
aptx_dep = dependency('libopenaptx', version : '< 0.2.1', required : get_option('bluez5-codec-aptx'))
fdk_aac_dep = dependency('fdk-aac', required : get_option('bluez5-codec-aac'))
ldac_dep = dependency('ldacBT-enc', required : get_option('bluez5').enabled() and get_option('bluez5-codec-ldac'))
ldac_abr_dep = dependency('ldacBT-abr', required : get_option('bluez5').enabled() and get_option('bluez5-codec-ldac'))
aptx_dep = dependency('libopenaptx', version : '< 0.2.1', required : get_option('bluez5').enabled() and get_option('bluez5-codec-aptx'))
fdk_aac_dep = dependency('fdk-aac', required : get_option('bluez5').enabled() and get_option('bluez5-codec-aac'))
avcodec_dep = dependency('libavcodec', required: get_option('ffmpeg'))
jack_dep = dependency('jack', version : '>= 1.9.10', required: get_option('jack'))
vulkan_dep = dependency('vulkan', disabler : true, version : '>= 1.1.69', required: get_option('vulkan'))