enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.h
[ardour.git] / libs / surfaces / control_protocol / 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 controlcp_sources = [
10     'basic_ui.cc',
11     'control_protocol.cc',
12     ]
13
14 def options(opt):
15     autowaf.set_options(opt)
16
17 def configure(conf):
18     autowaf.configure(conf)
19
20 def build(bld):
21     if bld.is_defined ('INTERNAL_SHARED_LIBS'):
22         obj              = bld.shlib(features = 'c cxx cshlib cxxshlib', source=controlcp_sources)
23         # defines for this library
24         obj.defines      = [ 'LIBCONTROLCP_DLL_EXPORTS' ]
25     else:
26         obj              = bld.stlib(features = 'c cxx cstlib cxxstlib', source=controlcp_sources)
27         obj.cxxflags     = [ '-fPIC' ]
28         obj.defines      = [ ]
29
30     obj.export_includes = ['.', './control_protocol' ]
31     obj.defines    +=  [ 'PACKAGE="ardour_cp"' ]
32     obj.includes     = ['.', './control_protocol']
33     obj.name         = 'libardour_cp'
34     obj.target       = 'ardourcp'
35     obj.use          = 'libardour libpbd'
36     obj.uselib       = 'GLIBMM SIGCPP XML'
37     obj.install_path = bld.env['LIBDIR']
38
39 def shutdown():
40     autowaf.shutdown()