Merge branch 'master--arm' of https://github.com/nphilipp/ardour
[ardour.git] / libs / backends / jack / wscript
1 #!/usr/bin/env python
2 from waflib.extras import autowaf as autowaf
3 import os
4 import sys
5 import re
6
7 # Library version (UNIX style major, minor, micro)
8 # major increment <=> incompatible changes
9 # minor increment <=> compatible changes (additions)
10 # micro increment <=> no interface changes
11 JACKBACKEND_VERSION = '1.0.0'
12 I18N_PACKAGE = 'jack-backend'
13
14 # Mandatory variables
15 top = '.'
16 out = 'build'
17
18 def options(opt):
19     autowaf.set_options(opt)
20
21 def configure(conf):
22     autowaf.configure(conf)
23
24 def build(bld):
25     obj = bld(features = 'cxx cxxshlib')
26     obj.source = [ 
27             'jack_api.cc',
28             'jack_connection.cc',
29             'jack_audiobackend.cc',
30             'jack_portengine.cc',
31             'jack_utils.cc'
32             ]
33     obj.includes = ['.']
34     obj.cxxflags = [ '-fPIC' ]
35     obj.name     = 'jack_audiobackend'
36     obj.target   = 'jack_audiobackend'
37     obj.uselib   = [ 'JACK' ]
38     obj.use      = 'ardour libpbd'
39     obj.vnum     = JACKBACKEND_VERSION
40     obj.install_path  = os.path.join(bld.env['LIBDIR'], 'ardour3', 'backends')
41     obj.defines = ['PACKAGE="' + I18N_PACKAGE + '"', 
42                    'ARDOURBACKEND_DLL_EXPORTS'
43                    ]
44
45     #
46     # device discovery code in the jack backend needs ALSA
47     # on Linux.
48     # 
49
50     if re.search ("linux", sys.platform) != None:
51        obj.uselib += [ 'ALSA' ]
52