Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(46)

Side by Side Diff: build/config/features.gni

Issue 1410883007: headless: Add gn settings for embedded build and headless mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Keep use_cups overridable. Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | build/config/headless_build.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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.
100 enable_hangout_services_extension = false 101 enable_hangout_services_extension = false
101 102
102 # Variable safe_browsing is used to control the build time configuration for 103 # Variable safe_browsing is used to control the build time configuration for
103 # safe browsing feature. Safe browsing can be compiled in 3 different levels: 104 # safe browsing feature. Safe browsing can be compiled in 3 different levels:
104 # 0 disables it, 1 enables it fully, and 2 enables mobile protection via an 105 # 0 disables it, 1 enables it fully, and 2 enables mobile protection via an
105 # external API. 106 # external API.
106 if (is_android) { 107 if (is_android) {
107 safe_browsing_mode = 2 108 safe_browsing_mode = 2
108 } else if (is_ios) { 109 } else if (is_ios) {
109 safe_browsing_mode = 0 110 safe_browsing_mode = 0
110 } else { 111 } else {
111 safe_browsing_mode = 1 112 safe_browsing_mode = 1
112 } 113 }
113 114
114 # Set to true make a build that disables activation of field trial tests 115 # Set to true make a build that disables activation of field trial tests
115 # specified in testing/variations/fieldtrial_testing_config_*.json. 116 # specified in testing/variations/fieldtrial_testing_config_*.json.
116 # Note: this setting is ignored if is_chrome_branded. 117 # Note: this setting is ignored if is_chrome_branded.
117 fieldtrial_testing_like_official_build = is_chrome_branded 118 fieldtrial_testing_like_official_build = is_chrome_branded
118 119
119 use_cups = (is_desktop_linux || is_mac) && !is_chromecast 120 use_cups = (is_desktop_linux || is_mac) && !is_chromecast && !is_headless
120 } 121 }
121 122
122 # Additional dependent variables ----------------------------------------------- 123 # Additional dependent variables -----------------------------------------------
123 124
124 # Set the version of CLD. 125 # Set the version of CLD.
125 # 1: (DEPRECATED! See http://crbug.com/528305 for info) Use only CLD1. 126 # 1: (DEPRECATED! See http://crbug.com/528305 for info) Use only CLD1.
126 # 2: Use only CLD2. 127 # 2: Use only CLD2.
127 cld_version = 2 128 cld_version = 2
128 129
129 # libudev usage. This currently only affects the content layer. 130 # libudev usage. This currently only affects the content layer.
130 use_udev = is_linux && !is_chromecast 131 use_udev = is_linux && !is_chromecast && !is_headless
131 132
132 # Enable the spell checker. 133 # Enable the spell checker.
133 enable_spellcheck = !is_ios 134 enable_spellcheck = !is_ios
134 135
135 # Use the operating system's spellchecker rather than hunspell. 136 # Use the operating system's spellchecker rather than hunspell.
136 use_browser_spellchecker = is_android || is_mac 137 use_browser_spellchecker = is_android || is_mac
137 138
138 # Enable basic printing support and UI. 139 # Enable basic printing support and UI.
139 enable_basic_printing = !is_chromeos && !is_chromecast && !is_ios 140 enable_basic_printing =
141 !is_chromeos && !is_chromecast && !is_ios && !is_headless
140 142
141 # Enable printing with print preview. It does not imply 143 # Enable printing with print preview. It does not imply
142 # enable_basic_printing. It's possible to build Chrome with preview only. 144 # enable_basic_printing. It's possible to build Chrome with preview only.
143 enable_print_preview = !is_android && !is_chromecast && !is_ios 145 enable_print_preview = !is_android && !is_chromecast && !is_ios && !is_headless
144 146
145 # Enables the use of CDMs in pepper plugins. 147 # Enables the use of CDMs in pepper plugins.
146 enable_pepper_cdms = 148 enable_pepper_cdms =
147 enable_plugins && (is_linux || is_mac || is_win) && !is_chromecast 149 enable_plugins && (is_linux || is_mac || is_win) && !is_chromecast
148 150
149 # The seccomp-bpf sandbox is only supported on three architectures 151 # The seccomp-bpf sandbox is only supported on three architectures
150 # currently. 152 # currently.
151 # Do not disable seccomp_bpf anywhere without talking to 153 # Do not disable seccomp_bpf anywhere without talking to
152 # security@chromium.org! 154 # security@chromium.org!
153 use_seccomp_bpf = (is_linux || is_android) && 155 use_seccomp_bpf = (is_linux || is_android) &&
154 (current_cpu == "x86" || current_cpu == "x64" || 156 (current_cpu == "x86" || current_cpu == "x64" ||
155 current_cpu == "arm" || current_cpu == "mipsel") 157 current_cpu == "arm" || current_cpu == "mipsel")
156 158
157 # Enable notifications everywhere except iOS. 159 # Enable notifications everywhere except iOS.
158 enable_notifications = !is_ios 160 enable_notifications = !is_ios
159 161
160 enable_web_speech = !is_android && !is_ios 162 enable_web_speech = !is_android && !is_ios
161 163
162 use_dbus = is_linux && !is_chromecast 164 use_dbus = is_linux && !is_chromecast && !is_headless
163 165
164 enable_extensions = !is_android && !is_ios 166 enable_extensions = !is_android && !is_ios
165 167
166 enable_task_manager = !is_ios && !is_android 168 enable_task_manager = !is_ios && !is_android
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
(...skipping 11 matching lines...) Expand all
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
OLDNEW
« no previous file with comments | « no previous file | build/config/headless_build.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698