summaryrefslogtreecommitdiff
path: root/SConstruct
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2019-03-08 15:20:53 +0100
committerGitHub <noreply@github.com>2019-03-08 15:20:53 +0100
commit31821b094b1810b829fbb0fa8d217a9692c8816a (patch)
tree8ab05706e0c067d30b31679b5cfbd95a2fa49f2c /SConstruct
parenta44a5af115871b5be4dcfb05a421046a25ba5d73 (diff)
parentf2799fdbb296fa764384ba085fcb46e19248b09a (diff)
downloadfork-godot-webrtc-native-31821b094b1810b829fbb0fa8d217a9692c8816a.tar.gz
fork-godot-webrtc-native-31821b094b1810b829fbb0fa8d217a9692c8816a.tar.bz2
fork-godot-webrtc-native-31821b094b1810b829fbb0fa8d217a9692c8816a.zip
Merge pull request #1 from godotengine/bmakin_import
Import GSoC 2018 work
Diffstat (limited to 'SConstruct')
-rw-r--r--SConstruct8
1 files changed, 4 insertions, 4 deletions
diff --git a/SConstruct b/SConstruct
index e61f94a..54a06ca 100644
--- a/SConstruct
+++ b/SConstruct
@@ -110,13 +110,13 @@ 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(LINKFLAGS=[p + env["LIBSUFFIX"] for p in ["secur32", lib_name]])
+ env.Append(CCFLAGS=["/DWEBRTC_WIN", "/DWIN32_LEAN_AND_MEAN", "/DNOMINMAX", "/DRTC_UNUSED=", "/DNO_RETURN="])
+ env.Append(LINKFLAGS=[p + env["LIBSUFFIX"] for p in ["secur32", "advapi32", "winmm", 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(CCFLAGS=["-DWINVER=0x0603", "-D_WIN32_WINNT=0x0603", "-DWEBRTC_WIN", "-DWIN32_LEAN_AND_MEAN", "-DNOMINMAX", "-DRTC_UNUSED=", "-DNO_RETURN="])
+ env.Append(LINKFLAGS=[p + env["LIBSUFFIX"] for p in ["secur32", "advapi32", "winmm", lib_name]])
env.Append(LIBPATH=[lib_path])
elif target_platform == "osx":