summaryrefslogtreecommitdiff
path: root/libs/surfaces/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-02-27 00:27:14 +0000
committerDavid Robillard <d@drobilla.net>2009-02-27 00:27:14 +0000
commit0a61e3893de0149a69415ce218c503025e041712 (patch)
tree53607822826440c6932d0cfed78582becd3ad15b /libs/surfaces/wscript
parent58febcbacb7c47486a2912cda7549a69421b2c1d (diff)
Waf: build control surfaces.
git-svn-id: svn://localhost/ardour2/branches/3.0@4695 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/surfaces/wscript')
-rw-r--r--libs/surfaces/wscript30
1 files changed, 3 insertions, 27 deletions
diff --git a/libs/surfaces/wscript b/libs/surfaces/wscript
index 352a778d3e..24f7d060ed 100644
--- a/libs/surfaces/wscript
+++ b/libs/surfaces/wscript
@@ -2,7 +2,7 @@
import autowaf
# Version of this package (even if built as a child)
-LIBSURFACES_VERSION = '0.0.0'
+LIBSURFACES_VERSION = '4.1.0'
# Library version (UNIX style major, minor, micro)
# major increment <=> incompatible changes
@@ -23,34 +23,10 @@ def set_options(opt):
def configure(conf):
autowaf.configure(conf)
- autowaf.check_tool(conf, 'compiler_cxx')
- autowaf.check_pkg(conf, 'libxml-2.0', uselib_store='XML')
- autowaf.check_pkg(conf, 'sigc++-2.0', uselib_store='SIGCPP', atleast_version='2.0')
- autowaf.check_pkg(conf, 'uuid', uselib_store='UUID')
-
- conf.env.append_value('CXXFLAGS', '-DHAVE_WAFCONFIG_H')
- conf.write_config_header('wafconfig.h')
-
- # Boost headers
- autowaf.check_header(conf, 'boost/shared_ptr.hpp')
- autowaf.check_header(conf, 'boost/weak_ptr.hpp')
def build(bld):
- # Library
- obj = bld.new_task_gen('cxx', 'shlib')
- obj.source = '''
- control_protocol/basic_ui.cc
- control_protocol/control_protocol.cc
- control_protocol/smpte.cc
- '''
- obj.export_incdirs = ['./control_protocol']
- obj.cxxflags = '-DPACKAGE=\\\"ardour_cp\\\"'
- obj.includes = ['.', './control_protocol']
- obj.name = 'libsurfaces'
- obj.target = 'surfaces'
- obj.uselib_local = 'libardour'
- obj.vnum = LIBSURFACES_LIB_VERSION
- obj.install_path = ''
+ bld.add_subdirs('control_protocol')
+ bld.add_subdirs('generic_midi')
def shutdown():
autowaf.shutdown()