Vulkan rendering for Android

This commit is contained in:
PouleyKetchoupp
2020-03-05 19:00:28 +01:00
parent d9a560d783
commit af424b1c7c
28 changed files with 499 additions and 187 deletions

View File

@@ -4,7 +4,12 @@ Import("env")
env.add_source_files(env.drivers_sources, "*.cpp")
if env["builtin_vulkan"]:
if env["platform"] == "android":
# Use NDK Vulkan headers
thirdparty_dir = env["ANDROID_NDK_ROOT"] + "/sources/third_party/vulkan/src"
thirdparty_includes = [thirdparty_dir, thirdparty_dir + "/include", thirdparty_dir + "/layers", thirdparty_dir + "/layers/generated"]
env.Prepend(CPPPATH=thirdparty_includes)
elif env["builtin_vulkan"]:
# Use bundled Vulkan headers
thirdparty_dir = "#thirdparty/vulkan"
env.Prepend(CPPPATH=[thirdparty_dir, thirdparty_dir + "/include", thirdparty_dir + "/loader"])