summaryrefslogtreecommitdiffstats
path: root/platform/windows/detect.py
diff options
context:
space:
mode:
Diffstat (limited to 'platform/windows/detect.py')
-rw-r--r--platform/windows/detect.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/platform/windows/detect.py b/platform/windows/detect.py
index 1b55574b19..3a6ca66449 100644
--- a/platform/windows/detect.py
+++ b/platform/windows/detect.py
@@ -192,6 +192,16 @@ def get_opts():
]
+def get_doc_classes():
+ return [
+ "EditorExportPlatformWindows",
+ ]
+
+
+def get_doc_path():
+ return "doc_classes"
+
+
def get_flags():
arch = detect_build_env_arch() or detect_arch()
@@ -403,12 +413,16 @@ def configure_msvc(env, vcvars_msvc_config):
"dxguid",
"imm32",
"bcrypt",
+ "Crypt32",
"Avrt",
"dwmapi",
"dwrite",
"wbemuuid",
]
+ if env.debug_features:
+ LIBS += ["psapi", "dbghelp"]
+
if env["vulkan"]:
env.AppendUnique(CPPDEFINES=["VULKAN_ENABLED"])
if not env["use_volk"]:
@@ -456,6 +470,7 @@ def configure_msvc(env, vcvars_msvc_config):
env["BUILDERS"]["ProgramOriginal"] = env["BUILDERS"]["Program"]
env["BUILDERS"]["Program"] = methods.precious_program
+ env.Append(LINKFLAGS=["/NATVIS:platform\windows\godot.natvis"])
env.AppendUnique(LINKFLAGS=["/STACK:" + str(STACK_SIZE)])
@@ -579,6 +594,7 @@ def configure_mingw(env):
"ksuser",
"imm32",
"bcrypt",
+ "crypt32",
"avrt",
"uuid",
"dwmapi",
@@ -587,6 +603,9 @@ def configure_mingw(env):
]
)
+ if env.debug_features:
+ env.Append(LIBS=["psapi", "dbghelp"])
+
if env["vulkan"]:
env.Append(CPPDEFINES=["VULKAN_ENABLED"])
if not env["use_volk"]: