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
commit955c64efcf30e87ab3d4bdb1520745c1997f0953 (patch)
tree7237ea80d10bf5a25fec1cb8e870ac55448ca444 /wscript
parent5e09c3e596c1b0860a996cf8f6023b43d5286a4a (diff)
downloadingen-955c64efcf30e87ab3d4bdb1520745c1997f0953.tar.gz
ingen-955c64efcf30e87ab3d4bdb1520745c1997f0953.tar.bz2
ingen-955c64efcf30e87ab3d4bdb1520745c1997f0953.zip
Make Ingen and Patchage relocatable binaries when built as a bundle.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1690 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'wscript')
-rw-r--r--wscript13
1 files changed, 11 insertions, 2 deletions
diff --git a/wscript b/wscript
index cee783a7..20c24d64 100644
--- a/wscript
+++ b/wscript
@@ -53,8 +53,17 @@ def configure(conf):
conf.define('INGEN_VERSION', INGEN_VERSION)
conf.define('BUILD_GUI', build_gui)
conf.define('HAVE_JACK_MIDI', conf.env['HAVE_JACK'] == 1)
- conf.define('INGEN_DATA_DIR', os.path.normpath(conf.env['DATADIR'] + 'ingen'))
- conf.define('INGEN_MODULE_DIR', os.path.normpath(conf.env['LIBDIR'] + 'ingen'))
+ if conf.env['BUNDLE']:
+ conf.define('INGEN_DATA_DIR', os.path.normpath(
+ conf.env['DATADIRNAME'] + 'ingen'))
+ conf.define('INGEN_MODULE_DIR', os.path.normpath(
+ conf.env['LIBDIRNAME'] + 'ingen'))
+ else:
+ conf.define('INGEN_DATA_DIR', os.path.normpath(
+ conf.env['DATADIR'] + 'ingen'))
+ conf.define('INGEN_MODULE_DIR', os.path.normpath(
+ conf.env['LIBDIR'] + 'ingen'))
+
conf.write_config_header('config.h')
autowaf.print_summary(conf)