mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-29 19:00:33 +02:00
sdl-dir scons parameter
This commit is contained in:
14
SConscript
14
SConscript
@@ -74,7 +74,13 @@ 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")):
|
||||||
|
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")])
|
||||||
|
else:
|
||||||
try:
|
try:
|
||||||
env.ParseConfig('sdl-config --cflags')
|
env.ParseConfig('sdl-config --cflags')
|
||||||
env.ParseConfig('sdl-config --libs')
|
env.ParseConfig('sdl-config --libs')
|
||||||
@@ -83,12 +89,6 @@ if not GetOption("macosx"):
|
|||||||
print "libSDL not found or not installed"
|
print "libSDL not found or not installed"
|
||||||
raise SystemExit(1)
|
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")])
|
|
||||||
|
|
||||||
#Find correct lua include dir
|
#Find correct lua include dir
|
||||||
if not GetOption("nolua"):
|
if not GetOption("nolua"):
|
||||||
|
Reference in New Issue
Block a user