aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-10-10 21:16:16 +0000
committerDavid Robillard <d@drobilla.net>2011-10-10 21:16:16 +0000
commitb4b35fdeb25570e48715a8de60a7ab453bf3b1ce (patch)
tree902e6b3780dbd3bc08f727955f6310e7d17beee8
parentb2930d1daa487dc22ba004a5e97a504900b46bb7 (diff)
downloadlv2-b4b35fdeb25570e48715a8de60a7ab453bf3b1ce.tar.xz
Install relative symlinks when using top-level build script.
-rw-r--r--wscript9
1 files changed, 7 insertions, 2 deletions
diff --git a/wscript b/wscript
index a2b2345..cdb613f 100644
--- a/wscript
+++ b/wscript
@@ -39,14 +39,19 @@ def configure(conf):
conf.write_config_header('lv2-config.h', remove=False)
def build_extension(bld, name, dir):
+ # Bundle
data_file = '%s/%s.lv2/%s.ttl' % (dir, name, name)
manifest_file = '%s/%s.lv2/manifest.ttl' % (dir, name)
header_files = '%s/%s.lv2/*.h' % (dir, name)
bld.install_files('${LV2DIR}/' + name + '.lv2', bld.path.ant_glob(data_file))
bld.install_files('${LV2DIR}/' + name + '.lv2', bld.path.ant_glob(manifest_file))
bld.install_files('${LV2DIR}/' + name + '.lv2', bld.path.ant_glob(header_files))
- bld.symlink_as('${INCLUDEDIR}/lv2/lv2plug.in/ns/%s/%s' % (dir, name),
- os.path.join(bld.env['LV2DIR'], name + '.lv2'))
+
+ # URI-style include
+ include_dir = bld.env['INCLUDEDIR'] + '/lv2/lv2plug.in/ns/%s' % dir
+ bundle_dir = os.path.join(bld.env['LV2DIR'], name + '.lv2')
+ bld.symlink_as(os.path.join(include_dir, name),
+ os.path.relpath(bundle_dir, include_dir))
def build(bld):
autowaf.set_recursive()