From ec4fd6dd3809a055b66c28f841df277e4cd9f62e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 18 May 2012 18:03:24 +0000 Subject: Beginnings of a test framework. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4427 a436a847-0d15-0410-975c-d299462d15a1 --- src/shared/wscript | 45 +++++++++++++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 16 deletions(-) (limited to 'src/shared/wscript') diff --git a/src/shared/wscript b/src/shared/wscript index 15e6097e..751951e1 100644 --- a/src/shared/wscript +++ b/src/shared/wscript @@ -1,8 +1,25 @@ #!/usr/bin/env python from waflib.extras import autowaf as autowaf +sources = [ + 'AtomReader.cpp', + 'AtomWriter.cpp', + 'Builder.cpp', + 'ClashAvoider.cpp', + 'Configuration.cpp', + 'Forge.cpp', + 'LV2Features.cpp', + 'ResourceImpl.cpp', + 'Store.cpp', + 'URIMap.cpp', + 'URIs.cpp', + 'World.cpp', + 'runtime_paths.cpp', +] + def build(bld): obj = bld(features = 'cxx cxxshlib', + source = sources, export_includes = ['../..'], includes = ['../..'], name = 'libingen_shared', @@ -12,19 +29,15 @@ def build(bld): lib = ['dl']) autowaf.use_lib(bld, obj, 'GLIBMM LV2 LILV RAUL SORD LV2_MIDI') - obj.source = ''' - AtomReader.cpp - AtomWriter.cpp - Builder.cpp - ClashAvoider.cpp - Configuration.cpp - Forge.cpp - LV2Features.cpp - Module.cpp - ResourceImpl.cpp - Store.cpp - URIMap.cpp - URIs.cpp - World.cpp - runtime_paths.cpp - ''' + if bld.env['BUILD_TESTS']: + obj = bld(features = 'cxx cxxshlib', + source = sources, + export_includes = ['../..'], + includes = ['../..'], + name = 'libingen_shared_profiled', + target = 'ingen_shared_profiled', + install_path = '', + lib = ['dl'] + bld.env['INGEN_TEST_LIBS'], + cxxflags = bld.env['INGEN_TEST_CXXFLAGS']) + autowaf.use_lib(bld, obj, 'GLIBMM LV2 LILV RAUL SORD LV2_MIDI') + -- cgit v1.2.1