OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # This is the GN version of //chrome/chrome_features.gypi. | 5 # This is the GN version of //chrome/chrome_features.gypi. |
6 # Please keep in sync! | 6 # Please keep in sync! |
7 | 7 |
8 import("//build/config/chromecast_build.gni") | 8 import("//build/config/chromecast_build.gni") |
| 9 import("//build/config/compiler/compiler.gni") |
9 | 10 |
10 declare_args() { | 11 declare_args() { |
11 enable_google_now = !is_ios && !is_android && !is_chromecast | 12 enable_google_now = !is_ios && !is_android && !is_chromecast |
12 | 13 |
13 # Whether the Java UI is being used (Java infobars and popups, Java native | 14 # Whether the Java UI is being used (Java infobars and popups, Java native |
14 # settings and first run experience, sign-in etc.). | 15 # settings and first run experience, sign-in etc.). |
15 # Default to true if compiling for android, but allow this being overriden | 16 # Default to true if compiling for android, but allow this being overriden |
16 # through the environment. | 17 # through the environment. |
17 android_java_ui = is_android | 18 android_java_ui = is_android |
18 | 19 |
19 # Use vulcanized HTML/CSS/JS resources to speed up WebUI (chrome://) | 20 # Use vulcanized HTML/CSS/JS resources to speed up WebUI (chrome://) |
20 # pages. https://github.com/polymer/vulcanize | 21 # pages. https://github.com/polymer/vulcanize |
21 use_vulcanize = true | 22 use_vulcanize = true |
22 | 23 |
23 # Enables support for background apps. | 24 # Enables support for background apps. |
24 enable_background = !is_ios && !is_android && !is_chromecast | 25 enable_background = !is_ios && !is_android && !is_chromecast |
25 | 26 |
26 enable_one_click_signin = | 27 enable_one_click_signin = |
27 is_win || is_mac || (is_linux && !is_chromeos && !is_chromecast) | 28 is_win || is_mac || (is_linux && !is_chromeos && !is_chromecast) |
28 | 29 |
29 # Set to true to bundle all the mash related mojo services into chrome. | 30 # Set to true to bundle all the mash related mojo services into chrome. |
30 # Specify --mash to chrome to have chrome start the mash environment. | 31 # Specify --mash to chrome to have chrome start the mash environment. |
31 enable_package_mash_services = is_chromeos | 32 enable_package_mash_services = is_chromeos |
| 33 |
| 34 # Indicates if the build is using PGO. |
| 35 pgo_build = chrome_pgo_phase > 0 |
32 } | 36 } |
33 | 37 |
34 chrome_grit_defines = [ | 38 chrome_grit_defines = [ |
35 "enable_background=$enable_background", | 39 "enable_background=$enable_background", |
36 "enable_google_now=$enable_google_now", | 40 "enable_google_now=$enable_google_now", |
37 "use_vulcanize=$use_vulcanize", | 41 "use_vulcanize=$use_vulcanize", |
38 ] | 42 ] |
OLD | NEW |