Permalink
Browse files

update libraries required for static sdl2 compile

  • Loading branch information...
jacob1 committed May 26, 2018
1 parent 324602f commit 40d836106f3b886a17bcf363582573eb55f4ef38
Showing with 3 additions and 3 deletions.
  1. +3 −3 SConscript
@@ -231,16 +231,16 @@ def findLibs(env, conf):
if msvc:
libChecks = ['shell32', 'wsock32', 'user32', 'Advapi32', 'ws2_32']
if GetOption('static'):
libChecks += ['libcmt', 'dxguid']
libChecks += ['imm32', 'version', 'Ole32', 'OleAut32']
for i in libChecks:
if not conf.CheckLib(i):
FatalError("Error: some windows libraries not found or not installed, make sure your compiler is set up correctly")
else:
if not conf.CheckLib('mingw32') or not conf.CheckLib('ws2_32'):
FatalError("Error: some windows libraries not found or not installed, make sure your compiler is set up correctly")
if not GetOption('renderer') and not conf.CheckLib('SDLmain'):
FatalError("libSDLmain not found or not installed")
if not GetOption('renderer') and not conf.CheckLib('SDL2main'):
FatalError("libSDL2main not found or not installed")
#Look for SDL
runSdlConfig = platform == "Linux" or compilePlatform == "Linux" or platform == "FreeBSD"

0 comments on commit 40d8361

Please sign in to comment.