meson: Make jack optional
authorArnaud Rebillout <arnaud.rebillout@collabora.com>
Fri, 19 Oct 2018 10:48:31 +0000 (17:48 +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 58ff71c..e69145a 100644 (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
index 181c9d4..dc2a3e6 100644 (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')