new/yocto/meta-rockchip/dynamic-layers/recipes-browser/chromium/chromium_111.0.5563/0013-content-gpu-Only-depend-dri-for-X11.patch
2025-05-10 21:58:58 +08:00

27 lines
800 B
Diff

From c7dfab48947b0c3dac4560d796ff6d85abebc686 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/18] 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 9f5f303b2..524b257aa 100644
--- a/content/gpu/BUILD.gn
+++ b/content/gpu/BUILD.gn
@@ -138,7 +138,7 @@ target(link_target_type, "gpu_sources") {
# Use DRI on desktop Linux builds.
if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux &&
- !is_castos) {
+ !is_castos && ozone_platform_x11) {
configs += [ "//build/config/linux/dri" ]
}
}
--
2.20.1