meson: Make fftw optional

Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
This commit is contained in:
Arnaud Rebillout 2018-10-19 17:51:58 +07:00 committed by Arun Raghavan
parent 68a86dded4
commit d9b0c66e30
2 changed files with 8 additions and 5 deletions

View file

@ -280,16 +280,16 @@ if bluez_dep.found()
endif
endif
fftw_dep = dependency('fftw3f', required : get_option('fftw'))
if fftw_dep.found()
cdata.set('HAVE_FFTW', 1)
endif
jack_dep = dependency('jack', version : '>= 0.117.0', required : get_option('jack'))
if jack_dep.found()
cdata.set('HAVE_JACK', 1)
endif
fftw_dep = dependency('fftw3f', required : false)
if fftw_dep.found()
cdata.set('HAVE_FFTW', 1)
endif
lirc_dep = dependency('lirc', required : false)
if lirc_dep.found()
cdata.set('HAVE_LIRC', 1)

View file

@ -35,6 +35,9 @@ option('bluez5-ofono-headset',
option('dbus',
type : 'feature', value : 'auto',
description : 'Optional D-Bus support')
option('fftw',
type : 'feature', value : 'auto',
description : 'Optional FFTW support')
option('jack',
type : 'feature', value : 'auto',
description : 'Optional JACK support')