Skip to content

Commit

Permalink
update libraries required for static sdl2 compile
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed May 26, 2018
1 parent 324602f commit 40d8361
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 40d8361

Please sign in to comment.