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