aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/eg-sampler.lv2/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-09 23:23:54 +0000
committerDavid Robillard <d@drobilla.net>2012-02-09 23:23:54 +0000
commit7e5bf17f9e14b4a24346c402bf5fcf88772c50f3 (patch)
treed8784b58128f9c640ad637ddf4ecfc88efe45691 /plugins/eg-sampler.lv2/wscript
parent3d8a2bef05f69eff154ad350db4be897f6d3edfa (diff)
downloadlv2-7e5bf17f9e14b4a24346c402bf5fcf88772c50f3.tar.xz
Portability fixes (plugins work on OSX).
Diffstat (limited to 'plugins/eg-sampler.lv2/wscript')
-rw-r--r--plugins/eg-sampler.lv2/wscript17
1 files changed, 12 insertions, 5 deletions
diff --git a/plugins/eg-sampler.lv2/wscript b/plugins/eg-sampler.lv2/wscript
index e5988ed..cbff316 100644
--- a/plugins/eg-sampler.lv2/wscript
+++ b/plugins/eg-sampler.lv2/wscript
@@ -54,11 +54,18 @@ def configure(conf):
def build(bld):
bundle = 'eg-sampler.lv2'
- # Copy data files to build bundle (build/eg-sampler.lv2)
- for i in [ 'sampler.ttl', 'manifest.ttl', 'monosample.wav' ]:
+ # Build manifest.ttl by substitution (for portable lib extension)
+ bld(features = 'subst',
+ source = 'manifest.ttl.in',
+ target = '%s/%s' % (bundle, 'manifest.ttl'),
+ install_path = '${LV2DIR}/%s' % bundle,
+ LIB_EXT = bld.env['pluginlib_EXT'])
+
+ # Copy other data files to build bundle (build/eg-sampler.lv2)
+ for i in [ 'sampler.ttl', 'monosample.wav' ]:
bld(rule = 'cp ${SRC} ${TGT}',
source = i,
- target = bld.path.get_bld().make_node('%s/%s' % (bundle, i)),
+ target = '%s/%s' % (bundle, i),
install_path = '${LV2DIR}/%s' % bundle)
# Create a build environment that builds module-style library names
@@ -67,9 +74,9 @@ def build(bld):
penv = bld.env.derive()
penv['cshlib_PATTERN'] = bld.env['pluginlib_PATTERN']
- includes = None
+ includes = ['.']
if autowaf.is_child:
- includes = '../..'
+ includes += ['../..']
# Build plugin library
obj = bld(features = 'c cshlib',