scons: use pkg-config on msys platform for sdl

This commit is contained in:
loonycyborg 2018-06-01 21:34:04 +03:00
parent d8743f8e6e
commit aa925e1fc6

View file

@ -44,7 +44,7 @@ def CheckSDL(context, sdl_lib = "SDL", require_version = None, header_file = Non
if sdldir:
env["ENV"]["PATH"] = PrependPath(environ["PATH"], join(sdldir, "bin"))
env["ENV"]["PKG_CONFIG_PATH"] = PrependPath(environ.get("PKG_CONFIG_PATH", ""), join(sdldir, "lib/pkgconfig"))
if env["PLATFORM"] != "win32":
if env["PLATFORM"] != "win32" or sys.platform == "msys":
for foo_config in [
"pkg-config --cflags --libs %s" % sdl_lib_name_pkgconfig,
"%s --cflags --libs" % sdl_config_name