use weak-jack's jack_port_rename wrapper

This avoids "[ERROR]: JACK: jack_port_set_name: deprecated".

if libjack does not have jack_port_rename(), weak_libjack.def provides
a fallback using jack_port_set_name().
This commit is contained in:
Robin Gareus 2015-10-28 01:19:44 +01:00
parent e8fe35d96e
commit 997f47360d

View File

@ -49,7 +49,8 @@ def configure(conf):
uselib = 'JACK')
# Check to see if jack_port_rename() is available and working
conf.check_cxx(fragment = "#include <jack/jack.h>\nint main(void) { jack_client_t* c; jack_port_t* p; jack_port_rename (c, p, \"foo\"); return 0; }\n",
if Options.options.libjack_link == 'link':
conf.check_cxx(fragment = "#include <jack/jack.h>\nint main(void) { jack_client_t* c; jack_port_t* p; jack_port_rename (c, p, \"foo\"); return 0; }\n",
mandatory = False,
execute = False,
features = ['cxx'],
@ -101,7 +102,7 @@ def build(bld):
if bld.env['libjack_link'] == 'link':
obj.uselib += [ 'JACK' ]
else:
obj.defines += [ 'USE_WEAK_JACK' ]
obj.defines += [ 'USE_WEAK_JACK', 'HAVE_JACK_PORT_RENAME' ]
obj.deps = [ 'weak_libjack.def' ]
#