mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
modules: Check for opus custom functions in addition to headers
This commit is contained in:
parent
3baead9b0b
commit
03b1d9589b
1 changed files with 3 additions and 1 deletions
|
|
@ -218,8 +218,10 @@ endif
|
|||
summary({'ffado-driver': build_module_ffado_driver}, bool_yn: true, section: 'Optional Modules')
|
||||
|
||||
opus_custom_h = cc.has_header('opus/opus_custom.h', dependencies: opus_dep)
|
||||
opus_custom_lib = cc.has_function('opus_custom_encoder_ctl', dependencies: opus_dep)
|
||||
|
||||
# One would imagine that opus_dep is a requirement but for some reason it's not, so we need to manually check that
|
||||
if opus_dep.found() and opus_custom_h
|
||||
if opus_dep.found() and opus_custom_h and opus_custom_lib
|
||||
opus_custom_dep = declare_dependency(compile_args: ['-DHAVE_OPUS_CUSTOM'], dependencies: opus_dep)
|
||||
else
|
||||
opus_custom_dep = dependency('', required: false)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue