Upgrade to waf 1.5.4.
[ardour.git] / libs / surfaces / wiimote / 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 LIBSURFACES_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
21 def build(bld):
22         obj = bld.new_task_gen('cxx', 'shlib')
23         obj.source = '''
24                 wiimote.cc
25                 interface.cc
26         '''
27         obj.export_incdirs = ['./wiimote']
28         obj.cxxflags     = '-DPACKAGE="ardour_wiimote"'
29         obj.includes     = ['.', './wiimote']
30         obj.name         = 'libwiimote'
31         obj.target       = 'wiimote'
32         obj.uselib_local = 'libardour libsurfaces'
33         obj.vnum         = LIBSURFACES_LIB_VERSION
34         obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
35         
36 def shutdown():
37         autowaf.shutdown()
38