aboutsummaryrefslogtreecommitdiff
path: root/platform/winrt/detect.py
diff options
context:
space:
mode:
authorFabio Alessandrelli2016-11-03 05:20:26 +0100
committerRémi Verschelde2017-01-12 19:15:30 +0100
commit9c8ecb45f8516a2d45c18c50093887448d8a64e8 (patch)
treefc173196b88a960343ee2c1109b3fedbaaebc22a /platform/winrt/detect.py
parent8a5596322d586007d66c90b25ef2dd09d196fdfa (diff)
downloadgodot-9c8ecb45f8516a2d45c18c50093887448d8a64e8.tar.gz
godot-9c8ecb45f8516a2d45c18c50093887448d8a64e8.tar.zst
godot-9c8ecb45f8516a2d45c18c50093887448d8a64e8.zip
Improvements to scons defined WINVER/_WIN32_WINNT
(cherry picked from commit 65483d57bf322f847ecb1ab906e8f4fac49f2557)
Diffstat (limited to '')
-rw-r--r--platform/winrt/detect.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/winrt/detect.py b/platform/winrt/detect.py
index 5002495c5..d063be465 100644
--- a/platform/winrt/detect.py
+++ b/platform/winrt/detect.py
@@ -136,8 +136,12 @@ def configure(env):
env.Append(CCFLAGS=['/DGLES2_ENABLED'])
# env.Append(CCFLAGS=['/DGLES1_ENABLED'])
+ winver = "0x0602" # Windows 8 is the minimum target for UWP build
+ env.Append(CCFLAGS=['/DWINVER=%s' % winver, '/D_WIN32_WINNT=%s' % winver])
+
LIBS = [
#'winmm',
+ 'ws2_32',
'libEGL',
'libGLESv2',
'libANGLE',