Merge branch 'master' into cairocanvas
[ardour.git] / libs / surfaces / frontier / wscript
1 #!/usr/bin/env python
2 from waflib.extras import autowaf as 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 top = '.'
20 out = 'build'
21
22 def 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(features = 'cxx cxxshlib')
31     obj.source = '''
32             generic_midi_control_protocol.cc
33             interface.cc
34             midicontrollable.cc
35     '''
36     obj.export_includes = ['./generic_midi']
37     obj.defines     = [ 'PACKAGE="ardour_frontier"' ]
38     obj.includes     = ['.', './generic_midi']
39     obj.name         = 'libgeneric_midi'
40     obj.target       = 'generic_midi'
41     obj.use          = 'libardour libardourcp'
42     obj.vnum         = LIBSURFACES_LIB_VERSION
43     obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'surfaces')
44
45 def shutdown():
46     autowaf.shutdown()