From 5113e9afa52fbcee1245b25c0ebb701899d05247 Mon Sep 17 00:00:00 2001 From: kichik Date: Tue, 19 Apr 2005 21:03:49 +0000 Subject: [PATCH] added prefix option git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@3978 212acab6-be3b-0410-9dea-997c60f758d6 --- SConstruct | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/SConstruct b/SConstruct index 421cd961..c4394529 100644 --- a/SConstruct +++ b/SConstruct @@ -44,9 +44,6 @@ utils = [ import os -prefix = GetLaunchDir() + os.sep -build_prefix = 'build' + os.sep - ###################################################################### ####### environments ### ###################################################################### @@ -55,6 +52,7 @@ defenv = Environment() Export('defenv') opts = Options() +opts.Add(PathOption('PREFIX', 'Installation prefix', GetLaunchDir())) opts.Add(('MINGWPREFIX', 'MinGW toolset prefix', 0)) opts.Add(BoolOption('MSTOOLKIT', 'Use Microsoft Visual C++ Toolkit', 'no')) opts.Add(BoolOption('DEBUG', 'Build executables with debugging information', 'no')) @@ -81,6 +79,13 @@ makensis_env = envs[1] plugin_env = envs[2] util_env = envs[3] +###################################################################### +####### directories ### +###################################################################### + +prefix = defenv['PREFIX'] + os.sep +build_prefix = 'build' + os.sep + ###################################################################### ####### stubs ### ######################################################################