| 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 if (is_android) { | 18 if (is_android) { |
| 19 import("//build/config/android/config.gni") | 19 import("//build/config/android/config.gni") |
| 20 } | 20 } |
| 21 | 21 |
| 22 declare_args() { | 22 declare_args() { |
| 23 # Multicast DNS. | 23 # Multicast DNS. |
| 24 enable_mdns = is_win || is_linux | 24 enable_mdns = is_win || is_linux |
| 25 | 25 |
| 26 enable_plugins = !is_android && !is_ios | 26 enable_plugins = !is_ios |
| 27 | 27 |
| 28 # Enables Native Client support. | 28 # Enables Native Client support. |
| 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 && 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. |
| 50 # TODO(GYP) make mac and android work. | 50 # TODO(GYP) make mac and android work. |
| 51 enable_webrtc = !is_ios && !is_mac && !is_android | 51 enable_webrtc = !is_ios && !is_mac && !is_android |
| 52 | 52 |
| 53 # Enables the Media Router. | 53 # Enables the Media Router. |
| 54 enable_media_router = !is_ios | 54 enable_media_router = !is_ios && !is_android |
| 55 | 55 |
| 56 # Enables proprietary codecs and demuxers; e.g. H264, MOV, AAC, and MP3. | 56 # Enables proprietary codecs and demuxers; e.g. H264, MOV, AAC, and MP3. |
| 57 # Android OS includes support for proprietary codecs regardless of building | 57 # Android OS includes support for proprietary codecs regardless of building |
| 58 # Chromium or Google Chrome. We also ship Google Chrome and Chromecast with | 58 # Chromium or Google Chrome. We also ship Google Chrome and Chromecast with |
| 59 # proprietary codecs. | 59 # proprietary codecs. |
| 60 # TODO(GYP) The GYP build has || chromecast==1 for this: | 60 # TODO(GYP) The GYP build has || chromecast==1 for this: |
| 61 proprietary_codecs = is_android || is_chrome_branded | 61 proprietary_codecs = is_android || is_chrome_branded |
| 62 | 62 |
| 63 # TODO(GYP) This should be enabled on ios as well. | 63 # TODO(GYP) This should be enabled on ios as well. |
| 64 enable_configuration_policy = !is_ios | 64 enable_configuration_policy = !is_ios |
| 65 | 65 |
| 66 # Enables support for background apps. | 66 # Enables support for background apps. |
| 67 enable_background = !is_ios && !is_android | 67 enable_background = !is_ios && (!is_android || use_aura) |
| 68 | 68 |
| 69 enable_captive_portal_detection = !is_android && !is_ios | 69 enable_captive_portal_detection = !is_android && !is_ios |
| 70 | 70 |
| 71 # Enables use of the session service, which is enabled by default. | 71 # Enables use of the session service, which is enabled by default. |
| 72 # Android stores them separately on the Java side. | 72 # Android stores them separately on the Java side. |
| 73 enable_session_service = !is_android && !is_ios | 73 enable_session_service = (!is_android || use_aura) && !is_ios |
| 74 | 74 |
| 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 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 # Enable notifications everywhere except iOS. | 156 # Enable notifications everywhere except iOS. |
| 157 enable_notifications = !is_ios | 157 enable_notifications = !is_ios |
| 158 | 158 |
| 159 # TODO(brettw) this should be moved to net and only dependents get this define. | 159 # TODO(brettw) this should be moved to net and only dependents get this define. |
| 160 disable_ftp_support = is_ios | 160 disable_ftp_support = is_ios |
| 161 | 161 |
| 162 enable_web_speech = !is_android && !is_ios | 162 enable_web_speech = !is_android && !is_ios |
| 163 | 163 |
| 164 use_dbus = is_linux | 164 use_dbus = is_linux |
| 165 | 165 |
| 166 enable_extensions = !is_android && !is_ios | 166 enable_extensions = !is_ios |
| 167 | 167 |
| 168 enable_task_manager = !is_ios && !is_android | 168 enable_task_manager = !is_ios && !is_android |
| 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) || (is_android && use_aura) |
| 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 |
| 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 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 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) |
| 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 |