diff options
| author | Hein-Pieter van Braam | 2018-05-13 22:32:01 +0200 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-05-13 22:32:01 +0200 |
| commit | faceb5b75d512376afd27efbfcf4066a9fdf2952 (patch) | |
| tree | 148be87ace6e8840c6f23a0bfabdc8ae7c996d05 /platform/windows/detect.py | |
| parent | 9dc5ba1aafb91700793b504ad4118d4e991c0757 (diff) | |
| download | godot-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.py | 10 |
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") |
