detect wx-config before trying to run it (part of bug #1672315)
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5028 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
82d6166fdf
commit
0a7a11111f
1 changed files with 7 additions and 3 deletions
|
@ -46,10 +46,11 @@ Import('BuildUtil env')
|
|||
import os
|
||||
from os.path import join
|
||||
|
||||
if env['PLATFORM'] != 'win32' or os.environ.has_key('WXWIN'):
|
||||
if env['PLATFORM'] != 'win32' and WhereIs('wx-config') or \
|
||||
env['PLATFORM'] == 'win32' and os.environ.has_key('WXWIN'):
|
||||
|
||||
# build
|
||||
|
||||
|
||||
if env['PLATFORM'] != 'win32':
|
||||
rc = libs = []
|
||||
|
||||
|
@ -93,7 +94,10 @@ else:
|
|||
|
||||
# no wxWidgets
|
||||
def err(target, source, env):
|
||||
print '*** error: WXWIN must be set to build NSIS Menu!'
|
||||
if env['PLATFORM'] == 'win32':
|
||||
print '*** error: WXWIN must be set to build NSIS Menu!'
|
||||
else:
|
||||
print '*** error: wx-config must be in the PATH to build NSIS Menu!'
|
||||
return 1
|
||||
|
||||
cmd = env.Command(target, files, Action(err, ''))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue