meson: Make speex optional

Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
Arnaud Rebillout 2018-10-19 18:09:13 +07:00 committed by Arun Raghavan
parent 1286b798cc
commit fe6d0d382f
2 changed files with 4 additions and 1 deletions

View file

@ -300,7 +300,7 @@ if openssl_dep.found()
cdata.set('HAVE_OPENSSL', 1) cdata.set('HAVE_OPENSSL', 1)
endif 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() if speex_dep.found()
cdata.set('HAVE_SPEEX', 1) cdata.set('HAVE_SPEEX', 1)
endif endif

View file

@ -47,6 +47,9 @@ option('lirc',
option('openssl', option('openssl',
type : 'feature', value : 'auto', type : 'feature', value : 'auto',
description : 'Optional OpenSSL support (used for Airtunes/RAOP)') description : 'Optional OpenSSL support (used for Airtunes/RAOP)')
option('speex',
type : 'feature', value : 'auto',
description : 'Optional Speex support (resampling, AEC)')
option('systemd', option('systemd',
type : 'feature', value : 'auto', type : 'feature', value : 'auto',
description : 'Optional systemd support') description : 'Optional systemd support')