| 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 if (is_android) { | 20 if (is_android) { |
| 20 import("//build/config/android/config.gni") | 21 import("//build/config/android/config.gni") |
| 21 } | 22 } |
| 22 | 23 |
| 23 declare_args() { | 24 declare_args() { |
| 24 # Multicast DNS. | 25 # Multicast DNS. |
| 25 enable_mdns = is_win || is_linux | 26 enable_mdns = is_win || is_linux |
| 26 | 27 |
| 27 enable_plugins = (!is_android && !is_ios) || is_chromecast | 28 enable_plugins = (!is_android && !is_ios) || is_chromecast |
| 28 enable_pdf = !is_android && !is_ios && !is_chromecast | 29 enable_pdf = !is_android && !is_ios && !is_chromecast |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 enable_app_list = !is_ios && !is_android | 80 enable_app_list = !is_ios && !is_android |
| 80 | 81 |
| 81 enable_supervised_users = !is_ios | 82 enable_supervised_users = !is_ios |
| 82 | 83 |
| 83 enable_autofill_dialog = !is_ios | 84 enable_autofill_dialog = !is_ios |
| 84 | 85 |
| 85 enable_google_now = !is_ios && !is_android | 86 enable_google_now = !is_ios && !is_android |
| 86 | 87 |
| 87 enable_one_click_signin = is_win || is_mac || (is_linux && !is_chromeos) | 88 enable_one_click_signin = is_win || is_mac || (is_linux && !is_chromeos) |
| 88 | 89 |
| 89 enable_remoting = !is_ios && !is_android && !is_chromecast | 90 enable_remoting = !is_ios && !is_android && !is_chromecast && !is_headless |
| 90 | 91 |
| 91 # Enable hole punching for the protected video. | 92 # Enable hole punching for the protected video. |
| 92 enable_video_hole = is_android | 93 enable_video_hole = is_android |
| 93 | 94 |
| 94 # Enables browser side Content Decryption Modules. Required for embedders | 95 # Enables browser side Content Decryption Modules. Required for embedders |
| 95 # (e.g. Android and ChromeCast) that use a browser side CDM. | 96 # (e.g. Android and ChromeCast) that use a browser side CDM. |
| 96 enable_browser_cdms = is_android || is_chromecast | 97 enable_browser_cdms = is_android || is_chromecast |
| 97 | 98 |
| 98 # Hangout services is an extension that adds extra features to Hangouts. | 99 # Hangout services is an extension that adds extra features to Hangouts. |
| 99 # For official GYP builds, this flag is set. | 100 # For official GYP builds, this flag is set. |
| (...skipping 18 matching lines...) Expand all Loading... |
| 118 } | 119 } |
| 119 | 120 |
| 120 # Additional dependent variables ----------------------------------------------- | 121 # Additional dependent variables ----------------------------------------------- |
| 121 | 122 |
| 122 # Set the version of CLD. | 123 # Set the version of CLD. |
| 123 # 1: (DEPRECATED! See http://crbug.com/528305 for info) Use only CLD1. | 124 # 1: (DEPRECATED! See http://crbug.com/528305 for info) Use only CLD1. |
| 124 # 2: Use only CLD2. | 125 # 2: Use only CLD2. |
| 125 cld_version = 2 | 126 cld_version = 2 |
| 126 | 127 |
| 127 # libudev usage. This currently only affects the content layer. | 128 # libudev usage. This currently only affects the content layer. |
| 128 use_udev = is_linux && !is_chromecast | 129 use_udev = is_linux && !is_chromecast && !is_headless |
| 129 | 130 |
| 130 # Enable the spell checker. | 131 # Enable the spell checker. |
| 131 enable_spellcheck = !is_ios | 132 enable_spellcheck = !is_ios |
| 132 | 133 |
| 133 # Use the operating system's spellchecker rather than hunspell. | 134 # Use the operating system's spellchecker rather than hunspell. |
| 134 use_browser_spellchecker = is_android || is_mac | 135 use_browser_spellchecker = is_android || is_mac |
| 135 | 136 |
| 136 # Enable basic printing support and UI. | 137 # Enable basic printing support and UI. |
| 137 enable_basic_printing = !is_chromeos && !is_chromecast && !is_ios | 138 enable_basic_printing = |
| 139 !is_chromeos && !is_chromecast && !is_ios && !is_headless |
| 138 | 140 |
| 139 # Enable printing with print preview. It does not imply | 141 # Enable printing with print preview. It does not imply |
| 140 # enable_basic_printing. It's possible to build Chrome with preview only. | 142 # enable_basic_printing. It's possible to build Chrome with preview only. |
| 141 enable_print_preview = !is_android && !is_chromecast && !is_ios | 143 enable_print_preview = !is_android && !is_chromecast && !is_ios && !is_headless |
| 142 | 144 |
| 143 # Enables the use of CDMs in pepper plugins. | 145 # Enables the use of CDMs in pepper plugins. |
| 144 enable_pepper_cdms = | 146 enable_pepper_cdms = |
| 145 enable_plugins && (is_linux || is_mac || is_win) && !is_chromecast | 147 enable_plugins && (is_linux || is_mac || is_win) && !is_chromecast |
| 146 | 148 |
| 147 # The seccomp-bpf sandbox is only supported on three architectures | 149 # The seccomp-bpf sandbox is only supported on three architectures |
| 148 # currently. | 150 # currently. |
| 149 # Do not disable seccomp_bpf anywhere without talking to | 151 # Do not disable seccomp_bpf anywhere without talking to |
| 150 # security@chromium.org! | 152 # security@chromium.org! |
| 151 use_seccomp_bpf = (is_linux || is_android) && | 153 use_seccomp_bpf = (is_linux || is_android) && |
| 152 (current_cpu == "x86" || current_cpu == "x64" || | 154 (current_cpu == "x86" || current_cpu == "x64" || |
| 153 current_cpu == "arm" || current_cpu == "mipsel") | 155 current_cpu == "arm" || current_cpu == "mipsel") |
| 154 | 156 |
| 155 # Enable notifications everywhere except iOS. | 157 # Enable notifications everywhere except iOS. |
| 156 enable_notifications = !is_ios | 158 enable_notifications = !is_ios |
| 157 | 159 |
| 158 enable_web_speech = !is_android && !is_ios | 160 enable_web_speech = !is_android && !is_ios |
| 159 | 161 |
| 160 use_dbus = is_linux && !is_chromecast | 162 use_dbus = is_linux && !is_chromecast && !is_headless |
| 161 | 163 |
| 162 enable_extensions = !is_android && !is_ios | 164 enable_extensions = !is_android && !is_ios |
| 163 | 165 |
| 164 enable_task_manager = !is_ios && !is_android | 166 enable_task_manager = !is_ios && !is_android |
| 165 | 167 |
| 166 use_cups = (is_desktop_linux || is_mac) && !is_chromecast | 168 use_cups = (is_desktop_linux || is_mac) && !is_chromecast && !is_headless |
| 167 | 169 |
| 168 enable_themes = !is_android && !is_ios | 170 enable_themes = !is_android && !is_ios |
| 169 | 171 |
| 170 # TODO(scottmg) remove this when we've fixed printing. | 172 # TODO(scottmg) remove this when we've fixed printing. |
| 171 win_pdf_metafile_for_printing = true | 173 win_pdf_metafile_for_printing = true |
| 172 | 174 |
| 173 # Whether we are using the rlz library or not. Platforms like Android send | 175 # Whether we are using the rlz library or not. Platforms like Android send |
| 174 # rlz codes for searches but do not use the library. | 176 # rlz codes for searches but do not use the library. |
| 175 enable_rlz_support = is_win || is_mac || is_ios || is_chromeos | 177 enable_rlz_support = is_win || is_mac || is_ios || is_chromeos |
| 176 enable_rlz = is_chrome_branded && enable_rlz_support | 178 enable_rlz = is_chrome_branded && enable_rlz_support |
| 177 | 179 |
| 178 enable_settings_app = enable_app_list && !is_chromeos | 180 enable_settings_app = enable_app_list && !is_chromeos |
| 179 | 181 |
| 180 enable_service_discovery = enable_mdns || is_mac | 182 enable_service_discovery = enable_mdns || is_mac |
| 181 | 183 |
| 182 # Image loader extension is enabled on ChromeOS only. | 184 # Image loader extension is enabled on ChromeOS only. |
| 183 enable_image_loader_extension = is_chromeos | 185 enable_image_loader_extension = is_chromeos |
| 184 | 186 |
| 185 # Chrome OS: whether to also build the upcoming version of | 187 # Chrome OS: whether to also build the upcoming version of |
| 186 # ChromeVox, which can then be enabled via a command-line switch. | 188 # ChromeVox, which can then be enabled via a command-line switch. |
| 187 enable_chromevox_next = false | 189 enable_chromevox_next = false |
| 188 | 190 |
| 189 # Use brlapi from brltty for braille display support. | 191 # Use brlapi from brltty for braille display support. |
| 190 use_brlapi = is_chromeos | 192 use_brlapi = is_chromeos |
| 191 | 193 |
| 192 # Option controlling the use of GConf (the classic GNOME configuration | 194 # Option controlling the use of GConf (the classic GNOME configuration |
| 193 # system). | 195 # system). |
| 194 use_gconf = is_linux && !is_chromeos && !is_chromecast | 196 use_gconf = is_linux && !is_chromeos && !is_chromecast && !is_headless |
| 195 | 197 |
| 196 # Whether to back up data before sync. | 198 # Whether to back up data before sync. |
| 197 enable_pre_sync_backup = is_win || is_mac || (is_linux && !is_chromeos) | 199 enable_pre_sync_backup = is_win || is_mac || (is_linux && !is_chromeos) |
| 198 | 200 |
| 199 # Enable WebVR support by default on Android | 201 # Enable WebVR support by default on Android |
| 200 # Still requires command line flag to access API | 202 # Still requires command line flag to access API |
| 201 enable_webvr = is_android | 203 enable_webvr = is_android |
| 204 |
| 205 use_gio = is_desktop_linux && !is_headless |
| OLD | NEW |