0042-GN-Wayland-build-overrides.patch 1.3 KB

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