mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-22 16:02:54 +02:00
update libraries required for static sdl2 compile
This commit is contained in:
@@ -231,7 +231,7 @@ def findLibs(env, conf):
|
|||||||
if msvc:
|
if msvc:
|
||||||
libChecks = ['shell32', 'wsock32', 'user32', 'Advapi32', 'ws2_32']
|
libChecks = ['shell32', 'wsock32', 'user32', 'Advapi32', 'ws2_32']
|
||||||
if GetOption('static'):
|
if GetOption('static'):
|
||||||
libChecks += ['libcmt', 'dxguid']
|
libChecks += ['imm32', 'version', 'Ole32', 'OleAut32']
|
||||||
for i in libChecks:
|
for i in libChecks:
|
||||||
if not conf.CheckLib(i):
|
if not conf.CheckLib(i):
|
||||||
FatalError("Error: some windows libraries not found or not installed, make sure your compiler is set up correctly")
|
FatalError("Error: some windows libraries not found or not installed, make sure your compiler is set up correctly")
|
||||||
@@ -239,8 +239,8 @@ def findLibs(env, conf):
|
|||||||
if not conf.CheckLib('mingw32') or not conf.CheckLib('ws2_32'):
|
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")
|
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'):
|
if not GetOption('renderer') and not conf.CheckLib('SDL2main'):
|
||||||
FatalError("libSDLmain not found or not installed")
|
FatalError("libSDL2main not found or not installed")
|
||||||
|
|
||||||
#Look for SDL
|
#Look for SDL
|
||||||
runSdlConfig = platform == "Linux" or compilePlatform == "Linux" or platform == "FreeBSD"
|
runSdlConfig = platform == "Linux" or compilePlatform == "Linux" or platform == "FreeBSD"
|
||||||
|
Reference in New Issue
Block a user