Kaynağa Gözat

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>
Rebecca Chang Swee Fun 1 yıl önce
ebeveyn
işleme
94438a1760
1 değiştirilmiş dosya ile 17 ekleme ve 0 silme
  1. 17 0
      build_overrides/wayland.gni

+ 17 - 0
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"