mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-01-18 06:48:28 +01:00
minor SConscript cleanup
This commit is contained in:
parent
ce6c913c88
commit
d4255d1974
17
SConscript
17
SConscript
@ -244,10 +244,10 @@ def findLibs(env, conf):
|
||||
|
||||
#Look for SDL
|
||||
runSdlConfig = platform == "Linux" or compilePlatform == "Linux" or platform == "FreeBSD"
|
||||
if False and platform == "Darwin" and conf.CheckFramework("SDL"):
|
||||
runSdlConfig = False
|
||||
elif not conf.CheckLib("SDL2"):
|
||||
FatalError("SDL development library not found or not installed")
|
||||
#if platform == "Darwin" and conf.CheckFramework("SDL"):
|
||||
# runSdlConfig = False
|
||||
if not conf.CheckLib("SDL2"):
|
||||
FatalError("SDL2 development library not found or not installed")
|
||||
|
||||
if runSdlConfig:
|
||||
try:
|
||||
@ -260,11 +260,10 @@ def findLibs(env, conf):
|
||||
pass
|
||||
|
||||
#look for SDL.h
|
||||
if not conf.CheckCHeader('SDL2.h'):
|
||||
if conf.CheckCHeader('SDL2/SDL.h'):
|
||||
env.Append(CPPDEFINES=["SDL_INC"])
|
||||
else:
|
||||
FatalError("SDL.h not found")
|
||||
if conf.CheckCHeader('SDL2/SDL.h'):
|
||||
env.Append(CPPDEFINES=["SDL_INC"])
|
||||
elif not conf.CheckCHeader('SDL.h'):
|
||||
FatalError("SDL.h not found")
|
||||
|
||||
if not GetOption('nolua') and not GetOption('renderer') and not GetOption('font'):
|
||||
#Look for Lua
|
||||
|
Loading…
x
Reference in New Issue
Block a user