Upgrade to waf 1.5.4.
[ardour.git] / libs / surfaces / frontier / wscript
1 #!/usr/bin/env python
2 import autowaf
3 import os
4
5 # Version of this package (even if built as a child)
6 LIBSURFACES_VERSION = '4.1.0'
7
8 # Library version (UNIX style major, minor, micro)
9 # major increment <=> incompatible changes
10 # minor increment <=> compatible changes (additions)
11 # micro increment <=> no interface changes
12 LIBSURFACES_LIB_VERSION = '4.1.0'
13
14 # Variables for 'waf dist'
15 APPNAME = 'libsurfaces'
16 VERSION = LIBSURFACES_VERSION
17
18 # Mandatory variables
19 srcdir = '.'
20 blddir = 'build'
21
22 def set_options(opt):
23         autowaf.set_options(opt)
24
25 def configure(conf):
26         autowaf.configure(conf)
27
28 def build(bld):
29         # Generic MIDI
30         obj = bld.new_task_gen('cxx', 'shlib')
31         obj.source = '''
32                 generic_midi_control_protocol.cc
33                 interface.cc
34                 midicontrollable.cc
35         '''
36         obj.export_incdirs = ['./generic_midi']
37         obj.cxxflags     = '-DPACKAGE="ardour_genericmidi"'
38         obj.includes     = ['.', './generic_midi']
39         obj.name         = 'libgeneric_midi'
40         obj.target       = 'generic_midi'
41         obj.uselib_local = 'libardour libsurfaces'
42         obj.vnum         = LIBSURFACES_LIB_VERSION
43         obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
44         
45 def shutdown():
46         autowaf.shutdown()
47