support specifying WXWIN on command line

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6002 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2009-11-29 23:19:58 +00:00
parent c076d135e7
commit 45da025cd8
2 changed files with 5 additions and 4 deletions

View file

@ -38,7 +38,7 @@ import os
from os.path import join from os.path import join
if env['PLATFORM'] != 'win32' and WhereIs('wx-config') or \ if env['PLATFORM'] != 'win32' and WhereIs('wx-config') or \
env['PLATFORM'] == 'win32' and os.environ.has_key('WXWIN'): env['PLATFORM'] == 'win32' and env.get('WXWIN'):
# build # build
@ -66,10 +66,10 @@ if env['PLATFORM'] != 'win32' and WhereIs('wx-config') or \
# set directories # set directories
if nsis_menu[0].env['PLATFORM'] == 'win32': if nsis_menu[0].env['PLATFORM'] == 'win32':
wxlib = [join(os.environ['WXWIN'], 'lib', 'vc_libnsis')] wxlib = [join(env['WXWIN'], 'lib', 'vc_libnsis')]
wxinc = [ wxinc = [
join(os.environ['WXWIN'], 'include'), join(env['WXWIN'], 'include'),
join(os.environ['WXWIN'], 'lib', 'vc_libnsis', 'msw') join(env['WXWIN'], 'lib', 'vc_libnsis', 'msw')
] ]
nsis_menu[0].env.Append(LIBPATH = wxlib) nsis_menu[0].env.Append(LIBPATH = wxlib)
nsis_menu[0].env.Append(CPPPATH = wxinc) nsis_menu[0].env.Append(CPPPATH = wxinc)

View file

@ -155,6 +155,7 @@ opts.Add(PathVariable('APPEND_CPPPATH', 'Additional paths to search for include
opts.Add(PathVariable('APPEND_LIBPATH', 'Additional paths to search for libraries', None)) opts.Add(PathVariable('APPEND_LIBPATH', 'Additional paths to search for libraries', None))
opts.Add(('APPEND_CCFLAGS', 'Additional C/C++ compiler flags')) opts.Add(('APPEND_CCFLAGS', 'Additional C/C++ compiler flags'))
opts.Add(('APPEND_LINKFLAGS', 'Additional linker flags')) opts.Add(('APPEND_LINKFLAGS', 'Additional linker flags'))
opts.Add(PathVariable('WXWIN', 'Path to wxWindows library folder (e.g. C:\\Dev\\wxWidgets-2.8.10)', os.environ.get('WXWIN')))
# build options # build options
opts.Add(BoolVariable('DEBUG', 'Build executables with debugging information', 'no')) opts.Add(BoolVariable('DEBUG', 'Build executables with debugging information', 'no'))
opts.Add(PathVariable('CODESIGNER', 'A program used to sign executables', None)) opts.Add(PathVariable('CODESIGNER', 'A program used to sign executables', None))