use new canvas meter in push2 track mix layout
[ardour.git] / libs / surfaces / push2 / 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 print "this is push2"
10
11 def options(opt):
12     autowaf.set_options(opt)
13     
14 def configure(conf):
15     conf.load ('compiler_cxx')
16     autowaf.configure(conf)
17     autowaf.check_pkg(conf, 'pangomm-1.4', uselib_store='PANGOMM', atleast_version='1.4', mandatory=True)
18     autowaf.check_pkg(conf, 'cairomm-1.0', uselib_store='CAIROMM', atleast_version='1.8.4', mandatory=True)
19     
20 def build(bld):
21     obj = bld(features = 'cxx cxxshlib')
22     obj.source = '''
23             push2.cc
24             buttons.cc
25             canvas.cc
26             interface.cc
27             midi_byte_array.cc
28             leds.cc
29             level_meter.cc
30             gui.cc
31             knob.cc
32             layout.cc
33             mode.cc
34             menu.cc
35             mix.cc
36             scale.cc
37             splash.cc
38             track_mix.cc
39             utils.cc
40     '''
41     obj.export_includes = ['.']
42     obj.defines      = [ 'PACKAGE="ardour_push2"' ]
43     obj.defines     += [ 'ARDOURSURFACE_DLL_EXPORTS' ]
44     obj.defines     += [ 'VERSIONSTRING="' + bld.env['VERSION'] + '"' ]
45     obj.includes     = [ '.', './push2']
46     obj.name         = 'libardour_push2'
47     obj.target       = 'ardour_push2'
48     obj.uselib       = 'CAIROMM PANGOMM USB GTKMM SIGCPP'
49     obj.use          = 'libardour libardour_cp libgtkmm2ext libpbd libevoral libcanvas libtimecode'
50     obj.install_path = os.path.join(bld.env['LIBDIR'], 'surfaces')
51
52 def shutdown():
53     autowaf.shutdown()