summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-27 23:39:21 +0000
committerDavid Robillard <d@drobilla.net>2011-04-27 23:39:21 +0000
commit15e2ea280f63d1cfac38918dd00a44fdab6d8989 (patch)
treeafb4fcb5918d4d11705ab31dc802147f65b95def
parentf3b65ffd392579728490916ba0d0ad9cbcdcbf66 (diff)
downloadsord-15e2ea280f63d1cfac38918dd00a44fdab6d8989.tar.gz
sord-15e2ea280f63d1cfac38918dd00a44fdab6d8989.tar.bz2
sord-15e2ea280f63d1cfac38918dd00a44fdab6d8989.zip
Fix sordi compilation and installation.
git-svn-id: http://svn.drobilla.net/sord/trunk@93 3d64ff67-21c5-427c-a301-fe4f08042e5a
-rw-r--r--wscript18
1 files changed, 14 insertions, 4 deletions
diff --git a/wscript b/wscript
index d215aca..d6c4340 100644
--- a/wscript
+++ b/wscript
@@ -121,16 +121,26 @@ def build(bld):
cflags = test_cflags)
autowaf.use_lib(bld, obj, 'GLIB 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_static',
+ use = 'libsord',
linkflags = '-lgcov',
- target = 'sordi_static',
- install_path = '',
- cflags = test_cflags)
+ target = 'sordi',
+ install_path = '${BINDIR}')
# Documentation
autowaf.build_dox(bld, 'SORD', SORD_VERSION, top, out)