blob: 5f6c39fb4c980f6e02cadd5c8db420ef64f641fc [file] [log] [blame]
[email protected]f0e7ff882013-12-26 21:23:091# Copyright (c) 2013 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5# This is the root build file for GN. GN will start processing by loading this
6# file, and recursively load all dependencies until all dependencies are either
7# resolved or known not to exist (which will cause the build to fail). So if
8# you add a new build file, there must be some path of dependencies from this
9# file to your new one or GN won't know about it.
10
Yuke Liaoa2d10312020-09-15 22:19:2911import("//build/config/chromeos/ui_mode.gni")
dprankead249c72016-06-11 18:01:2212import("//build/config/compiler/compiler.gni")
rockot2f1326e2015-02-23 23:53:5113import("//build/config/features.gni")
aizatskyfc46a9f2015-10-09 21:20:0814import("//build/config/sanitizers/sanitizers.gni")
[email protected]378b4f02014-06-10 15:58:4515import("//build/config/ui.gni")
Andrew Grievefebea022020-08-07 17:17:5316import("//build/gn_logs.gni")
John Budorick7c8273b2019-04-25 15:27:4717import("//build/util/generate_wrapper.gni")
Tommy Steimele417e712020-01-30 14:07:5518import("//chrome/browser/buildflags.gni")
Jordan Bayles331c1b52019-12-23 17:56:2819import("//chrome/browser/media/router/features.gni")
Dirk Prankeccc0c362017-09-28 22:15:1120import("//components/nacl/features.gni")
Scott Violetc8240b02018-03-08 22:03:5921import("//device/vr/buildflags/buildflags.gni")
22import("//extensions/buildflags/buildflags.gni")
Sam McNally11dc0142018-11-23 01:11:0523import("//gpu/vulkan/features.gni")
Alexandre Courbot8ad2427d2017-08-25 14:04:5524import("//media/gpu/args.gni")
Sam McNally11dc0142018-11-23 01:11:0525import("//media/media_options.gni")
brettw2b112cd2016-10-12 19:35:3626import("//remoting/remoting_enable.gni")
Josip Sokcevic4d590cf2020-07-07 10:48:2327import("//third_party/closure_compiler/compile_js.gni")
Brian Sheedyc4740bf42020-07-08 02:28:3328import("//third_party/openh264/openh264_args.gni")
thakis3f7d4fc2016-06-10 18:47:5029import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
Peter Beverloo69948322017-07-28 19:01:5730import("//ui/base/ui_features.gni")
Elly Fong-Jonesb03817a2019-11-14 18:10:1231import("//ui/gl/features.gni")
kylechar50abf5a2016-11-29 16:03:0732import("//ui/ozone/ozone.gni")
Yang Guo04f22e32019-05-16 08:01:1733import("//v8/gni/snapshot_toolchain.gni")
machenbachd65ec5c2016-07-22 09:05:2334import("//v8/gni/v8.gni")
dprankee2ef3822015-02-24 21:42:1835
cjhopmanca675d3e2014-10-24 03:50:4536if (is_android) {
37 import("//build/config/android/config.gni")
38}
[email protected]378b4f02014-06-10 15:58:4539
brettwb84b29472014-10-22 22:58:4540declare_args() {
41 # A list of extra dependencies to add to the root target. This allows a
42 # checkout to add additional targets without explicitly changing any checked-
43 # in files.
44 root_extra_deps = []
45}
46
brucedawsonc8d6d652016-09-02 19:43:1847if (is_official_build) {
48 # An official (maximally optimized!) component (optimized for build times)
49 # build doesn't make sense and usually doesn't work.
50 assert(!is_component_build)
51}
52
Wez09fb3a932017-12-20 21:33:4653# This file defines the following two main targets:
dpranked62d8512015-03-02 03:06:0354#
Wez09fb3a932017-12-20 21:33:4655# "gn_all" is used to create explicit dependencies from the root BUILD.gn to
56# each top-level component that we wish to include when building everything via
57# "all". This is required since the set of targets built by "all" is determined
58# automatically based on reachability from the root BUILD.gn (for details, see
59# crbug.com/503241). Builders should typically use "all", or list targets
60# explicitly, rather than relying on "gn_all".
dprankeddc174902015-04-29 01:38:3561#
dprankeb6128d02015-05-01 16:40:3062# "gn_visibility": targets that are normally not visible to top-level targets,
dprankeef9c5e582015-11-15 23:22:0863# but are built anyway by "all". Since we don't want any such targets, we have
64# this placeholder to make sure hidden targets that aren't otherwise depended
65# on yet are accounted for.
dprankeff30e3d2015-02-24 06:52:3966
dprankee2ef3822015-02-24 21:42:1867group("gn_all") {
68 testonly = true
69
70 deps = [
dprankeb6128d02015-05-01 16:40:3071 ":gn_visibility",
Robert Liao38b1b4f2017-09-06 20:32:2472 "//base:base_perftests",
dprankee2ef3822015-02-24 21:42:1873 "//base:base_unittests",
Maciej Pawlowski4a3ac6852019-05-09 17:06:1474 "//base/util:base_util_unittests",
brettwa874dccb2015-08-28 23:59:1875 "//chrome/installer",
Sorin Jianu58a93adc2019-01-29 17:38:4876 "//chrome/updater",
Wez04eb259f2019-09-16 19:41:5977 "//components:components_unittests",
Vlad Tsyrklevich207f3272019-08-02 16:18:2678 "//components/gwp_asan:gwp_asan_unittests",
sheroukce1c7d72015-08-24 15:21:5979 "//net:net_unittests",
Wez3c761e62019-04-15 16:42:5380 "//services:services_unittests",
81 "//services/service_manager/public/cpp",
Sergey Ulanovdd606ed2017-07-13 00:44:2482 "//skia:skia_unittests",
brettwa874dccb2015-08-28 23:59:1883 "//sql:sql_unittests",
Wez3c761e62019-04-15 16:42:5384 "//third_party/flatbuffers:flatbuffers_unittests",
Andrew Grievea7f1ee902018-05-18 16:17:2285 "//tools/binary_size:binary_size_trybot_py",
ochangcc11d0e2016-04-26 19:58:2686 "//tools/ipc_fuzzer:ipc_fuzzer_all",
Wez3c761e62019-04-15 16:42:5387 "//tools/metrics:metrics_metadata",
Sergey Ulanovfbd2fea2017-07-14 01:01:3888 "//ui/base:ui_base_unittests",
Robert Liao2d9b6432020-03-04 19:56:4389 "//ui/color:color_unittests",
Wez3c761e62019-04-15 16:42:5390 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:4191 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:1892 ]
dpranke2a294622015-08-07 05:23:0193
Mirko Bonadei3de25fd2020-06-25 22:19:1494 if (!is_component_build) {
Brian Sheedyc4740bf42020-07-08 02:28:3395 deps += [ "//third_party/abseil-cpp:absl_tests" ]
Mirko Bonadei3de25fd2020-06-25 22:19:1496 }
97
sdefresne21832bf92016-03-30 22:01:0298 if (!is_android && !is_chromecast) {
99 deps += [
100 "//crypto:crypto_unittests",
101 "//google_apis/gcm:gcm_unit_tests",
102 ]
103 }
104
Mirko Bonadeif17649c2020-06-18 21:36:29105 if (enable_js_type_check) {
Christopher Lamef75ebfe2018-03-28 04:20:27106 deps += [ ":webui_closure_compile" ]
107 }
108
scottmg2f97ee122017-05-12 17:50:37109 if (!is_ios && !is_android && !is_chromecast && !is_fuchsia) {
sherouk53f0f1a2015-08-03 15:59:35110 deps += [
sherouk53f0f1a2015-08-03 15:59:35111 "//chrome",
Robert Liaof3e619e2020-03-02 21:17:55112 "//chrome/browser/ui/color:dump_colors",
sherouk53f0f1a2015-08-03 15:59:35113 "//chrome/test:browser_tests",
114 "//chrome/test:interactive_ui_tests",
115 "//chrome/test:sync_integration_tests",
sherouk53f0f1a2015-08-03 15:59:35116 "//chrome/test/chromedriver:chromedriver_unittests",
Charlie Harrison65c798902018-04-30 17:44:43117 "//components/subresource_filter/tools:subresource_filter_tools",
Samuel Huang577ef6c2018-03-13 18:19:34118 "//components/zucchini:zucchini",
119 "//components/zucchini:zucchini_unittests",
dprankedbdd9d82015-08-12 21:18:18120 "//gpu/gles2_conform_support:gles2_conform_test",
stevenjb604316362016-05-06 22:10:26121 "//gpu/khronos_glcts_support:khronos_glcts_test",
sherouk53f0f1a2015-08-03 15:59:35122 "//jingle:jingle_unittests",
sherouk53f0f1a2015-08-03 15:59:35123 "//net:hpack_example_generator",
sherouk53f0f1a2015-08-03 15:59:35124 "//ppapi:ppapi_unittests",
125 "//ppapi/examples/2d",
126 "//ppapi/examples/audio",
127 "//ppapi/examples/audio_input",
sherouk53f0f1a2015-08-03 15:59:35128 "//ppapi/examples/crxfs",
129 "//ppapi/examples/enumerate_devices",
130 "//ppapi/examples/file_chooser",
131 "//ppapi/examples/flash_topmost",
132 "//ppapi/examples/font",
133 "//ppapi/examples/gamepad",
134 "//ppapi/examples/gles2",
135 "//ppapi/examples/gles2_spinning_cube",
136 "//ppapi/examples/ime",
137 "//ppapi/examples/input",
138 "//ppapi/examples/media_stream_audio",
139 "//ppapi/examples/media_stream_video",
140 "//ppapi/examples/mouse_cursor",
141 "//ppapi/examples/mouse_lock",
142 "//ppapi/examples/printing",
143 "//ppapi/examples/scaling",
144 "//ppapi/examples/scripting",
145 "//ppapi/examples/stub",
146 "//ppapi/examples/threading",
147 "//ppapi/examples/url_loader",
148 "//ppapi/examples/video_capture",
149 "//ppapi/examples/video_decode",
sherouk53f0f1a2015-08-03 15:59:35150 "//ppapi/examples/video_encode",
151 "//printing:printing_unittests",
dan sinclairc99b8242018-08-01 20:09:36152 "//third_party/SPIRV-Tools/src:SPIRV-Tools",
Corentin Wallezd0f13af2018-08-07 16:43:28153 "//third_party/SPIRV-Tools/src/test/fuzzers",
pkotwicz558d5252015-10-19 21:09:55154 "//third_party/pdfium/samples:pdfium_test",
pkotwicz558d5252015-10-19 21:09:55155 "//tools/perf/clear_system_cache",
rbpotterd8ca34c2019-07-25 18:48:05156 "//tools/polymer:polymer_tools_python_unittests",
Adam Ettenberger35b103e72019-10-22 17:18:07157 "//ui/accessibility:accessibility_perftests",
pkotwicz558d5252015-10-19 21:09:55158 "//ui/accessibility:accessibility_unittests",
David Tseng8175fca2019-10-25 03:44:47159 "//ui/accessibility/extensions:extension_tests",
160 "//ui/accessibility/extensions:extensions",
pkotwicz558d5252015-10-19 21:09:55161 ]
162 }
163
Yuke Liaoa2d10312020-09-15 22:19:29164 if (chromeos_is_browser_only) {
165 deps += [ "//chrome/test:lacros_chrome_browsertests" ]
166 }
167
Sergey Ulanovfbd2fea2017-07-14 01:01:38168 if (!is_ios) {
169 deps += [
Wez57c96392017-12-05 22:19:05170 "//cc:cc_unittests",
171 "//components/policy:policy_templates",
Sergey Ulanov19240f762019-05-10 22:26:20172 "//components/ui_devtools/viz",
Mustafa Emre Acer52a809002019-06-27 20:41:28173 "//components/url_formatter/tools:format_url",
Sergey Ulanov19240f762019-05-10 22:26:20174 "//components/viz:viz_perftests",
175 "//components/viz:viz_unittests",
Wez57c96392017-12-05 22:19:05176 "//content/shell:content_shell",
177 "//content/test:content_browsertests",
178 "//content/test:content_perftests",
179 "//content/test:content_unittests",
Nathan Zabriskie92461a02020-02-06 20:44:27180 "//gpu:gpu_benchmark",
Wez57c96392017-12-05 22:19:05181 "//gpu:gpu_unittests",
Wez57c96392017-12-05 22:19:05182 "//ipc:ipc_tests",
Sergey Ulanov135ba082017-07-18 19:39:22183 "//media:media_unittests",
Wez57c96392017-12-05 22:19:05184 "//media/midi:midi_unittests",
185 "//media/mojo:media_mojo_unittests",
Sergey Ulanovfbd2fea2017-07-14 01:01:38186 "//mojo",
Oksana Zhuravlova1792d19f2018-02-22 19:13:31187 "//mojo:mojo_unittests",
Wez57c96392017-12-05 22:19:05188 "//net:net_perftests",
Sergey Ulanov6ab219c2019-05-11 00:42:20189 "//storage:storage_unittests",
Michael Spanga0d1ebc82019-02-13 17:45:04190 "//third_party/angle/src/tests:angle_end2end_tests",
191 "//third_party/angle/src/tests:angle_unittests",
Sergey Ulanov6ab219c2019-05-11 00:42:20192 "//third_party/blink/common:blink_common_unittests",
Kent Tamuraef54e402019-02-14 07:18:36193 "//third_party/blink/renderer/controller:blink_unittests",
Sergey Ulanov6ab219c2019-05-11 00:42:20194 "//third_party/blink/renderer/platform:blink_platform_unittests",
195 "//third_party/blink/renderer/platform/heap:blink_heap_unittests",
Blink Reformata30d4232018-04-07 15:31:06196 "//third_party/blink/renderer/platform/wtf:wtf_unittests",
Sergey Ulanov6ab219c2019-05-11 00:42:20197 "//tools/imagediff",
198 "//ui/display:display_unittests",
199 "//ui/events:events_unittests",
Sergey Ulanovfbd2fea2017-07-14 01:01:38200 "//ui/gl:gl_unittests",
Sergey Ulanov6ab219c2019-05-11 00:42:20201 "//ui/latency:latency_unittests",
Peter Kasting8d5c4d62019-09-20 00:16:09202 "//ui/native_theme:native_theme_unittests",
Sergey Ulanov6ab219c2019-05-11 00:42:20203 "//ui/touch_selection:ui_touch_selection_unittests",
Wez57c96392017-12-05 22:19:05204 "//url/ipc:url_ipc_unittests",
Sergey Ulanov6ab219c2019-05-11 00:42:20205 "//v8:gn_all",
Sergey Ulanovfbd2fea2017-07-14 01:01:38206 ]
207 }
208
Scott Violet31270992019-08-29 04:39:38209 if (is_win || (is_linux && !is_chromeos) || is_android) {
John Abd-El-Malek4a9ab592019-10-04 00:40:31210 deps += [
211 "//weblayer/shell:weblayer_shell",
212 "//weblayer/test:weblayer_browsertests",
Bo Liuc516a4c12020-04-12 12:35:18213 "//weblayer/test:weblayer_unittests",
John Abd-El-Malek4a9ab592019-10-04 00:40:31214 ]
Scott Violet68c6ccf2019-11-12 20:27:56215 if (is_android) {
216 deps += [ "//weblayer/browser/android/javatests:weblayer_instrumentation_test_apk" ]
217 }
John Abd-El-Malek002abf22019-09-18 06:32:39218 }
219
Wez12ce94a2018-03-27 03:42:25220 if (!is_ios && !is_android) {
Wez115d4312018-02-17 04:05:19221 deps += [
222 "//components/cronet:cronet_tests",
223 "//components/cronet:cronet_unittests",
Sadrul Habib Chowdhury0b46e18f2019-01-30 05:25:50224 "//components/viz/demo:viz_demo",
Wez115d4312018-02-17 04:05:19225 ]
226 }
227
Jordan Bayles331c1b52019-12-23 17:56:28228 if (enable_openscreen) {
229 deps += [ "//chrome/browser/media/router:openscreen_unittests" ]
230 }
231
scottmg2f97ee122017-05-12 17:50:37232 if (!is_ios && !is_fuchsia) {
pkotwicz558d5252015-10-19 21:09:55233 deps += [
stipc6de0f492016-06-01 20:05:03234 "//chrome/test:telemetry_perf_unittests",
pkotwicz558d5252015-10-19 21:09:55235 "//chrome/test:unit_tests",
236 "//components:components_browsertests",
pkotwicz558d5252015-10-19 21:09:55237 "//device:device_unittests",
varkha5aa18a02017-05-31 22:39:50238 "//google_apis/gcm:mcs_probe",
mcasasd2f53ea2016-06-24 19:24:27239 "//media/capture:capture_unittests",
miu45b848fe2015-11-26 01:23:29240 "//media/cast:cast_unittests",
ynovikov55e66c22017-02-16 15:45:37241 "//third_party/angle/src/tests:angle_white_box_tests",
nednguyenc42bf912016-01-27 01:39:28242 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35243 ]
scottmg2f97ee122017-05-12 17:50:37244 } else if (is_ios) {
Rohit Rao45623282019-11-15 17:59:31245 deps += [
246 "//ios:all",
247 "//third_party/crashpad/crashpad:crashpad_tests",
248 ]
Scott Graham677e79102017-08-15 20:07:37249 } else if (is_fuchsia) {
Scott Graham4411204b2018-10-03 19:46:26250 deps += [
251 ":d8_fuchsia",
Kevin Marshalld9141fe2019-01-31 18:22:52252 "//fuchsia:gn_all",
Nicolas Ouellet-Payeurc7a9d262019-05-14 01:00:25253 "//headless:headless_non_renderer",
Scott Graham4411204b2018-10-03 19:46:26254 ]
sherouk53f0f1a2015-08-03 15:59:35255 }
dprankee2ef3822015-02-24 21:42:18256
scottmg34fb7e52014-12-03 23:27:24257 deps += root_extra_deps
[email protected]fce5c3fe2014-04-10 21:13:05258
tfarina4aa9edc2015-10-26 22:14:02259 if (enable_extensions) {
thestig344fe3f2017-06-08 23:42:13260 deps += [
261 "//extensions:extensions_browsertests",
262 "//extensions:extensions_unittests",
263 "//extensions/shell:app_shell_unittests",
264 ]
Yuke Liao27ffccb2019-07-04 06:59:53265
266 # TODO(crbug.com/981112): This target is failing to compile consistently in
267 # coverage build, remove this condition when the bug is fixed.
268 if (!use_clang_coverage) {
269 deps += [ "//extensions/browser/api/declarative_net_request/filter_list_converter" ]
270 }
rockot2f1326e2015-02-23 23:53:51271 }
272
garykac3eddb5b2015-04-17 23:16:38273 if (enable_remoting) {
274 deps += [ "//remoting:remoting_all" ]
dprankece5eb832015-04-01 20:21:05275 }
276
dprankee2ef3822015-02-24 21:42:18277 if (toolkit_views) {
ellyjones41c21fe2016-06-09 17:10:19278 deps += [
279 "//ui/views:views_unittests",
Allen Bauer486d8872020-04-17 03:07:11280 "//ui/views/examples:views_examples",
Allen Bauer0678d772020-05-11 22:25:17281 "//ui/views/examples:views_examples_unittests",
Allen Bauer486d8872020-04-17 03:07:11282 "//ui/views/examples:views_examples_with_content",
ellyjones41c21fe2016-06-09 17:10:19283 ]
James Robinson060f2e32014-09-10 22:31:37284 }
285
jamescook4c02a0b2016-12-02 23:14:42286 if (use_aura) {
287 deps += [
Robert Liaoee8a6672019-08-15 21:02:03288 "//ui/aura:aura_demo",
mswda0133e62016-02-16 20:50:02289 "//ui/aura:aura_unittests",
mswda0133e62016-02-16 20:50:02290 "//ui/wm:wm_unittests",
291 ]
dprankee2ef3822015-02-24 21:42:18292 }
293
294 if (use_ozone) {
kylechar5c9a1fb62016-10-21 13:17:25295 deps += [
296 "//ui/ozone",
297 "//ui/ozone:ozone_unittests",
Sergey Ulanov58afcdc2018-06-23 22:48:20298 "//ui/ozone/demo",
299 "//ui/ozone/gl:ozone_gl_unittests",
kylechar5c9a1fb62016-10-21 13:17:25300 ]
Wez57c96392017-12-05 22:19:05301
Elliot Glayshera3ad4ce2017-12-08 20:37:29302 if (ozone_platform_x11) {
303 deps += [ "//ui/ozone:ozone_x11_unittests" ]
304 }
[email protected]a306aaa2014-05-24 13:21:50305 }
306
thomasandersonaf830f3a2016-12-07 04:52:02307 if (use_x11 || ozone_platform_x11) {
Maksim Sisova4d1cfbe2020-06-16 07:58:37308 deps += [ "//ui/platform_window/x11:x11_unittests" ]
thomasandersonaf830f3a2016-12-07 04:52:02309 }
310
Roger Tawaf761bb62018-10-09 20:19:27311 if (is_win) {
312 deps += [
313 "//chrome/credential_provider",
314 "//chrome/credential_provider/test:gcp_unittests",
315 ]
316 }
317
Nicolas Ouellet-Payeur6da29fe2019-06-12 17:47:45318 if (is_win && (target_cpu == "x86" || target_cpu == "x64")) {
319 deps += [ "//chrome/browser/browser_switcher/bho:browser_switcher_dlls" ]
320 }
321
Sean McAllisterdeaa7402020-07-31 04:42:54322 if (is_win || is_linux || is_chromeos) {
Nicolas Ouellet-payeur0d23b5cf2018-10-19 14:53:07323 deps += [
324 "//tools/traffic_annotation/auditor:traffic_annotation_auditor",
325 "//tools/traffic_annotation/auditor:traffic_annotation_auditor_unittests",
326 ]
327 }
328
thakisdc11faf52017-04-25 21:49:42329 if (is_mac) {
330 deps += [ "//chrome/installer/gcapi_mac:gcapi_example" ]
331 }
332
Adenilson Cavalcanti3d10c9b2020-06-03 09:32:10333 # Allow building md5sum tool for other OSes (android is added below).
334 # For Windows, see: crbug.com/1090428.
335 # TODO(cavalcantii): move it out of 'android' folder.
336 if (!is_win) {
337 deps += [ "//tools/android/md5sum" ]
338 }
339
[email protected]5a8d5162014-04-12 01:19:16340 if (is_android) {
[email protected]26046b52014-07-16 00:11:03341 deps += [
pkotwicze2dae8b2015-11-03 20:12:55342 "//base:base_junit_tests",
Eric Stevensonc3c269a32017-08-02 21:40:06343 "//base/android/jni_generator:jni_generator_tests",
dpranke244f973d62015-11-20 05:38:10344 "//base/android/linker:chromium_android_linker",
Peter Wenabe92ed72020-09-17 21:37:32345 "//build/android:android_lint_test",
cjhopman3d85c6d2014-11-18 03:39:38346 "//build/android/gyp/test:hello_world",
agrievea350dbdb2017-07-05 15:27:17347 "//build/android/stacktrace:java_deobfuscate",
Sky Malice43955522020-01-07 19:55:56348 "//build/config/android/test/proto:test_build_protos",
Andrew Grieveb77fea72020-07-03 18:01:01349 "//chrome/android/monochrome:monochrome_apk_checker",
Egor Paskofd5c84d62018-04-11 20:20:11350 "//chrome/android/webapk/shell_apk:maps_go_webapk",
pkotwicz2dd67962016-05-10 00:21:08351 "//chrome/android/webapk/shell_apk:webapk",
Peter Kotwiczf4f4cd62019-06-11 19:57:38352 "//chrome/android/webapk/shell_apk/prepare_upload_dir:prepare_webapk_shell_upload_dir",
danakjcb3fb4c02019-06-28 17:43:00353 "//chrome/test:android_browsertests",
Tao Bai59eb7dd2020-04-17 04:16:14354 "//components:components_junit_tests",
pkotwicze2dae8b2015-11-03 20:12:55355 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45356 "//content/shell/android:content_shell_apk",
mcasaseddfbeb2017-05-10 04:47:49357 "//device:device_junit_tests",
markdittmer6e70beb82016-05-02 05:40:47358 "//media/gpu:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55359 "//net/android:net_junit_tests",
Reilly Grant20121a112020-07-28 02:10:07360 "//services:services_junit_tests",
jbudorick5ef42902016-04-07 04:17:11361 "//testing/android/junit:junit_unit_tests",
John Budorick3fa43152017-06-12 19:13:20362 "//third_party/catapult/devil",
pkotwicz8adff4e2015-12-17 21:55:45363 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10364 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49365 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34366 "//tools/android:push_apps_to_background",
jbudorickdfc01f62016-06-01 15:42:12367 "//tools/android/audio_focus_grabber:audio_focus_grabber_apk",
368 "//tools/android/customtabs_benchmark:customtabs_benchmark_apk",
Peter Kotwiczb0778692020-07-22 05:02:36369 "//tools/android/errorprone_plugin:errorprone_plugin_tests",
dgn28050da2015-10-19 10:16:43370 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
newt9e226032016-01-26 01:30:15371 "//ui/android:ui_junit_tests",
Clark DuVallb68758be2019-11-04 19:32:06372 "//weblayer/public/java:client_aar",
David Staessens96d56fb2019-10-23 07:35:05373 "//weblayer/shell/android:weblayer_shell_apk",
Tim Volodine41aca502019-12-11 17:55:55374 "//weblayer/shell/android:weblayer_support_apk",
dprankee2ef3822015-02-24 21:42:18375 ]
376 deps -= [
rockot9c67e5f2015-03-12 20:01:21377 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18378 "//url:url_unittests",
[email protected]26046b52014-07-16 00:11:03379 ]
380
pkotwicz92e2e2312015-12-15 22:29:46381 if (!is_component_build) {
382 deps += [
John Budorickbc3571aa2019-04-25 02:20:06383 "//components/cronet/android:cronet_package_android",
jbudorickdfc01f62016-06-01 15:42:12384 "//components/cronet/android:cronet_perf_test_apk",
pkotwicz92e2e2312015-12-15 22:29:46385 "//components/cronet/android:cronet_sample_apk",
386 "//components/cronet/android:cronet_sample_test_apk",
pkotwicz92e2e2312015-12-15 22:29:46387 "//components/cronet/android:cronet_test_instrumentation_apk",
Wez3042f15a2018-02-24 01:05:49388 "//components/cronet/android:cronet_unittests_android",
pkotwicz92e2e2312015-12-15 22:29:46389 ]
390 }
391
pkotwicz061c5a42015-09-30 02:16:54392 if (!is_chromecast) {
393 deps += [
Robbie McElrath0b2663c2019-12-05 20:49:06394 "//android_webview:empty_group",
agrieveb08e2f5b2015-12-29 01:17:30395 "//android_webview/test",
mikecasecb1b5062016-07-01 20:53:44396 "//android_webview/tools/automated_ui_tests:webview_ui_test_app",
mikecase49971fc2016-03-21 21:18:05397 "//android_webview/tools/system_webview_shell",
pkotwicze2dae8b2015-11-03 20:12:55398 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54399 "//chrome/android:chrome_public_apk",
smaierd50624e2016-08-05 14:21:10400 "//chrome/android:chrome_public_test_apk",
Peter E Conne4f9a4f2020-04-14 15:43:20401 "//chrome/browser/android/examples/custom_tabs_client:custom_tabs_client_example_apk",
Theresa Wellington565178d2020-04-03 20:43:51402 "//chrome/browser/android/examples/partner_browser_customizations_provider:partner_browser_customizations_example_apk",
pkotwicz061c5a42015-09-30 02:16:54403 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b42015-12-28 20:23:11404 "//content/shell/android:content_shell_test_apk",
pkotwicz061c5a42015-09-30 02:16:54405 ]
406 }
407
dgnd1e190d2017-03-17 13:34:49408 if (enable_chrome_android_internal) {
brettwf9427f92016-05-05 23:18:55409 deps += [ "//clank" ]
cjhopmanca675d3e2014-10-24 03:50:45410 }
dprankedb5527d72015-03-08 04:22:47411 }
412
David 'Digit' Turner799d2122018-04-18 08:10:57413 # NOTE: The following should really be 'is_android', but the fuzzing build
414 # seems currently broken for this platform at the moment, and the
415 # corresponding code build and works on Linux unmodified.
416 # See instructions in the corresponding BUILD.gn.
Sean McAllisterdeaa7402020-07-31 04:42:54417 if (is_linux || is_chromeos) {
David 'Digit' Turner799d2122018-04-18 08:10:57418 deps +=
419 [ "//third_party/android_crazy_linker:android_crazy_linker_zip_fuzzer" ]
420 }
421
Anand K. Mistry5cd170e2018-11-06 00:25:21422 if (is_linux || is_chromeos) {
423 # This is only used by ChromeOS, but we want maximal fuzzer coverage, so
424 # run it under linux too.
425 deps += [
426 "//third_party/minizip:minizip_compress_fuzzer",
427 "//third_party/minizip:minizip_uncompress_fuzzer",
428 ]
429 }
430
Sean McAllisterdeaa7402020-07-31 04:42:54431 if (is_linux || is_chromeos || is_android) {
dprankefd1813272015-04-13 23:56:00432 deps += [
Mark Mentovaiebb9ddd62017-09-25 17:24:41433 "//third_party/breakpad:breakpad_unittests",
434 "//third_party/breakpad:core-2-minidump",
435 "//third_party/breakpad:generate_test_dump",
436 "//third_party/breakpad:minidump-2-core",
Benoit Lizee34d38a2018-06-18 09:19:02437 "//tools/dump_process_memory:dump_process",
dprankefd1813272015-04-13 23:56:00438 ]
439 }
440
dpranke6293d252015-04-14 19:12:00441 if (is_chromeos) {
442 deps += [
James Cookf8a2bf72017-10-16 18:51:39443 "//ash:ash_unittests",
Jiaquan He68b28e22018-06-12 06:58:09444 "//ash/app_list:app_list_demo",
445 "//ash/app_list:app_list_unittests",
Darren Shen50e14952019-05-14 03:40:43446 "//ash/keyboard/ui:keyboard_unittests",
Ben Pastene834e39882020-04-16 17:39:19447 "//chrome/browser/metrics/perf:profile_provider_unittest",
G. Silvad21fb1542019-03-15 02:17:33448 "//chrome/test:usage_time_limit_unittests",
dpranke6293d252015-04-14 19:12:00449 "//chromeos:chromeos_unittests",
khorimoto4c539952016-12-04 02:37:11450 "//chromeos/components:chromeos_components_unittests",
James Hawkins813085e2018-03-30 18:56:41451 "//chromeos/components/proximity_auth:proximity_auth_unittests",
jamescook4c02a0b2016-12-02 23:14:42452 "//components/session_manager/core",
dpranke6293d252015-04-14 19:12:00453 "//ui/chromeos:ui_chromeos_unittests",
454 ]
455 }
456
dprankefd1813272015-04-13 23:56:00457 if (is_chromeos || is_mac || is_win) {
458 deps += [
459 "//rlz:rlz_id",
460 "//rlz:rlz_lib",
461 "//rlz:rlz_unittests",
462 ]
463 }
464
Sean McAllisterdeaa7402020-07-31 04:42:54465 if (is_linux || is_chromeos) {
dprankedb5527d72015-03-08 04:22:47466 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06467 deps += [
dpranke2bc89212015-11-18 00:24:43468 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47469 "//net:disk_cache_memory_test",
dprankedb5527d72015-03-08 04:22:47470 "//net:quic_client",
471 "//net:quic_server",
472 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18473 "//sandbox/linux:sandbox_linux_unittests",
Patrik Höglundd9dfb672018-02-19 11:55:36474 "//testing:empty_main",
hiroshigee6d374c2015-02-24 07:54:06475 ]
dnicoara8c6aa8e2015-03-11 23:20:32476
mbjorgea12e5a52016-05-31 22:15:17477 if (use_dbus) {
478 deps += [
479 "//dbus:dbus_test_server",
480 "//dbus:dbus_unittests",
481 ]
482 }
483
dpranke2bc89212015-11-18 00:24:43484 if (is_chrome_branded && is_official_build) {
485 # TODO(dpranke): add the linux_dump_symbols flag?
486 deps += [ "//chrome:linux_symbols" ]
487 }
dprankedb5527d72015-03-08 04:22:47488 }
489
sherouke1859f92015-08-05 10:19:10490 if (is_ios || is_win || (is_linux && !is_chromeos)) {
491 deps += [
492 "//base:base_i18n_perftests",
sherouk710734d2015-09-02 19:02:58493 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10494 ]
495 }
496
Alexis Hetu56d21552018-08-10 19:22:41497 if ((is_win || is_mac || is_linux || is_chromeos || is_fuchsia) &&
sugoia1b7b922016-12-13 12:52:49498 (target_cpu == "x86" || target_cpu == "x64")) {
sugoiabe91892016-09-20 12:53:51499 deps += [ "//third_party/swiftshader" ]
500 }
501
thakis507c15c2016-06-01 00:26:01502 # TODO(GYP): Figure out which of these should (and can) build
503 # for chromeos/ios.
scottmg2f97ee122017-05-12 17:50:37504 if (!is_chromeos && !is_ios && !is_fuchsia) {
tfarina9e7cf702015-02-23 21:13:44505 deps += [
dprankedb5527d72015-03-08 04:22:47506 "//base:build_utf8_validator_tables",
dpranke244f973d62015-11-20 05:38:10507 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47508 "//cc:cc_perftests",
dprankedb5527d72015-03-08 04:22:47509 "//components:components_perftests",
dprankedb5527d72015-03-08 04:22:47510 "//device:device_unittests",
511 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47512 "//gin:gin_unittests",
Antoine Labourc6ade252017-10-19 01:01:16513 "//gpu:command_buffer_perftests",
Takuto Ikutaf5333252019-11-06 16:07:08514 "//gpu:gl_tests",
dpranke244f973d62015-11-20 05:38:10515 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47516 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47517 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00518 "//net:dump_cache",
dprankefd1813272015-04-13 23:56:00519 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47520 "//ui/compositor:compositor_unittests",
521 ]
522
agrieve473155b42015-12-28 20:23:11523 if (!is_android) {
524 deps += [
525 "//chrome/test:load_library_perf_tests",
526 "//chrome/test:sync_performance_tests",
John Chen1a0f3672020-02-14 16:20:29527 "//chrome/test/chromedriver:chromedriver",
agrieve473155b42015-12-28 20:23:11528 "//courgette:courgette",
529 "//courgette:courgette_fuzz",
530 "//courgette:courgette_minimal_tool",
531 "//courgette:courgette_unittests",
stevenjb7b6fd642016-05-18 18:15:30532 "//media/cast:generate_barcode_video",
533 "//media/cast:generate_timecode_audio",
agrieve473155b42015-12-28 20:23:11534 "//net:crash_cache",
agrieve473155b42015-12-28 20:23:11535 "//net:dns_fuzz_stub",
Nico Weber2d5aa49bc2020-01-28 20:59:42536 "//net:net_watcher", # TODO(GYP): This should be conditional on
537 # use_v8_in_net
agrieve473155b42015-12-28 20:23:11538 "//net:run_testserver",
539 "//net:stress_cache",
540 "//net:tld_cleanup",
541 "//ppapi:pepper_hash_for_uma",
542 "//ppapi:ppapi_perftests",
agrieve473155b42015-12-28 20:23:11543 "//third_party/leveldatabase:env_chromium_unittests",
544 "//third_party/libaddressinput:libaddressinput_unittests",
545 ]
546 }
dpranke7e19b472015-11-13 00:49:33547
Nico Weber38598902020-03-12 12:38:22548 if (is_android) {
John Chend03c396a2020-02-21 23:33:08549 deps += [ "//chrome/test/chromedriver:chromedriver($host_toolchain)" ]
550 }
551
jamescookfbbf9112016-06-14 16:24:49552 if (enable_extensions) {
Michael Giuffrida8ca5b932019-08-08 15:43:12553 deps += [ "//extensions/shell:app_shell" ]
Michael Giuffrida4b0cdbb32018-03-16 19:13:15554 if (is_desktop_linux && is_official_build) {
555 deps += [ "//extensions/shell:app_shell_linux_symbols" ]
556 }
jamescookfbbf9112016-06-14 16:24:49557 }
558
dprankedb5527d72015-03-08 04:22:47559 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13560 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43561
Sean McAllisterdeaa7402020-07-31 04:42:54562 if (is_linux || is_chromeos) {
dpranke2bc89212015-11-18 00:24:43563 # TODO(dpranke): Figure out what platforms should actually have this.
milko.leporis3de038d2016-08-18 09:59:37564 deps += [ "//components/nacl/loader:nacl_helper" ]
565
566 if (enable_nacl_nonsfi) {
567 deps += [
568 "//components/nacl/loader:helper_nonsfi",
569 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
570 ]
571 }
dpranke2bc89212015-11-18 00:24:43572 }
dprankedb5527d72015-03-08 04:22:47573 }
574
xhwangfa2d9d472015-12-18 23:31:18575 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10576 deps += [ "//media:ffmpeg_regression_tests" ]
577 }
dprankefd1813272015-04-13 23:56:00578 }
579
Fabrice de Gans-Riberid3ccfd32019-07-30 02:36:05580 if (is_fuchsia) {
581 deps += [ "//chrome/test/chromedriver:chromedriver($host_toolchain)" ]
582 }
583
agrieve473155b42015-12-28 20:23:11584 if (is_android || (is_linux && !is_chromeos)) {
dprankefd1813272015-04-13 23:56:00585 deps += [
dprankefd1813272015-04-13 23:56:00586 "//components/network_hints/browser",
Nico Weber73db2f532020-04-21 19:40:18587 "//content/public/app",
Oksana Zhuravlova32f0a132018-02-27 00:12:55588 "//mojo:mojo_perftests",
rockot734fb662016-10-15 16:41:30589 "//services/service_manager/public/cpp",
dprankefd1813272015-04-13 23:56:00590 "//testing/gmock:gmock_main",
Mark Mentovaiebb9ddd62017-09-25 17:24:41591 "//third_party/breakpad:dump_syms($host_toolchain)",
592 "//third_party/breakpad:microdump_stackwalk($host_toolchain)",
593 "//third_party/breakpad:minidump_dump($host_toolchain)",
594 "//third_party/breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00595 ]
596
agrieve473155b42015-12-28 20:23:11597 if (!is_android) {
598 deps += [
agrieve473155b42015-12-28 20:23:11599 "//chrome/test:chrome_app_unittests",
brettwf9427f92016-05-05 23:18:55600 "//gpu/khronos_glcts_support:khronos_glcts_test",
agrieve473155b42015-12-28 20:23:11601 "//media/cast:cast_benchmarks",
602 "//media/cast:tap_proxy",
603 "//skia:filter_fuzz_stub",
604 "//skia:image_operations_bench",
agrieve473155b42015-12-28 20:23:11605 "//ui/snapshot:snapshot_unittests",
agrieve473155b42015-12-28 20:23:11606 ]
dprankefd1813272015-04-13 23:56:00607
agrieve473155b42015-12-28 20:23:11608 if (!is_debug && !is_component_build) {
609 deps += [ "//chrome/tools/service_discovery_sniffer" ]
610 }
dprankefd1813272015-04-13 23:56:00611 }
612
dprankedb5527d72015-03-08 04:22:47613 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44614 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59615 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44616 }
dprankedb5527d72015-03-08 04:22:47617 }
618 }
619
620 if (is_mac) {
621 deps += [
Mark Mentovaiebb9ddd62017-09-25 17:24:41622 "//third_party/breakpad:crash_inspector",
623 "//third_party/breakpad:dump_syms",
Alexander Surkove8851ed2020-09-03 21:03:24624
625 # The following are accessibility API tools.
Alexander Surkov836d76c2020-09-24 19:37:17626 "//tools/accessibility/inspect:ax_dump_events",
Alexander Surkove8851ed2020-09-03 21:03:24627 "//tools/accessibility/inspect:ax_dump_tree",
tfarina9e7cf702015-02-23 21:13:44628 ]
dpranke43760592014-11-08 02:59:57629 deps -= [
brettw011138d2015-10-21 03:05:38630 # Mojo in GN contains some things which are never compiled in GYP on Mac,
631 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10632 "//mojo",
dprankecf8465db72014-11-10 23:51:22633 ]
dprankefd1813272015-04-13 23:56:00634 }
635
636 if (is_win) {
637 deps += [
638 "//base:pe_image_test",
John Budorickeee513d2019-11-08 00:38:52639 "//chrome/chrome_cleaner",
Patrick Monette0196be22019-05-10 03:33:15640 "//chrome/chrome_elf:chrome_elf_unittests",
641 "//chrome/chrome_elf:dll_hash_main",
S. Ganeshf1734082018-05-23 03:34:07642 "//chrome/elevation_service:elevation_service_unittests",
anantaf2e54a92016-05-28 00:39:16643 "//chrome/install_static:install_static_unittests",
Xi Chengec65b3b2018-02-02 20:42:02644 "//chrome/installer/gcapi",
grt734e87b2015-07-06 19:36:43645 "//chrome/installer/setup:setup_unittests",
Xi Chengd47af342018-04-24 02:36:33646 "//chrome/notification_helper:notification_helper_unittests",
Cliff Smolinsky56ac67b2019-05-08 14:20:36647 "//chrome/test:delayloads_unittests",
pastarmovj02d5cc992016-12-05 17:55:24648 "//cloud_print:cloud_print_unittests",
dprankefd1813272015-04-13 23:56:00649 "//components/wifi:wifi_test",
Samuel Huang577ef6c2018-03-13 18:19:34650 "//components/zucchini",
dprankefd1813272015-04-13 23:56:00651 "//net:quic_client",
652 "//net:quic_server",
653 "//sandbox/win:pocdll",
654 "//sandbox/win:sandbox_poc",
655 "//sandbox/win:sbox_integration_tests",
656 "//sandbox/win:sbox_unittests",
657 "//sandbox/win:sbox_validation_tests",
658 "//testing/gtest:gtest_main",
ajwongbf193272017-03-16 00:00:44659 "//third_party/tcmalloc:addr2line-pdb",
Xi Chengec65b3b2018-02-02 20:42:02660
661 # The following two are accessibility API debugging tools.
662 "//tools/accessibility/inspect:ax_dump_events",
663 "//tools/accessibility/inspect:ax_dump_tree",
robliaofd54b5c2017-01-13 00:41:30664 "//tools/win/chromeexts:chromeexts",
dprankefd1813272015-04-13 23:56:00665 ]
fdorayfb048bff2016-04-28 22:07:36666
Nico Weber300365f2018-02-23 20:45:04667 # TODO(thakis): Enable this in cross builds, https://crbug.com/799827
668 if (!(is_component_build && is_debug && target_cpu == "x86") &&
669 host_os == "win") {
Mike Meadeaf555182018-03-21 23:26:20670 deps += [ "//chrome/test/mini_installer:mini_installer_tests" ]
fdorayfb048bff2016-04-28 22:07:36671 }
scottmg6ea9ff3e2017-05-19 00:08:16672 } else if (!is_android && !is_ios && !is_fuchsia) {
Mark Mentovaiebb9ddd62017-09-25 17:24:41673 deps += [ "//third_party/breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34674 }
rsesek985bd812016-04-26 21:06:15675
slance9d62f2015-11-04 01:15:01676 if (is_chromecast) {
Sergey Ulanov07406542019-12-18 00:09:43677 deps += [ "//chromecast:cast_test_lists" ]
678
679 if (!is_fuchsia) {
680 deps += [ "//chromecast:cast_shell" ]
681 }
Randy Rossi2caf0d82019-04-15 17:17:04682 if (enable_extensions && use_aura) {
Randy Rossie1441e32020-03-27 18:17:55683 deps += [ "//chrome/browser/resources/chromeos/accessibility:build" ]
Randy Rossi2caf0d82019-04-15 17:17:04684 }
slance9d62f2015-11-04 01:15:01685 }
miu45b848fe2015-11-26 01:23:29686
Joshua Peraza145cc932018-03-30 23:18:41687 if (is_mac || is_win || is_android || (is_linux && !is_chromeos)) {
rsesek985bd812016-04-26 21:06:15688 deps += [
Mark Mentovai1782adb2017-11-08 05:11:27689 "//third_party/crashpad/crashpad:crashpad_tests",
rsesek985bd812016-04-26 21:06:15690 "//third_party/crashpad/crashpad/handler:crashpad_handler",
691 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
692 ]
693 }
694
hbos17a7b4a22015-12-07 10:49:45695 if (use_openh264) {
696 deps += [
697 "//third_party/openh264:common",
698 "//third_party/openh264:encoder",
699 "//third_party/openh264:processing",
700 ]
701 }
dpranke2a294622015-08-07 05:23:01702
Peter Beverloo69948322017-07-28 19:01:57703 if (enable_message_center) {
704 deps += [ "//ui/message_center:message_center_unittests" ]
705 }
706
scottmg2f97ee122017-05-12 17:50:37707 if (!is_android && !is_ios && !is_fuchsia) {
scheib35dc9202016-04-26 22:35:43708 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
709 }
710
Sean McAllisterdeaa7402020-07-31 04:42:54711 if (is_win || is_linux || is_chromeos) {
Xiaohan Wang5e2c87a2020-03-27 20:05:13712 deps += [ "//mojo" ]
sky97b65592015-11-02 20:08:25713 }
714
Sean McAllisterdeaa7402020-07-31 04:42:54715 if (is_mac || is_linux || is_chromeos || is_android || is_fuchsia) {
Oystein Eftevaaga9439b922018-01-08 19:30:14716 deps += [ "//third_party/perfetto:all" ]
717 }
718
Sean McAllisterdeaa7402020-07-31 04:42:54719 if (is_win || is_mac || is_linux || is_chromeos) {
Victor Costanaff027744a32018-11-19 21:05:32720 deps += [ "//third_party/sqlite:sqlite_shell" ]
721 }
722
stevenjb7b6fd642016-05-18 18:15:30723 if (is_linux && !is_chromeos && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47724 # TODO(GYP): Figure out if any of these should be in gn_all
725 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45726 deps += [
dprankedb5527d72015-03-08 04:22:47727 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47728 "//chrome/tools/convert_dict",
729 "//components/constrained_window:unit_tests",
dprankedb5527d72015-03-08 04:22:47730 "//components/metrics:serialization",
dprankedb5527d72015-03-08 04:22:47731 "//components/rappor:unit_tests",
Colin Blundell932b43742018-03-13 14:51:25732 "//components/services/filesystem:filesystem_service_unittests",
dprankedb5527d72015-03-08 04:22:47733 "//components/sessions:unit_tests",
734 "//media/blink:media_blink_unittests",
stevenjb7b6fd642016-05-18 18:15:30735 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47736 "//storage/browser:dump_file_system",
737 "//third_party/angle:libANGLE",
738 "//third_party/angle:libEGL",
739 "//third_party/angle:libGLESv2",
pwnallcfb346f12017-03-02 22:01:37740 "//third_party/leveldatabase:leveldb_test_targets",
dprankedb5527d72015-03-08 04:22:47741 "//third_party/libjpeg_turbo:simd",
dprankedb5527d72015-03-08 04:22:47742 "//third_party/opus:opus_compare",
743 "//third_party/opus:opus_demo",
dpranke244f973d62015-11-20 05:38:10744 "//third_party/opus:test_opus_api",
dprankedb5527d72015-03-08 04:22:47745 "//third_party/opus:test_opus_decode",
746 "//third_party/opus:test_opus_encode",
dprankedb5527d72015-03-08 04:22:47747 "//third_party/opus:test_opus_padding",
dprankedb5527d72015-03-08 04:22:47748 "//ui/display/types",
749 "//ui/shell_dialogs:shell_dialogs_unittests",
dprankedb5527d72015-03-08 04:22:47750 ]
dprankeb0713542015-07-31 21:07:21751
ossy.szegedd584dd72016-11-21 11:36:18752 if (enable_nacl) {
753 deps += [ "//native_client/src/trusted/debug_stub:gdb_rsp_unittest" ]
754 }
755
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16756 if (target_cpu == "x86" || target_cpu == "x64") {
agrieve473155b42015-12-28 20:23:11757 if (!is_android) {
758 deps += [ "//chrome/test:load_library_perf_tests" ]
759 }
Dirk Pranke4dabe802017-11-02 07:18:55760 if (enable_nacl) {
761 deps += [ "//native_client/src/trusted/platform_qualify:vcpuid" ]
762 }
763 deps += [ "//third_party/libjpeg_turbo:simd_asm" ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16764 }
Sean McAllisterdeaa7402020-07-31 04:42:54765 if ((is_linux || is_chromeos) && current_toolchain == host_toolchain) {
jochen11513aa02016-05-11 09:59:51766 deps += [ "//v8:v8_shell" ]
dpranke807f602b2015-03-17 23:20:56767 }
dprankedb5527d72015-03-08 04:22:47768 }
dprankeb0713542015-07-31 21:07:21769
Andrew Grievefebea022020-08-07 17:17:53770 if (((is_linux || is_chromeos) && !is_chromecast) ||
771 (is_win && use_libfuzzer) || (use_libfuzzer && is_mac)) {
aizatskyaf496112016-04-15 19:26:32772 deps += [
Luum Habtemariam9c7c3e52019-08-05 22:26:22773 "//chrome/services/ipp_parser/public/cpp:fuzzers",
aizatskyaf496112016-04-15 19:26:32774 "//testing/libfuzzer/fuzzers",
Max Moroz174bee52019-02-21 00:11:28775 "//third_party/grpc:fuzzers",
aizatsky3f560172016-06-03 23:26:06776 "//third_party/icu/fuzzers",
noel6997c5c2017-04-13 14:12:18777 "//third_party/qcms:fuzzers",
Alex Chauab640752020-07-09 15:43:49778 "//third_party/ukey2/fuzzers",
Lei Zhang1295fa762017-12-12 00:49:16779 "//third_party/zlib/contrib/tests/fuzzers",
aizatskyaf496112016-04-15 19:26:32780 ]
Jonathan Metzman2656ecd2018-11-21 08:22:41781
782 # TODO(crbug.com/906751): Get the libFuzzer tests working on Windows.
783 # Disable them for now becaue they cause the Windows clang ToT builder to
784 # fail.
785 if (!is_win) {
786 deps += [ "//testing/libfuzzer/tests:libfuzzer_tests" ]
787 }
aizatskyaf496112016-04-15 19:26:32788 }
789
sbc92b4d572016-02-18 03:28:23790 if (enable_nacl) {
791 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
792 }
793
Sean McAllisterdeaa7402020-07-31 04:42:54794 if ((is_linux || is_chromeos) && use_ozone) {
skyostilfe116162016-02-26 20:53:33795 deps += [
Nicolas Ouellet-Payeurc7a9d262019-05-14 01:00:25796 "//headless:headless_non_renderer",
skyostilfe116162016-02-26 20:53:33797 "//headless:headless_tests",
798 ]
799 }
Christopher Grant193648b2017-06-07 15:08:36800
801 if (enable_vr) {
Tibor Goldschwendt213a42202017-10-17 20:13:44802 deps += [
803 "//chrome/browser/vr:vr_common_perftests",
804 "//chrome/browser/vr:vr_common_unittests",
Christopher Grant55c15892017-11-21 14:03:32805 "//chrome/browser/vr:vr_pixeltests",
bsheedy3b8ce262019-03-18 18:40:33806 "//tools/perf/contrib/vr_benchmarks:vr_perf_tests",
Tibor Goldschwendt213a42202017-10-17 20:13:44807 ]
Yash Malik8109b5bb2017-07-13 22:40:03808 if (is_android) {
bsheedy3b8ce262019-03-18 18:40:33809 deps += [ "//chrome/browser/android/vr:vr_android_unittests" ]
Yash Malik8109b5bb2017-07-13 22:40:03810 }
Christopher Grant193648b2017-06-07 15:08:36811 }
Scott Grahamf24e3742017-08-11 17:50:22812
Peng Huang191594892018-08-25 02:17:26813 if (enable_vulkan) {
814 deps += [ "//gpu/vulkan/demo" ]
815 }
Martin Robinson297928532018-09-07 18:11:18816
817 if (use_atk) {
Martin Robinsone4fddede2018-09-18 10:30:21818 deps += [
819 "//tools/accessibility/inspect:ax_dump_events",
820 "//tools/accessibility/inspect:ax_dump_tree",
821 ]
Martin Robinson297928532018-09-07 18:11:18822 }
Alessio Bazzica383dcef92019-02-08 14:14:42823
Kai Ninomiya873ceec2020-01-30 04:19:28824 if (build_dawn_tests) {
Elly Fong-Jonesb03817a2019-11-14 18:10:12825 deps += [
Corentin Wallezc7f622c2020-04-24 16:18:32826 "//third_party/dawn/src/fuzzers:dawn_fuzzers",
Corentin Wallezf9755ae2020-04-14 13:31:02827 "//third_party/dawn/src/tests:dawn_end2end_tests",
828 "//third_party/dawn/src/tests:dawn_unittests",
Elly Fong-Jonesb03817a2019-11-14 18:10:12829 ]
830 }
831
Alessio Bazzica383dcef92019-02-08 14:14:42832 # PFFFT.
833 deps += [
834 "//third_party/pffft:fuzzers",
835 "//third_party/pffft:pffft_benchmark",
836 "//third_party/pffft:pffft_unittest",
837 ]
Daniel Ruberyc81676b2020-05-13 00:48:27838
839 # OpenCV
840 deps += [ "//third_party/opencv:opencv_emd_fuzzer" ]
tfarinafbc992492017-03-08 22:44:04841}
842
Maksim Sisov25c86c82020-08-18 19:25:08843# TODO(https://crbug.com/1112776): ensure remoting is functional on Linux builds with
844# ozone. We also need to figure out what to do with remoting_host that is set for
845# use_x11 && is_linux. See remoting/remoting_options.gni. For now, just allow to
846# enable remoting for is_linux && use_x11 && use_ozone.
847if ((is_linux || is_chromeos || is_win) && enable_remoting &&
848 (use_x11 || !use_ozone)) {
Takuto Ikuta9d11eb12018-11-20 02:30:00849 # This group is used for network annotation check test.
850 group("shipped_binaries") {
851 deps = [
852 "//chrome:chrome",
Yuwei Huang256df172019-10-01 00:55:12853 "//remoting/client",
Takuto Ikuta9d11eb12018-11-20 02:30:00854 "//remoting/host:host",
Nicolas Ouellet-payeur30c7f73d2019-08-20 12:08:26855 "//tools/traffic_annotation/summary:annotations_xml",
Takuto Ikuta9d11eb12018-11-20 02:30:00856 ]
Joe Mason448d37b5d2019-12-11 16:00:50857
858 if (is_win) {
859 deps += [ "//chrome/chrome_cleaner:shipped_binaries" ]
860 }
Takuto Ikuta9d11eb12018-11-20 02:30:00861 }
862}
863
Scott Graham677e79102017-08-15 20:07:37864if (is_fuchsia) {
865 # TODO(https://crbug.com/731217): This can't practically be in //v8 without
866 # duplicating all the Fuchsia running infrastructure there.
Wezabe2d752020-02-11 17:12:23867 cr_fuchsia_package("d8_fuchsia_pkg") {
Kevin Marshall57a19db2018-09-12 20:07:05868 testonly = true
Kevin Marshall39b4aa82018-06-23 00:12:15869 binary = "//v8:d8"
870 package_name_override = "d8"
871 }
872
873 fuchsia_package_runner("d8_fuchsia") {
Kevin Marshall57a19db2018-09-12 20:07:05874 testonly = true
Kevin Marshall39b4aa82018-06-23 00:12:15875 package = ":d8_fuchsia_pkg"
876 package_name_override = "d8"
Scott Graham677e79102017-08-15 20:07:37877 }
878}
879
tfarinafbc992492017-03-08 22:44:04880# TODO(GYP_GONE): Figure out if we really need this target or if there's
881# some better way to specify things.
882if (is_win) {
883 group("chrome_official_builder_no_unittests") {
884 deps = [
probergefe476002017-06-23 14:29:01885 "//chrome/common/win:eventlog_provider",
Roger Tawa5cb75d72018-11-09 21:56:38886 "//chrome/credential_provider",
tfarinafbc992492017-03-08 22:44:04887 "//chrome/installer/gcapi",
888 "//chrome/installer/mini_installer",
Joshua Pawlickib7c32d302019-09-09 20:19:39889 "//chrome/updater/win/installer",
tfarinafbc992492017-03-08 22:44:04890 "//cloud_print",
891 "//cloud_print/virtual_driver/win/port_monitor:copy_gcp_portmon_binaries",
892 "//components/policy:pack_policy_templates",
Samuel Huang577ef6c2018-03-13 18:19:34893 "//components/zucchini",
tfarinafbc992492017-03-08 22:44:04894 "//courgette",
895 "//courgette:copy_courgette_binaries",
Koji Ishii4adc9c072020-09-07 04:03:43896 "//third_party/hyphenation-patterns",
holteb87f01f52017-04-10 20:45:53897 "//tools/metrics:metrics_metadata",
tfarinafbc992492017-03-08 22:44:04898 ]
899
900 if (target_cpu == "x86") {
901 if (is_clang) {
Nico Weber94d731c12017-07-25 19:40:46902 deps += [ "//courgette(//build/toolchain/win:win_clang_x64)" ]
tfarinafbc992492017-03-08 22:44:04903 } else {
904 deps += [ "//courgette(//build/toolchain/win:x64)" ]
905 }
906 }
907 if (is_chrome_branded) {
908 deps += [ "//remoting/host:remoting_host_installation" ]
909 }
910 }
911
912 group("chrome_official_builder") {
913 testonly = true
914
915 deps = [
916 ":chrome_official_builder_no_unittests",
917 "//base:base_unittests",
918 "//chrome/test:browser_tests",
tfarinafbc992492017-03-08 22:44:04919 "//ipc:ipc_tests",
920 "//media:media_unittests",
921 "//media/midi:midi_unittests",
922 "//net:net_unittests",
923 "//printing:printing_unittests",
924 "//sql:sql_unittests",
Michael Moss0484ee5c2020-05-14 17:18:06925 "//third_party/breakpad:symupload($host_toolchain)",
tfarinafbc992492017-03-08 22:44:04926 "//ui/base:ui_base_unittests",
927 "//ui/gfx:gfx_unittests",
928 "//ui/touch_selection:ui_touch_selection_unittests",
929 "//ui/views:views_unittests",
930 "//url:url_unittests",
931 ]
932 }
tfarinafbc992492017-03-08 22:44:04933}
934
935if (is_chromeos) {
Ben Pastenebbb9bf142020-03-30 17:51:14936 # This group is used to collect all targets used when verifying a new version
937 # of Chrome for Chrome OS.
tfarinafbc992492017-03-08 22:44:04938 group("chromiumos_preflight") {
939 testonly = true
Ben Pastene3ea517912020-07-02 00:20:42940 data_deps = [
tfarinafbc992492017-03-08 22:44:04941 "//chrome",
942 "//chrome/test/chromedriver",
Wei Lee01d63ef2019-05-09 09:24:50943 "//components/chromeos_camera:jpeg_decode_accelerator_unittest",
Ben Pastenebbb9bf142020-03-30 17:51:14944 "//components/exo/wayland:wayland_client_perftests",
tfarinafbc992492017-03-08 22:44:04945 "//media:media_unittests",
Ben Pastenebbb9bf142020-03-30 17:51:14946 "//media/capture:capture_unittests",
tfarinafbc992492017-03-08 22:44:04947 "//ppapi/examples/video_decode",
948 "//sandbox/linux:chrome_sandbox",
949 "//sandbox/linux:sandbox_linux_unittests",
Mark Mentovaiebb9ddd62017-09-25 17:24:41950 "//third_party/breakpad:minidump_stackwalk($host_toolchain)",
Corentin Wallezf9755ae2020-04-14 13:31:02951 "//third_party/dawn/src/tests:dawn_end2end_tests",
952 "//third_party/dawn/src/tests:dawn_unittests",
tfarinafbc992492017-03-08 22:44:04953
954 # Blocked on https://github.com/catapult-project/catapult/issues/2297
955 #"//third_party/catapult/telemetry:bitmaptools",
956 "//tools/perf/clear_system_cache",
Ben Pastenebbb9bf142020-03-30 17:51:14957 "//ui/ozone/gl:ozone_gl_unittests",
tfarinafbc992492017-03-08 22:44:04958 ]
Alexandre Courbot8ad2427d2017-08-25 14:04:55959
960 if (use_v4l2_codec || use_vaapi) {
Ben Pastene3ea517912020-07-02 00:20:42961 data_deps += [
Wei Lee01d63ef2019-05-09 09:24:50962 "//components/chromeos_camera:jpeg_encode_accelerator_unittest",
David Staessens601a2102019-02-06 03:37:13963 "//media/gpu:video_decode_accelerator_perf_tests",
David Staessens82b5b7d2018-11-21 10:40:26964 "//media/gpu:video_decode_accelerator_tests",
Hirokazu Hondad4a42c62020-08-21 04:39:08965 "//media/gpu:video_encode_accelerator_perf_tests",
966 "//media/gpu:video_encode_accelerator_tests",
Alexandre Courbot8ad2427d2017-08-25 14:04:55967 "//media/gpu:video_encode_accelerator_unittest",
968 ]
Ben Pastenebbb9bf142020-03-30 17:51:14969 if (use_vaapi) {
Ben Pastene3ea517912020-07-02 00:20:42970 data_deps += [ "//media/gpu/vaapi:vaapi_unittest" ]
Ben Pastenebbb9bf142020-03-30 17:51:14971 }
Alexandre Courbot8ad2427d2017-08-25 14:04:55972 }
tfarinafbc992492017-03-08 22:44:04973 }
dprankedb5527d72015-03-08 04:22:47974}
975
dprankedb5527d72015-03-08 04:22:47976group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03977 deps = [
dprankeb6128d02015-05-01 16:40:30978 "//build/config/sanitizers:options_sources",
dprankedb5527d72015-03-08 04:22:47979 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
980 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dpranked62d8512015-03-02 03:06:03981 ]
dpranked2fb5222015-09-10 22:39:05982
983 if (!is_ios) {
Peng Huanga3f0ece52018-01-20 01:22:46984 deps += [ "//v8:postmortem-metadata" ]
Simon Zündb6e449b2019-10-15 07:33:43985 if (!v8_use_external_startup_data) {
Peng Huanga3f0ece52018-01-20 01:22:46986 deps += [ "//v8:v8_snapshot" ]
987 }
dpranked2fb5222015-09-10 22:39:05988 }
dpranked62d8512015-03-02 03:06:03989}
990
Sergey Ulanovdaa25ebc2018-01-02 18:17:17991if (!is_ios) {
tfarinacb2638b2015-05-12 03:24:15992 # This group includes all of the targets needed to build and test Blink,
Giovanni Ortuño Urquidie7f98f82019-10-29 00:26:59993 # including running web tests (see below). This target is defined here because
994 # previously //third_party/WebKit, now //third_party/blink, couldn't depend on
995 # //content/shell. This might not longer be true, see
996 # https://crbug.com/1018659.
tfarinacb2638b2015-05-12 03:24:15997 group("blink_tests") {
998 testonly = true
999
1000 deps = [
Kent Tamuraef54e402019-02-14 07:18:361001 ":blink_web_tests",
Blink Reformata30d4232018-04-07 15:31:061002 "//third_party/blink/public:all_blink",
tansell88df42592016-11-15 07:22:591003 ]
1004 }
1005
Kent Tamuraef54e402019-02-14 07:18:361006 # Web tests runner
Kent Tamura5e69e912018-05-02 13:05:001007 # third_party/blink/tools/run_web_tests.py
Kent Tamuraef54e402019-02-14 07:18:361008 group("run_web_tests") {
tansell88df42592016-11-15 07:22:591009 testonly = true
Nico Weber77da4942020-01-13 20:13:351010 deps = [ ":blink_web_tests" ]
tansell88df42592016-11-15 07:22:591011 }
1012
kyle Juf8cdeac2019-02-07 00:10:011013 if (!is_chromeos && !is_ios && !is_fuchsia && !is_android) {
1014 # WPT Webdriver tests runner
1015 # chrome/test/chromedriver/test/run_webdriver_tests.py
1016 group("webdriver_wpt_tests") {
1017 testonly = true
1018 data = [
kyle Ju1c031852019-03-28 16:31:481019 "//chrome/test/chromedriver/chrome_paths.py",
1020 "//chrome/test/chromedriver/server/server.py",
1021 "//chrome/test/chromedriver/test/run_webdriver_tests.py",
1022 "//chrome/test/chromedriver/util.py",
1023 "//testing/xvfb.py",
kyle Ju0eabe31e2019-02-15 15:29:501024 "//third_party/blink/tools/blinkpy/",
kyle Juf8cdeac2019-02-07 00:10:011025 "//third_party/blink/web_tests/external/wpt/webdriver/",
kyle Ju1c031852019-03-28 16:31:481026 "//third_party/blink/web_tests/VirtualTestSuites",
1027 "//third_party/blink/web_tests/WebDriverExpectations",
Keita Suzuki9ff17d42020-03-10 06:19:511028 "//third_party/pywebsocket3/src/mod_pywebsocket/",
kyle Juf8cdeac2019-02-07 00:10:011029 ]
1030 data_deps = [
1031 "//chrome:chrome",
1032 "//chrome/test/chromedriver",
Robert Ma6f908762020-01-31 16:24:541033 "//third_party/catapult/third_party/typ",
kyle Juf8cdeac2019-02-07 00:10:011034 ]
Scott Violet0a4949d32020-02-11 18:53:031035 if (is_win) {
1036 data_deps += [ "//build/win:copy_cdb_to_output" ]
1037 }
kyle Juf8cdeac2019-02-07 00:10:011038 }
Luke Zielinski218ddea32019-07-15 16:52:241039 group("wpt_tests_isolate") {
1040 testonly = true
1041 data_deps = [
1042 "//chrome:chrome",
1043 "//chrome/test/chromedriver",
1044 ]
Xiaohan Wang5e2c87a2020-03-27 20:05:131045 deps = [ "//third_party/blink/tools:wpt_tests_isolate" ]
Luke Zielinski218ddea32019-07-15 16:52:241046 }
kyle Juf8cdeac2019-02-07 00:10:011047 }
1048
Liviu Rau7862f8f2019-12-09 21:33:191049 group("devtools_web_tests") {
1050 testonly = true
Nico Weber77da4942020-01-13 20:13:351051 deps = [ ":blink_web_tests" ]
1052 data_deps = [ ":blink_web_tests" ]
1053 data = [ "//third_party/devtools-frontend/src/test/webtests/" ]
Liviu Rau7862f8f2019-12-09 21:33:191054 }
1055
Kai Ninomiyafb9e5962020-03-17 06:11:381056 group("blink_web_tests_support_data") {
John Budorick7c8273b2019-04-25 15:27:471057 testonly = true
tansell88df42592016-11-15 07:22:591058 data_deps = [
yzshena0646992017-04-02 22:01:271059 ":layout_test_data_mojo_bindings",
Ken Rockot86d360462018-10-24 02:50:091060 ":layout_test_data_mojo_bindings_lite",
tansell88df42592016-11-15 07:22:591061 "//content/shell:content_shell",
Natalie Chouinard3f8829c2019-12-17 02:39:201062 "//content/test:mojo_web_test_bindings_js_data_deps",
Reilly Grantfa93b142018-02-01 02:13:481063 "//device/bluetooth/public/mojom:fake_bluetooth_interfaces_js_data_deps",
Reilly Grantfa93b142018-02-01 02:13:481064 "//device/vr/public/mojom:mojom_js_data_deps",
Christian Fremerey65d1f5e2018-03-02 23:46:481065 "//media/capture/mojom:image_capture_js_data_deps",
Adithya Srinivasan5b82b2e2018-12-14 16:08:091066 "//media/midi:mojo_js_data_deps",
yzshen9e737bf2017-06-21 19:38:231067 "//mojo/public/interfaces/bindings/tests:test_data_deps",
Giovanni Ortuño Urquidif07d80c2019-10-03 07:43:381068 "//mojo/public/js/ts/bindings/tests:test_interfaces_js_data_deps",
Natalie Chouinard3f8829c2019-12-17 02:39:201069 "//mojo/public/mojom/base:base_js_data_deps",
Ke He31d0bb02018-02-24 07:16:241070 "//services/device/public/mojom:generic_sensor_js_data_deps",
Natalie Chouinard3f8829c2019-12-17 02:39:201071 "//services/device/public/mojom:mojom_js_data_deps",
Donna Wu4dc9df32019-05-20 03:56:211072 "//services/device/public/mojom:usb_js_data_deps",
Natalie Chouinard3f8829c2019-12-17 02:39:201073 "//services/shape_detection/public/mojom:mojom_js_data_deps",
Miyoung Shin40adbd62019-07-30 07:33:401074 "//skia/public/mojom:mojom_js_data_deps",
jonrossc1179f2c2019-04-23 22:56:151075 "//testing/buildbot/filters:blink_web_tests_filter",
Blink Reformata30d4232018-04-07 15:31:061076 "//third_party/blink/public:blink_devtools_frontend_resources_files",
Alex Rudenko9d994132020-06-02 12:37:001077 "//third_party/blink/public:blink_devtools_inspector_resources",
Julie Jeongeun Kim4f1b5aa2019-05-08 01:32:091078 "//third_party/blink/public/mojom:mojom_platform_js_data_deps",
Sanket Joshi0a134212019-07-31 21:38:331079 "//third_party/blink/renderer/core/html:js_files_for_form_controls_web_tests",
Rakib M. Hasan995ca2e2019-10-14 19:48:401080 "//third_party/catapult/third_party/typ",
Alexis Hetu0f218862018-08-13 18:51:421081 "//third_party/mesa_headers",
agrieve993374cf2016-04-13 00:05:391082 "//tools/imagediff",
tfarinacb2638b2015-05-12 03:24:151083 ]
1084
tfarinacb2638b2015-05-12 03:24:151085 if (is_android) {
tansell88df42592016-11-15 07:22:591086 data_deps += [
Mark Mentovaiebb9ddd62017-09-25 17:24:411087 "//third_party/breakpad:breakpad_unittests",
1088 "//third_party/breakpad:dump_syms",
1089 "//third_party/breakpad:microdump_stackwalk",
1090 "//third_party/breakpad:minidump_dump",
1091 "//third_party/breakpad:minidump_stackwalk",
1092 "//third_party/breakpad:symupload",
jbudoricke7bcf092016-09-28 18:24:141093 "//tools/android/forwarder2",
ojan94989c72015-07-17 21:56:421094 ]
Peter Kotwiczdeb8c9fda2020-07-03 23:34:091095 } else {
danakj89f47082020-09-02 17:53:431096 data_deps += [ "//content/web_test:web_test_common_mojom_js_data_deps" ]
tfarinacb2638b2015-05-12 03:24:151097 }
1098
tfarinacb2638b2015-05-12 03:24:151099 if (!is_win && !is_android) {
Mark Mentovaiebb9ddd62017-09-25 17:24:411100 data_deps +=
1101 [ "//third_party/breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:151102 }
1103
1104 if (is_mac) {
Mark Mentovaiebb9ddd62017-09-25 17:24:411105 data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:151106 }
1107
Sean McAllisterdeaa7402020-07-31 04:42:541108 if (is_linux || is_chromeos) {
Mark Mentovaiebb9ddd62017-09-25 17:24:411109 data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:151110 }
qyearsley165a17a82016-08-01 17:58:501111
Sergey Ulanovdaa25ebc2018-01-02 18:17:171112 if (is_fuchsia) {
Sergey Ulanovafa1d4122020-01-14 01:51:101113 data_deps += [ "//content/shell:content_shell_fuchsia" ]
Sergey Ulanovdaa25ebc2018-01-02 18:17:171114 }
1115
qyearsley165a17a82016-08-01 17:58:501116 data = [
tansell88df42592016-11-15 07:22:591117 "//testing/scripts/common.py",
tansell0e6baaf22017-02-16 09:14:531118 "//testing/scripts/run_isolated_script_test.py",
tansell55090912017-02-20 12:54:311119 "//testing/xvfb.py",
Kent Tamurac1e4c412018-04-19 02:01:361120 "//third_party/blink/tools/",
Kai Ninomiyafb9e5962020-03-17 06:11:381121 "//third_party/blink/web_tests/VirtualTestSuites",
Stephen McGruerb3b528472020-04-29 13:44:001122 "//third_party/blink/web_tests/external/WPT_BASE_MANIFEST_8.json",
Kai Ninomiya14ba22c2020-05-20 14:27:451123 "//third_party/blink/web_tests/external/wpt/common/",
Kai Ninomiyafb9e5962020-03-17 06:11:381124 "//third_party/blink/web_tests/external/wpt/resources/",
1125 "//third_party/blink/web_tests/resources/",
1126 "//third_party/blink/web_tests/wpt_internal/",
Keita Suzuki9ff17d42020-03-10 06:19:511127 "//third_party/pywebsocket3/src/mod_pywebsocket/",
Kent Tamura5a9c7e42020-06-18 10:38:141128 "//third_party/test_fonts/test_fonts/",
Xianzhu Wang7203e2f82020-06-16 21:04:241129
1130 # Needed by run_web_tests.py to detect DCHECK build.
1131 "$root_out_dir/args.gn",
qyearsley165a17a82016-08-01 17:58:501132 ]
tansell0e6baaf22017-02-16 09:14:531133
tansell820f7df2017-02-16 13:59:151134 if (is_win) {
tansell1b05bbd2017-05-04 09:30:321135 data += [
1136 "//third_party/apache-win32/",
Takuto Ikuta1623ca32018-11-12 15:16:081137 "//third_party/perl/perl/",
tansell1b05bbd2017-05-04 09:30:321138 ]
Scott Violet0a4949d32020-02-11 18:53:031139 data_deps += [ "//build/win:copy_cdb_to_output" ]
tansell820f7df2017-02-16 13:59:151140 }
1141
David Benjaminddc843c2019-03-26 14:50:071142 if (is_mac) {
1143 data += [ "//third_party/apache-mac/" ]
1144 }
1145
tansell0e6baaf22017-02-16 09:14:531146 if (is_android) {
1147 data += [
1148 "//third_party/catapult/",
1149 "//build/android/",
1150 ]
1151 }
tfarinacb2638b2015-05-12 03:24:151152 }
yzshena0646992017-04-02 22:01:271153
Kai Ninomiyafb9e5962020-03-17 06:11:381154 # https://chromium.googlesource.com/chromium/src/+/master/docs/testing/web_tests.md
1155 generate_wrapper("blink_web_tests") {
1156 testonly = true
1157 wrapper_script = "${root_build_dir}/bin/run_blink_web_tests"
1158 executable = "//third_party/blink/tools/run_web_tests.py"
1159 executable_args = []
1160
1161 if (is_debug) {
1162 executable_args += [ "--debug" ]
1163 } else {
1164 executable_args += [ "--release" ]
1165 }
1166
1167 if (is_android) {
1168 executable_args += [
1169 "--platform",
1170 "android",
1171 ]
1172 }
1173
1174 data_deps = [ ":blink_web_tests_support_data" ]
1175 data = [
1176 "//third_party/blink/perf_tests/",
1177 "//third_party/blink/web_tests/",
1178 ]
1179 }
1180
1181 generate_wrapper("webgpu_blink_web_tests") {
1182 testonly = true
1183 wrapper_script = "${root_build_dir}/bin/run_webgpu_blink_web_tests"
1184 executable = "//third_party/blink/tools/run_web_tests.py"
1185 executable_args = [
1186 "--additional-driver-flag=--enable-unsafe-webgpu",
1187 "--ignore-default-expectations",
1188 "--additional-expectations",
1189 "@WrappedPath(../../third_party/blink/web_tests/WebGPUExpectations)",
1190 "--isolated-script-test-filter=wpt_internal/webgpu/*",
1191 ]
1192
1193 if (is_debug) {
1194 executable_args += [ "--debug" ]
1195 } else {
1196 executable_args += [ "--release" ]
1197 }
1198
1199 if (is_android) {
1200 executable_args += [
1201 "--platform",
1202 "android",
1203 ]
1204 }
1205
1206 data_deps = [ ":blink_web_tests_support_data" ]
1207 data = [
1208 "//third_party/blink/web_tests/WebGPUExpectations",
1209 "//third_party/blink/web_tests/external/wpt/webgpu/",
1210 ]
1211 }
1212
yzshena0646992017-04-02 22:01:271213 copy("layout_test_data_mojo_bindings") {
1214 testonly = true
1215
Nico Weber77da4942020-01-13 20:13:351216 sources = [ "$root_gen_dir/mojo/public/js/mojo_bindings.js" ]
yzshena0646992017-04-02 22:01:271217
Nico Weber77da4942020-01-13 20:13:351218 outputs =
1219 [ "$root_gen_dir/layout_test_data/mojo/public/js/mojo_bindings.js" ]
yzshena0646992017-04-02 22:01:271220
Nico Weber77da4942020-01-13 20:13:351221 deps = [ "//mojo/public/js:bindings" ]
yzshena0646992017-04-02 22:01:271222 }
Dirk Pranke43a5c812017-09-06 03:25:411223
Ken Rockot86d360462018-10-24 02:50:091224 copy("layout_test_data_mojo_bindings_lite") {
1225 testonly = true
1226
Nico Weber77da4942020-01-13 20:13:351227 sources = [ "$root_gen_dir/mojo/public/js/mojo_bindings_lite.js" ]
Ken Rockot86d360462018-10-24 02:50:091228
1229 outputs = [
1230 "$root_gen_dir/layout_test_data/mojo/public/js/mojo_bindings_lite.js",
1231 ]
1232
Nico Weber77da4942020-01-13 20:13:351233 deps = [ "//mojo/public/js:bindings_lite" ]
Ken Rockot86d360462018-10-24 02:50:091234 }
1235
Kent Tamuraef54e402019-02-14 07:18:361236 group("blink_python_tests") {
Dirk Pranke43a5c812017-09-06 03:25:411237 data = [
1238 "//build/android/",
1239 "//components/crash/content/tools/generate_breakpad_symbols.py",
1240 "//testing/scripts/common.py",
1241 "//testing/scripts/run_isolated_script_test.py",
1242 "//testing/test_env.py",
1243 "//testing/xvfb.py",
Kent Tamura968e76912018-04-17 23:05:571244 "//third_party/blink/renderer/bindings/scripts/",
1245 "//third_party/blink/renderer/build/scripts/",
Dirk Pranke43a5c812017-09-06 03:25:411246 "//third_party/blink/tools/",
Kent Tamura77578cc2018-11-25 22:33:431247 "//third_party/blink/web_tests/ASANExpectations",
1248 "//third_party/blink/web_tests/LeakExpectations",
1249 "//third_party/blink/web_tests/MSANExpectations",
1250 "//third_party/blink/web_tests/NeverFixTests",
1251 "//third_party/blink/web_tests/SlowTests",
1252 "//third_party/blink/web_tests/StaleTestExpectations",
1253 "//third_party/blink/web_tests/TestExpectations",
1254 "//third_party/blink/web_tests/VirtualTestSuites",
Dirk Pranke43a5c812017-09-06 03:25:411255 "//third_party/catapult/common/py_utils/",
1256 "//third_party/catapult/devil/",
1257 "//third_party/catapult/dependency_manager/",
1258 "//third_party/catapult/third_party/zipfile/",
Ned Nguyenc335c432018-04-23 01:16:461259 "//third_party/catapult/third_party/typ/",
Mike Frysinger8f8404b2019-08-21 02:20:291260 "//third_party/depot_tools/pylint",
1261 "//third_party/depot_tools/pylint-1.5",
1262 "//third_party/depot_tools/pylint_main.py",
Dirk Pranke43a5c812017-09-06 03:25:411263 "//third_party/depot_tools/pylintrc",
Dirk Pranke43a5c812017-09-06 03:25:411264 "//third_party/ply/",
Dirk Pranke43a5c812017-09-06 03:25:411265 "//tools/idl_parser/",
1266 ]
1267 }
tfarinacb2638b2015-05-12 03:24:151268}
1269
dpranke2302dfa2015-09-29 02:21:521270group("chromium_builder_perf") {
1271 testonly = true
1272
scottmg2f97ee122017-05-12 17:50:371273 if (!is_ios && !is_android && !is_chromecast && !is_fuchsia) {
malets6b7062402016-09-15 08:14:261274 data_deps = [
dpranke2302dfa2015-09-29 02:21:521275 "//cc:cc_perftests",
dpranke2302dfa2015-09-29 02:21:521276 "//chrome/test:load_library_perf_tests",
Emily Hanleyedab9e52018-01-17 18:47:321277 "//chrome/test:performance_test_suite",
kraynovc0797582016-10-25 16:45:061278 "//components/tracing:tracing_perftests",
Antoine Labourc6ade252017-10-19 01:01:161279 "//gpu:command_buffer_perftests",
dpranke2302dfa2015-09-29 02:21:521280 "//gpu:gpu_perftests",
1281 "//media:media_perftests",
kbr1e58e782016-05-27 17:21:191282 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
dpranke2302dfa2015-09-29 02:21:521283 ]
1284
nednguyen6451d7d2017-05-09 14:37:541285 if (is_android) {
Yun Liuf57cceaf2019-03-18 21:31:231286 data += [ "//third_party/android_sdk/public/platform-tools/adb" ]
nednguyen6451d7d2017-05-09 14:37:541287 }
1288
dpranke2302dfa2015-09-29 02:21:521289 if (!is_chromeos) {
malets6b7062402016-09-15 08:14:261290 data_deps += [ "//chrome/test:performance_browser_tests" ]
dpranke2302dfa2015-09-29 02:21:521291 }
1292 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:041293 if (is_official_build) {
1294 # In GN builds, this is controlled by the 'linux_dump_symbols'
1295 # flag, which defaults to 1 for official builds. For now,
1296 # we skip the separate flag and just key off of is_official_build.
malets6b7062402016-09-15 08:14:261297 data_deps += [ "//chrome:linux_symbols" ]
dpranke9aed5d582015-11-22 23:22:041298 }
dpranke2302dfa2015-09-29 02:21:521299
kraynovc0797582016-10-25 16:45:061300 data_deps += [ "//tools/perf/clear_system_cache" ]
dpranke2302dfa2015-09-29 02:21:521301 }
1302
1303 if (is_win) {
Yuly Novikov8a6e6352017-11-11 02:00:401304 data_deps += [ "//chrome/installer/mini_installer:mini_installer" ]
dpranke2302dfa2015-09-29 02:21:521305 } else {
Mark Mentovaiebb9ddd62017-09-25 17:24:411306 data_deps +=
1307 [ "//third_party/breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:521308 }
Yuly Novikov8a6e6352017-11-11 02:00:401309 if (is_win || is_android) {
Charlie Harrison3c448912018-03-23 16:54:171310 data_deps += [
Natalie Chouinard3f8829c2019-12-17 02:39:201311 "//components:components_perftests",
Dirk Pranke61c87c5d2020-07-07 18:23:231312 "//third_party/angle/src/tests:angle_perftests",
Charlie Harrison3c448912018-03-23 16:54:171313 ]
Yuly Novikov8a6e6352017-11-11 02:00:401314 }
dpranke2302dfa2015-09-29 02:21:521315 }
1316}
agrieve017b91f2016-02-29 20:15:061317
scottmg2f97ee122017-05-12 17:50:371318if (!is_ios && !is_android && !is_chromecast && !is_fuchsia) {
thakis3f7d4fc2016-06-10 18:47:501319 group("chromium_builder_asan") {
1320 testonly = true
1321
1322 deps = [
1323 "//chrome:chrome",
1324 "//content/shell:content_shell",
1325 "//v8:d8",
1326 ]
1327 if (!is_win) {
1328 deps += [
1329 "//net:dns_fuzz_stub",
thakis3f7d4fc2016-06-10 18:47:501330 "//skia:filter_fuzz_stub",
1331 ]
1332 }
1333 if (enable_ipc_fuzzer && !is_component_build) {
Ken Rockotf87b01cf2018-12-26 06:52:261334 deps += [ "//tools/ipc_fuzzer:ipc_fuzzer_all" ]
thakis3f7d4fc2016-06-10 18:47:501335 }
1336 if (!is_chromeos) {
1337 deps += [
1338 "//third_party/pdfium/samples:pdfium_test",
dpranke8a2de902016-07-14 20:08:371339 "//v8:v8_shell($v8_snapshot_toolchain)",
thakis3f7d4fc2016-06-10 18:47:501340 ]
1341 }
Max Moroz109e76b2020-02-10 17:19:521342
1343 if (!is_component_build) {
1344 # See https://bugs.chromium.org/p/chromium/issues/detail?id=942546#c11.
1345 deps += [
1346 "//third_party/webrtc/rtc_tools:rtp_generator",
1347 "//third_party/webrtc/rtc_tools:video_replay",
1348 ]
1349 }
thakis3f7d4fc2016-06-10 18:47:501350 }
1351}
1352
agrieve95ba4442016-04-25 15:47:131353if (is_android) {
1354 group("optimize_gn_gen") {
1355 deps = [
1356 # These run expensive scripts in non-default toolchains. Generally, host
1357 # toolchain targets are loaded in the later part of the run, and the
1358 # result is they push out the end of generation. By preloading these, the
1359 # scripts can be parallelized with the rest of the load.
1360 "//build/config/linux(//build/toolchain/linux:clang_x64)",
1361 "//build/config/posix(//build/toolchain/linux:clang_x64)",
1362
1363 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot
1364 # generation.
1365 "//build/config/linux(//build/toolchain/linux:clang_x86)",
1366 "//build/config/posix(//build/toolchain/linux:clang_x86)",
1367 ]
1368 }
1369}
1370
Mirko Bonadeif17649c2020-06-18 21:36:291371if (enable_js_type_check) {
Christopher Lam739a90d2018-03-07 03:54:371372 group("webui_closure_compile") {
Trent Apted572ba7552018-10-17 00:03:301373 testonly = true
Christopher Lam739a90d2018-03-07 03:54:371374 data_deps = [
Christopher Lamfdac10a2018-04-04 04:02:451375 "chrome/browser/resources:closure_compile",
Trent Aptedeeff0a92019-11-07 06:57:271376 "chrome/test:closure_compile",
Natalie Chouinard3f8829c2019-12-17 02:39:201377 "components/flags_ui/resources:closure_compile",
Reilly Grant2c3893d2019-10-29 20:11:421378 "components/neterror/resources:closure_compile",
1379 "components/security_interstitials/core/common/resources:closure_compile",
dpapad67bf0d122019-07-23 21:18:361380 "components/sync/driver/resources:closure_compile",
Nikunj Bhagata175853c2018-11-09 00:36:181381 "components/ukm/debug:closure_compile",
Christopher Lam76610802019-01-14 03:37:241382 "content/browser/resources:closure_compile",
1383 "mojo/public/tools/bindings/generators/js_templates/lite/test:closure_compile",
1384 "ui/webui/resources:closure_compile",
Christopher Lam739a90d2018-03-07 03:54:371385 ]
Christopher Lamb97769322018-04-26 01:47:491386 if (is_chromeos) {
Josh Nohlea2263fa2019-08-29 19:17:061387 data_deps += [
1388 "chromeos/components:closure_compile",
1389 "ui/file_manager:closure_compile",
1390 ]
Christopher Lamb97769322018-04-26 01:47:491391 }
Christopher Lam7c7d8f92018-05-17 09:07:551392 if (is_android) {
1393 data_deps += [ "components/offline_pages/resources:closure_compile" ]
1394 }
Tommy Steimele417e712020-01-30 14:07:551395 if (enable_kaleidoscope) {
1396 data_deps +=
1397 [ "chrome/browser/media/kaleidoscope/internal:closure_compile" ]
1398 }
Christopher Lam739a90d2018-03-07 03:54:371399 }
1400}
1401
Andrew Grieve93f64402020-03-13 17:04:221402# Because of the source assignment filter, many targets end up over-filtering
1403# their sources if the output directory contains a platform name. Assert that
1404# this doesn't happen. http://crbug.com/548283
1405assert(
1406 filter_exclude([ "$root_build_dir/foo" ],
1407 # List copied from //build/config/BUILDCONFIG.gn.
1408 [
1409 "*\bandroid/*",
1410 "*\bchromeos/*",
1411 "*\bcocoa/*",
1412 "*\bios/*",
1413 "*\blinux/*",
1414 "*\bmac/*",
1415 "*\bposix/*",
1416 "*\bwin/*",
1417 ]) != [],
1418 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
Andrew Grievefebea022020-08-07 17:17:531419
1420# Write debug logs to gn_logs.txt.
1421_lines = [
1422 "Generated during 'gn gen' by //BUILD.gn.",
1423 "",
1424 ] + build_gn_logs
1425
1426# GN evaluates each .gn file once per toolchain, so restricting to default
1427# toolchain will ensure write_file() is called only once.
1428assert(current_toolchain == default_toolchain)
1429
1430write_file("$root_build_dir/gn_logs.txt", _lines)