diff --git a/meson_options.txt b/meson_options.txt index 397554882..a30e2d773 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -90,6 +90,18 @@ option('bluez5-backend-hsphfpd', description: 'Enable hsphfpd backend in bluez5 spa plugin', type: 'feature', value: 'auto') +option('bluez5-codec-aptx', + description: 'Enable AptX Qualcomm proprietary codec implementation', + type: 'feature', + value: 'auto') +option('bluez5-codec-ldac', + description: 'Enable LDAC Sony proprietary codec implementation', + type: 'feature', + value: 'auto') +option('bluez5-codec-aac', + description: 'Enable Fraunhofer FDK AAC open source codec implementation', + type: 'feature', + value: 'auto') option('control', description: 'Enable control spa plugin integration', type: 'feature', diff --git a/spa/meson.build b/spa/meson.build index b246b90cc..170503e0e 100644 --- a/spa/meson.build +++ b/spa/meson.build @@ -23,10 +23,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 : false) - ldac_abr_dep = dependency('ldacBT-abr', required : false) - aptx_dep = dependency('libopenaptx', required : false) - fdk_aac_dep = dependency('fdk-aac', required : false) + 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', required : get_option('bluez5-codec-aptx')) + fdk_aac_dep = dependency('fdk-aac', required : get_option('bluez5-codec-aac')) avcodec_dep = dependency('libavcodec', required: get_option('ffmpeg')) avformat_dep = dependency('libavformat', required: get_option('ffmpeg')) jack_dep = dependency('jack', version : '>= 1.9.10', required: get_option('jack'))