diff --git a/meson.build b/meson.build index bce1b7421..08dec64ee 100644 --- a/meson.build +++ b/meson.build @@ -314,7 +314,7 @@ if udev_dep.found() cdata.set('HAVE_UDEV', 1) 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() cdata.set('HAVE_WEBRTC', 1) endif diff --git a/meson_options.txt b/meson_options.txt index 8f4f2ed54..65d2942b4 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -62,3 +62,9 @@ option('udev', option('x11', type : 'feature', value : 'auto', description : 'Optional X11 support') + +# Echo cancellation + +option('webrtc-aec', + type : 'feature', value : 'auto', + description : 'Optional WebRTC-based echo canceller')