summaryrefslogtreecommitdiff
path: root/libs/canvas/wscript
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-02-28 21:16:44 +0100
committerRobin Gareus <robin@gareus.org>2016-02-28 21:16:44 +0100
commitba7835912916112c03519a64ddd0270c6d7f586c (patch)
treec0b996ab686a516e685998725987ce1f8678bfb3 /libs/canvas/wscript
parent49148b627ccdad2dea95ab0dad838d517836aefa (diff)
prepare for update to waf 1.8
uselib is no longer implicit (inherited by .use). This is still incomplete, some uselibs for non-linux variants may be missing. bld.is_defined("HAVE_XXX") also no longer works and will have to be changed (I think to bld.env["HAVE_XXX"]) in countless places.
Diffstat (limited to 'libs/canvas/wscript')
-rw-r--r--libs/canvas/wscript58
1 files changed, 29 insertions, 29 deletions
diff --git a/libs/canvas/wscript b/libs/canvas/wscript
index 2a4cc0bf3a..63bccec166 100644
--- a/libs/canvas/wscript
+++ b/libs/canvas/wscript
@@ -84,7 +84,7 @@ def build(bld):
obj.export_includes = ['.']
obj.includes = ['.']
- obj.uselib = 'SIGCPP CAIROMM GTKMM BOOST'
+ obj.uselib = 'SIGCPP CAIROMM GTKMM BOOST XML'
obj.use = [ 'libpbd', 'libevoral', 'libardour', 'libgtkmm2ext', 'libevoral' ]
obj.name = 'libcanvas'
obj.target = 'canvas'
@@ -92,7 +92,32 @@ def build(bld):
obj.install_path = bld.env['LIBDIR']
obj.defines += [ 'PACKAGE="' + I18N_PACKAGE + '"' ]
- if bld.env['BUILD_TESTS'] and bld.env['HAVE_CPPUNIT']:
+ # canvas unit-tests are outdated
+ if False and bld.env['BUILD_TESTS'] and bld.is_defined('HAVE_CPPUNIT'):
+ unit_testobj = bld(features = 'cxx cxxprogram')
+ unit_testobj.source = '''
+ test/group.cc
+ test/arrow.cc
+ test/optimizing_lookup_table.cc
+ test/polygon.cc
+ test/types.cc
+ test/render.cc
+ test/xml.cc
+ test/wave_view.cc
+ test/item.cc
+ test/testrunner.cpp
+ '''.split()
+
+ unit_testobj.includes = obj.includes + ['test', '../pbd']
+ unit_testobj.uselib = 'CPPUNIT SIGCPP CAIROMM GTKMM'
+ unit_testobj.uselib_local = 'libcanvas libevoral libardour libgtkmm2ext'
+ unit_testobj.name = 'libcanvas-unit-tests'
+ unit_testobj.target = 'run-tests'
+ unit_testobj.install_path = ''
+ unit_testobj.cxxflags = ['-DPACKAGE="libcanvastest"']
+ unit_testobj.cxxflags += ['-DDATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"']
+ unit_testobj.cxxflags += ['-DCONFIG_DIR="' + os.path.normpath(bld.env['CONFDIR']) + '"']
+ unit_testobj.cxxflags += ['-DMODULE_DIR="' + os.path.normpath(bld.env['LIBDIR']) + '"']
manual_tests = '''
test/hello_world.cc
@@ -106,7 +131,7 @@ def build(bld):
for t in manual_tests:
target = t[:-3]
name = t[t.find('/')+1:-3]
- manual_testobj = bld.new_task_gen('cxx', 'program')
+ manual_testobj = bld(features = 'cxx cxxprogram')
manual_testobj.source = t
manual_testobj.includes = obj.includes + ['test', '../pbd']
manual_testobj.uselib = 'CPPUNIT SIGCPP CAIROMM GTKMM'
@@ -115,31 +140,6 @@ def build(bld):
manual_testobj.target = target
manual_testobj.install_path = ''
- unit_testobj = bld.new_task_gen('cxx', 'program')
- unit_testobj.source = '''
- test/group.cc
- test/arrow.cc
- test/optimizing_lookup_table.cc
- test/polygon.cc
- test/types.cc
- test/render.cc
- test/xml.cc
- test/wave_view.cc
- test/item.cc
- test/testrunner.cpp
- '''.split()
-
- unit_testobj.includes = obj.includes + ['test', '../pbd']
- unit_testobj.uselib = 'CPPUNIT SIGCPP CAIROMM GTKMM'
- unit_testobj.uselib_local = 'libcanvas libevoral libardour libgtkmm2ext'
- unit_testobj.name = 'libcanvas-unit-tests'
- unit_testobj.target = 'run-tests'
- unit_testobj.install_path = ''
- unit_testobj.cxxflags = ['-DPACKAGE="libcanvastest"']
- unit_testobj.cxxflags += ['-DDATA_DIR="' + os.path.normpath(bld.env['DATADIR']) + '"']
- unit_testobj.cxxflags += ['-DCONFIG_DIR="' + os.path.normpath(bld.env['CONFIGDIR']) + '"']
- unit_testobj.cxxflags += ['-DMODULE_DIR="' + os.path.normpath(bld.env['LIBDIR']) + '"']
-
benchmarks = '''
benchmark/items_at_point.cc
benchmark/render_parts.cc
@@ -150,7 +150,7 @@ def build(bld):
for t in benchmarks:
target = t[:-3]
name = t[t.find('/')+1:-3]
- manual_testobj = bld.new_task_gen('cxx', 'program')
+ manual_testobj = bld(features = 'cxx cxxprogram')
manual_testobj.source = [ t, 'benchmark/benchmark.cc' ]
manual_testobj.includes = obj.includes + ['test', '../pbd']
manual_testobj.uselib = 'CPPUNIT SIGCPP CAIROMM GTKMM'