| OLD | NEW |
| (Empty) |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 # This is the GYP equivalent of //chrome/common/features.gni. | |
| 6 # Please keep in sync! | |
| 7 | |
| 8 { | |
| 9 'variables': { | |
| 10 'variables': { | |
| 11 # Conditional variables. | |
| 12 'conditions': [ | |
| 13 ['OS=="android"', { | |
| 14 'android_java_ui%': 1, | |
| 15 }, { | |
| 16 'android_java_ui': 0, | |
| 17 }], | |
| 18 ['OS=="android" or OS=="ios"', { | |
| 19 'enable_background%': 0, | |
| 20 }, { | |
| 21 'enable_background%': 1, | |
| 22 }] | |
| 23 ], | |
| 24 | |
| 25 # Google Now is disabled to prepare for its removal. | |
| 26 # http://crbug.com/539674 | |
| 27 'enable_google_now%': 0, | |
| 28 | |
| 29 # Use vulcanized HTML/CSS/JS resources to speed up WebUI (chrome://) | |
| 30 # pages. https://github.com/polymer/vulcanize | |
| 31 'use_vulcanize%': 1, | |
| 32 }, | |
| 33 | |
| 34 # Anything in the conditions needs to be copied to the outer scope to be | |
| 35 # accessible. | |
| 36 'enable_background%': '<(enable_background)', | |
| 37 'enable_google_now%': '<(enable_google_now)', | |
| 38 'android_java_ui%': '<(android_java_ui)', | |
| 39 'use_vulcanize%': '<(use_vulcanize)', | |
| 40 | |
| 41 # GN only, but defined here so BUILDFLAG works without ifdef. | |
| 42 'enable_package_mash_services%': 0, | |
| 43 | |
| 44 # Grit defines based on the feature flags. These must be manually added to | |
| 45 # grit targets. | |
| 46 'chrome_grit_defines': [ | |
| 47 '-D', 'enable_background=<(enable_background)', | |
| 48 '-D', 'enable_google_now=<(enable_google_now)', | |
| 49 '-D', 'use_vulcanize=<(use_vulcanize)', | |
| 50 ], | |
| 51 }, | |
| 52 } | |
| OLD | NEW |