diff options
| author | jacob1 <jfu614@gmail.com> | 2013-05-20 15:30:08 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-05-20 15:30:08 (GMT) |
| commit | bd262d8c929cf27b6d79e348d3f7b4b4aa939344 (patch) | |
| tree | f393d62dfbbc07d850de9d73aeafd4e789af2cf8 /SConscript | |
| parent | 35f84a09422e5243432530e6239bfc3de5e9846c (diff) | |
| parent | 3979395e651a5b45fa1b96a19646b72e4a20e2f8 (diff) | |
| download | powder-bd262d8c929cf27b6d79e348d3f7b4b4aa939344.zip powder-bd262d8c929cf27b6d79e348d3f7b4b4aa939344.tar.gz | |
Merge pull request #136 from mniip/scons
mingw compiling fixes
Diffstat (limited to 'SConscript')
| -rwxr-xr-x | SConscript | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -74,21 +74,21 @@ if GetOption("toolprefix"): #Check for headers and libraries if not GetOption("macosx"): conf = Configure(env) - - try: - env.ParseConfig('sdl-config --cflags') - env.ParseConfig('sdl-config --libs') - except: - if not conf.CheckLib("SDL"): - print "libSDL not found or not installed" + if(GetOption("sdl-dir")): + if not conf.CheckCHeader(GetOption("sdl-dir") + '/SDL.h'): + print "sdl headers not found or not installed" raise SystemExit(1) - - if(GetOption("sdl-dir")): - if not conf.CheckCHeader(GetOption("sdl-dir") + '/SDL.h'): - print "sdl headers not found or not installed" + else: + env.Append(CPPPATH=[GetOption("sdl-dir")]) + else: + try: + env.ParseConfig('sdl-config --cflags') + env.ParseConfig('sdl-config --libs') + except: + if not conf.CheckLib("SDL"): + print "libSDL not found or not installed" raise SystemExit(1) - else: - env.Append(CPPPATH=[GetOption("sdl-dir")]) + #Find correct lua include dir if not GetOption("nolua"): |
