Add Launch Control XL control surface support
[ardour.git] / libs / surfaces / launch_control_xl / wscript
1 #!/usr/bin/env python
2 from waflib.extras import autowaf as autowaf
3 import os
4
5 # Mandatory variables
6 top = '.'
7 out = 'build'
8
9
10 def options(opt):
11     autowaf.set_options(opt)
12
13
14 def configure(conf):
15     conf.load('compiler_cxx')
16     autowaf.configure(conf)
17
18
19 def build(bld):
20     obj = bld(features='cxx cxxshlib')
21     obj.source = '''
22         launch_control_xl.cc
23         controllers.cc
24         interface.cc
25         midi_byte_array.cc
26         leds.cc
27         gui.cc
28     '''
29     obj.export_includes = ['.']
30     obj.defines = ['PACKAGE="ardour_launch_control_xl"']
31     obj.defines += ['ARDOURSURFACE_DLL_EXPORTS']
32     obj.defines += ['VERSIONSTRING="' + bld.env['VERSION'] + '"']
33     obj.includes = ['.', './launch_control_xl']
34     obj.name = 'libardour_launch_control_xl'
35     obj.target = 'ardour_launch_control_xl'
36     obj.uselib = 'GTKMM SIGCPP'
37     obj.use = 'libardour libardour_cp libpbd libevoral libcanvas libtemporal'
38     obj.install_path = os.path.join(bld.env['LIBDIR'], 'surfaces')
39
40
41 def shutdown():
42     autowaf.shutdown()