1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix macOS build with ANGLE enabled and Vulkan disabled.

This commit is contained in:
Pāvels Nadtočajevs
2025-04-24 15:57:13 +03:00
parent 931820d33c
commit e096e2fa8a

View File

@@ -235,6 +235,8 @@ def configure(env: "SConsEnvironment"):
)
env.Append(LIBS=["pthread", "z"])
extra_frameworks = set()
if env["opengl3"]:
env.Append(CPPDEFINES=["GLES3_ENABLED"])
if env["angle_libs"] != "":
@@ -243,6 +245,7 @@ def configure(env: "SConsEnvironment"):
env.Append(LINKFLAGS=["-lANGLE.macos." + env["arch"]])
env.Append(LINKFLAGS=["-lEGL.macos." + env["arch"]])
env.Append(LINKFLAGS=["-lGLES.macos." + env["arch"]])
extra_frameworks.add("IOSurface")
env.Prepend(CPPEXTPATH=["#thirdparty/angle/include"])
env.Append(LINKFLAGS=["-rpath", "@executable_path/../Frameworks", "-rpath", "@executable_path"])
@@ -251,8 +254,6 @@ def configure(env: "SConsEnvironment"):
print_warning("Target architecture '{}' does not support the Metal rendering driver".format(env["arch"]))
env["metal"] = False
extra_frameworks = set()
if env["metal"]:
env.AppendUnique(CPPDEFINES=["METAL_ENABLED", "RD_ENABLED"])
extra_frameworks.add("Metal")