diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2013-01-22 20:08:36 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2013-01-22 20:08:36 (GMT) |
| commit | f1e51ba9bc4d67f1fd4698290e546e0c98082ca9 (patch) | |
| tree | 7baec586a46b103825a13f814f4db50f351c6c3d /SConscript | |
| parent | 9fb3e75f93e50be7811986928f4d2da0347dbf4b (diff) | |
| download | powder-f1e51ba9bc4d67f1fd4698290e546e0c98082ca9.zip powder-f1e51ba9bc4d67f1fd4698290e546e0c98082ca9.tar.gz | |
Small fixes to Sconscript
Diffstat (limited to 'SConscript')
| -rw-r--r-- | SConscript | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -78,13 +78,16 @@ if not GetOption("macosx"): env.ParseConfig('sdl-config --cflags') env.ParseConfig('sdl-config --libs') except: - conf.CheckLib("SDL") + if not conf.CheckLib("SDL"): + print "libSDL 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" raise SystemExit(1) else: - env.Append(CPPPATH=GetOption("sdl-dir")) + env.Append(CPPPATH=[GetOption("sdl-dir")]) #Find correct lua include dir try: @@ -95,7 +98,7 @@ if not GetOption("macosx"): print "lua5.1 headers not found or not installed" raise SystemExit(1) else: - env.Append(CPPPATH=GetOption("lua-dir")) + env.Append(CPPPATH=[GetOption("lua-dir")]) #Check for FFT lib if not conf.CheckLib('fftw3f') and not conf.CheckLib('fftw3f-3'): @@ -258,9 +261,12 @@ sources+=Glob("src/*/*.cpp") sources+=Glob("src/simulation/elements/*.cpp") sources+=Glob("src/simulation/tools/*.cpp") +#for source in sources: +# print str(source) + if(GetOption('win')): - sources = filter(lambda source: str(source) != 'src\\simulation\\Gravity.cpp', sources) - sources = filter(lambda source: str(source) != 'src/simulation/Gravity.cpp', sources) + sources = filter(lambda source: not 'src\\simulation\\Gravity.cpp' in str(source), sources) + sources = filter(lambda source: not 'src/simulation/Gravity.cpp' in str(source), sources) SetupSpawn(env) |
