summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-03-17 10:29:43 +0100
committerCarl Hetherington <cth@carlh.net>2021-03-18 09:48:26 +0100
commite9552854d7a48550d2491665b074adb46ba21b5f (patch)
tree442db319b5940859cb72b38cba1e0957b3151218 /wscript
parent19210abafb6e5963760951f8b115ac9ee69cfcf3 (diff)
Use --destdir instead of --install-prefix in wscript.
Diffstat (limited to 'wscript')
-rw-r--r--wscript5
1 files changed, 2 insertions, 3 deletions
diff --git a/wscript b/wscript
index 867fb5f82..016feaa66 100644
--- a/wscript
+++ b/wscript
@@ -57,7 +57,6 @@ def options(opt):
opt.add_option('--enable-debug', action='store_true', default=False, help='build with debugging information and without optimisation')
opt.add_option('--disable-gui', action='store_true', default=False, help='disable building of GUI tools')
opt.add_option('--disable-tests', action='store_true', default=False, help='disable building of tests')
- opt.add_option('--install-prefix', default=None, help='prefix of where DCP-o-matic will be installed')
opt.add_option('--target-windows', action='store_true', default=False, help='set up to do a cross-compile for Windows')
opt.add_option('--target-macos-arm64', action='store_true', default=False, help='set up to do a cross-compile for macOS arm64')
opt.add_option('--static-dcpomatic', action='store_true', default=False, help='link to components of DCP-o-matic statically')
@@ -93,10 +92,10 @@ def configure(conf):
conf.env.DEBUG = conf.options.enable_debug
conf.env.STATIC_DCPOMATIC = conf.options.static_dcpomatic
conf.env.ENABLE_DISK = conf.options.enable_disk
- if conf.options.install_prefix is None:
+ if conf.options.destdir is None:
conf.env.INSTALL_PREFIX = conf.env.PREFIX
else:
- conf.env.INSTALL_PREFIX = conf.options.install_prefix
+ conf.env.INSTALL_PREFIX = conf.options.destdir
# Common CXXFLAGS
conf.env.append_value('CXXFLAGS', ['-D__STDC_CONSTANT_MACROS',