look for normal SDL library before SDL framework on OS X
before it refused to even look for the library, it only checked for the framework
This commit is contained in:
parent
3cf5395697
commit
a6f49adae2
26
SConscript
26
SConscript
@ -231,20 +231,20 @@ def findLibs(env, conf):
|
|||||||
if not conf.CheckLib('SDLmain'):
|
if not conf.CheckLib('SDLmain'):
|
||||||
FatalError("libSDLmain not found or not installed")
|
FatalError("libSDLmain not found or not installed")
|
||||||
|
|
||||||
if platform == "Darwin":
|
if not GetOption('renderer'):
|
||||||
if not conf.CheckFramework("SDL"):
|
#Look for SDL
|
||||||
FatalError("SDL framework not found or not installed")
|
if not conf.CheckLib("SDL"):
|
||||||
elif not GetOption('renderer'):
|
if platform == "Darwin":
|
||||||
if platform != "Darwin":
|
if not conf.CheckFramework("SDL"):
|
||||||
#Look for SDL
|
FatalError("SDL framework not found or not installed")
|
||||||
if not conf.CheckLib("SDL"):
|
else:
|
||||||
FatalError("SDL development library not found or not installed")
|
FatalError("SDL development library not found or not installed")
|
||||||
if platform == "Linux" or compilePlatform == "Linux":
|
if platform == "Linux" or compilePlatform == "Linux":
|
||||||
try:
|
try:
|
||||||
env.ParseConfig('sdl-config --cflags')
|
env.ParseConfig('sdl-config --cflags')
|
||||||
env.ParseConfig('sdl-config --libs')
|
env.ParseConfig('sdl-config --libs')
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
#look for SDL.h
|
#look for SDL.h
|
||||||
if not GetOption('renderer') and not conf.CheckCHeader('SDL.h'):
|
if not GetOption('renderer') and not conf.CheckCHeader('SDL.h'):
|
||||||
|
Loading…
Reference in New Issue
Block a user