Chromium Code Reviews| 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, |
| 11 # anything that needs a grit define must be in either this file or ui.gni. | 11 # anything that needs a grit define must be in either this file or ui.gni. |
| 12 # | 12 # |
| 13 # PLEASE TRY TO AVOID ADDING FLAGS TO THIS FILE in cases where grit isn't | 13 # PLEASE TRY TO AVOID ADDING FLAGS TO THIS FILE in cases where grit isn't |
| 14 # required. See the declare_args block of BUILDCONFIG.gn for advice on how | 14 # required. See the declare_args block of BUILDCONFIG.gn for advice on how |
| 15 # to set up feature flags. | 15 # to set up feature flags. |
| 16 | 16 |
| 17 import("//build/config/chrome_build.gni") | 17 import("//build/config/chrome_build.gni") |
| 18 import("//build/config/chromecast_build.gni") | 18 import("//build/config/chromecast_build.gni") |
| 19 import("//build/config/headless_build.gni") | 19 import("//build/config/headless_build.gni") |
| 20 if (is_android) { | 20 if (is_android) { |
| 21 import("//build/config/android/config.gni") | 21 import("//build/config/android/config.gni") |
| 22 } | 22 } |
| 23 | 23 |
| 24 declare_args() { | 24 declare_args() { |
| 25 # Multicast DNS. | 25 # Multicast DNS. |
| 26 enable_mdns = is_win || is_linux | 26 enable_mdns = is_win || is_linux |
| 27 | 27 |
| 28 enable_extensions = !is_android && !is_ios | |
| 28 enable_plugins = (!is_android && !is_ios) || is_chromecast | 29 enable_plugins = (!is_android && !is_ios) || is_chromecast |
| 29 enable_pdf = !is_android && !is_ios && !is_chromecast | 30 enable_pdf = !is_android && !is_ios && !is_chromecast |
| 30 | 31 |
| 31 # Enables Native Client support. | 32 # Enables Native Client support. |
| 32 # TODO(GYP): Get NaCl linking on other platforms. | 33 # TODO(GYP): Get NaCl linking on other platforms. |
| 33 # Also, see if we can always get rid of enable_nacl_untrusted and | 34 # Also, see if we can always get rid of enable_nacl_untrusted and |
| 34 # enable_pnacl and always build them if enable_nacl is true. | 35 # enable_pnacl and always build them if enable_nacl is true. |
| 35 # The "is_nacl" part of the condition is needed to ensure that | 36 # The "is_nacl" part of the condition is needed to ensure that |
| 36 # the untrusted code is built properly; arguably it should be | 37 # the untrusted code is built properly; arguably it should be |
| 37 # guarded by "is_nacl" directly rather than enable_nacl_untrusted, but | 38 # guarded by "is_nacl" directly rather than enable_nacl_untrusted, but |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 155 use_seccomp_bpf = (is_linux || is_android) && | 156 use_seccomp_bpf = (is_linux || is_android) && |
| 156 (current_cpu == "x86" || current_cpu == "x64" || | 157 (current_cpu == "x86" || current_cpu == "x64" || |
| 157 current_cpu == "arm" || current_cpu == "mipsel") | 158 current_cpu == "arm" || current_cpu == "mipsel") |
| 158 | 159 |
| 159 # Enable notifications everywhere except iOS. | 160 # Enable notifications everywhere except iOS. |
| 160 enable_notifications = !is_ios | 161 enable_notifications = !is_ios |
| 161 | 162 |
| 162 enable_web_speech = !is_android && !is_ios | 163 enable_web_speech = !is_android && !is_ios |
| 163 | 164 |
| 164 use_dbus = is_linux && !is_chromecast && !is_headless | 165 use_dbus = is_linux && !is_chromecast && !is_headless |
| 165 | 166 |
|
no sievers
2015/11/24 22:45:28
I was also just wondering why not everything is in
| |
| 166 enable_extensions = !is_android && !is_ios | |
| 167 | |
| 168 enable_task_manager = !is_ios && !is_android | 167 enable_task_manager = !is_ios && !is_android |
| 169 | 168 |
| 170 enable_themes = !is_android && !is_ios | 169 enable_themes = !is_android && !is_ios |
| 171 | 170 |
| 172 # TODO(scottmg) remove this when we've fixed printing. | 171 # TODO(scottmg) remove this when we've fixed printing. |
| 173 win_pdf_metafile_for_printing = true | 172 win_pdf_metafile_for_printing = true |
| 174 | 173 |
| 175 # Whether we are using the rlz library or not. Platforms like Android send | 174 # Whether we are using the rlz library or not. Platforms like Android send |
| 176 # rlz codes for searches but do not use the library. | 175 # rlz codes for searches but do not use the library. |
| 177 enable_rlz_support = is_win || is_mac || is_ios || is_chromeos | 176 enable_rlz_support = is_win || is_mac || is_ios || is_chromeos |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 199 enable_pre_sync_backup = is_win || is_mac || (is_linux && !is_chromeos) | 198 enable_pre_sync_backup = is_win || is_mac || (is_linux && !is_chromeos) |
| 200 | 199 |
| 201 # Enable WebVR support by default on Android | 200 # Enable WebVR support by default on Android |
| 202 # Still requires command line flag to access API | 201 # Still requires command line flag to access API |
| 203 enable_webvr = is_android | 202 enable_webvr = is_android |
| 204 | 203 |
| 205 use_gio = is_desktop_linux && !is_headless | 204 use_gio = is_desktop_linux && !is_headless |
| 206 | 205 |
| 207 # Chrome OS: whether to use ARC instances. Disabled by default. | 206 # Chrome OS: whether to use ARC instances. Disabled by default. |
| 208 enable_arc = false | 207 enable_arc = false |
| OLD | NEW |