Upgrade to waf 1.5.4.
[ardour.git] / libs / surfaces / tranzport / 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                 button_events.cc
25                 buttons.cc
26                 general.cc
27                 init.cc
28                 interface.cc
29                 io.cc
30                 io_usb.cc
31                 lcd.cc
32                 lights.cc
33                 mode.cc
34                 panner.cc
35                 screen.cc
36                 show.cc
37                 state.cc
38                 wheel.cc
39                 wheel_modes.cc
40         '''
41         obj.export_incdirs = ['./tranzport']
42         obj.cxxflags     = '-DPACKAGE="ardour_tranzport"'
43         obj.includes     = ['.', './tranzport']
44         obj.name         = 'libtranzport'
45         obj.target       = 'tranzport'
46         obj.uselib_local = 'libardour libsurfaces'
47         obj.vnum         = LIBSURFACES_LIB_VERSION
48         obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
49         
50 def shutdown():
51         autowaf.shutdown()
52