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 Chrome-feature-related build flags (see ui.gni for | 5 # This file contains Chrome-feature-related build flags (see ui.gni for |
6 # UI-related ones). These should theoretically be moved to the build files of | 6 # UI-related ones). These should theoretically be moved to the build files of |
7 # the features themselves. | 7 # the features themselves. |
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 to match the GYP configuration. Also, | 10 # e.g. base, so they need to be global to match the GYP configuration. Also, |
(...skipping 18 matching lines...) Expand all Loading... |
29 # TODO(GYP): Get NaCl linking on other platforms. | 29 # TODO(GYP): Get NaCl linking on other platforms. |
30 # Also, see if we can always get rid of enable_nacl_untrusted and | 30 # Also, see if we can always get rid of enable_nacl_untrusted and |
31 # enable_pnacl and always build them if enable_nacl is true. | 31 # enable_pnacl and always build them if enable_nacl is true. |
32 # The "is_nacl" part of the condition is needed to ensure that | 32 # The "is_nacl" part of the condition is needed to ensure that |
33 # the untrusted code is built properly; arguably it should be | 33 # the untrusted code is built properly; arguably it should be |
34 # guarded by "is_nacl" directly rather than enable_nacl_untrusted, but | 34 # guarded by "is_nacl" directly rather than enable_nacl_untrusted, but |
35 # this will go away when Mac and Win are working and we can just use | 35 # this will go away when Mac and Win are working and we can just use |
36 # the commented out logic. | 36 # the commented out logic. |
37 # Eventually we want this to be: | 37 # Eventually we want this to be: |
38 # enable_nacl = !is_ios && !is_android | 38 # enable_nacl = !is_ios && !is_android |
39 enable_nacl = (is_linux && !is_chromeos && current_cpu == "x64") || is_nacl | 39 enable_nacl = (is_linux && !is_chromeos_ui && current_cpu == "x64") || is_nacl |
40 enable_nacl_untrusted = enable_nacl | 40 enable_nacl_untrusted = enable_nacl |
41 enable_pnacl = enable_nacl_untrusted | 41 enable_pnacl = enable_nacl_untrusted |
42 | 42 |
43 # If debug_devtools is set to true, JavaScript files for DevTools are stored | 43 # If debug_devtools is set to true, JavaScript files for DevTools are stored |
44 # as is and loaded from disk. Otherwise, a concatenated file is stored in | 44 # as is and loaded from disk. Otherwise, a concatenated file is stored in |
45 # resources.pak. It is still possible to load JS files from disk by passing | 45 # resources.pak. It is still possible to load JS files from disk by passing |
46 # --debug-devtools cmdline switch. | 46 # --debug-devtools cmdline switch. |
47 debug_devtools = false | 47 debug_devtools = false |
48 | 48 |
49 # Enables WebRTC. | 49 # Enables WebRTC. |
(...skipping 25 matching lines...) Expand all Loading... |
75 enable_plugin_installation = is_win || is_mac | 75 enable_plugin_installation = is_win || is_mac |
76 | 76 |
77 enable_app_list = !is_ios && !is_android | 77 enable_app_list = !is_ios && !is_android |
78 | 78 |
79 enable_supervised_users = !is_ios | 79 enable_supervised_users = !is_ios |
80 | 80 |
81 enable_autofill_dialog = !is_ios | 81 enable_autofill_dialog = !is_ios |
82 | 82 |
83 enable_google_now = !is_ios && !is_android | 83 enable_google_now = !is_ios && !is_android |
84 | 84 |
85 enable_one_click_signin = is_win || is_mac || (is_linux && !is_chromeos) | 85 enable_one_click_signin = is_win || is_mac || (is_linux && !is_chromeos_ui) |
86 | 86 |
87 enable_remoting = !is_ios && !is_android | 87 enable_remoting = !is_ios && !is_android |
88 | 88 |
89 # Enable hole punching for the protected video. | 89 # Enable hole punching for the protected video. |
90 enable_video_hole = is_android | 90 enable_video_hole = is_android |
91 | 91 |
92 # Enables browser side Content Decryption Modules. Required for embedders | 92 # Enables browser side Content Decryption Modules. Required for embedders |
93 # (e.g. Android and ChromeCast) that use a browser side CDM. | 93 # (e.g. Android and ChromeCast) that use a browser side CDM. |
94 enable_browser_cdms = is_android | 94 enable_browser_cdms = is_android |
95 | 95 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 # libudev usage. This currently only affects the content layer. | 132 # libudev usage. This currently only affects the content layer. |
133 use_udev = is_linux | 133 use_udev = is_linux |
134 | 134 |
135 # Enable the spell checker. | 135 # Enable the spell checker. |
136 enable_spellcheck = !is_ios | 136 enable_spellcheck = !is_ios |
137 | 137 |
138 # Use the operating system's spellchecker rather than hunspell. | 138 # Use the operating system's spellchecker rather than hunspell. |
139 use_browser_spellchecker = is_android || is_mac | 139 use_browser_spellchecker = is_android || is_mac |
140 | 140 |
141 # Enable basic printing support and UI. | 141 # Enable basic printing support and UI. |
142 enable_basic_printing = !is_chromeos | 142 enable_basic_printing = !is_chromeos_ui |
143 | 143 |
144 # Enable printing with print preview. It does not imply | 144 # Enable printing with print preview. It does not imply |
145 # enable_basic_printing. It's possible to build Chrome with preview only. | 145 # enable_basic_printing. It's possible to build Chrome with preview only. |
146 enable_print_preview = !is_android | 146 enable_print_preview = !is_android |
147 | 147 |
148 # The seccomp-bpf sandbox is only supported on three architectures | 148 # The seccomp-bpf sandbox is only supported on three architectures |
149 # currently. | 149 # currently. |
150 # Do not disable seccomp_bpf anywhere without talking to | 150 # Do not disable seccomp_bpf anywhere without talking to |
151 # security@chromium.org! | 151 # security@chromium.org! |
152 use_seccomp_bpf = (is_linux || is_android) && | 152 use_seccomp_bpf = (is_linux || is_android) && |
(...skipping 16 matching lines...) Expand all Loading... |
169 | 169 |
170 use_cups = is_desktop_linux || is_mac | 170 use_cups = is_desktop_linux || is_mac |
171 | 171 |
172 enable_themes = !is_android && !is_ios | 172 enable_themes = !is_android && !is_ios |
173 | 173 |
174 # TODO(scottmg) remove this when we've fixed printing. | 174 # TODO(scottmg) remove this when we've fixed printing. |
175 win_pdf_metafile_for_printing = true | 175 win_pdf_metafile_for_printing = true |
176 | 176 |
177 # Whether we are using the rlz library or not. Platforms like Android send | 177 # Whether we are using the rlz library or not. Platforms like Android send |
178 # rlz codes for searches but do not use the library. | 178 # rlz codes for searches but do not use the library. |
179 enable_rlz_support = is_win || is_mac || is_ios || is_chromeos | 179 enable_rlz_support = is_win || is_mac || is_ios || is_chromeos_ui |
180 enable_rlz = is_chrome_branded && enable_rlz_support | 180 enable_rlz = is_chrome_branded && enable_rlz_support |
181 | 181 |
182 enable_settings_app = enable_app_list && !is_chromeos | 182 enable_settings_app = enable_app_list && !is_chromeos_ui |
183 | 183 |
184 enable_service_discovery = enable_mdns || is_mac | 184 enable_service_discovery = enable_mdns || is_mac |
185 | 185 |
186 enable_wifi_bootstrapping = is_win || is_mac | 186 enable_wifi_bootstrapping = is_win || is_mac |
187 | 187 |
188 # Image loader extension is enabled on ChromeOS only. | 188 # Image loader extension is enabled on ChromeOS only. |
189 enable_image_loader_extension = is_chromeos | 189 enable_image_loader_extension = is_chromeos_ui |
190 | 190 |
191 # Chrome OS: whether to also build the upcoming version of | 191 # Chrome OS: whether to also build the upcoming version of |
192 # ChromeVox, which can then be enabled via a command-line switch. | 192 # ChromeVox, which can then be enabled via a command-line switch. |
193 enable_chromevox_next = false | 193 enable_chromevox_next = false |
194 | 194 |
195 # Use brlapi from brltty for braille display support. | 195 # Use brlapi from brltty for braille display support. |
196 use_brlapi = is_chromeos | 196 use_brlapi = is_chromeos_ui |
197 | 197 |
198 # Option controlling the use of GConf (the classic GNOME configuration | 198 # Option controlling the use of GConf (the classic GNOME configuration |
199 # system). | 199 # system). |
200 # TODO(GYP) also require !embedded to enable. | 200 # TODO(GYP) also require !embedded to enable. |
201 use_gconf = is_linux && !is_chromeos | 201 use_gconf = is_linux && !is_chromeos_ui |
202 | 202 |
203 # Hangout services is an extension that adds extra features to Hangouts. | 203 # Hangout services is an extension that adds extra features to Hangouts. |
204 # For official GYP builds, this flag is set, it will likely need to be | 204 # For official GYP builds, this flag is set, it will likely need to be |
205 # parameterized in the future for a similar use. | 205 # parameterized in the future for a similar use. |
206 enable_hangout_services_extension = false | 206 enable_hangout_services_extension = false |
207 | 207 |
208 # Whether to back up data before sync. | 208 # Whether to back up data before sync. |
209 enable_pre_sync_backup = is_win || is_mac || (is_linux && !is_chromeos) | 209 enable_pre_sync_backup = is_win || is_mac || (is_linux && !is_chromeos_ui) |
210 | 210 |
211 # WebVR support disabled until platform implementations have been added | 211 # WebVR support disabled until platform implementations have been added |
212 enable_webvr = false | 212 enable_webvr = false |
OLD | NEW |