aboutsummaryrefslogtreecommitdiffhomepage
path: root/BUILD.gn
diff options
context:
space:
mode:
authorAntonio Caggiano <[email protected]>2022-03-01 16:29:51 +0100
committerMike Schuchardt <[email protected]>2022-03-23 10:00:40 -0700
commitb6554a7ff352dcaba44c1a1a7fbfd8b54dda4136 (patch)
tree7a7424daf56a10b7b86c5eba178b86ad60de4633 /BUILD.gn
parent7ad5775f8ab8d8db906fa6ebc72f14b6e9594a88 (diff)
downloadVulkan-Headers-b6554a7ff352dcaba44c1a1a7fbfd8b54dda4136.tar.gz
Vulkan-Headers-b6554a7ff352dcaba44c1a1a7fbfd8b54dda4136.zip
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.
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn3
1 files changed, 3 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 296171d..48182b6 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -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" ]