1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Support MSVC (2015) build tools

This commit is contained in:
Brent Taylor
2017-07-26 21:45:11 -07:00
parent a116f04a3e
commit 90f853f710
2 changed files with 12 additions and 4 deletions

View File

@@ -114,7 +114,7 @@ def can_build():
if (os.name == "nt"):
# building natively on windows!
if (os.getenv("VSINSTALLDIR")):
if (os.getenv("VCINSTALLDIR")):
return True
else:
print("\nMSVC not detected, attempting Mingw.")
@@ -214,7 +214,7 @@ def configure(env):
winver = "0x0600" # Windows Vista is the minimum target for windows builds
env['is_mingw'] = False
if (os.name == "nt" and os.getenv("VSINSTALLDIR") != None):
if (os.name == "nt" and os.getenv("VCINSTALLDIR")):
# build using visual studio
env['ENV']['TMP'] = os.environ['TMP']
env.Append(CPPPATH=['#platform/windows/include'])