OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 file contains UI-related build flags. It should theoretically be in the | 5 # This file contains UI-related build flags. It should theoretically be in the |
6 # src/ui directory and only things that depend on the ui module should get the | 6 # src/ui directory and only things that depend on the ui module should get the |
7 # definitions. | 7 # definitions. |
8 # | 8 # |
9 # However, today we have many "bad" dependencies on some of these flags from, | 9 # However, today we have many "bad" dependencies on some of these flags from, |
10 # e.g. base, so they need to be global. | 10 # e.g. base, so they need to be global. |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 # enable_basic_printing. It's possible to build Chrome with preview only. | 70 # enable_basic_printing. It's possible to build Chrome with preview only. |
71 enable_print_preview = !is_android | 71 enable_print_preview = !is_android |
72 | 72 |
73 # The seccomp-bpf sandbox is only supported on three architectures | 73 # The seccomp-bpf sandbox is only supported on three architectures |
74 # currently. | 74 # currently. |
75 # Do not disable seccomp_bpf anywhere without talking to | 75 # Do not disable seccomp_bpf anywhere without talking to |
76 # security@chromium.org! | 76 # security@chromium.org! |
77 use_seccomp_bpf = (is_linux || is_android) && | 77 use_seccomp_bpf = (is_linux || is_android) && |
78 (cpu_arch == "x86" || cpu_arch == "x64" || cpu_arch == "arm") | 78 (cpu_arch == "x86" || cpu_arch == "x64" || cpu_arch == "arm") |
79 | 79 |
80 # Enable notifications everywhere except Android/iOS. | 80 # Enable notifications everywhere except iOS. |
81 # Android is http://crbug.com/115320 | 81 enable_notifications = !is_ios |
82 enable_notifications = !is_android && !is_ios | |
83 | 82 |
84 # TODO(brettw) this should be moved to net and only dependents get this define. | 83 # TODO(brettw) this should be moved to net and only dependents get this define. |
85 disable_ftp_support = is_ios | 84 disable_ftp_support = is_ios |
86 | 85 |
87 enable_web_speech = (!is_android && !is_ios) | 86 enable_web_speech = (!is_android && !is_ios) |
88 | 87 |
89 use_dbus = is_linux | 88 use_dbus = is_linux |
90 | 89 |
91 enable_extensions = (!is_android && !is_ios) | 90 enable_extensions = (!is_android && !is_ios) |
92 | 91 |
93 # Variable safe_browsing is used to control the build time configuration for | 92 # Variable safe_browsing is used to control the build time configuration for |
94 # safe browsing feature. Safe browsing can be compiled in 3 different levels: 0 | 93 # safe browsing feature. Safe browsing can be compiled in 3 different levels: 0 |
95 # disables it, 1 enables it fully, and 2 enables only UI and reporting features | 94 # disables it, 1 enables it fully, and 2 enables only UI and reporting features |
96 # without enabling phishing and malware detection. This is useful to integrate | 95 # without enabling phishing and malware detection. This is useful to integrate |
97 # a third party phishing/malware detection to existing safe browsing logic. | 96 # a third party phishing/malware detection to existing safe browsing logic. |
98 if (is_android) { | 97 if (is_android) { |
99 safe_browsing_mode = 2 | 98 safe_browsing_mode = 2 |
100 } else if (is_ios) { | 99 } else if (is_ios) { |
101 safe_browsing_mode = 0 | 100 safe_browsing_mode = 0 |
102 } else { | 101 } else { |
103 safe_browsing_mode = 1 | 102 safe_browsing_mode = 1 |
104 } | 103 } |
105 | 104 |
106 enable_configuration_policy = true | 105 enable_configuration_policy = true |
107 | 106 |
108 # The data acquisition mode for CLD2. Possible values are: | |
109 # static: CLD2 data is statically linked to the executable. | |
110 # standalone: CLD2 data is provided in a standalone file that is | |
111 # bundled with the executable. | |
112 # component: CLD2 data is provided as a Chrome "component" and is | |
113 # downloaded via the component updater. | |
114 # | |
115 # For more information on switching the CLD2 data source, see: | |
116 # https://sites.google.com/a/chromium.org/dev/developers/how-tos/compact-langu
age-detector-cld-data-source-configuration | |
117 cld2_data_source = "static" | |
118 | |
119 # Enables support for background apps. | 107 # Enables support for background apps. |
120 enable_background = !is_ios && !is_android | 108 enable_background = !is_ios && !is_android |
121 | 109 |
122 enable_task_manager = !is_ios && !is_android | 110 enable_task_manager = !is_ios && !is_android |
123 | 111 |
124 use_cups = is_desktop_linux || is_mac | 112 use_cups = is_desktop_linux || is_mac |
125 | 113 |
126 enable_themes = !is_android && !is_ios | 114 enable_themes = !is_android && !is_ios |
127 | 115 |
128 # TODO(scottmg) remove this when we've fixed printing. | 116 # TODO(scottmg) remove this when we've fixed printing. |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 # ChromeVox, which can then be enabled via a command-line switch. | 152 # ChromeVox, which can then be enabled via a command-line switch. |
165 enable_chromevox_next = false | 153 enable_chromevox_next = false |
166 | 154 |
167 # Use brlapi from brltty for braille display support. | 155 # Use brlapi from brltty for braille display support. |
168 use_brlapi = is_chromeos | 156 use_brlapi = is_chromeos |
169 | 157 |
170 # Option controlling the use of GConf (the classic GNOME configuration | 158 # Option controlling the use of GConf (the classic GNOME configuration |
171 # system). | 159 # system). |
172 # TODO(GYP) also require !embedded to enable. | 160 # TODO(GYP) also require !embedded to enable. |
173 use_gconf = is_linux && !is_chromeos | 161 use_gconf = is_linux && !is_chromeos |
OLD | NEW |