new/yocto/meta-rockchip/dynamic-layers/recipes-browser/chromium/chromium_96.0.4664/0013-content-gpu-Only-depend-dri-for-X11.patch

27 lines
870 B
Diff
Raw Normal View History

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