diff --git a/BUILD.gn b/BUILD.gn index 07aa5ad..42a76b5 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -13,10 +13,10 @@ config("vulkan_headers_config") { defines += [ "VK_USE_PLATFORM_WIN32_KHR" ] } if (defined(vulkan_use_x11) && vulkan_use_x11) { - defines += [ - "VK_USE_PLATFORM_XCB_KHR", - "VK_USE_PLATFORM_XLIB_KHR", - ] + defines += [ "VK_USE_PLATFORM_XCB_KHR" ] + if (!defined(vulkan_no_xlib_headers) || !vulkan_no_xlib_headers) { + defines += [ "VK_USE_PLATFORM_XLIB_KHR" ] + } } if (defined(vulkan_use_wayland) && vulkan_use_wayland) { defines += [ "VK_USE_PLATFORM_WAYLAND_KHR" ]