OS X: check for SDL framework before SDL library
This commit is contained in:
parent
4e484ae2a4
commit
1d295fbb36
12
SConscript
12
SConscript
@ -238,13 +238,11 @@ def findLibs(env, conf):
|
|||||||
if not GetOption('renderer'):
|
if not GetOption('renderer'):
|
||||||
#Look for SDL
|
#Look for SDL
|
||||||
runSdlConfig = platform == "Linux" or compilePlatform == "Linux"
|
runSdlConfig = platform == "Linux" or compilePlatform == "Linux"
|
||||||
if not conf.CheckLib("SDL"):
|
if platform == "Darwin" and conf.CheckFramework("SDL"):
|
||||||
if platform == "Darwin":
|
runSdlConfig = False
|
||||||
if not conf.CheckFramework("SDL"):
|
elif not conf.CheckLib("SDL"):
|
||||||
FatalError("SDL framework not found or not installed")
|
FatalError("SDL development library not found or not installed")
|
||||||
runSdlConfig = False
|
|
||||||
else:
|
|
||||||
FatalError("SDL development library not found or not installed")
|
|
||||||
if runSdlConfig:
|
if runSdlConfig:
|
||||||
try:
|
try:
|
||||||
env.ParseConfig('sdl-config --cflags')
|
env.ParseConfig('sdl-config --cflags')
|
||||||
|
Loading…
Reference in New Issue
Block a user