Upgrade to waf 1.6.7 and autowaf r52.
[ardour.git] / libs / surfaces / osc / wscript
1 #!/usr/bin/env python
2 from waflib.extras import autowaf as autowaf
3 import os
4
5 # Library version (UNIX style major, minor, micro)
6 # major increment <=> incompatible changes
7 # minor increment <=> compatible changes (additions)
8 # micro increment <=> no interface changes
9 LIBARDOUR_OSC_LIB_VERSION = '4.1.0'
10
11 # Mandatory variables
12 top = '.'
13 out = 'build'
14
15 def options(opt):
16     autowaf.set_options(opt)
17
18 def configure(conf):
19     autowaf.configure(conf)
20     autowaf.check_pkg(conf, 'liblo', uselib_store='LO', linkflags='-llo')
21
22 def build(bld):
23     obj = bld(features = 'cxx cxxshlib')
24     obj.source = '''
25             osc.cc
26             osc_controllable.cc
27             osc_route_observer.cc
28             interface.cc
29     '''
30     obj.export_includes = ['.']
31     obj.cxxflags     = '-DPACKAGE="ardour_cp"'
32     obj.includes     = ['.', './osc']
33     obj.name         = 'libardour_osc'
34     obj.target       = 'ardour_osc'
35     obj.uselib       = ' LO '
36     obj.use          = 'libardour libardour_cp libpbd'
37     obj.vnum         = LIBARDOUR_OSC_LIB_VERSION
38     obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'surfaces')
39
40 def shutdown():
41     autowaf.shutdown()