diff options
author | David Robillard <d@drobilla.net> | 2011-10-10 21:16:16 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-10-10 21:16:16 +0000 |
commit | b4b35fdeb25570e48715a8de60a7ab453bf3b1ce (patch) | |
tree | 902e6b3780dbd3bc08f727955f6310e7d17beee8 /wscript | |
parent | b2930d1daa487dc22ba004a5e97a504900b46bb7 (diff) | |
download | lv2-b4b35fdeb25570e48715a8de60a7ab453bf3b1ce.tar.xz |
Install relative symlinks when using top-level build script.
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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() |