summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-08-12 16:32:36 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-08-12 16:59:59 +0200
commit022689bd6bdd713238b34bbd6f1443830459b202 (patch)
treed53fb46e48fb64d4ba74469f474d79150e874d42
parent662ceddd518faab8137d922e29030dc3fa1e34e2 (diff)
downloadfork-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--SConstruct4
1 files changed, 2 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index 7a8fa1c..e61f94a 100644
--- a/SConstruct
+++ b/SConstruct
@@ -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])