From 59b7cb60f0dcdd639ee4b130df9cbce3d7ebf04a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 4 Jan 2012 21:03:42 +0000 Subject: 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 --- wscript | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'wscript') 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', -- cgit v1.2.1