diff options
| author | jacob1 <jfu614@gmail.com> | 2013-10-25 16:05:30 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-10-25 16:05:30 (GMT) |
| commit | 2ffe175c1b47262fb3ebfe1459488ca38ec94fea (patch) | |
| tree | 576e6b0b8a069eb2ac911815968a169587f2e9d5 /SConscript | |
| parent | a6b5b60c204d5c996e15f590bd42cc55f142a348 (diff) | |
| download | powder-2ffe175c1b47262fb3ebfe1459488ca38ec94fea.zip powder-2ffe175c1b47262fb3ebfe1459488ca38ec94fea.tar.gz | |
fix crosscompiling, --lua-dir was being ignored
Diffstat (limited to 'SConscript')
| -rwxr-xr-x | SConscript | 19 |
1 files changed, 10 insertions, 9 deletions
@@ -176,19 +176,20 @@ if not GetOption("macosx"): raise SystemExit(1) -# if lua is enabled try to parse the lua pgk-config, if that fails try the lua-dir option -# .. : TODO: make this look the same as the SDL check, maybe make a function for it. keep it DRY. +# if lua is enabled try to parse the lua pgk-config, or the lua-dir option if given - if not GetOption("nolua"): + if(GetOption("lua-dir")): + if not conf.CheckCHeader(GetOption("lua-dir") + '/lua.h'): + print "lua5.1 headers not found or not installed" + raise SystemExit(1) + else: + env.Append(CPPPATH=[GetOption("lua-dir")]) + else: try: env.ParseConfig('pkg-config --cflags lua5.1') except: - if(GetOption("lua-dir")): - if not conf.CheckCHeader(GetOption("lua-dir") + '/lua.h'): - print "lua5.1 headers not found or not installed" - raise SystemExit(1) - else: - env.Append(CPPPATH=[GetOption("lua-dir")]) + print "lua5.1 headers not found or not installed" + raise SystemExit(1) # if fft is enabled try to parse its config, fail otherwise. |
