1From 64b7caacc352522721f59c86608847d39fad04ad Mon Sep 17 00:00:00 2001
2From: Jeffy Chen <jeffy.chen@rock-chips.com>
3Date: Mon, 22 Nov 2021 15:59:49 +0800
4Subject: [PATCH 13/14] content: gpu: Only depend dri for X11
5
6Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
7---
8 content/gpu/BUILD.gn | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn
12index 24d5825f..944ea211 100644
13--- a/content/gpu/BUILD.gn
14+++ b/content/gpu/BUILD.gn
15@@ -135,7 +135,7 @@ target(link_target_type, "gpu_sources") {
16   }
17
18   # Use DRI on desktop Linux builds.
19-  if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux &&
20+  if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux && use_x11 &&
21       (!is_chromecast || is_cast_desktop_build)) {
22     configs += [ "//build/config/linux/dri" ]
23   }
24--
252.20.1
26
27