diff options
author | David Robillard <d@drobilla.net> | 2020-11-28 18:50:20 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-11-28 21:09:38 +0100 |
commit | a0b107e80d48238b662bbda2e6a64e633464e545 (patch) | |
tree | a61167410642899d640f1b76bde5634e6563de09 /wscript | |
parent | 042a3d2004d47e7d4c5b11d26e23b70c1c716aac (diff) | |
download | patchage-a0b107e80d48238b662bbda2e6a64e633464e545.tar.gz patchage-a0b107e80d48238b662bbda2e6a64e633464e545.tar.bz2 patchage-a0b107e80d48238b662bbda2e6a64e633464e545.zip |
Fix Jack metadata when session management is not enabled
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -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: |