1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-09 12:50:35 +00:00

Improvements to scons defined WINVER/_WIN32_WINNT

(cherry picked from commit 65483d57bf)
This commit is contained in:
Fabio Alessandrelli
2016-11-03 05:20:26 +01:00
committed by Rémi Verschelde
parent 8a5596322d
commit 9c8ecb45f8
4 changed files with 12 additions and 10 deletions

View File

@@ -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: