meson: Make jack optional

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

View file

@ -280,7 +280,7 @@ if bluez_dep.found()
endif
endif
jack_dep = dependency('jack', version : '>= 0.117.0', required : false)
jack_dep = dependency('jack', version : '>= 0.117.0', required : get_option('jack'))
if jack_dep.found()
cdata.set('HAVE_JACK', 1)
endif

View file

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