mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-07-05 00:06:16 -04:00
spa: meson: Fix ldac_enc dependency search
This commit is contained in:
parent
687c942eb7
commit
c775ef319b
1 changed files with 10 additions and 10 deletions
|
|
@ -73,24 +73,24 @@ if get_option('spa-plugins').allowed()
|
||||||
endforeach
|
endforeach
|
||||||
summary({'Bluetooth audio': bluez_deps_found}, bool_yn: true, section: 'Backend')
|
summary({'Bluetooth audio': bluez_deps_found}, bool_yn: true, section: 'Backend')
|
||||||
if bluez_deps_found
|
if bluez_deps_found
|
||||||
ldac_enc_dep = dependency('', required: false)
|
ldac_dep = dependency('', required: false)
|
||||||
if get_option('bluez5-codec-ldac').allowed()
|
if get_option('bluez5-codec-ldac').allowed()
|
||||||
ldac_enc_dep = dependency('ldacBT-enc', required : false)
|
ldac_dep = dependency('ldacBT-enc', required : false)
|
||||||
if not ldac_enc_dep.found()
|
if not ldac_dep.found()
|
||||||
dep = cc.find_library('ldacBT', required : false)
|
dep = cc.find_library('ldacBT_enc', required : false)
|
||||||
dep = dependency('ldacBT', required : false)
|
|
||||||
if dep.found() and cc.has_function('ldacBT_encode', dependencies : dep)
|
if dep.found() and cc.has_function('ldacBT_encode', dependencies : dep)
|
||||||
ldac_enc_dep = dep
|
ldac_dep = dep
|
||||||
dep = cc.find_library('ldacBT', required : false)
|
|
||||||
else
|
else
|
||||||
dep = cc.find_library('ldacBT', required : false)
|
dep = cc.find_library('ldacBT', required : false)
|
||||||
if not ldac_enc_dep.found() and get_option('bluez5-codec-ldac').enabled()
|
if dep.found() and cc.has_function('ldacBT_encode', dependencies : dep)
|
||||||
|
ldac_dep = dep
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
if not ldac_dep.found() and get_option('bluez5-codec-ldac').enabled()
|
||||||
error('LDAC encoder library not found')
|
error('LDAC encoder library not found')
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endif
|
|
||||||
ldac_dep = dependency('ldacBT-enc', required : get_option('bluez5-codec-ldac'))
|
|
||||||
summary({'LDAC': ldac_dep.found()}, bool_yn: true, section: 'Bluetooth audio codecs')
|
summary({'LDAC': ldac_dep.found()}, bool_yn: true, section: 'Bluetooth audio codecs')
|
||||||
ldac_abr_dep = dependency('ldacBT-abr', required : get_option('bluez5-codec-ldac'))
|
ldac_abr_dep = dependency('ldacBT-abr', required : get_option('bluez5-codec-ldac'))
|
||||||
summary({'LDAC ABR': ldac_abr_dep.found()}, bool_yn: true, section: 'Bluetooth audio codecs')
|
summary({'LDAC ABR': ldac_abr_dep.found()}, bool_yn: true, section: 'Bluetooth audio codecs')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue