mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
meson: Correctly use fallback for webrtc-audio-processing
If system deps are not found, we need to fallback to webrtc-audio-processing-2, not webrtc-audio-processing (i.e. 0.3). Fixes: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/4493
This commit is contained in:
parent
1030000890
commit
19c15e2e90
1 changed files with 11 additions and 2 deletions
13
meson.build
13
meson.build
|
|
@ -449,9 +449,18 @@ else
|
|||
else
|
||||
webrtc_dep = dependency('webrtc-audio-processing',
|
||||
version : ['>= 0.2', '< 1.0'],
|
||||
required : get_option('echo-cancel-webrtc'))
|
||||
required : false)
|
||||
cdata.set('HAVE_WEBRTC', webrtc_dep.found())
|
||||
summary({'WebRTC Echo Canceling < 1.0': webrtc_dep.found()}, bool_yn: true, section: 'Misc dependencies')
|
||||
if webrtc_dep.found()
|
||||
summary({'WebRTC Echo Canceling < 1.0': webrtc_dep.found()}, bool_yn: true, section: 'Misc dependencies')
|
||||
else
|
||||
# If deps are not found on the system but it's enabled, try to fallback to the subproject
|
||||
webrtc_dep = dependency('webrtc-audio-processing-2',
|
||||
version : ['>= 2.0' ],
|
||||
required : get_option('echo-cancel-webrtc'))
|
||||
cdata.set('HAVE_WEBRTC2', webrtc_dep.found())
|
||||
summary({'WebRTC Echo Canceling > 2.0': webrtc_dep.found()}, bool_yn: true, section: 'Misc dependencies')
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue