move all code to construct MIDI messages into relevant Control/Strip/Surface object...
[ardour.git] / libs / surfaces / mackie / wscript
1 #!/usr/bin/env python
2 from waflib.extras import autowaf as 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 LIBARDOUR_MCP_LIB_VERSION = '4.1.0'
10
11 # Mandatory variables
12 top = '.'
13 out = 'build'
14
15 def options(opt):
16     autowaf.set_options(opt)
17
18 def configure(conf):
19     autowaf.configure(conf)
20
21 def build(bld):
22     obj = bld(features = 'cxx cxxshlib')
23     obj.source = '''
24             button.cc
25             controls.cc
26             fader.cc
27             gui.cc
28             interface.cc
29             led.cc
30             mackie_control_protocol.cc
31             mackie_jog_wheel.cc
32             mcp_buttons.cc
33             meter.cc
34             midi_byte_array.cc
35             pot.cc
36             strip.cc
37             surface.cc
38             surface_port.cc
39             types.cc
40     '''
41     obj.export_includes = ['./mackie']
42     obj.cxxflags     = '-DPACKAGE="ardour_mackie"'
43     obj.includes     = ['.', './mackie']
44     obj.name         = 'libardour_mcp'
45     obj.target       = 'ardour_mcp'
46     obj.uselib       = 'GTKMM'
47     obj.use          = 'libardour libardour_cp libgtkmm2ext'
48     obj.vnum         = LIBARDOUR_MCP_LIB_VERSION
49     obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3', 'surfaces')
50
51 def shutdown():
52     autowaf.shutdown()