diff options
| author | Fabio Alessandrelli | 2016-11-03 05:20:26 +0100 |
|---|---|---|
| committer | Fabio Alessandrelli | 2017-01-12 17:13:19 +0100 |
| commit | 65483d57bf322f847ecb1ab906e8f4fac49f2557 (patch) | |
| tree | 908e83375a4b6b416b6e7678869802cf322815b0 /platform | |
| parent | ad224295c0a24a0588351c4ab750e43867bcdde9 (diff) | |
| download | godot-65483d57bf322f847ecb1ab906e8f4fac49f2557.tar.gz godot-65483d57bf322f847ecb1ab906e8f4fac49f2557.tar.zst godot-65483d57bf322f847ecb1ab906e8f4fac49f2557.zip | |
Improvements to scons defined WINVER/_WIN32_WINNT
Diffstat (limited to 'platform')
| -rw-r--r-- | platform/uwp/detect.py | 4 | ||||
| -rw-r--r-- | platform/windows/detect.py | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/platform/uwp/detect.py b/platform/uwp/detect.py index 6eb4ca9ca..f1e071624 100644 --- a/platform/uwp/detect.py +++ b/platform/uwp/detect.py @@ -145,9 +145,13 @@ def configure(env): env.Append(CCFLAGS=['/DGLES2_ENABLED', '/DGL_GLEXT_PROTOTYPES', '/DEGL_EGLEXT_PROTOTYPES', '/DANGLE_ENABLED']) + winver = "0x0602" # Windows 8 is the minimum target for UWP build + env.Append(CCFLAGS=['/DWINVER=%s' % winver, '/D_WIN32_WINNT=%s' % winver]) + LIBS = [ 'WindowsApp', 'mincore', + 'ws2_32', 'libANGLE', 'libEGL', 'libGLESv2', diff --git a/platform/windows/detect.py b/platform/windows/detect.py index 1f3c7a765..382783d6b 100644 --- a/platform/windows/detect.py +++ b/platform/windows/detect.py @@ -209,7 +209,7 @@ def configure(env): env.Append(CPPPATH=['#platform/windows']) # Targeted Windows version: Vista (and later) - env.Append(CPPFLAGS=['-D_WIN32_WINNT=0x0600']) + winver = "0x0600" # Windows Vista is the minimum target for windows builds env['is_mingw'] = False if (os.name == "nt" and os.getenv("VCINSTALLDIR")): @@ -217,6 +217,7 @@ def configure(env): env['ENV']['TMP'] = os.environ['TMP'] env.Append(CPPPATH=['#platform/windows/include']) env.Append(LIBPATH=['#platform/windows/lib']) + env.Append(CCFLAGS=['/DWINVER=%s' % winver, '/D_WIN32_WINNT=%s' % winver]) if (env["target"] == "release"): @@ -311,6 +312,7 @@ def configure(env): env.use_windows_spawn_fix() # build using mingw + env.Append(CCFLAGS=['-DWINVER=%s' % winver, '-D_WIN32_WINNT=%s' % winver]) if (os.name == "nt"): env['ENV']['TMP'] = os.environ['TMP'] # way to go scons, you can be so stupid sometimes else: |
