From b4b35fdeb25570e48715a8de60a7ab453bf3b1ce Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 10 Oct 2011 21:16:16 +0000 Subject: Install relative symlinks when using top-level build script. --- wscript | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'wscript') 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() -- cgit v1.2.1