meson: Make webrtc optional
authorArnaud Rebillout <arnaud.rebillout@collabora.com>
Fri, 19 Oct 2018 11:25:55 +0000 (18:25 +0700)
committerArun Raghavan <arun@arunraghavan.net>
Thu, 27 Dec 2018 11:55:56 +0000 (17:25 +0530)
Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
meson.build
meson_options.txt

index bce1b74..08dec64 100644 (file)
@@ -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
index 8f4f2ed..65d2942 100644 (file)
@@ -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')