diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-08-12 16:32:36 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2018-08-12 16:59:59 +0200 |
commit | 022689bd6bdd713238b34bbd6f1443830459b202 (patch) | |
tree | d53fb46e48fb64d4ba74469f474d79150e874d42 | |
parent | 662ceddd518faab8137d922e29030dc3fa1e34e2 (diff) | |
download | fork-godot-webrtc-native-022689bd6bdd713238b34bbd6f1443830459b202.tar.gz fork-godot-webrtc-native-022689bd6bdd713238b34bbd6f1443830459b202.tar.bz2 fork-godot-webrtc-native-022689bd6bdd713238b34bbd6f1443830459b202.zip |
Fix mingw cross-build
-rw-r--r-- | SConstruct | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -108,14 +108,14 @@ if target_platform == "linux": env.Append(CCFLAGS=["-DRTC_UNUSED=''", "-DNO_RETURN=''"]) elif target_platform == "windows": - env.Append(CCFLAGS=["-DWEBRTC_WIN", "-D_WINSOCKAPI_", "-DNOMINMAX"]) - env.Append(CCFLAGS=["/DRTC_UNUSED=", "/DNO_RETURN="]) # Mostly VisualStudio if env["CC"] == "cl": + env.Append(CCFLAGS=["/DWEBRTC_WIN", "/D_WINSOCKAPI_", "/DNOMINMAX", "/DRTC_UNUSED=", "/DNO_RETURN="]) env.Append(LINKFLAGS=[p + env["LIBSUFFIX"] for p in ["secur32", lib_name]]) env.Append(LIBPATH=[lib_path]) # Mostly "gcc" else: + env.Append(CCFLAGS=["-DWEBRTC_WIN", "-D_WINSOCKAPI_", "-DNOMINMAX", "-DRTC_UNUSED=", "-DNO_RETURN="]) env.Append(LIBS=["secur32", lib_name]) env.Append(LIBPATH=[lib_path]) |