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

Unified Diff: chrome/chrome_features.gypi

Issue 1475513006: New build flag system, convert Google Now flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add hard dependency flags Created 5 years, 1 month 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
« no previous file with comments | « chrome/chrome_exe.gypi ('k') | chrome/chrome_plugin.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/chrome_features.gypi
diff --git a/chrome/chrome_features.gypi b/chrome/chrome_features.gypi
new file mode 100644
index 0000000000000000000000000000000000000000..a4d875670a3c33f6f41fad3d9b80cd953c631e32
--- /dev/null
+++ b/chrome/chrome_features.gypi
@@ -0,0 +1,31 @@
+# Copyright 2015 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.
+
+# This is the GYP equivalent of //chrome/common/features.gni.
+# Please keep in sync!
+
+{
+ 'variables': {
+ 'variables': {
+ # Conditional variables.
+ 'conditions': [
+ ['OS=="android" or OS=="ios"', {
+ 'enable_google_now%': 0,
+ }, {
+ 'enable_google_now%': 1,
+ }]
+ ],
+ },
+
+ # Anything in the conditions needs to be copied to the outer scope to be
+ # accessible.
+ 'enable_google_now%': '<(enable_google_now)',
+
+ # Grit defines based on the feature flags. These must be manually added to
+ # grit targets.
+ 'chrome_grit_defines': [
+ '-D', 'enable_google_now=<(enable_google_now)',
+ ]
+ },
+}
« no previous file with comments | « chrome/chrome_exe.gypi ('k') | chrome/chrome_plugin.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698