298b358a55c1b703fbc78951e34a813bdfb3319c
[ardour.git] / libs / surfaces / osc / wscript
1 #!/usr/bin/env python
2 import 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 srcdir = '.'
13 blddir = 'build'
14
15 def set_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.new_task_gen('cxx', 'shlib')
24         obj.source = '''
25                 osc.cc
26                 osc_controllable.cc
27                 interface.cc
28         '''
29         obj.export_incdirs = ['.']
30         obj.cxxflags     = '-DPACKAGE="ardour_cp"'
31         obj.includes     = ['.', './osc']
32         obj.name         = 'libardour_osc'
33         obj.target       = 'osc'
34         obj.uselib       = ' LO '
35         obj.uselib_local = 'libardour libardour_cp'
36         obj.vnum         = LIBARDOUR_OSC_LIB_VERSION
37         obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'surfaces')
38
39 def shutdown():
40         autowaf.shutdown()
41