scons: use pkg-config on msys platform for sdl
This commit is contained in:
parent
8111db9c67
commit
9cd29260b4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue