aboutsummaryrefslogtreecommitdiff
path: root/platform/windows/detect.py
diff options
context:
space:
mode:
authorHein-Pieter van Braam2018-05-13 22:32:01 +0200
committerHein-Pieter van Braam2018-05-13 22:32:01 +0200
commitfaceb5b75d512376afd27efbfcf4066a9fdf2952 (patch)
tree148be87ace6e8840c6f23a0bfabdc8ae7c996d05 /platform/windows/detect.py
parent9dc5ba1aafb91700793b504ad4118d4e991c0757 (diff)
downloadgodot-faceb5b75d512376afd27efbfcf4066a9fdf2952.tar.gz
godot-faceb5b75d512376afd27efbfcf4066a9fdf2952.tar.zst
godot-faceb5b75d512376afd27efbfcf4066a9fdf2952.zip
Implement pull/18665 for 3.0
Windows detect.py: Detect missing WindowsSdkDir
Diffstat (limited to '')
-rw-r--r--platform/windows/detect.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py
index ffadaf0f7..0430e5f77 100644
--- a/platform/windows/detect.py
+++ b/platform/windows/detect.py
@@ -167,7 +167,10 @@ def configure(env):
env.Append(CCFLAGS=['/MT', '/Gd', '/GR', '/nologo'])
env.Append(CXXFLAGS=['/TP'])
env.Append(CPPFLAGS=['/DMSVC', '/GR', ])
- env.Append(CCFLAGS=['/I' + os.getenv("WindowsSdkDir") + "/Include"])
+ if os.getenv("WindowsSdkDir") is not None:
+ env.Append(CCFLAGS=['/I' + os.getenv("WindowsSdkDir") + "/Include"])
+ else:
+ print("Missing environment variable: WindowsSdkDir")
env.Append(CCFLAGS=['/DWINDOWS_ENABLED'])
env.Append(CCFLAGS=['/DOPENGL_ENABLED'])
@@ -182,7 +185,10 @@ def configure(env):
LIBS = ['winmm', 'opengl32', 'dsound', 'kernel32', 'ole32', 'oleaut32', 'user32', 'gdi32', 'IPHLPAPI', 'Shlwapi', 'wsock32', 'Ws2_32', 'shell32', 'advapi32', 'dinput8', 'dxguid', 'imm32']
env.Append(LINKFLAGS=[p + env["LIBSUFFIX"] for p in LIBS])
- env.Append(LIBPATH=[os.getenv("WindowsSdkDir") + "/Lib"])
+ if os.getenv("WindowsSdkDir") is not None:
+ env.Append(LIBPATH=[os.getenv("WindowsSdkDir") + "/Lib"])
+ else:
+ print("Missing environment variable: WindowsSdkDir")
if (os.getenv("VCINSTALLDIR")):
VC_PATH = os.getenv("VCINSTALLDIR")