diff options
Diffstat (limited to '')
| -rw-r--r-- | platform/windows/detect.py | 4 | ||||
| -rw-r--r-- | platform/winrt/detect.py | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py index 590f92a05..6972d1e9c 100644 --- a/platform/windows/detect.py +++ b/platform/windows/detect.py @@ -200,7 +200,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("VSINSTALLDIR") != None): @@ -208,6 +208,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"): @@ -298,6 +299,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: 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', |
