OS X: check for SDL framework before SDL library

This commit is contained in:
jacob1 2016-01-26 05:35:16 +00:00
parent 4e484ae2a4
commit 1d295fbb36

View File

@ -238,13 +238,11 @@ def findLibs(env, conf):
if not GetOption('renderer'):
#Look for SDL
runSdlConfig = platform == "Linux" or compilePlatform == "Linux"
if not conf.CheckLib("SDL"):
if platform == "Darwin":
if not conf.CheckFramework("SDL"):
FatalError("SDL framework not found or not installed")
if platform == "Darwin" and conf.CheckFramework("SDL"):
runSdlConfig = False
else:
elif not conf.CheckLib("SDL"):
FatalError("SDL development library not found or not installed")
if runSdlConfig:
try:
env.ParseConfig('sdl-config --cflags')