[Cast Convergence] Replace is_cast_desktop_build with is_castos.
This patch moves is_cast_desktop_build to //chromecast and replaces
usages with a new flag, is_castos, which guards code intended for
Nest Linux devices.
The flag defaults to is_chromecast for now; in the future it will be
default to false, and individual builds will need to opt into building
Nest Linux specific code.
Bug: 1293569
Change-Id: Ib4075f415a59048c787b02c8532e2e0a20abfaff
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3606171
Reviewed-by: Will Cassella <[email protected]>
Reviewed-by: Mark Foltz <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
Reviewed-by: Peter Wen <[email protected]>
Commit-Queue: Ryan Keane <[email protected]>
Reviewed-by: Sean Topping <[email protected]>
Cr-Commit-Position: refs/heads/main@{#998482}
diff --git a/content/gpu/BUILD.gn b/content/gpu/BUILD.gn
index f0cc370..1a6063b 100644
--- a/content/gpu/BUILD.gn
+++ b/content/gpu/BUILD.gn
@@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+import("//build/config/chromecast_build.gni")
import("//build/config/chromeos/ui_mode.gni")
import("//build/config/ui.gni")
import("//gpu/vulkan/features.gni")
@@ -135,7 +136,7 @@
# Use DRI on desktop Linux builds.
if (current_cpu != "s390x" && current_cpu != "ppc64" && is_linux &&
- (!is_chromecast || is_cast_desktop_build)) {
+ !is_castos) {
configs += [ "//build/config/linux/dri" ]
}
}