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:
parent
7ad5775f8a
commit
b6554a7ff3
1 changed files with 3 additions and 0 deletions
3
BUILD.gn
3
BUILD.gn
|
|
@ -27,6 +27,9 @@ config("vulkan_headers_config") {
|
||||||
}
|
}
|
||||||
if (defined(vulkan_use_wayland) && vulkan_use_wayland) {
|
if (defined(vulkan_use_wayland) && vulkan_use_wayland) {
|
||||||
defines += [ "VK_USE_PLATFORM_WAYLAND_KHR" ]
|
defines += [ "VK_USE_PLATFORM_WAYLAND_KHR" ]
|
||||||
|
if (defined(vulkan_wayland_include_dir)) {
|
||||||
|
include_dirs += [ "$vulkan_wayland_include_dir" ]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (is_android) {
|
if (is_android) {
|
||||||
defines += [ "VK_USE_PLATFORM_ANDROID_KHR" ]
|
defines += [ "VK_USE_PLATFORM_ANDROID_KHR" ]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue