diff options
author | Brandon Makin <bmicmak@gmail.com> | 2018-08-12 22:47:37 -0700 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2019-03-08 15:10:08 +0100 |
commit | 34fd1f8caa847d75ff7d5c6e3b8619b494608629 (patch) | |
tree | d91f06930c66014b19bea7fd4526736b69a676f5 /SConstruct | |
parent | a44a5af115871b5be4dcfb05a421046a25ba5d73 (diff) | |
download | fork-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-- | SConstruct | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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]) |