diff options
author | David Robillard <d@drobilla.net> | 2008-10-20 02:02:27 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-10-20 02:02:27 +0000 |
commit | aa3af28d1e3a05f3e495bd08f07fef8427e1ca48 (patch) | |
tree | 6e6dd9c4975ebcdbcc22e0e8a896140fe2bd200e /wscript | |
parent | f95a985e72031f92bff95e24cc4ff82d6358f74e (diff) | |
download | patchage-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-- | wscript | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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') |