summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-10-20 02:02:27 +0000
committerDavid Robillard <d@drobilla.net>2008-10-20 02:02:27 +0000
commitaa3af28d1e3a05f3e495bd08f07fef8427e1ca48 (patch)
tree6e6dd9c4975ebcdbcc22e0e8a896140fe2bd200e /wscript
parentf95a985e72031f92bff95e24cc4ff82d6358f74e (diff)
downloadpatchage-aa3af28d1e3a05f3e495bd08f07fef8427e1ca48.tar.gz
patchage-aa3af28d1e3a05f3e495bd08f07fef8427e1ca48.tar.bz2
patchage-aa3af28d1e3a05f3e495bd08f07fef8427e1ca48.zip
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
Diffstat (limited to 'wscript')
-rw-r--r--wscript8
1 files changed, 6 insertions, 2 deletions
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')