meson: Make speex optional
authorArnaud Rebillout <arnaud.rebillout@collabora.com>
Fri, 19 Oct 2018 11:09:13 +0000 (18:09 +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 ee3afa7..b08ee15 100644 (file)
@@ -300,7 +300,7 @@ if openssl_dep.found()
   cdata.set('HAVE_OPENSSL', 1)
 endif
 
-speex_dep = dependency('speexdsp', version : '>= 1.2', required : false)
+speex_dep = dependency('speexdsp', version : '>= 1.2', required : get_option('speex'))
 if speex_dep.found()
   cdata.set('HAVE_SPEEX', 1)
 endif
index f2adb99..ce90355 100644 (file)
@@ -47,6 +47,9 @@ option('lirc',
 option('openssl',
        type : 'feature', value : 'auto',
        description : 'Optional OpenSSL support (used for Airtunes/RAOP)')
+option('speex',
+       type : 'feature', value : 'auto',
+       description : 'Optional Speex support (resampling, AEC)')
 option('systemd',
        type : 'feature', value : 'auto',
        description : 'Optional systemd support')