mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix build with Vulkan disabled and no Vulkan headers installed.
This commit is contained in:
parent
2b505b74b9
commit
4dd8f68120
14 changed files with 56 additions and 10 deletions
|
@ -223,6 +223,8 @@ def configure(env: "Environment"):
|
|||
"AVFoundation",
|
||||
"-framework",
|
||||
"CoreMedia",
|
||||
"-framework",
|
||||
"QuartzCore",
|
||||
]
|
||||
)
|
||||
env.Append(LIBS=["pthread", "z"])
|
||||
|
@ -236,7 +238,7 @@ def configure(env: "Environment"):
|
|||
|
||||
if env["vulkan"]:
|
||||
env.Append(CPPDEFINES=["VULKAN_ENABLED"])
|
||||
env.Append(LINKFLAGS=["-framework", "Metal", "-framework", "QuartzCore", "-framework", "IOSurface"])
|
||||
env.Append(LINKFLAGS=["-framework", "Metal", "-framework", "IOSurface"])
|
||||
if not env["use_volk"]:
|
||||
env.Append(LINKFLAGS=["-lMoltenVK"])
|
||||
mvk_found = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue