diff options
author | David Robillard <d@drobilla.net> | 2018-01-21 00:41:34 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2018-01-21 00:41:34 +0100 |
commit | e84092a7acee6c4d1493cbdd23ec5676b923f44d (patch) | |
tree | 07219309ce96ee6a4a1deba279ca48f82b685d74 /src/wscript | |
parent | f77283d735d202e5c15d072e195325b1f876e461 (diff) | |
download | ingen-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/wscript | 18 |
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') - |