-
Notifications
You must be signed in to change notification settings - Fork 4
/
0042-GN-Wayland-build-overrides.patch
42 lines (37 loc) · 1.28 KB
/
0042-GN-Wayland-build-overrides.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
From e181bbf5c127237462fb3a7b1b776cef533226f5 Mon Sep 17 00:00:00 2001
From: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
Date: Fri, 22 Jul 2022 16:24:36 +0800
Subject: [PATCH 42/68] GN: Wayland build overrides
Introduce //build_overrides/wayland.gni to simplify the management of
the wayland dependencies in Chromium, ANGLE, and SwiftShader.
Cherry-picked from: commit 3d415c7d0eba78f0b18e2c1fe1e84e4afa7e66e2
Signed-off-by: Rebecca Chang Swee Fun <rebecca.chang@starfivetech.com>
---
build_overrides/wayland.gni | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 build_overrides/wayland.gni
diff --git a/build_overrides/wayland.gni b/build_overrides/wayland.gni
new file mode 100644
index 000000000000..0d48c7e31a2e
--- /dev/null
+++ b/build_overrides/wayland.gni
@@ -0,0 +1,17 @@
+# Copyright 2022 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import("//build/config/ozone.gni")
+
+wayland_gn_dir = "//third_party/wayland"
+
+if (ozone_platform_wayland) {
+ # This defines use_system_libwayland
+ import("$wayland_gn_dir/features.gni")
+} else {
+ use_system_libwayland = false
+}
+
+# Path to Wayland sources
+wayland_dir = "$wayland_gn_dir/src"
--
2.30.2