mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Use "volk" instead of statically linked Vulkan loader.
This commit is contained in:
parent
67fc611bda
commit
d7957a2a20
91 changed files with 151190 additions and 121748 deletions
|
@ -54,6 +54,7 @@ def get_android_ndk_root():
|
|||
def get_flags():
|
||||
return [
|
||||
("tools", False),
|
||||
("use_volk", False),
|
||||
]
|
||||
|
||||
|
||||
|
@ -367,8 +368,13 @@ def configure(env):
|
|||
)
|
||||
|
||||
env.Prepend(CPPPATH=["#platform/android"])
|
||||
env.Append(CPPDEFINES=["ANDROID_ENABLED", "UNIX_ENABLED", "VULKAN_ENABLED", "NO_FCNTL"])
|
||||
env.Append(LIBS=["OpenSLES", "EGL", "GLESv2", "vulkan", "android", "log", "z", "dl"])
|
||||
env.Append(CPPDEFINES=["ANDROID_ENABLED", "UNIX_ENABLED", "NO_FCNTL"])
|
||||
env.Append(LIBS=["OpenSLES", "EGL", "GLESv2", "android", "log", "z", "dl"])
|
||||
|
||||
if env["vulkan"]:
|
||||
env.Append(CPPDEFINES=["VULKAN_ENABLED"])
|
||||
if not env["use_volk"]:
|
||||
env.Append(LIBS=["vulkan"])
|
||||
|
||||
|
||||
# Return the project NDK version.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue