adjustments to build nascent push2 surface support
[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 def options(opt):
10     autowaf.set_options(opt)
11     
12 def configure(conf):
13     conf.load ('compiler_cxx')
14     autowaf.configure(conf)
15     autowaf.check_pkg(conf, 'cairomm-1.0', uselib_store='CAIROMM', atleast_version='1.8.4')
16     autowaf.check_pkg(conf, 'pangomm-1.5', uselib_store='CAIROMM', atleast_version='1.4')
17
18 def configure(conf):
19     autowaf.configure(conf)
20
21 def build(bld):
22     obj = bld(features = 'cxx cxxshlib')
23     obj.source = '''
24             push2.cc
25             interface.cc
26     '''
27     obj.export_includes = ['.']
28     obj.defines      = [ 'PACKAGE="ardour_push2"' ]
29     obj.defines     += [ 'ARDOURSURFACE_DLL_EXPORTS' ]
30     obj.includes     = [ '.', './push2']
31     obj.name         = 'libardour_push2'
32     obj.target       = 'ardour_push2'
33     obj.uselib       = 'CAIROMM PANGOMM USB'
34     obj.use          = 'libardour libardour_cp libpbd'
35     obj.install_path = os.path.join(bld.env['LIBDIR'], 'surfaces')
36
37 def shutdown():
38     autowaf.shutdown()