1From 8e61ec315214833b71f75e463919626fd519af48 Mon Sep 17 00:00:00 2001
2From: Jeffy Chen <jeffy.chen@rock-chips.com>
3Date: Mon, 10 Oct 2022 18:03:13 +0800
4Subject: [PATCH] swiftshader: Don't check system wayland for non-wayland
5 platform
6
7Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
8---
9 third_party/swiftshader/src/WSI/BUILD.gn | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
11
12diff --git a/third_party/swiftshader/src/WSI/BUILD.gn b/third_party/swiftshader/src/WSI/BUILD.gn
13index 4709332e2..dbe29a2a3 100644
14--- a/third_party/swiftshader/src/WSI/BUILD.gn
15+++ b/third_party/swiftshader/src/WSI/BUILD.gn
16@@ -87,7 +87,7 @@ swiftshader_source_set("WSI") {
17     "../Vulkan:swiftshader_libvulkan_headers",
18   ]
19
20-  if (is_linux && !use_system_libwayland) {
21+  if (is_linux && !use_system_libwayland && ozone_platform_wayland) {
22     # Use third-party targets
23     deps += [ "$wayland_gn_dir:wayland_client" ]
24   }
25--
262.20.1
27
28