summaryrefslogtreecommitdiffstats
path: root/src/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2018-01-21 00:41:34 +0100
committerDavid Robillard <d@drobilla.net>2018-01-21 00:41:34 +0100
commite84092a7acee6c4d1493cbdd23ec5676b923f44d (patch)
tree07219309ce96ee6a4a1deba279ca48f82b685d74 /src/wscript
parentf77283d735d202e5c15d072e195325b1f876e461 (diff)
downloadingen-e84092a7acee6c4d1493cbdd23ec5676b923f44d.tar.gz
ingen-e84092a7acee6c4d1493cbdd23ec5676b923f44d.tar.bz2
ingen-e84092a7acee6c4d1493cbdd23ec5676b923f44d.zip
Don't build libraries twice when testing is enabled
Diffstat (limited to 'src/wscript')
-rw-r--r--src/wscript18
1 files changed, 2 insertions, 16 deletions
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')
-