2 from waflib.extras import autowaf as autowaf
3 from waflib import Options
8 # Library version (UNIX style major, minor, micro)
9 # major increment <=> incompatible changes
10 # minor increment <=> compatible changes (additions)
11 # micro increment <=> no interface changes
12 JACKBACKEND_VERSION = '1.0.0'
13 I18N_PACKAGE = 'jack-backend'
20 autowaf.set_options(opt)
23 autowaf.check_pkg(conf, 'jack', uselib_store='JACK', atleast_version='0.121.0')
26 # PortAudio is currently used to get a list of audio device names.
27 # We should find a better way to do this that doesn't involve this
30 if Options.options.dist_target == 'mingw':
31 autowaf.check_pkg(conf, 'portaudio-2.0', uselib_store='PORTAUDIO',
33 autowaf.configure(conf)
36 obj = bld(features = 'cxx cxxshlib')
40 'jack_audiobackend.cc',
46 obj.name = 'jack_audiobackend'
47 obj.target = 'jack_audiobackend'
48 if (bld.env['build_target'] == 'mingw'):
49 obj.uselib = [ 'JACK', 'PORTAUDIO' ]
51 obj.uselib = [ 'JACK' ]
52 obj.use = 'libardour libpbd'
53 obj.vnum = JACKBACKEND_VERSION
54 obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'backends')
55 obj.defines = ['PACKAGE="' + I18N_PACKAGE + '"',
56 'ARDOURBACKEND_DLL_EXPORTS'
60 # device discovery code in the jack backend needs ALSA
64 if re.search ("linux", sys.platform) != None:
65 obj.uselib += [ 'ALSA' ]