[Windows] Detect missing DLL dependencies and list them in the open_dynamic_library error message.

This commit is contained in:
bruvzg
2023-03-27 11:49:05 +03:00
parent 9b0bee860f
commit 68163f5643
3 changed files with 104 additions and 6 deletions

View File

@ -409,6 +409,9 @@ def configure_msvc(env, vcvars_msvc_config):
"wbemuuid",
]
if env.debug_features:
LIBS += ["psapi", "dbghelp"]
if env["vulkan"]:
env.AppendUnique(CPPDEFINES=["VULKAN_ENABLED"])
if not env["use_volk"]:
@ -587,6 +590,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"]: