summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-09-29 01:05:48 +0000
committerDavid Robillard <d@drobilla.net>2011-09-29 01:05:48 +0000
commitaa9c6a9a599c594f6a4d527e185ada44a4a68822 (patch)
tree45d9eec0d4c618c2e9754e13739da75618cf43e1 /wscript
parent829760ac063b9cbab3546fdb1d78cfac1ebd52fd (diff)
downloadsord-aa9c6a9a599c594f6a4d527e185ada44a4a68822.tar.gz
sord-aa9c6a9a599c594f6a4d527e185ada44a4a68822.tar.bz2
sord-aa9c6a9a599c594f6a4d527e185ada44a4a68822.zip
Don't build multiple "sordi_static" targets.
git-svn-id: http://svn.drobilla.net/sord/trunk@167 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'wscript')
-rw-r--r--wscript42
1 files changed, 16 insertions, 26 deletions
diff --git a/wscript b/wscript
index a1e5063..2ccb072 100644
--- a/wscript
+++ b/wscript
@@ -130,12 +130,12 @@ def build(bld):
if bld.env['BUILD_TESTS']:
test_cflags = [ '-fprofile-arcs', '-ftest-coverage' ]
- # Static library (for unit test code coverage)
+ # Static profiled library (for unit test code coverage)
obj = bld(features = 'c cstlib',
source = source,
includes = ['.', './src'],
- name = 'libsord_static',
- target = 'sord_static',
+ name = 'libsord_profiled',
+ target = 'sord_profiled',
install_path = '',
cflags = test_cflags,
libs = [ 'm' ])
@@ -145,54 +145,44 @@ def build(bld):
obj = bld(features = 'c cprogram',
source = 'src/sord_test.c',
includes = ['.', './src'],
- use = 'libsord_static',
+ use = 'libsord_profiled',
linkflags = '-lgcov',
target = 'sord_test',
install_path = '',
cflags = test_cflags)
autowaf.use_lib(bld, obj, 'SERD')
- # Static sordi build
- obj = bld(features = 'c cprogram')
- obj.source = 'src/sordi.c'
- obj.includes = ['.', './src']
- obj.use = 'libsord_static'
- obj.linkflags = '-lgcov'
- obj.target = 'sordi_static'
- obj.install_path = ''
- obj.cflags = [ '-fprofile-arcs', '-ftest-coverage' ]
+ # Static profiled sordi build
+ obj = bld(features = 'c cprogram',
+ source = 'src/sordi.c',
+ includes = ['.', './src'],
+ use = 'libsord_profiled',
+ linkflags = '-lgcov',
+ target = 'sordi_static',
+ install_path = '',
+ cflags = [ '-fprofile-arcs', '-ftest-coverage' ])
+ autowaf.use_lib(bld, obj, 'SERD')
# C++ build test
obj = bld(features = 'cxx cxxprogram',
source = 'src/sordmm_test.cpp',
includes = ['.', './src'],
- use = 'libsord_static',
+ use = 'libsord_profiled',
linkflags = '-lgcov',
target = 'sordmm_test',
install_path = '',
cflags = test_cflags)
autowaf.use_lib(bld, obj, 'SERD')
- # Static command line utility (for testing)
- if bld.env['BUILD_UTILS']:
- obj = bld(features = 'c cprogram',
- source = 'src/sordi.c',
- includes = ['.', './src'],
- use = 'libsord_static',
- linkflags = '-lgcov',
- target = 'sordi_static',
- install_path = '',
- cflags = test_cflags)
-
# Command line utility
if bld.env['BUILD_UTILS']:
obj = bld(features = 'c cprogram',
source = 'src/sordi.c',
includes = ['.', './src'],
use = 'libsord',
- linkflags = '-lgcov',
target = 'sordi',
install_path = '${BINDIR}')
+ autowaf.use_lib(bld, obj, 'SERD')
# Documentation
autowaf.build_dox(bld, 'SORD', SORD_VERSION, top, out)