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 import("//build/config/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 import("//build/config/chromecast_build.gni") | 6 import("//build/config/chromecast_build.gni") |
7 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
8 import("//build/config/features.gni") | 8 import("//build/config/features.gni") |
9 | 9 |
10 # Please keep features in alphabetical order. | 10 # Please keep features in alphabetical order. |
11 declare_args() { | 11 declare_args() { |
12 # Whether the Java UI is being used (Java infobars and popups, Java native | 12 # Whether the Java UI is being used (Java infobars and popups, Java native |
13 # settings and first run experience, sign-in etc.). | 13 # settings and first run experience, sign-in etc.). |
14 # Default to true if compiling for android, but allow this being overriden | 14 # Default to true if compiling for android, but allow this being overriden |
15 # through the environment. | 15 # through the environment. |
16 android_java_ui = is_android | 16 android_java_ui = is_android |
17 | 17 |
18 # Enables support for background apps. | 18 # Enables support for background apps. |
19 enable_background = !is_ios && !is_android && !is_chromecast | 19 enable_background = !is_ios && !is_android && !is_chromecast |
20 | 20 |
21 enable_one_click_signin = | 21 # Enable the printing system dialog for platforms that support printing |
22 is_win || is_mac || (is_linux && !is_chromeos && !is_chromecast) | 22 # and have a system dialog. |
| 23 enable_basic_print_dialog = enable_basic_printing && !is_chromeos |
23 | 24 |
24 # Google Now is disabled to prepare for its removal. | 25 # Google Now is disabled to prepare for its removal. |
25 # http://crbug.com/539674 | 26 # http://crbug.com/539674 |
26 enable_google_now = false | 27 enable_google_now = false |
27 | 28 |
28 # 'Ok Google' hotwording is disabled by default. Set to true to enable. (This | 29 # 'Ok Google' hotwording is disabled by default. Set to true to enable. (This |
29 # will download a closed-source NaCl module at startup.) Chrome-branded | 30 # will download a closed-source NaCl module at startup.) Chrome-branded |
30 # ChromeOS builds have this enabled by default. | 31 # ChromeOS builds have this enabled by default. |
31 enable_hotwording = is_chrome_branded && is_chromeos | 32 enable_hotwording = is_chrome_branded && is_chromeos |
32 | 33 |
33 # Enable the printing system dialog for platforms that support printing | 34 enable_one_click_signin = |
34 # and have a system dialog. | 35 is_win || is_mac || (is_linux && !is_chromeos && !is_chromecast) |
35 enable_basic_print_dialog = enable_basic_printing && !is_chromeos | |
36 | 36 |
37 # Set to true to bundle all the mash related mojo services into chrome. | 37 # Set to true to bundle all the mash related mojo services into chrome. |
38 # Specify --mash to chrome to have chrome start the mash environment. | 38 # Specify --mash to chrome to have chrome start the mash environment. |
39 enable_package_mash_services = is_chromeos | 39 enable_package_mash_services = is_chromeos |
40 | 40 |
| 41 enable_service_discovery = enable_mdns || is_mac |
| 42 |
41 # Enables vr shell. | 43 # Enables vr shell. |
42 enable_vr_shell = false | 44 enable_vr_shell = false |
43 | 45 |
44 # Enables vr shell UI development on local or remote page. | 46 # Enables vr shell UI development on local or remote page. |
45 enable_vr_shell_ui_dev = false | 47 enable_vr_shell_ui_dev = false |
46 | 48 |
47 # Enable native notifications via XPC services (mac only). | 49 # Enable native notifications via XPC services (mac only). |
48 enable_xpc_notifications = false | 50 enable_xpc_notifications = false |
49 | 51 |
| 52 # Indicates if the build is using PGO. |
| 53 pgo_build = chrome_pgo_phase > 0 |
| 54 |
50 # Use vulcanized HTML/CSS/JS resources to speed up WebUI (chrome://) | 55 # Use vulcanized HTML/CSS/JS resources to speed up WebUI (chrome://) |
51 # pages. https://github.com/polymer/vulcanize | 56 # pages. https://github.com/polymer/vulcanize |
52 use_vulcanize = true | 57 use_vulcanize = true |
53 | |
54 # Indicates if the build is using PGO. | |
55 pgo_build = chrome_pgo_phase > 0 | |
56 } | 58 } |
57 | 59 |
58 chrome_grit_defines = [ | 60 chrome_grit_defines = [ |
59 "enable_background=$enable_background", | 61 "enable_background=$enable_background", |
60 "enable_google_now=$enable_google_now", | 62 "enable_google_now=$enable_google_now", |
61 "enable_hotwording=$enable_hotwording", | 63 "enable_hotwording=$enable_hotwording", |
| 64 "enable_service_discovery=$enable_service_discovery", |
62 "enable_vr_shell=$enable_vr_shell", | 65 "enable_vr_shell=$enable_vr_shell", |
63 "safe_browsing_mode=$safe_browsing_mode", | 66 "safe_browsing_mode=$safe_browsing_mode", |
64 "use_vulcanize=$use_vulcanize", | 67 "use_vulcanize=$use_vulcanize", |
65 ] | 68 ] |
OLD | NEW |