sdl-dir scons parameter

This commit is contained in:
mniip
2013-05-17 17:30:44 +04:00
parent 77bf649fb4
commit 32fe184351

View File

@@ -74,21 +74,21 @@ if GetOption("toolprefix"):
#Check for headers and libraries #Check for headers and libraries
if not GetOption("macosx"): if not GetOption("macosx"):
conf = Configure(env) conf = Configure(env)
if(GetOption("sdl-dir")):
try: if not conf.CheckCHeader(GetOption("sdl-dir") + '/SDL.h'):
env.ParseConfig('sdl-config --cflags') print "sdl headers not found or not installed"
env.ParseConfig('sdl-config --libs')
except:
if not conf.CheckLib("SDL"):
print "libSDL not found or not installed"
raise SystemExit(1) raise SystemExit(1)
else:
if(GetOption("sdl-dir")): env.Append(CPPPATH=[GetOption("sdl-dir")])
if not conf.CheckCHeader(GetOption("sdl-dir") + '/SDL.h'): else:
print "sdl headers not found or not installed" 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) raise SystemExit(1)
else:
env.Append(CPPPATH=[GetOption("sdl-dir")])
#Find correct lua include dir #Find correct lua include dir
if not GetOption("nolua"): if not GetOption("nolua"):