summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-01-04 21:03:42 +0000
committerDavid Robillard <d@drobilla.net>2012-01-04 21:03:42 +0000
commit59b7cb60f0dcdd639ee4b130df9cbce3d7ebf04a (patch)
treef620184058830c46610456391f0352e9824ca52f /wscript
parent84ee3d3636f642df74cec72541416a387e730842 (diff)
downloadlilv-59b7cb60f0dcdd639ee4b130df9cbce3d7ebf04a.tar.gz
lilv-59b7cb60f0dcdd639ee4b130df9cbce3d7ebf04a.tar.bz2
lilv-59b7cb60f0dcdd639ee4b130df9cbce3d7ebf04a.zip
Use platform specific shared library extension in test suite.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3917 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript11
1 files changed, 7 insertions, 4 deletions
diff --git a/wscript b/wscript
index 3a047af..4d9de86 100644
--- a/wscript
+++ b/wscript
@@ -243,6 +243,8 @@ def build(bld):
if shlib_pattern.startswith('lib'):
shlib_pattern = shlib_pattern[3:]
penv['cshlib_PATTERN'] = shlib_pattern
+ shlib_ext = shlib_pattern[shlib_pattern.rfind('.'):]
+
obj = bld(features = 'c cshlib',
env = penv,
source = 'test/test_plugin.c',
@@ -252,11 +254,12 @@ def build(bld):
uselib = 'LV2CORE LV2_STATE LV2_URID')
# Test plugin data files
- for i in [ 'manifest.ttl', 'test_plugin.ttl' ]:
- bld(rule = 'cp ${SRC} ${TGT}',
+ for i in [ 'manifest.ttl.in', 'test_plugin.ttl.in' ]:
+ bld(features = 'subst',
source = 'test/' + i,
- target = 'test/test_plugin.lv2/' + i,
- install_path = None)
+ target = 'test/test_plugin.lv2/' + i.replace('.in', ''),
+ install_path = None,
+ SHLIB_EXT = shlib_ext)
# Static profiled library (for unit test code coverage)
obj = bld(features = 'c cstlib',