Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Unified Diff: build/config/ui.gni

Issue 1283313004: Rename is_chromeos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move more to ui.gni Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« build/config/BUILDCONFIG.gn ('K') | « build/config/BUILDCONFIG.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/config/ui.gni
diff --git a/build/config/ui.gni b/build/config/ui.gni
index ca2f26521fc504148d344d6845845b3cfec42999..1ffc21f8b0acf539e175b4b7c522c9af55b8c892 100644
--- a/build/config/ui.gni
+++ b/build/config/ui.gni
@@ -15,6 +15,11 @@
# to set up feature flags.
declare_args() {
+ # This indicates whether the chromeos interfaces and features should be
+ # made available. Contrast with whether we are targetting the embedded
+ # OS. That flag controls the linking, flags, filesystems, etc. we expect.
+ use_cros_ui = is_chromeos
+
# Indicates if Ash is enabled. Ash is the Aura Shell which provides a
# desktop-like environment for Aura. Requires use_aura = true
use_ash = is_win || is_linux
@@ -71,3 +76,11 @@ use_clipboard_aurax11 = is_linux && use_aura && use_x11
enable_hidpi = is_mac || is_win || is_linux
enable_topchrome_md = is_chromeos || is_win || is_linux
+
+if (is_chromeos_os) {
+ assert(use_cros_ui, "ChromeOS targetting requires ChromeOS UI")
+}
+
+assert(use_cros_ui == is_chromeos,
+ "is_chromeos and use_cros_ui are expected to be aliases, " +
+ "old and new, respectively")
« build/config/BUILDCONFIG.gn ('K') | « build/config/BUILDCONFIG.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698