GN: Wayland include directories

Improve support for environments without wayland in their system include
directories, by adding the vulkan_wayland_include_dir variable which can
be defined in build_overrides.
This commit is contained in:
Antonio Caggiano 2022-03-01 16:29:51 +01:00 committed by Mike Schuchardt
parent 7ad5775f8a
commit b6554a7ff3

View File

@ -27,6 +27,9 @@ config("vulkan_headers_config") {
}
if (defined(vulkan_use_wayland) && vulkan_use_wayland) {
defines += [ "VK_USE_PLATFORM_WAYLAND_KHR" ]
if (defined(vulkan_wayland_include_dir)) {
include_dirs += [ "$vulkan_wayland_include_dir" ]
}
}
if (is_android) {
defines += [ "VK_USE_PLATFORM_ANDROID_KHR" ]