Skip to content

Commit

Permalink
OS X: check for SDL framework before SDL library
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Jan 26, 2016
1 parent 4e484ae commit 1d295fb
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions SConscript
Expand Up @@ -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")
runSdlConfig = False
else:
FatalError("SDL development library not found or not installed")
if platform == "Darwin" and conf.CheckFramework("SDL"):
runSdlConfig = False
elif not conf.CheckLib("SDL"):
FatalError("SDL development library not found or not installed")

if runSdlConfig:
try:
env.ParseConfig('sdl-config --cflags')
Expand Down

0 comments on commit 1d295fb

Please sign in to comment.