From a0b107e80d48238b662bbda2e6a64e633464e545 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 28 Nov 2020 18:50:20 +0100 Subject: Fix Jack metadata when session management is not enabled --- wscript | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index aa0e3a1..2072907 100644 --- a/wscript +++ b/wscript @@ -158,18 +158,20 @@ def configure(conf): if conf.env.HAVE_JACK: conf.define('PATCHAGE_LIBJACK', 1) - if Options.options.jack_session_manage: - conf.define('PATCHAGE_JACK_SESSION', 1) - conf.check_function('cxx', 'jack_get_property', - header_name = 'jack/metadata.h', - define_name = 'HAVE_JACK_METADATA', - uselib = 'JACK', - return_type = 'int', - arg_types = '''jack_uuid_t, + + conf.check_function('cxx', 'jack_get_property', + header_name = 'jack/metadata.h', + define_name = 'HAVE_JACK_METADATA', + uselib = 'JACK', + return_type = 'int', + arg_types = '''jack_uuid_t, const char*, char**, char**''', - mandatory = False) + mandatory = False) + + if Options.options.jack_session_manage: + conf.define('PATCHAGE_JACK_SESSION', 1) # Use Alsa if present unless --no-alsa if not Options.options.no_alsa: -- cgit v1.2.1