78a674b375264b8b774671ef759209dea538f946
[ardour.git] / libs / surfaces / control_protocol / wscript
1 #!/usr/bin/env python
2 import 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 LIBSURFACES_LIB_VERSION = '4.1.0'
10
11 # Mandatory variables
12 srcdir = '.'
13 blddir = 'build'
14
15 def set_options(opt):
16         autowaf.set_options(opt)
17
18 def configure(conf):
19         autowaf.configure(conf)
20
21 def build(bld):
22         obj = bld.new_task_gen('cxx', 'shlib')
23         obj.source = '''
24                 basic_ui.cc
25                 control_protocol.cc
26                 smpte.cc
27         '''
28         obj.export_incdirs = ['.']
29         obj.cxxflags     = '-DPACKAGE=\\\"ardour_cp\\\"'
30         obj.includes     = ['.']
31         obj.name         = 'libsurfaces'
32         obj.target       = 'surfaces'
33         obj.uselib_local = 'libardour'
34         obj.vnum         = LIBSURFACES_LIB_VERSION
35         obj.install_path = os.path.join(bld.env['LIBDIR'], 'ardour3')
36         
37 def shutdown():
38         autowaf.shutdown()
39