summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorBrandon Makin <bmicmak@gmail.com>2018-08-12 22:47:37 -0700
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2019-03-08 15:10:08 +0100
commit34fd1f8caa847d75ff7d5c6e3b8619b494608629 (patch)
treed91f06930c66014b19bea7fd4526736b69a676f5 /SConstruct
parenta44a5af115871b5be4dcfb05a421046a25ba5d73 (diff)
downloadfork-godot-webrtc-native-34fd1f8caa847d75ff7d5c6e3b8619b494608629.tar.gz
fork-godot-webrtc-native-34fd1f8caa847d75ff7d5c6e3b8619b494608629.tar.bz2
fork-godot-webrtc-native-34fd1f8caa847d75ff7d5c6e3b8619b494608629.zip
Import GSoC work to WebRTC GDNative implementation
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct4
1 files changed, 2 insertions, 2 deletions
diff --git a/SConstruct b/SConstruct
index e61f94a..ba8e193 100644
--- a/SConstruct
+++ b/SConstruct
@@ -110,12 +110,12 @@ if target_platform == "linux":
elif target_platform == "windows":
# Mostly VisualStudio
if env["CC"] == "cl":
- env.Append(CCFLAGS=["/DWEBRTC_WIN", "/D_WINSOCKAPI_", "/DNOMINMAX", "/DRTC_UNUSED=", "/DNO_RETURN="])
+ env.Append(CCFLAGS=["/DWEBRTC_WIN", "/DWIN32_LEAN_AND_MEAN", "/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(CCFLAGS=["-DWINVER=0x0603", "-D_WIN32_WINNT=0x0603", "-DWEBRTC_WIN", "-DWIN32_LEAN_AND_MEAN", "-DNOMINMAX", "-DRTC_UNUSED=", "-DNO_RETURN="])
env.Append(LIBS=["secur32", lib_name])
env.Append(LIBPATH=[lib_path])