[go: nahoru, domu]

blob: 2836133e782e045fe12e03d071d39a2d26700353 [file] [log] [blame]
brettw2bafab42014-11-27 18:36:171# This file is used by the GN meta build system to find the root of the source
2# tree and to set startup options. For documentation on the values set in this
3# file, run "gn help dotfile" at the command line.
bauerb@chromium.org96ea63d2013-07-30 10:17:074
dpranke1cfa5312016-11-22 03:07:475import("//build/dotfile_settings.gni")
Jamie Madill7ec071b2018-02-06 20:16:386import("//third_party/angle/dotfile_settings.gni")
dpranke1cfa5312016-11-22 03:07:477
bauerb@chromium.org96ea63d2013-07-30 10:17:078# The location of the build configuration file.
9buildconfig = "//build/config/BUILDCONFIG.gn"
10
brettw04a0e482017-01-25 21:29:5911# These arguments override the default values for items in a declare_args
12# block. "gn args" in turn can override these.
13#
14# In general the value for a build arg in the declare_args block should be the
15# default. In some cases, a DEPS-ed in project will want different defaults for
16# being built as part of Chrome vs. being built standalone. In this case, the
17# Chrome defaults should go here. There should be no overrides here for
18# values declared in the main Chrome repository.
brettwd8a46d92017-02-08 06:03:4519#
20# Important note for defining defaults: This file is executed before the
21# BUILDCONFIG.gn file. That file sets up the global variables like "is_ios".
22# This means that the default_args can not depend on the platform,
23# architecture, or other build parameters. If you really need that, the other
24# repo should define a flag that toggles on a behavior that implements the
25# additional logic required by Chrome to set the variables.
brettw04a0e482017-01-25 21:29:5926default_args = {
Sylvain Defresne994145512017-06-06 11:27:0227 # TODO(brettw) bug 684096: Chrome on iOS does not build v8, so "gn gen" prints
28 # a warning that "Build argument has no effect". When adding a v8 variable, it
29 # also needs to be defined to src/ios/BUILD.gn (respectively removed from both
30 # location when it is removed).
31
Adam Riced91b1db2019-10-02 06:22:1832 v8_extra_library_files = []
Adam Ricebf8191d02018-04-02 11:34:2833 v8_experimental_extra_library_files = []
brettw04a0e482017-01-25 21:29:5934 v8_enable_gdbjit = false
35 v8_imminent_deprecation_warnings = false
Jochen Eisinger8be7d37b2017-06-02 08:37:5636
37 # TODO(jochen): Remove this. http://crbug.com/v8/5830,
38 # http://crbug.com/728583.
39 v8_check_microtasks_scopes_consistency = false
Niels Möller0a5db002017-10-17 13:22:1640
41 # Don't include webrtc's builtin task queue implementation.
42 rtc_link_task_queue_impl = false
Karl Wibergf3b599b2017-11-05 21:35:0043
44 # Don't include the iLBC audio codec.
45 # TODO(bugs.webrtc.org/8396): Once WebRTC gets rid of its internal
46 # deps on codecs, we can remove this.
47 rtc_include_ilbc = false
Robert Sesek9c29eaa2017-12-11 19:47:1348
49 # Changes some setup for the Crashpad build to set them to build against
50 # Chromium's zlib, base, etc.
Scott Grahamec25b512017-12-20 05:40:4051 crashpad_dependencies = "chromium"
Jamie Madill178f84e2020-12-18 00:47:5852
53 # Override ANGLE's Vulkan dependencies.
54 angle_vulkan_headers_dir = "//third_party/vulkan-deps/vulkan-headers/src"
55 angle_vulkan_loader_dir = "//third_party/vulkan-deps/vulkan-loader/src"
56 angle_vulkan_tools_dir = "//third_party/vulkan-deps/vulkan-tools/src"
57 angle_vulkan_validation_layers_dir =
58 "//third_party/vulkan-deps/vulkan-validation-layers/src"
brettw04a0e482017-01-25 21:29:5959}
60
Erik Staab8a1acf42020-07-08 19:16:4561# These are the targets to skip header checking by default. The files in targets
62# matching these patterns (see "gn help label_pattern" for format) will not have
brettw2bafab42014-11-27 18:36:1763# their includes checked for proper dependencies when you run either
64# "gn check" or "gn gen --check".
Erik Staab8a1acf42020-07-08 19:16:4565no_check_targets = [
66 # //chrome/*, https://crbug.com/949535
67 "//chrome/browser/devtools:*", # 114 errors
Erik Staab8a1acf42020-07-08 19:16:4568 "//chrome/browser/media/router/discovery:*", # 26 errors
69 "//chrome/browser/media/router:*", # 225 errors
Erik Staab8a1acf42020-07-08 19:16:4570 "//chrome/browser/paint_preview:*", # 4 errors
71 "//chrome/browser/profiling_host:*", # 13 errors
72 "//chrome/browser/resources/chromeos/zip_archiver/cpp:*", # 2 errors
73 "//chrome/browser/safe_browsing/android:*", # 3 errors
74 "//chrome/browser/safe_browsing:*", # 85 errors
75 "//chrome/browser/safety_check/android:*", # 3 errors
Erik Staab8a1acf42020-07-08 19:16:4576 "//chrome/browser/storage_access_api:*", # 2 errors
Erik Staab8a1acf42020-07-08 19:16:4577 "//chrome/browser/touch_to_fill/android:*", # 8 errors
Erik Staab8a1acf42020-07-08 19:16:4578 "//chrome/browser/updates/announcement_notification:*", # 15 errors
79 "//chrome/browser/updates/internal:*", # 8 errors
80 "//chrome/browser/updates:*", # 21 errors
Erik Staab8a1acf42020-07-08 19:16:4581 "//chrome/install_static:*", # 4 errors
82 "//chrome/notification_helper:*", # 4 errors
Erik Staab8a1acf42020-07-08 19:16:4583 "//chrome/services/cups_proxy/public/cpp:*", # 2 errors
84 "//chrome/services/cups_proxy:*", # 6 errors
Erik Staab8a1acf42020-07-08 19:16:4585 "//chrome/services/ipp_parser:*", # 1 error
Erik Staab8a1acf42020-07-08 19:16:4586 "//chrome/services/removable_storage_writer:*", # 1 error
Erik Staab8a1acf42020-07-08 19:16:4587 "//chrome/services/util_win:*", # 1 error
Erik Staab8a1acf42020-07-08 19:16:4588 "//chrome/test/media_router:*", # 5 errors
89 "//chrome/test:*", # 2682 errors
brettwbc44c0a92015-02-20 22:30:3990
Erik Staab532f87d2020-07-08 23:49:0091 "//clank/third_party/gvr_shim:*", # 1 error
Erik Staab8a1acf42020-07-08 19:16:4592 "//extensions/browser/api/alarms:*", # 2 errors
93 "//extensions/browser/api/app_current_window_internal:*", # 3 errors
94 "//extensions/browser/api/app_runtime:*", # 3 errors
95 "//extensions/browser/api/app_window:*", # 5 errors
96 "//extensions/browser/api/audio:*", # 3 errors
97 "//extensions/browser/api/automation_internal:*", # 37 errors
98 "//extensions/browser/api/bluetooth_low_energy:*", # 22 errors
99 "//extensions/browser/api/bluetooth_socket:*", # 12 errors
100 "//extensions/browser/api/cast_channel:*", # 3 errors
101 "//extensions/browser/api/cec_private:*", # 4 errors
102 "//extensions/browser/api/clipboard:*", # 3 errors
Erik Staab8a1acf42020-07-08 19:16:45103 "//extensions/browser/api/declarative:*", # 20 errors
104 "//extensions/browser/api/declarative_content:*", # 2 errors
Erik Staab8a1acf42020-07-08 19:16:45105 "//extensions/browser/api/declarative_net_request:*", # 18 errors
106 "//extensions/browser/api/declarative_webrequest:*", # 29 errors
107 "//extensions/browser/api/diagnostics:*", # 2 errors
108 "//extensions/browser/api/display_source:*", # 7 errors
109 "//extensions/browser/api/dns:*", # 3 errors
110 "//extensions/browser/api/document_scan:*", # 2 errors
111 "//extensions/browser/api/feedback_private:*", # 2 errors
112 "//extensions/browser/api/file_handlers:*", # 3 errors
113 "//extensions/browser/api/file_system:*", # 1 error
114 "//extensions/browser/api/hid:*", # 12 errors
115 "//extensions/browser/api/idle:*", # 4 errors
116 "//extensions/browser/api/management:*", # 19 errors
117 "//extensions/browser/api/messaging:*", # 1 error
118 "//extensions/browser/api/metrics_private:*", # 3 errors
119 "//extensions/browser/api/mime_handler_private:*", # 1 error
Erik Staab8a1acf42020-07-08 19:16:45120 "//extensions/browser/api/networking_private:*", # 14 errors
121 "//extensions/browser/api/power:*", # 3 errors
122 "//extensions/browser/api/printer_provider:*", # 7 errors
123 "//extensions/browser/api/printer_provider_internal:*", # 3 errors
124 "//extensions/browser/api/runtime:*", # 6 errors
125 "//extensions/browser/api/serial:*", # 10 errors
126 "//extensions/browser/api/socket:*", # 11 errors
127 "//extensions/browser/api/sockets_tcp:*", # 6 errors
128 "//extensions/browser/api/sockets_tcp_server:*", # 8 errors
129 "//extensions/browser/api/sockets_udp:*", # 9 errors
130 "//extensions/browser/api/storage:*", # 9 errors
131 "//extensions/browser/api/system_cpu:*", # 1 error
132 "//extensions/browser/api/system_display:*", # 3 errors
133 "//extensions/browser/api/system_info:*", # 8 errors
134 "//extensions/browser/api/system_memory:*", # 1 error
135 "//extensions/browser/api/system_network:*", # 2 errors
136 "//extensions/browser/api/system_power_source:*", # 2 errors
137 "//extensions/browser/api/system_storage:*", # 6 errors
138 "//extensions/browser/api/test:*", # 1 error
139 "//extensions/browser/api/usb:*", # 12 errors
140 "//extensions/browser/api/virtual_keyboard:*", # 1 error
141 "//extensions/browser/api/virtual_keyboard_private:*", # 2 errors
142 "//extensions/browser/api/vpn_provider:*", # 13 errors
143 "//extensions/browser/api/web_request:*", # 37 errors
144 "//extensions/browser/api/webcam_private:*", # 8 errors
145 "//extensions/browser/api:*", # 7 errors
146 "//extensions/browser/updater:*", # 31 errors
147 "//extensions/browser/value_store:*", # 5 errors
148 "//extensions/browser:*", # 20 errors
149 "//extensions:*", # 75 errors
150 "//headless:*", # 167 errors
151 "//jingle:*", # 4 errors
152 "//native_client/src/trusted/service_runtime:*", # 2 errors
Erik Staab8a1acf42020-07-08 19:16:45153 "//ppapi/cpp/private:*", # 1 error
154 "//ppapi/host:*", # 1 error
155 "//ppapi/native_client/src/untrusted/pnacl_irt_shim:*", # 197 errors
156 "//ppapi/proxy:*", # 31 errors
157 "//ppapi/shared_impl:*", # 3 errors
158 "//ppapi/thunk:*", # 1071 errors
159 "//ppapi:*", # 3 errors
160 "//remoting/base/grpc_support:*", # 14 errors
161 "//remoting/base/grpc_test_support:*", # 1 error
162 "//remoting/base:*", # 6 errors
Erik Staab8a1acf42020-07-08 19:16:45163 "//remoting/client/display:*", # 55 errors
Erik Staab8a1acf42020-07-08 19:16:45164 "//remoting/client/jni:*", # 8 errors
Erik Staab8a1acf42020-07-08 19:16:45165 "//remoting/codec:*", # 32 errors
166 "//remoting/host/chromeos:*", # 10 errors
167 "//remoting/host/file_transfer:*", # 43 errors
168 "//remoting/host/input_monitor:*", # 3 errors
169 "//remoting/host/installer/mac:*", # 1 error
170 "//remoting/host/it2me:*", # 18 errors
171 "//remoting/host/linux:*", # 64 errors
172 "//remoting/host/mac:*", # 49 errors
173 "//remoting/host/native_messaging:*", # 3 errors
174 "//remoting/host/security_key:*", # 68 errors
175 "//remoting/host/setup:*", # 9 errors
176 "//remoting/host/win:*", # 43 errors
177 "//remoting/host:*", # 164 errors
178 "//remoting/ios/app/settings:*", # 6 errors
179 "//remoting/ios/app:*", # 9 errors
180 "//remoting/ios/audio:*", # 5 errors
181 "//remoting/ios/domain:*", # 2 errors
182 "//remoting/ios/facade:*", # 8 errors
183 "//remoting/ios/persistence:*", # 10 errors
184 "//remoting/ios/session:*", # 7 errors
185 "//remoting/ios:*", # 2 errors
186 "//remoting/protocol:*", # 142 errors
187 "//remoting/signaling:*", # 30 errors
188 "//remoting/test:*", # 20 errors
189 "//remoting:*", # 27 errors
190 "//sandbox/linux:*", # 13 errors
Erik Staab8a1acf42020-07-08 19:16:45191 "//sandbox/win:*", # 7 errors
Daniel Bratell5c1bccba2019-04-23 17:37:02192
Erik Staab8a1acf42020-07-08 19:16:45193 "//third_party/breakpad:*", # 34 errors
194 "//third_party/ced/*",
195 "//third_party/crashpad/crashpad/client:*", # 1 error
196 "//third_party/crashpad/crashpad/compat:*", # 2 errors
197 "//third_party/crashpad/crashpad/snapshot:*", # 1 error
198 "//third_party/crashpad/crashpad/test:*", # 2 errors
199 "//third_party/crashpad/crashpad/util:*", # 2 errors
200 "//third_party/dav1d:*", # 95 errors
201 "//third_party/ffmpeg:*", # 1 error
202 "//third_party/icu/*",
203 "//third_party/libvpx:*", # 164 errors
204 "//third_party/libwebp:*", # 80 errors, https://crbug.com/800762
205 "//third_party/openscreen/src/cast/common:*", # 4 errors
206 "//third_party/openscreen/src/cast/receiver:*", # 1 error
207 "//third_party/openscreen/src/cast/streaming:*", # 66 errors
208 "//third_party/openscreen/src/discovery:*", # 36 errors
209 "//third_party/openscreen/src/osp/impl/quic:*", # 16 errors
210 "//third_party/openscreen/src/osp/msgs:*", # 5 errors
211 "//third_party/openscreen/src/osp/public:*", # 1 error
212 "//third_party/openscreen/src/osp:*", # 13 errors
213 "//third_party/openscreen/src/util:*", # 29 errors
Erik Staab8a1acf42020-07-08 19:16:45214 "//third_party/pdfium/samples:*", # 1 error
215 "//third_party/pdfium/third_party:*", # 2 errors
216 "//third_party/pdfium:*", # 1 error
Devlin Cronin8f5ee7792018-08-21 18:32:34217
Erik Staab8a1acf42020-07-08 19:16:45218 # //v8/*, https://crbug.com/v8/7330
219 "//v8/src/inspector:*", # 20 errors
220 "//v8/test/cctest:*", # 26 errors
221 "//v8/test/unittests:*", # 11 errors
222 "//v8/test/wasm-api-tests:*", # 13 errors
223 "//v8/third_party/inspector_protocol:*", # 2 errors
224 "//v8/tools/debug_helper:*", # 9 errors
225 "//v8/tools/v8windbg:*", # 2 errors
226 "//v8:*", # 1871 errors
brettwe75311d2015-02-17 23:56:46227]
brettwed99f7b2015-04-07 00:22:50228
229# These are the list of GN files that run exec_script. This whitelist exists
230# to force additional review for new uses of exec_script, which is strongly
brettwd385ecf2016-04-19 22:53:23231# discouraged.
232#
brettwd385ecf2016-04-19 22:53:23233# PLEASE READ
234#
235# You should almost never need to add new exec_script calls. exec_script is
236# slow, especially on Windows, and can cause confusing effects. Although
237# individually each call isn't slow or necessarily very confusing, at the scale
238# of our repo things get out of hand quickly. By strongly pushing back on all
239# additions, we keep the build fast and clean. If you think you need to add a
240# new call, please consider:
241#
Wei-Yin Chen (陳威尹)fec2ace2018-08-10 23:31:24242# - Do not use a script to check for the existence of a file or directory to
brettwd385ecf2016-04-19 22:53:23243# enable a different mode. Instead, use GN build args to enable or disable
244# functionality and set options. An example is checking for a file in the
245# src-internal repo to see if the corresponding src-internal feature should
246# be enabled. There are several things that can go wrong with this:
247#
248# - It's mysterious what causes some things to happen. Although in many cases
249# such behavior can be conveniently automatic, GN optimizes for explicit
250# and obvious behavior so people can more easily diagnose problems.
251#
252# - The user can't enable a mode for one build and not another. With GN build
253# args, the user can choose the exact configuration of multiple builds
254# using one checkout. But implicitly basing flags on the state of the
255# checkout, this functionality is broken.
256#
257# - It's easy to get stale files. If for example the user edits the gclient
258# to stop checking out src-internal (or any other optional thing), it's
259# easy to end up with stale files still mysteriously triggering build
260# conditions that are no longer appropriate (yes, this happens in real
261# life).
262#
263# - Do not use a script to iterate files in a directory (glob):
264#
265# - This has the same "stale file" problem as the above discussion. Various
266# operations can leave untracked files in the source tree which can cause
267# surprising effects.
268#
269# - It becomes impossible to use "git grep" to find where a certain file is
270# referenced. This operation is very common and people really do get
271# confused when things aren't listed.
272#
273# - It's easy to screw up. One common case is a build-time script that packs
274# up a directory. The author notices that the script isn't re-run when the
275# directory is updated, so adds a glob so all the files are listed as
276# inputs. This seems to work great... until a file is deleted. When a
thakis3e861de2016-06-14 14:24:01277# file is deleted, all the inputs the glob lists will still be up to date
brettwd385ecf2016-04-19 22:53:23278# and no command-lines will have been changed. The action will not be
279# re-run and the build will be broken. It is possible to get this correct
280# using glob, and it's possible to mess it up without glob, but globs make
281# this situation much easier to create. if the build always lists the
282# files and passes them to a script, it will always be correct.
dgn470951712015-04-07 10:37:47283
dpranke1cfa5312016-11-22 03:07:47284exec_script_whitelist =
Jamie Madill7ec071b2018-02-06 20:16:38285 build_dotfile_settings.exec_script_whitelist +
286 angle_dotfile_settings.exec_script_whitelist +
287 [
dpranke1cfa5312016-11-22 03:07:47288 # Whitelist entries for //build should go into
289 # //build/dotfile_settings.gni instead, so that they can be shared
290 # with other repos. The entries in this list should be only for files
291 # in the Chromium repo outside of //build.
dpranke1cfa5312016-11-22 03:07:47292 "//build_overrides/build.gni",
dgn470951712015-04-07 10:37:47293
Peter Kotwiczf4f4cd62019-06-11 19:57:38294 "//chrome/android/webapk/shell_apk/prepare_upload_dir/BUILD.gn",
295
dpranke1cfa5312016-11-22 03:07:47296 # TODO(dgn): Layer violation but breaks the build otherwise, see
297 # https://crbug.com/474506.
298 "//clank/java/BUILD.gn",
299 "//clank/native/BUILD.gn",
brettw46134cb2016-09-02 23:53:18300
Nico Weber097f64c2018-10-23 17:48:02301 "//google_apis/BUILD.gn",
302 "//printing/BUILD.gn",
303
dpranke1cfa5312016-11-22 03:07:47304 "//remoting/host/installer/linux/BUILD.gn",
305 "//remoting/remoting_version.gni",
306 "//remoting/host/installer/win/generate_clsids.gni",
brettwde7b2652016-09-09 23:25:05307
dpranke1cfa5312016-11-22 03:07:47308 "//tools/grit/grit_rule.gni",
Andrew Grieve11c825d72020-01-03 00:51:33309 "//tools/gritsettings/BUILD.gn",
dpranke1cfa5312016-11-22 03:07:47310 ]