meson: Make webrtc optional

Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
Arnaud Rebillout 2018-10-19 18:25:55 +07:00 committed by Arun Raghavan
parent 90eec5ab36
commit 7b748483a1
2 changed files with 7 additions and 1 deletions

View file

@ -314,7 +314,7 @@ if udev_dep.found()
cdata.set('HAVE_UDEV', 1) cdata.set('HAVE_UDEV', 1)
endif endif
webrtc_dep = dependency('webrtc-audio-processing', version : '>= 0.2', required : false) webrtc_dep = dependency('webrtc-audio-processing', version : '>= 0.2', required : get_option('webrtc-aec'))
if webrtc_dep.found() if webrtc_dep.found()
cdata.set('HAVE_WEBRTC', 1) cdata.set('HAVE_WEBRTC', 1)
endif endif

View file

@ -62,3 +62,9 @@ option('udev',
option('x11', option('x11',
type : 'feature', value : 'auto', type : 'feature', value : 'auto',
description : 'Optional X11 support') description : 'Optional X11 support')
# Echo cancellation
option('webrtc-aec',
type : 'feature', value : 'auto',
description : 'Optional WebRTC-based echo canceller')