From aa3af28d1e3a05f3e495bd08f07fef8427e1ca48 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 20 Oct 2008 02:02:27 +0000 Subject: Make Ingen and Patchage relocatable binaries when built as a bundle. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@1690 a436a847-0d15-0410-975c-d299462d15a1 --- wscript | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'wscript') diff --git a/wscript b/wscript index b84ff9d..439e9cf 100644 --- a/wscript +++ b/wscript @@ -76,8 +76,12 @@ def configure(conf): conf.env['APP_INSTALL_NAME'] = Params.g_options.app_install_name conf.env['APP_HUMAN_NAME'] = Params.g_options.app_human_name - conf.define('PATCHAGE_DATA_DIR', os.path.normpath( - conf.env['DATADIR'] + conf.env['APP_INSTALL_NAME'])) + if conf.env['BUNDLE']: + conf.define('PATCHAGE_DATA_DIR', os.path.normpath( + conf.env['DATADIRNAME'] + conf.env['APP_INSTALL_NAME'])) + else: + conf.define('PATCHAGE_DATA_DIR', os.path.normpath( + conf.env['DATADIR'] + conf.env['APP_INSTALL_NAME'])) conf.write_config_header('config.h') -- cgit v1.2.1