From e84092a7acee6c4d1493cbdd23ec5676b923f44d Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 21 Jan 2018 00:41:34 +0100 Subject: Don't build libraries twice when testing is enabled --- src/wscript | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'src/wscript') diff --git a/src/wscript b/src/wscript index beeed33b..5b308386 100644 --- a/src/wscript +++ b/src/wscript @@ -38,20 +38,6 @@ def build(bld): vnum = '0.0.0', install_path = '${LIBDIR}', lib = lib, - cxxflags = bld.env.PTHREAD_CFLAGS, - linkflags = bld.env.PTHREAD_LINKFLAGS) + cxxflags = bld.env.PTHREAD_CFLAGS + bld.env.INGEN_TEST_CXXFLAGS, + linkflags = bld.env.PTHREAD_LINKFLAGS + bld.env.INGEN_TEST_LINKFLAGS) autowaf.use_lib(bld, obj, 'GLIBMM LV2 LILV RAUL SERD SORD SRATOM') - - if bld.env.BUILD_TESTS: - obj = bld(features = 'cxx cxxshlib', - source = sources, - export_includes = ['..'], - includes = ['..'], - name = 'libingen_profiled', - target = 'ingen_profiled', - install_path = '', - lib = lib, - cxxflags = bld.env.PTHREAD_CFLAGS + bld.env.INGEN_TEST_CXXFLAGS, - linkflags = bld.env.PTHREAD_LINKFLAGS + bld.env.INGEN_TEST_LINKFLAGS) - autowaf.use_lib(bld, obj, 'GLIBMM LV2 LILV RAUL SERD SORD SRATOM') - -- cgit v1.2.1