From 68a86dded407a2b8cbfa22def46d633e3e312685 Mon Sep 17 00:00:00 2001 From: Arnaud Rebillout Date: Fri, 19 Oct 2018 17:48:31 +0700 Subject: [PATCH] meson: Make jack optional Signed-off-by: Arnaud Rebillout --- meson.build | 2 +- meson_options.txt | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 58ff71c8a..e69145a63 100644 --- a/meson.build +++ b/meson.build @@ -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 diff --git a/meson_options.txt b/meson_options.txt index 181c9d478..dc2a3e69d 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -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')