brettw@chromium.org | f0e7ff88 | 2013-12-26 21:23:09 | [diff] [blame] | 1 | # 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 | |
dpranke | ad249c7 | 2016-06-11 18:01:22 | [diff] [blame] | 11 | import("//build/config/compiler/compiler.gni") |
rockot | 2f1326e | 2015-02-23 23:53:51 | [diff] [blame] | 12 | import("//build/config/features.gni") |
aizatsky | fc46a9f | 2015-10-09 21:20:08 | [diff] [blame] | 13 | import("//build/config/sanitizers/sanitizers.gni") |
tfarina@chromium.org | 378b4f0 | 2014-06-10 15:58:45 | [diff] [blame] | 14 | import("//build/config/ui.gni") |
Dirk Pranke | ccc0c36 | 2017-09-28 22:15:11 | [diff] [blame] | 15 | import("//components/nacl/features.gni") |
Christopher Grant | 193648b | 2017-06-07 15:08:36 | [diff] [blame] | 16 | import("//device/vr/features/features.gni") |
brettw | 00899e6 | 2016-11-12 02:10:17 | [diff] [blame] | 17 | import("//extensions/features/features.gni") |
mostynb | 2196a46 | 2015-08-20 17:22:10 | [diff] [blame] | 18 | import("//media/media_options.gni") |
Alexandre Courbot | 8ad2427d | 2017-08-25 14:04:55 | [diff] [blame] | 19 | import("//media/gpu/args.gni") |
brettw | 2b112cd | 2016-10-12 19:35:36 | [diff] [blame] | 20 | import("//remoting/remoting_enable.gni") |
hbos | 17a7b4a2 | 2015-12-07 10:49:45 | [diff] [blame] | 21 | import("//third_party/openh264/openh264_args.gni") |
thakis | 3f7d4fc | 2016-06-10 18:47:50 | [diff] [blame] | 22 | import("//tools/ipc_fuzzer/ipc_fuzzer.gni") |
Peter Beverloo | 6994832 | 2017-07-28 19:01:57 | [diff] [blame] | 23 | import("//ui/base/ui_features.gni") |
kylechar | 50abf5a | 2016-11-29 16:03:07 | [diff] [blame] | 24 | import("//ui/ozone/ozone.gni") |
machenbach | d65ec5c | 2016-07-22 09:05:23 | [diff] [blame] | 25 | import("//v8/gni/v8.gni") |
dpranke | 8a2de90 | 2016-07-14 20:08:37 | [diff] [blame] | 26 | import("//v8/snapshot_toolchain.gni") |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 27 | |
cjhopman | ca675d3e | 2014-10-24 03:50:45 | [diff] [blame] | 28 | if (is_android) { |
| 29 | import("//build/config/android/config.gni") |
| 30 | } |
tfarina@chromium.org | 378b4f0 | 2014-06-10 15:58:45 | [diff] [blame] | 31 | |
brettw | b84b294 | 2014-10-22 22:58:45 | [diff] [blame] | 32 | declare_args() { |
| 33 | # A list of extra dependencies to add to the root target. This allows a |
| 34 | # checkout to add additional targets without explicitly changing any checked- |
| 35 | # in files. |
| 36 | root_extra_deps = [] |
| 37 | } |
| 38 | |
brucedawson | c8d6d65 | 2016-09-02 19:43:18 | [diff] [blame] | 39 | if (is_official_build) { |
| 40 | # An official (maximally optimized!) component (optimized for build times) |
| 41 | # build doesn't make sense and usually doesn't work. |
| 42 | assert(!is_component_build) |
| 43 | } |
| 44 | |
Wez | 09fb3a93 | 2017-12-20 21:33:46 | [diff] [blame] | 45 | # This file defines the following two main targets: |
dpranke | d62d851 | 2015-03-02 03:06:03 | [diff] [blame] | 46 | # |
Wez | 09fb3a93 | 2017-12-20 21:33:46 | [diff] [blame] | 47 | # "gn_all" is used to create explicit dependencies from the root BUILD.gn to |
| 48 | # each top-level component that we wish to include when building everything via |
| 49 | # "all". This is required since the set of targets built by "all" is determined |
| 50 | # automatically based on reachability from the root BUILD.gn (for details, see |
| 51 | # crbug.com/503241). Builders should typically use "all", or list targets |
| 52 | # explicitly, rather than relying on "gn_all". |
dpranke | ddc17490 | 2015-04-29 01:38:35 | [diff] [blame] | 53 | # |
dpranke | b6128d0 | 2015-05-01 16:40:30 | [diff] [blame] | 54 | # "gn_visibility": targets that are normally not visible to top-level targets, |
dpranke | ef9c5e58 | 2015-11-15 23:22:08 | [diff] [blame] | 55 | # but are built anyway by "all". Since we don't want any such targets, we have |
| 56 | # this placeholder to make sure hidden targets that aren't otherwise depended |
| 57 | # on yet are accounted for. |
dpranke | ff30e3d | 2015-02-24 06:52:39 | [diff] [blame] | 58 | |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 59 | group("gn_all") { |
| 60 | testonly = true |
| 61 | |
| 62 | deps = [ |
dpranke | b6128d0 | 2015-05-01 16:40:30 | [diff] [blame] | 63 | ":gn_visibility", |
Robert Liao | 38b1b4f | 2017-09-06 20:32:24 | [diff] [blame] | 64 | "//base:base_perftests", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 65 | "//base:base_unittests", |
brettw | a874dcc | 2015-08-28 23:59:18 | [diff] [blame] | 66 | "//chrome/installer", |
sherouk | ce1c7d7 | 2015-08-24 15:21:59 | [diff] [blame] | 67 | "//net:net_unittests", |
Sergey Ulanov | dd606ed | 2017-07-13 00:44:24 | [diff] [blame] | 68 | "//skia:skia_unittests", |
brettw | a874dcc | 2015-08-28 23:59:18 | [diff] [blame] | 69 | "//sql:sql_unittests", |
ochang | cc11d0e | 2016-04-26 19:58:26 | [diff] [blame] | 70 | "//tools/ipc_fuzzer:ipc_fuzzer_all", |
Sergey Ulanov | fbd2fea | 2017-07-14 01:01:38 | [diff] [blame] | 71 | "//ui/base:ui_base_unittests", |
sherouk | 4fb74d4 | 2015-08-24 15:58:41 | [diff] [blame] | 72 | "//url:url_unittests", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 73 | ] |
dpranke | 2a29462 | 2015-08-07 05:23:01 | [diff] [blame] | 74 | |
sdefresne | 21832bf9 | 2016-03-30 22:01:02 | [diff] [blame] | 75 | if (!is_android && !is_chromecast) { |
| 76 | deps += [ |
| 77 | "//crypto:crypto_unittests", |
| 78 | "//google_apis/gcm:gcm_unit_tests", |
| 79 | ] |
| 80 | } |
| 81 | |
scottmg | 2f97ee12 | 2017-05-12 17:50:37 | [diff] [blame] | 82 | if (!is_fuchsia) { |
| 83 | deps += [ |
| 84 | "//components:components_unittests", |
Colin Blundell | 055484e | 2017-06-15 12:47:59 | [diff] [blame] | 85 | "//services:services_unittests", |
| 86 | "//services/service_manager/public/cpp", |
scottmg | 2f97ee12 | 2017-05-12 17:50:37 | [diff] [blame] | 87 | "//tools/metrics:metrics_metadata", |
scottmg | 2f97ee12 | 2017-05-12 17:50:37 | [diff] [blame] | 88 | "//ui/gfx:gfx_unittests", |
| 89 | ] |
| 90 | } |
| 91 | |
| 92 | if (!is_ios && !is_android && !is_chromecast && !is_fuchsia) { |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 93 | deps += [ |
Christopher Lam | 488e9ef | 2018-01-23 05:00:58 | [diff] [blame] | 94 | ":webui_closure_compile", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 95 | "//chrome", |
John Williams | ff7a08d | 2018-02-01 03:20:21 | [diff] [blame] | 96 | "//chrome/browser/resources/media_router/extension:all", |
etiennep | aef136b | 2017-06-20 22:36:10 | [diff] [blame] | 97 | "//chrome/installer/zucchini:zucchini", |
| 98 | "//chrome/installer/zucchini:zucchini_unittests", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 99 | "//chrome/test:browser_tests", |
| 100 | "//chrome/test:interactive_ui_tests", |
| 101 | "//chrome/test:sync_integration_tests", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 102 | "//chrome/test/chromedriver:chromedriver_unittests", |
Max Bogue | fef332d | 2016-07-28 22:09:09 | [diff] [blame] | 103 | "//components/sync/tools:sync_client", |
| 104 | "//components/sync/tools:sync_listen_notifications", |
dpranke | dbdd9d8 | 2015-08-12 21:18:18 | [diff] [blame] | 105 | "//gpu/gles2_conform_support:gles2_conform_test", |
stevenjb | 60431636 | 2016-05-06 22:10:26 | [diff] [blame] | 106 | "//gpu/khronos_glcts_support:khronos_glcts_test", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 107 | "//jingle:jingle_unittests", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 108 | "//net:hpack_example_generator", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 109 | "//ppapi:ppapi_unittests", |
| 110 | "//ppapi/examples/2d", |
| 111 | "//ppapi/examples/audio", |
| 112 | "//ppapi/examples/audio_input", |
| 113 | "//ppapi/examples/compositor", |
| 114 | "//ppapi/examples/crxfs", |
| 115 | "//ppapi/examples/enumerate_devices", |
| 116 | "//ppapi/examples/file_chooser", |
| 117 | "//ppapi/examples/flash_topmost", |
| 118 | "//ppapi/examples/font", |
| 119 | "//ppapi/examples/gamepad", |
| 120 | "//ppapi/examples/gles2", |
| 121 | "//ppapi/examples/gles2_spinning_cube", |
| 122 | "//ppapi/examples/ime", |
| 123 | "//ppapi/examples/input", |
| 124 | "//ppapi/examples/media_stream_audio", |
| 125 | "//ppapi/examples/media_stream_video", |
| 126 | "//ppapi/examples/mouse_cursor", |
| 127 | "//ppapi/examples/mouse_lock", |
| 128 | "//ppapi/examples/printing", |
| 129 | "//ppapi/examples/scaling", |
| 130 | "//ppapi/examples/scripting", |
| 131 | "//ppapi/examples/stub", |
| 132 | "//ppapi/examples/threading", |
| 133 | "//ppapi/examples/url_loader", |
| 134 | "//ppapi/examples/video_capture", |
| 135 | "//ppapi/examples/video_decode", |
| 136 | "//ppapi/examples/video_effects", |
| 137 | "//ppapi/examples/video_encode", |
| 138 | "//printing:printing_unittests", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 139 | "//third_party/cacheinvalidation:cacheinvalidation_unittests", |
pkotwicz | 558d525 | 2015-10-19 21:09:55 | [diff] [blame] | 140 | "//third_party/pdfium/samples:pdfium_test", |
Edward Lemur | 1f4d4f3 | 2017-07-04 19:18:23 | [diff] [blame] | 141 | "//third_party/webrtc/rtc_tools:frame_analyzer", |
charliea | 0005528 | 2016-01-26 00:15:15 | [diff] [blame] | 142 | "//tools/battor_agent", |
charliea | 5daef2bb | 2016-01-29 00:13:25 | [diff] [blame] | 143 | "//tools/battor_agent:battor_agent_unittests", |
pkotwicz | 558d525 | 2015-10-19 21:09:55 | [diff] [blame] | 144 | "//tools/perf/clear_system_cache", |
rhalavati | 3051a40 | 2017-04-21 07:12:41 | [diff] [blame] | 145 | "//tools/traffic_annotation/auditor:traffic_annotation_auditor", |
Ramin Halavati | de8f7f7 | 2017-07-10 10:31:38 | [diff] [blame] | 146 | "//tools/traffic_annotation/auditor:traffic_annotation_auditor_unittests", |
pkotwicz | 558d525 | 2015-10-19 21:09:55 | [diff] [blame] | 147 | "//ui/accessibility:accessibility_unittests", |
wnwen | 2c84eb65 | 2017-03-20 23:21:27 | [diff] [blame] | 148 | "//ui/accessibility/extensions", |
pkotwicz | 558d525 | 2015-10-19 21:09:55 | [diff] [blame] | 149 | ] |
| 150 | } |
| 151 | |
Sergey Ulanov | fbd2fea | 2017-07-14 01:01:38 | [diff] [blame] | 152 | if (!is_ios) { |
| 153 | deps += [ |
Wez | 57c9639 | 2017-12-05 22:19:05 | [diff] [blame] | 154 | "//cc:cc_unittests", |
| 155 | "//components/policy:policy_templates", |
| 156 | "//content/shell:content_shell", |
| 157 | "//content/test:content_browsertests", |
| 158 | "//content/test:content_perftests", |
| 159 | "//content/test:content_unittests", |
| 160 | "//gpu:gpu_unittests", |
| 161 | "//gpu/ipc/service:gpu_ipc_service_unittests", |
| 162 | "//ipc:ipc_tests", |
Sergey Ulanov | 135ba08 | 2017-07-18 19:39:22 | [diff] [blame] | 163 | "//media:media_unittests", |
Wez | 57c9639 | 2017-12-05 22:19:05 | [diff] [blame] | 164 | "//media/midi:midi_unittests", |
| 165 | "//media/mojo:media_mojo_unittests", |
Sergey Ulanov | fbd2fea | 2017-07-14 01:01:38 | [diff] [blame] | 166 | "//mojo", |
| 167 | "//mojo/common:mojo_common_unittests", |
| 168 | "//mojo/edk/system:mojo_system_unittests", |
| 169 | "//mojo/edk/test:mojo_public_bindings_unittests", |
| 170 | "//mojo/edk/test:mojo_public_system_unittests", |
Wez | 57c9639 | 2017-12-05 22:19:05 | [diff] [blame] | 171 | "//net:net_perftests", |
| 172 | "//third_party/WebKit/Source/controller:webkit_unit_tests", |
| 173 | "//third_party/WebKit/Source/platform/wtf:wtf_unittests", |
Sergey Ulanov | fbd2fea | 2017-07-14 01:01:38 | [diff] [blame] | 174 | "//ui/gl:gl_unittests", |
Wez | 57c9639 | 2017-12-05 22:19:05 | [diff] [blame] | 175 | "//url/ipc:url_ipc_unittests", |
Sergey Ulanov | fbd2fea | 2017-07-14 01:01:38 | [diff] [blame] | 176 | ] |
| 177 | } |
| 178 | |
James Robinson | be8980d4 | 2017-09-25 22:00:30 | [diff] [blame] | 179 | if (!is_ios && !is_android && !is_chromecast) { |
| 180 | deps += [ |
| 181 | "//tools/gn", |
| 182 | "//tools/gn:gn_unittests", |
| 183 | ] |
| 184 | } |
| 185 | |
scottmg | 2f97ee12 | 2017-05-12 17:50:37 | [diff] [blame] | 186 | if (!is_ios && !is_fuchsia) { |
pkotwicz | 558d525 | 2015-10-19 21:09:55 | [diff] [blame] | 187 | deps += [ |
stip | c6de0f49 | 2016-06-01 20:05:03 | [diff] [blame] | 188 | "//chrome/test:telemetry_perf_unittests", |
pkotwicz | 558d525 | 2015-10-19 21:09:55 | [diff] [blame] | 189 | "//chrome/test:unit_tests", |
| 190 | "//components:components_browsertests", |
danakj | c391f33 | 2017-07-12 20:45:52 | [diff] [blame] | 191 | "//components/viz:viz_perftests", |
kylechar | a16d257 | 2017-07-10 17:41:32 | [diff] [blame] | 192 | "//components/viz:viz_unittests", |
danakj | 8d87b63 | 2017-06-27 20:34:35 | [diff] [blame] | 193 | "//components/viz/common:viz_benchmark", |
pkotwicz | 558d525 | 2015-10-19 21:09:55 | [diff] [blame] | 194 | "//device:device_unittests", |
varkha | 5aa18a0 | 2017-05-31 22:39:50 | [diff] [blame] | 195 | "//google_apis/gcm:mcs_probe", |
mcasas | d2f53ea | 2016-06-24 19:24:27 | [diff] [blame] | 196 | "//media/capture:capture_unittests", |
miu | 45b848fe | 2015-11-26 01:23:29 | [diff] [blame] | 197 | "//media/cast:cast_unittests", |
pwnall | 9f1622a | 2017-04-21 09:39:02 | [diff] [blame] | 198 | "//storage:storage_unittests", |
Dirk Pranke | 4980273 | 2015-12-10 01:36:41 | [diff] [blame] | 199 | "//third_party/WebKit/Source/platform:blink_platform_unittests", |
brettw | 4a6700a | 2016-09-01 01:24:01 | [diff] [blame] | 200 | "//third_party/WebKit/Source/platform/heap:blink_heap_unittests", |
brettw | c5fcdd0 | 2016-10-12 07:25:12 | [diff] [blame] | 201 | "//third_party/angle/src/tests:angle_end2end_tests", |
| 202 | "//third_party/angle/src/tests:angle_unittests", |
ynovikov | 55e66c2 | 2017-02-16 15:45:37 | [diff] [blame] | 203 | "//third_party/angle/src/tests:angle_white_box_tests", |
nednguyen | c42bf91 | 2016-01-27 01:39:28 | [diff] [blame] | 204 | "//third_party/catapult/telemetry:bitmaptools($host_toolchain)", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 205 | "//third_party/smhasher:pmurhash", |
| 206 | "//tools/imagediff($host_toolchain)", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 207 | "//ui/display:display_unittests", |
| 208 | "//ui/events:events_unittests", |
mfomitchev | 3ba450ad | 2017-04-03 18:20:40 | [diff] [blame] | 209 | "//ui/latency:latency_unittests", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 210 | "//ui/touch_selection:ui_touch_selection_unittests", |
tfarina | 79acccf | 2017-05-10 13:04:16 | [diff] [blame] | 211 | "//v8:gn_all", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 212 | ] |
scottmg | 2f97ee12 | 2017-05-12 17:50:37 | [diff] [blame] | 213 | } else if (is_ios) { |
sdefresne | 88abe36 | 2016-06-01 10:40:11 | [diff] [blame] | 214 | deps += [ "//ios:all" ] |
Scott Graham | 677e7910 | 2017-08-15 20:07:37 | [diff] [blame] | 215 | } else if (is_fuchsia) { |
| 216 | deps += [ ":d8_fuchsia" ] |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 217 | } |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 218 | |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 219 | deps += root_extra_deps |
brettw@chromium.org | fce5c3fe | 2014-04-10 21:13:05 | [diff] [blame] | 220 | |
tfarina | 4aa9edc | 2015-10-26 22:14:02 | [diff] [blame] | 221 | if (enable_extensions) { |
thestig | 344fe3f | 2017-06-08 23:42:13 | [diff] [blame] | 222 | deps += [ |
| 223 | "//extensions:extensions_browsertests", |
| 224 | "//extensions:extensions_unittests", |
| 225 | "//extensions/shell:app_shell_unittests", |
| 226 | ] |
rockot | 2f1326e | 2015-02-23 23:53:51 | [diff] [blame] | 227 | } |
| 228 | |
garykac | 3eddb5b | 2015-04-17 23:16:38 | [diff] [blame] | 229 | if (enable_remoting) { |
| 230 | deps += [ "//remoting:remoting_all" ] |
dpranke | ce5eb83 | 2015-04-01 20:21:05 | [diff] [blame] | 231 | } |
| 232 | |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 233 | if (toolkit_views) { |
ellyjones | 41c21fe | 2016-06-09 17:10:19 | [diff] [blame] | 234 | deps += [ |
| 235 | "//ui/views:views_unittests", |
| 236 | "//ui/views/examples:views_examples_exe", |
| 237 | "//ui/views/examples:views_examples_with_content_exe", |
| 238 | ] |
James Robinson | 060f2e3 | 2014-09-10 22:31:37 | [diff] [blame] | 239 | } |
| 240 | |
jamescook | 4c02a0b | 2016-12-02 23:14:42 | [diff] [blame] | 241 | if (use_aura) { |
| 242 | deps += [ |
msw | da0133e6 | 2016-02-16 20:50:02 | [diff] [blame] | 243 | "//ui/aura:aura_unittests", |
msw | da0133e6 | 2016-02-16 20:50:02 | [diff] [blame] | 244 | "//ui/aura:demo", |
| 245 | "//ui/wm:wm_unittests", |
| 246 | ] |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 247 | } |
| 248 | |
| 249 | if (use_ozone) { |
kylechar | 5c9a1fb | 2016-10-21 13:17:25 | [diff] [blame] | 250 | deps += [ |
| 251 | "//ui/ozone", |
| 252 | "//ui/ozone:ozone_unittests", |
kylechar | 5c9a1fb | 2016-10-21 13:17:25 | [diff] [blame] | 253 | ] |
Wez | 57c9639 | 2017-12-05 22:19:05 | [diff] [blame] | 254 | |
| 255 | # TODO(crbug.com/766360): These require a working GL implementation. |
| 256 | if (!is_fuchsia) { |
| 257 | deps += [ |
| 258 | "//ui/ozone/demo", |
| 259 | "//ui/ozone/gl:ozone_gl_unittests", |
| 260 | ] |
| 261 | } |
Elliot Glaysher | a3ad4ce | 2017-12-08 20:37:29 | [diff] [blame] | 262 | |
| 263 | if (ozone_platform_x11) { |
| 264 | deps += [ "//ui/ozone:ozone_x11_unittests" ] |
| 265 | } |
tfarina@chromium.org | a306aaa | 2014-05-24 13:21:50 | [diff] [blame] | 266 | } |
| 267 | |
thomasanderson | af830f3a | 2016-12-07 04:52:02 | [diff] [blame] | 268 | if (use_x11 || ozone_platform_x11) { |
| 269 | deps += [ "//tools/xdisplaycheck" ] |
| 270 | } |
| 271 | |
thakis | dc11faf5 | 2017-04-25 21:49:42 | [diff] [blame] | 272 | if (is_mac) { |
| 273 | deps += [ "//chrome/installer/gcapi_mac:gcapi_example" ] |
| 274 | } |
| 275 | |
dpranke@chromium.org | 5a8d516 | 2014-04-12 01:19:16 | [diff] [blame] | 276 | if (is_android) { |
cjhopman@chromium.org | 26046b5 | 2014-07-16 00:11:03 | [diff] [blame] | 277 | deps += [ |
pkotwicz | e2dae8b | 2015-11-03 20:12:55 | [diff] [blame] | 278 | "//base:base_junit_tests", |
Eric Stevenson | c3c269a3 | 2017-08-02 21:40:06 | [diff] [blame] | 279 | "//base/android/jni_generator:jni_generator_tests", |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 280 | "//base/android/linker:chromium_android_linker", |
cjhopman | 3d85c6d | 2014-11-18 03:39:38 | [diff] [blame] | 281 | "//build/android/gyp/test:hello_world", |
tfarina | 79acccf | 2017-05-10 13:04:16 | [diff] [blame] | 282 | "//build/android/gyp/test:hello_world", |
agrieve | a350dbdb | 2017-07-05 15:27:17 | [diff] [blame] | 283 | "//build/android/stacktrace:java_deobfuscate", |
pkotwicz | 2dd6796 | 2016-05-10 00:21:08 | [diff] [blame] | 284 | "//chrome/android/webapk/shell_apk:webapk", |
tfarina | 79acccf | 2017-05-10 13:04:16 | [diff] [blame] | 285 | "//chrome/test/vr/perf:motopho_latency_test", |
pkotwicz | e2dae8b | 2015-11-03 20:12:55 | [diff] [blame] | 286 | "//components/invalidation/impl:components_invalidation_impl_junit_tests", |
| 287 | "//components/policy/android:components_policy_junit_tests", |
Boris Sazonov | d4db00c5 | 2017-12-29 14:10:24 | [diff] [blame] | 288 | "//components/signin/core/browser/android:components_signin_junit_tests", |
pkotwicz | e2dae8b | 2015-11-03 20:12:55 | [diff] [blame] | 289 | "//content/public/android:content_junit_tests", |
pkotwicz | 8adff4e | 2015-12-17 21:55:45 | [diff] [blame] | 290 | "//content/shell/android:content_shell_apk", |
mcasas | eddfbeb | 2017-05-10 04:47:49 | [diff] [blame] | 291 | "//device:device_junit_tests", |
markdittmer | 6e70beb8 | 2016-05-02 05:40:47 | [diff] [blame] | 292 | "//media/gpu:video_decode_accelerator_unittest", |
pkotwicz | e2dae8b | 2015-11-03 20:12:55 | [diff] [blame] | 293 | "//net/android:net_junit_tests", |
ke.he | af8ead2 | 2017-05-13 03:54:30 | [diff] [blame] | 294 | "//services:service_junit_tests", |
jbudorick | 5ef4290 | 2016-04-07 04:17:11 | [diff] [blame] | 295 | "//testing/android/junit:junit_unit_tests", |
wnwen | 41f70b9 | 2016-06-22 14:48:56 | [diff] [blame] | 296 | "//third_party/android_async_task:android_async_task_java", |
John Budorick | 3fa4315 | 2017-06-12 19:13:20 | [diff] [blame] | 297 | "//third_party/catapult/devil", |
Peter Wen | d0cc6d6 | 2017-11-02 16:32:30 | [diff] [blame] | 298 | "//third_party/errorprone:errorprone_java", |
pkotwicz | 8adff4e | 2015-12-17 21:55:45 | [diff] [blame] | 299 | "//third_party/smhasher:murmurhash3", |
pkotwicz | e38594d | 2015-09-25 00:05:10 | [diff] [blame] | 300 | "//tools/android:android_tools", |
pkotwicz | 6b5571b | 2015-12-08 21:54:49 | [diff] [blame] | 301 | "//tools/android:memconsumer", |
mikecase | f5e9830 | 2016-03-11 18:38:34 | [diff] [blame] | 302 | "//tools/android:push_apps_to_background", |
jbudorick | dfc01f6 | 2016-06-01 15:42:12 | [diff] [blame] | 303 | "//tools/android/audio_focus_grabber:audio_focus_grabber_apk", |
| 304 | "//tools/android/customtabs_benchmark:customtabs_benchmark_apk", |
Peter Wen | d0cc6d6 | 2017-11-02 16:32:30 | [diff] [blame] | 305 | "//tools/android/errorprone_plugin:errorprone_plugin_java", |
dgn | 28050da | 2015-10-19 10:16:43 | [diff] [blame] | 306 | "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk", |
pkotwicz | 07709376 | 2015-12-21 16:47:15 | [diff] [blame] | 307 | "//tools/cygprofile:cygprofile_unittests", |
newt | 9e22603 | 2016-01-26 01:30:15 | [diff] [blame] | 308 | "//ui/android:ui_junit_tests", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 309 | ] |
| 310 | deps -= [ |
rockot | 9c67e5f | 2015-03-12 20:01:21 | [diff] [blame] | 311 | "//net:net_perftests", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 312 | "//url:url_unittests", |
cjhopman@chromium.org | 26046b5 | 2014-07-16 00:11:03 | [diff] [blame] | 313 | ] |
| 314 | |
pkotwicz | 92e2e231 | 2015-12-15 22:29:46 | [diff] [blame] | 315 | if (!is_component_build) { |
| 316 | deps += [ |
agrieve | e23386b | 2016-01-05 04:47:58 | [diff] [blame] | 317 | "//components/cronet/android:cronet_package", |
jbudorick | dfc01f6 | 2016-06-01 15:42:12 | [diff] [blame] | 318 | "//components/cronet/android:cronet_perf_test_apk", |
pkotwicz | 92e2e231 | 2015-12-15 22:29:46 | [diff] [blame] | 319 | "//components/cronet/android:cronet_sample_apk", |
| 320 | "//components/cronet/android:cronet_sample_test_apk", |
| 321 | "//components/cronet/android:cronet_test_apk", |
| 322 | "//components/cronet/android:cronet_test_instrumentation_apk", |
| 323 | "//components/cronet/android:cronet_unittests", |
| 324 | ] |
| 325 | } |
| 326 | |
pkotwicz | 061c5a4 | 2015-09-30 02:16:54 | [diff] [blame] | 327 | if (!is_chromecast) { |
| 328 | deps += [ |
michaelbai | cbcc7e6 | 2015-11-12 04:29:53 | [diff] [blame] | 329 | "//android_webview", |
agrieve | b08e2f5b | 2015-12-29 01:17:30 | [diff] [blame] | 330 | "//android_webview/test", |
mikecase | cb1b506 | 2016-07-01 20:53:44 | [diff] [blame] | 331 | "//android_webview/tools/automated_ui_tests:webview_ui_test_app", |
mikecase | 49971fc | 2016-03-21 21:18:05 | [diff] [blame] | 332 | "//android_webview/tools/system_webview_shell", |
pkotwicz | e2dae8b | 2015-11-03 20:12:55 | [diff] [blame] | 333 | "//chrome/android:chrome_junit_tests", |
pkotwicz | 061c5a4 | 2015-09-30 02:16:54 | [diff] [blame] | 334 | "//chrome/android:chrome_public_apk", |
smaier | d50624e | 2016-08-05 14:21:10 | [diff] [blame] | 335 | "//chrome/android:chrome_public_test_apk", |
| 336 | "//chrome/android:chrome_sync_shell_test_apk", |
pkotwicz | 061c5a4 | 2015-09-30 02:16:54 | [diff] [blame] | 337 | "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk", |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 338 | "//content/shell/android:content_shell_test_apk", |
pkotwicz | 0a2255e | 2015-10-06 16:29:05 | [diff] [blame] | 339 | "//third_party/custom_tabs_client:custom_tabs_client_example_apk", |
pkotwicz | 061c5a4 | 2015-09-30 02:16:54 | [diff] [blame] | 340 | ] |
| 341 | } |
| 342 | |
pkotwicz | 06a4b4b4 | 2015-10-29 23:11:11 | [diff] [blame] | 343 | if (target_cpu != "x64") { |
jbudorick | dfc01f6 | 2016-06-01 15:42:12 | [diff] [blame] | 344 | deps += [ |
| 345 | "//content/shell/android:chromium_linker_test_apk", |
| 346 | "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)", |
| 347 | ] |
pkotwicz | 06a4b4b4 | 2015-10-29 23:11:11 | [diff] [blame] | 348 | } |
| 349 | |
dgn | d1e190d | 2017-03-17 13:34:49 | [diff] [blame] | 350 | if (enable_chrome_android_internal) { |
brettw | f9427f9 | 2016-05-05 23:18:55 | [diff] [blame] | 351 | deps += [ "//clank" ] |
cjhopman | ca675d3e | 2014-10-24 03:50:45 | [diff] [blame] | 352 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 353 | } |
| 354 | |
brettw | f9427f9 | 2016-05-05 23:18:55 | [diff] [blame] | 355 | if (is_linux || is_android) { |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 356 | deps += [ |
Mark Mentovai | ebb9ddd | 2017-09-25 17:24:41 | [diff] [blame] | 357 | "//third_party/breakpad:breakpad_unittests", |
| 358 | "//third_party/breakpad:core-2-minidump", |
| 359 | "//third_party/breakpad:generate_test_dump", |
| 360 | "//third_party/breakpad:minidump-2-core", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 361 | ] |
| 362 | } |
| 363 | |
dpranke | 6293d25 | 2015-04-14 19:12:00 | [diff] [blame] | 364 | if (is_chromeos) { |
| 365 | deps += [ |
James Cook | f8a2bf7 | 2017-10-16 18:51:39 | [diff] [blame] | 366 | "//ash:ash_content_unittests", |
| 367 | "//ash:ash_shell_with_content", |
| 368 | "//ash:ash_unittests", |
dpranke | 6293d25 | 2015-04-14 19:12:00 | [diff] [blame] | 369 | "//chromeos:chromeos_unittests", |
khorimoto | 4c53995 | 2016-12-04 02:37:11 | [diff] [blame] | 370 | "//chromeos/components:chromeos_components_unittests", |
jamescook | 4c02a0b | 2016-12-02 23:14:42 | [diff] [blame] | 371 | "//components/session_manager/core", |
Mike Wasserman | 49d02ef | 2018-02-06 00:36:15 | [diff] [blame] | 372 | "//ui/app_list:app_list_demo", |
estade | 835d550 | 2017-01-04 16:44:06 | [diff] [blame] | 373 | "//ui/app_list:app_list_unittests", |
| 374 | "//ui/app_list/presenter:app_list_presenter_unittests", |
yoshiki | 8e2ddbb | 2016-03-10 07:11:22 | [diff] [blame] | 375 | "//ui/arc:ui_arc_unittests", |
dpranke | 6293d25 | 2015-04-14 19:12:00 | [diff] [blame] | 376 | "//ui/chromeos:ui_chromeos_unittests", |
| 377 | ] |
| 378 | } |
| 379 | |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 380 | if (is_chromeos || is_mac || is_win) { |
| 381 | deps += [ |
| 382 | "//rlz:rlz_id", |
| 383 | "//rlz:rlz_lib", |
| 384 | "//rlz:rlz_unittests", |
| 385 | ] |
| 386 | } |
| 387 | |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 388 | if (is_linux) { |
| 389 | # The following are definitely linux-only. |
hiroshige | e6d374c | 2015-02-24 07:54:06 | [diff] [blame] | 390 | deps += [ |
dpranke | 2bc8921 | 2015-11-18 00:24:43 | [diff] [blame] | 391 | "//chrome:xdg_mime", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 392 | "//net:disk_cache_memory_test", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 393 | "//net:quic_client", |
| 394 | "//net:quic_server", |
| 395 | "//sandbox/linux:chrome_sandbox", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 396 | "//sandbox/linux:sandbox_linux_unittests", |
hiroshige | e6d374c | 2015-02-24 07:54:06 | [diff] [blame] | 397 | ] |
dnicoara | 8c6aa8e | 2015-03-11 23:20:32 | [diff] [blame] | 398 | |
Patrik Höglund | d80ab10 | 2018-02-14 09:46:28 | [diff] [blame] | 399 | if (!is_clang) { |
| 400 | deps += [ "//testing:empty_main" ] |
| 401 | } |
| 402 | |
mbjorge | a12e5a5 | 2016-05-31 22:15:17 | [diff] [blame] | 403 | if (use_dbus) { |
| 404 | deps += [ |
| 405 | "//dbus:dbus_test_server", |
| 406 | "//dbus:dbus_unittests", |
| 407 | ] |
| 408 | } |
| 409 | |
dpranke | 2bc8921 | 2015-11-18 00:24:43 | [diff] [blame] | 410 | if (is_chrome_branded && is_official_build) { |
| 411 | # TODO(dpranke): add the linux_dump_symbols flag? |
| 412 | deps += [ "//chrome:linux_symbols" ] |
| 413 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 414 | } |
| 415 | |
sherouk | e1859f9 | 2015-08-05 10:19:10 | [diff] [blame] | 416 | if (is_ios || is_win || (is_linux && !is_chromeos)) { |
| 417 | deps += [ |
| 418 | "//base:base_i18n_perftests", |
sherouk | 710734d | 2015-09-02 19:02:58 | [diff] [blame] | 419 | "//google_apis:google_apis_unittests", |
sherouk | e1859f9 | 2015-08-05 10:19:10 | [diff] [blame] | 420 | ] |
| 421 | } |
| 422 | |
Nicolas Capens | e0eba5e | 2017-06-21 13:52:23 | [diff] [blame] | 423 | if ((is_win || is_mac || is_linux || is_chromeos) && |
sugoi | a1b7b92 | 2016-12-13 12:52:49 | [diff] [blame] | 424 | (target_cpu == "x86" || target_cpu == "x64")) { |
sugoi | abe9189 | 2016-09-20 12:53:51 | [diff] [blame] | 425 | deps += [ "//third_party/swiftshader" ] |
| 426 | } |
| 427 | |
thakis | 507c15c | 2016-06-01 00:26:01 | [diff] [blame] | 428 | # TODO(GYP): Figure out which of these should (and can) build |
| 429 | # for chromeos/ios. |
scottmg | 2f97ee12 | 2017-05-12 17:50:37 | [diff] [blame] | 430 | if (!is_chromeos && !is_ios && !is_fuchsia) { |
tfarina | 9e7cf70 | 2015-02-23 21:13:44 | [diff] [blame] | 431 | deps += [ |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 432 | "//base:build_utf8_validator_tables", |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 433 | "//base:check_example", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 434 | "//cc:cc_perftests", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 435 | "//cc/blink:cc_blink_unittests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 436 | "//components:components_perftests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 437 | "//device:device_unittests", |
| 438 | "//gin:gin_shell", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 439 | "//gin:gin_unittests", |
Antoine Labour | c6ade25 | 2017-10-19 01:01:16 | [diff] [blame] | 440 | "//gpu:command_buffer_perftests", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 441 | "//gpu:gl_tests", |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 442 | "//gpu:gpu_perftests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 443 | "//ipc:ipc_perftests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 444 | "//media:media_perftests", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 445 | "//net:dump_cache", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 446 | "//third_party/libphonenumber:libphonenumber_unittests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 447 | "//ui/compositor:compositor_unittests", |
| 448 | ] |
| 449 | |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 450 | if (!is_android) { |
| 451 | deps += [ |
| 452 | "//chrome/test:load_library_perf_tests", |
| 453 | "//chrome/test:sync_performance_tests", |
| 454 | "//chrome/test/chromedriver:chromedriver", |
| 455 | "//chrome/test/chromedriver:chromedriver_tests", |
Sergey Ulanov | ec1d3de | 2017-09-19 19:27:47 | [diff] [blame] | 456 | "//components/sync:run_sync_testserver", |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 457 | "//courgette:courgette", |
| 458 | "//courgette:courgette_fuzz", |
| 459 | "//courgette:courgette_minimal_tool", |
| 460 | "//courgette:courgette_unittests", |
stevenjb | 7b6fd64 | 2016-05-18 18:15:30 | [diff] [blame] | 461 | "//media/cast:generate_barcode_video", |
| 462 | "//media/cast:generate_timecode_audio", |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 463 | "//net:crash_cache", |
| 464 | "//net:crl_set_dump", |
| 465 | "//net:dns_fuzz_stub", |
| 466 | "//net:gdig", |
| 467 | "//net:get_server_time", |
| 468 | "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net |
| 469 | "//net:run_testserver", |
| 470 | "//net:stress_cache", |
| 471 | "//net:tld_cleanup", |
| 472 | "//ppapi:pepper_hash_for_uma", |
| 473 | "//ppapi:ppapi_perftests", |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 474 | "//third_party/leveldatabase:env_chromium_unittests", |
| 475 | "//third_party/libaddressinput:libaddressinput_unittests", |
| 476 | ] |
| 477 | } |
dpranke | 7e19b47 | 2015-11-13 00:49:33 | [diff] [blame] | 478 | |
jamescook | fbbf911 | 2016-06-14 16:24:49 | [diff] [blame] | 479 | if (enable_extensions) { |
michaelpg | 32ba390 | 2017-06-10 00:00:01 | [diff] [blame] | 480 | deps += [ |
| 481 | "//extensions/shell:app_shell", |
| 482 | "//extensions/shell/installer:app_shell_installer", |
| 483 | ] |
jamescook | fbbf911 | 2016-06-14 16:24:49 | [diff] [blame] | 484 | } |
| 485 | |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 486 | if (enable_nacl) { |
brettw | f4b4a428 | 2015-12-16 00:41:13 | [diff] [blame] | 487 | deps += [ "//components/nacl/loader:nacl_loader_unittests" ] |
dpranke | 2bc8921 | 2015-11-18 00:24:43 | [diff] [blame] | 488 | |
| 489 | if (is_linux) { |
| 490 | # TODO(dpranke): Figure out what platforms should actually have this. |
milko.leporis | 3de038d | 2016-08-18 09:59:37 | [diff] [blame] | 491 | deps += [ "//components/nacl/loader:nacl_helper" ] |
| 492 | |
| 493 | if (enable_nacl_nonsfi) { |
| 494 | deps += [ |
| 495 | "//components/nacl/loader:helper_nonsfi", |
| 496 | "//components/nacl/loader:nacl_helper_nonsfi_unittests", |
| 497 | ] |
| 498 | } |
dpranke | 2bc8921 | 2015-11-18 00:24:43 | [diff] [blame] | 499 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 500 | } |
| 501 | |
xhwang | fa2d9d47 | 2015-12-18 23:31:18 | [diff] [blame] | 502 | if (media_use_ffmpeg && !is_android) { |
mostynb | 2196a46 | 2015-08-20 17:22:10 | [diff] [blame] | 503 | deps += [ "//media:ffmpeg_regression_tests" ] |
| 504 | } |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 505 | } |
| 506 | |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 507 | if (is_android || (is_linux && !is_chromeos)) { |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 508 | deps += [ |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 509 | "//components/network_hints/browser", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 510 | "//content/public/app:browser", |
| 511 | "//content/public/app:child", |
rockot | c637caf9b | 2016-02-10 09:57:08 | [diff] [blame] | 512 | "//mojo/edk/test:mojo_public_system_perftests", |
rockot | 734fb66 | 2016-10-15 16:41:30 | [diff] [blame] | 513 | "//services/service_manager/public/cpp", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 514 | "//testing/gmock:gmock_main", |
Mark Mentovai | ebb9ddd | 2017-09-25 17:24:41 | [diff] [blame] | 515 | "//third_party/breakpad:dump_syms($host_toolchain)", |
| 516 | "//third_party/breakpad:microdump_stackwalk($host_toolchain)", |
| 517 | "//third_party/breakpad:minidump_dump($host_toolchain)", |
| 518 | "//third_party/breakpad:minidump_stackwalk($host_toolchain)", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 519 | ] |
| 520 | |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 521 | if (!is_android) { |
| 522 | deps += [ |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 523 | "//chrome/test:chrome_app_unittests", |
brettw | f9427f9 | 2016-05-05 23:18:55 | [diff] [blame] | 524 | "//gpu/khronos_glcts_support:khronos_glcts_test", |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 525 | "//media/cast:cast_benchmarks", |
| 526 | "//media/cast:tap_proxy", |
| 527 | "//skia:filter_fuzz_stub", |
| 528 | "//skia:image_operations_bench", |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 529 | "//third_party/sqlite:sqlite_shell", |
| 530 | "//ui/keyboard:keyboard_unittests", |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 531 | "//ui/snapshot:snapshot_unittests", |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 532 | ] |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 533 | |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 534 | if (!is_debug && !is_component_build) { |
| 535 | deps += [ "//chrome/tools/service_discovery_sniffer" ] |
| 536 | } |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 537 | } |
| 538 | |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 539 | if (use_x11) { |
wtc | 6e2e29c | 2015-03-13 01:09:44 | [diff] [blame] | 540 | if (target_cpu != "arm") { |
tfarina | 8944e6f | 2015-03-25 20:06:59 | [diff] [blame] | 541 | deps += [ "//gpu/tools/compositor_model_bench" ] |
wtc | 6e2e29c | 2015-03-13 01:09:44 | [diff] [blame] | 542 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 543 | } |
| 544 | } |
| 545 | |
| 546 | if (is_mac) { |
| 547 | deps += [ |
tfarina | 9e7cf70 | 2015-02-23 21:13:44 | [diff] [blame] | 548 | "//third_party/apple_sample_code", |
Mark Mentovai | ebb9ddd | 2017-09-25 17:24:41 | [diff] [blame] | 549 | "//third_party/breakpad:crash_inspector", |
| 550 | "//third_party/breakpad:dump_syms", |
tfarina | 9e7cf70 | 2015-02-23 21:13:44 | [diff] [blame] | 551 | "//third_party/molokocacao", |
| 552 | ] |
dpranke | 4376059 | 2014-11-08 02:59:57 | [diff] [blame] | 553 | deps -= [ |
brettw | 011138d | 2015-10-21 03:05:38 | [diff] [blame] | 554 | # Mojo in GN contains some things which are never compiled in GYP on Mac, |
| 555 | # so compilation fails on Mac. They need porting. |
brettw | e1d4065 | 2015-10-23 23:06:10 | [diff] [blame] | 556 | "//mojo", |
dpranke | cf8465db7 | 2014-11-10 23:51:22 | [diff] [blame] | 557 | ] |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 558 | } |
| 559 | |
| 560 | if (is_win) { |
| 561 | deps += [ |
| 562 | "//base:pe_image_test", |
ananta | f2e54a9 | 2016-05-28 00:39:16 | [diff] [blame] | 563 | "//chrome/install_static:install_static_unittests", |
Xi Cheng | ec65b3b | 2018-02-02 20:42:02 | [diff] [blame] | 564 | "//chrome/installer/gcapi", |
grt | 734e87b | 2015-07-06 19:36:43 | [diff] [blame] | 565 | "//chrome/installer/setup:setup_unittests", |
Xi Cheng | ec65b3b | 2018-02-02 20:42:02 | [diff] [blame] | 566 | "//chrome/tools/build/win/syzygy:chrome_dll_syzygy", |
Penny MacNeil | a9753d0 | 2017-10-02 16:57:45 | [diff] [blame] | 567 | "//chrome_elf:chrome_elf_import_unittests", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 568 | "//chrome_elf:chrome_elf_unittests", |
| 569 | "//chrome_elf:dll_hash_main", |
pastarmovj | 02d5cc99 | 2016-12-05 17:55:24 | [diff] [blame] | 570 | "//cloud_print:cloud_print_unittests", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 571 | "//components/wifi:wifi_test", |
| 572 | "//net:quic_client", |
| 573 | "//net:quic_server", |
Xi Cheng | 2d2ec228 | 2018-02-14 20:05:48 | [diff] [blame^] | 574 | "//notification_helper:notification_helper_unittests", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 575 | "//sandbox/win:pocdll", |
| 576 | "//sandbox/win:sandbox_poc", |
| 577 | "//sandbox/win:sbox_integration_tests", |
| 578 | "//sandbox/win:sbox_unittests", |
| 579 | "//sandbox/win:sbox_validation_tests", |
| 580 | "//testing/gtest:gtest_main", |
ajwong | bf19327 | 2017-03-16 00:00:44 | [diff] [blame] | 581 | "//third_party/tcmalloc:addr2line-pdb", |
Xi Cheng | ec65b3b | 2018-02-02 20:42:02 | [diff] [blame] | 582 | |
| 583 | # The following two are accessibility API debugging tools. |
| 584 | "//tools/accessibility/inspect:ax_dump_events", |
| 585 | "//tools/accessibility/inspect:ax_dump_tree", |
robliao | fd54b5c | 2017-01-13 00:41:30 | [diff] [blame] | 586 | "//tools/win/chromeexts:chromeexts", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 587 | ] |
fdoray | fb048bff | 2016-04-28 22:07:36 | [diff] [blame] | 588 | |
| 589 | if (!(is_component_build && is_debug && target_cpu == "x86")) { |
| 590 | deps += |
| 591 | [ "//chrome/installer/mini_installer:next_version_mini_installer" ] |
| 592 | } |
scottmg | 6ea9ff3e | 2017-05-19 00:08:16 | [diff] [blame] | 593 | } else if (!is_android && !is_ios && !is_fuchsia) { |
Mark Mentovai | ebb9ddd | 2017-09-25 17:24:41 | [diff] [blame] | 594 | deps += [ "//third_party/breakpad:symupload($host_toolchain)" ] |
mohsen | f837da7c | 2014-12-09 19:01:34 | [diff] [blame] | 595 | } |
rsesek | 985bd81 | 2016-04-26 21:06:15 | [diff] [blame] | 596 | |
slan | ce9d62f | 2015-11-04 01:15:01 | [diff] [blame] | 597 | if (is_chromecast) { |
| 598 | deps += [ "//chromecast:cast_shell" ] |
| 599 | } |
miu | 45b848fe | 2015-11-26 01:23:29 | [diff] [blame] | 600 | |
rsesek | 985bd81 | 2016-04-26 21:06:15 | [diff] [blame] | 601 | if (is_mac || is_win) { |
| 602 | deps += [ |
Mark Mentovai | 1782adb | 2017-11-08 05:11:27 | [diff] [blame] | 603 | "//third_party/crashpad/crashpad:crashpad_tests", |
rsesek | 985bd81 | 2016-04-26 21:06:15 | [diff] [blame] | 604 | "//third_party/crashpad/crashpad/handler:crashpad_handler", |
| 605 | "//third_party/crashpad/crashpad/tools:crashpad_database_util", |
| 606 | ] |
| 607 | } |
| 608 | |
hbos | 17a7b4a2 | 2015-12-07 10:49:45 | [diff] [blame] | 609 | if (use_openh264) { |
| 610 | deps += [ |
| 611 | "//third_party/openh264:common", |
| 612 | "//third_party/openh264:encoder", |
| 613 | "//third_party/openh264:processing", |
| 614 | ] |
| 615 | } |
dpranke | 2a29462 | 2015-08-07 05:23:01 | [diff] [blame] | 616 | |
Peter Beverloo | 6994832 | 2017-07-28 19:01:57 | [diff] [blame] | 617 | if (enable_message_center) { |
| 618 | deps += [ "//ui/message_center:message_center_unittests" ] |
| 619 | } |
| 620 | |
scottmg | 2f97ee12 | 2017-05-12 17:50:37 | [diff] [blame] | 621 | if (!is_android && !is_ios && !is_fuchsia) { |
scheib | 35dc920 | 2016-04-26 22:35:43 | [diff] [blame] | 622 | deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ] |
| 623 | } |
| 624 | |
scottmg | 2f97ee12 | 2017-05-12 17:50:37 | [diff] [blame] | 625 | if (!is_android && !is_ios && !is_chromeos && !is_fuchsia) { |
xjz | 9da99802 | 2016-10-26 01:22:11 | [diff] [blame] | 626 | deps += [ "//components/proximity_auth:proximity_auth_unittests" ] |
isherman | 0f89b43eb | 2015-04-11 00:02:45 | [diff] [blame] | 627 | } |
| 628 | |
ben | 8f4e95ad | 2015-12-01 18:35:58 | [diff] [blame] | 629 | if (is_win || is_linux) { |
sky | 70471b2 | 2016-01-14 16:20:54 | [diff] [blame] | 630 | deps += [ |
| 631 | "//mash:all", |
xhwang | 9c958fd | 2016-12-05 23:17:16 | [diff] [blame] | 632 | "//media/mojo/services:media_service_unittests", |
sky | fcde3a4 | 2016-02-09 20:27:44 | [diff] [blame] | 633 | "//mojo", |
ben | 6b0453d | 2016-07-02 04:27:19 | [diff] [blame] | 634 | "//services/ui/demo", |
| 635 | "//services/ui/ws:tests", |
qyearsley | 88bc480 | 2016-05-17 18:02:34 | [diff] [blame] | 636 | "//ui/views/mus:views_mus_interactive_ui_tests", |
ben | a5d1cd4 | 2016-04-29 22:59:53 | [diff] [blame] | 637 | "//ui/views/mus:views_mus_unittests", |
sky | 70471b2 | 2016-01-14 16:20:54 | [diff] [blame] | 638 | ] |
kylechar | 5c9a1fb | 2016-10-21 13:17:25 | [diff] [blame] | 639 | |
wez | 0ee841c | 2016-12-21 20:36:20 | [diff] [blame] | 640 | # crbug.com/676055: media_service_unittests fails to link under Windows |
| 641 | # component builds, due to duplicate symbol definitions. |
| 642 | if (is_win && is_component_build) { |
| 643 | deps -= [ "//media/mojo/services:media_service_unittests" ] |
| 644 | } |
sky | 97b6559 | 2015-11-02 20:08:25 | [diff] [blame] | 645 | } |
| 646 | |
Oystein Eftevaag | 9ef3128 | 2018-01-23 00:57:50 | [diff] [blame] | 647 | if (is_mac || is_linux || is_android) { |
Oystein Eftevaag | a9439b9 | 2018-01-08 19:30:14 | [diff] [blame] | 648 | deps += [ "//third_party/perfetto:all" ] |
| 649 | } |
| 650 | |
stevenjb | 7b6fd64 | 2016-05-18 18:15:30 | [diff] [blame] | 651 | if (is_linux && !is_chromeos && !is_chromecast) { |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 652 | # TODO(GYP): Figure out if any of these should be in gn_all |
| 653 | # and figure out how cross-platform they are |
isherman | 0f89b43eb | 2015-04-11 00:02:45 | [diff] [blame] | 654 | deps += [ |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 655 | "//chrome/installer/util:strings", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 656 | "//chrome/tools/convert_dict", |
| 657 | "//components/constrained_window:unit_tests", |
erg | 4652931e | 2016-04-27 22:15:40 | [diff] [blame] | 658 | "//components/filesystem:filesystem_service_unittests", |
erg | f1f689f | 2016-03-22 00:51:20 | [diff] [blame] | 659 | "//components/leveldb:leveldb_service_unittests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 660 | "//components/metrics:serialization", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 661 | "//components/rappor:unit_tests", |
| 662 | "//components/sessions:unit_tests", |
| 663 | "//media/blink:media_blink_unittests", |
stevenjb | 7b6fd64 | 2016-05-18 18:15:30 | [diff] [blame] | 664 | "//media/cast:udp_proxy", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 665 | "//storage/browser:dump_file_system", |
| 666 | "//third_party/angle:libANGLE", |
| 667 | "//third_party/angle:libEGL", |
| 668 | "//third_party/angle:libGLESv2", |
pwnall | cfb346f1 | 2017-03-02 22:01:37 | [diff] [blame] | 669 | "//third_party/leveldatabase:leveldb_test_targets", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 670 | "//third_party/libjpeg_turbo:simd", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 671 | "//third_party/opus:opus_compare", |
| 672 | "//third_party/opus:opus_demo", |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 673 | "//third_party/opus:test_opus_api", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 674 | "//third_party/opus:test_opus_decode", |
| 675 | "//third_party/opus:test_opus_encode", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 676 | "//third_party/opus:test_opus_padding", |
| 677 | "//third_party/webrtc/system_wrappers:field_trial_default", |
| 678 | "//third_party/webrtc/system_wrappers:metrics_default", |
| 679 | "//ui/display/types", |
| 680 | "//ui/shell_dialogs:shell_dialogs_unittests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 681 | ] |
dpranke | b071354 | 2015-07-31 21:07:21 | [diff] [blame] | 682 | |
ossy.szeged | d584dd7 | 2016-11-21 11:36:18 | [diff] [blame] | 683 | if (enable_nacl) { |
| 684 | deps += [ "//native_client/src/trusted/debug_stub:gdb_rsp_unittest" ] |
| 685 | } |
| 686 | |
Gordana.Cmiljanovic | 85746ff1 | 2015-04-28 08:17:16 | [diff] [blame] | 687 | if (target_cpu == "x86" || target_cpu == "x64") { |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 688 | if (!is_android) { |
| 689 | deps += [ "//chrome/test:load_library_perf_tests" ] |
| 690 | } |
Dirk Pranke | 4dabe80 | 2017-11-02 07:18:55 | [diff] [blame] | 691 | if (enable_nacl) { |
| 692 | deps += [ "//native_client/src/trusted/platform_qualify:vcpuid" ] |
| 693 | } |
| 694 | deps += [ "//third_party/libjpeg_turbo:simd_asm" ] |
Gordana.Cmiljanovic | 85746ff1 | 2015-04-28 08:17:16 | [diff] [blame] | 695 | } |
dpranke | 807f602 | 2015-03-17 23:20:56 | [diff] [blame] | 696 | if (is_linux && current_toolchain == host_toolchain) { |
jochen | 11513aa0 | 2016-05-11 09:59:51 | [diff] [blame] | 697 | deps += [ "//v8:v8_shell" ] |
dpranke | 807f602 | 2015-03-17 23:20:56 | [diff] [blame] | 698 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 699 | } |
dpranke | b071354 | 2015-07-31 21:07:21 | [diff] [blame] | 700 | |
aizatsky | af49611 | 2016-04-15 19:26:32 | [diff] [blame] | 701 | if ((is_linux && !is_chromeos && !is_chromecast) || (is_win && use_drfuzz) || |
| 702 | (use_libfuzzer && is_mac)) { |
| 703 | deps += [ |
| 704 | "//testing/libfuzzer/fuzzers", |
| 705 | "//testing/libfuzzer/tests:libfuzzer_tests", |
aizatsky | 3f56017 | 2016-06-03 23:26:06 | [diff] [blame] | 706 | "//third_party/icu/fuzzers", |
noel | 6997c5c | 2017-04-13 14:12:18 | [diff] [blame] | 707 | "//third_party/qcms:fuzzers", |
Lei Zhang | 1295fa76 | 2017-12-12 00:49:16 | [diff] [blame] | 708 | "//third_party/zlib/contrib/tests/fuzzers", |
aizatsky | af49611 | 2016-04-15 19:26:32 | [diff] [blame] | 709 | ] |
| 710 | } |
| 711 | |
sbc | 92b4d57 | 2016-02-18 03:28:23 | [diff] [blame] | 712 | if (enable_nacl) { |
| 713 | deps += [ "//native_client_sdk/src:nacl_core_sdk" ] |
| 714 | } |
| 715 | |
skyostil | fe11616 | 2016-02-26 20:53:33 | [diff] [blame] | 716 | if (is_linux && use_ozone) { |
| 717 | deps += [ |
| 718 | "//headless", |
| 719 | "//headless:headless_tests", |
| 720 | ] |
| 721 | } |
Christopher Grant | 193648b | 2017-06-07 15:08:36 | [diff] [blame] | 722 | |
| 723 | if (enable_vr) { |
Tibor Goldschwendt | 213a4220 | 2017-10-17 20:13:44 | [diff] [blame] | 724 | deps += [ |
| 725 | "//chrome/browser/vr:vr_common_perftests", |
| 726 | "//chrome/browser/vr:vr_common_unittests", |
Christopher Grant | 55c1589 | 2017-11-21 14:03:32 | [diff] [blame] | 727 | "//chrome/browser/vr:vr_pixeltests", |
Tibor Goldschwendt | 213a4220 | 2017-10-17 20:13:44 | [diff] [blame] | 728 | ] |
bsheedy | b360bdad | 2018-01-18 17:33:13 | [diff] [blame] | 729 | if (is_desktop_linux && use_ozone) { |
Christopher Grant | 16c6f4e | 2017-09-29 02:12:13 | [diff] [blame] | 730 | deps += [ "//chrome/browser/vr/testapp:vr_testapp" ] |
| 731 | } |
Yash Malik | 8109b5b | 2017-07-13 22:40:03 | [diff] [blame] | 732 | if (is_android) { |
| 733 | deps += [ "//tools/perf/contrib/vr_benchmarks:vr_perf_tests" ] |
| 734 | } |
Christopher Grant | 193648b | 2017-06-07 15:08:36 | [diff] [blame] | 735 | } |
Scott Graham | f24e374 | 2017-08-11 17:50:22 | [diff] [blame] | 736 | |
| 737 | if (is_fuchsia) { |
Wez | 57c9639 | 2017-12-05 22:19:05 | [diff] [blame] | 738 | deps += [ |
| 739 | "//headless", |
| 740 | "//headless:headless_shell", |
| 741 | "//headless:headless_tests", |
| 742 | ] |
Scott Graham | f24e374 | 2017-08-11 17:50:22 | [diff] [blame] | 743 | } |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 744 | } |
| 745 | |
Scott Graham | 677e7910 | 2017-08-15 20:07:37 | [diff] [blame] | 746 | if (is_fuchsia) { |
| 747 | # TODO(https://crbug.com/731217): This can't practically be in //v8 without |
| 748 | # duplicating all the Fuchsia running infrastructure there. |
| 749 | fuchsia_executable_runner("d8_fuchsia") { |
Kevin Marshall | dc4c6c9 | 2017-08-30 17:01:03 | [diff] [blame] | 750 | exe_target = "//v8:d8" |
Scott Graham | 677e7910 | 2017-08-15 20:07:37 | [diff] [blame] | 751 | } |
| 752 | } |
| 753 | |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 754 | # TODO(GYP_GONE): Figure out if we really need this target or if there's |
| 755 | # some better way to specify things. |
| 756 | if (is_win) { |
| 757 | group("chrome_official_builder_no_unittests") { |
| 758 | deps = [ |
proberge | fe47600 | 2017-06-23 14:29:01 | [diff] [blame] | 759 | "//chrome/common/win:eventlog_provider", |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 760 | "//chrome/installer/gcapi", |
| 761 | "//chrome/installer/mini_installer", |
| 762 | "//cloud_print", |
| 763 | "//cloud_print/virtual_driver/win/port_monitor:copy_gcp_portmon_binaries", |
| 764 | "//components/policy:pack_policy_templates", |
| 765 | "//courgette", |
| 766 | "//courgette:copy_courgette_binaries", |
| 767 | "//remoting/webapp", |
holte | b87f01f5 | 2017-04-10 20:45:53 | [diff] [blame] | 768 | "//tools/metrics:metrics_metadata", |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 769 | ] |
| 770 | |
| 771 | if (target_cpu == "x86") { |
| 772 | if (is_clang) { |
Nico Weber | 94d731c1 | 2017-07-25 19:40:46 | [diff] [blame] | 773 | deps += [ "//courgette(//build/toolchain/win:win_clang_x64)" ] |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 774 | } else { |
| 775 | deps += [ "//courgette(//build/toolchain/win:x64)" ] |
| 776 | } |
| 777 | } |
| 778 | if (is_chrome_branded) { |
| 779 | deps += [ "//remoting/host:remoting_host_installation" ] |
| 780 | } |
| 781 | } |
| 782 | |
| 783 | group("chrome_official_builder") { |
| 784 | testonly = true |
| 785 | |
| 786 | deps = [ |
| 787 | ":chrome_official_builder_no_unittests", |
| 788 | "//base:base_unittests", |
| 789 | "//chrome/test:browser_tests", |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 790 | "//ipc:ipc_tests", |
| 791 | "//media:media_unittests", |
| 792 | "//media/midi:midi_unittests", |
| 793 | "//net:net_unittests", |
| 794 | "//printing:printing_unittests", |
| 795 | "//sql:sql_unittests", |
| 796 | "//ui/base:ui_base_unittests", |
| 797 | "//ui/gfx:gfx_unittests", |
| 798 | "//ui/touch_selection:ui_touch_selection_unittests", |
| 799 | "//ui/views:views_unittests", |
| 800 | "//url:url_unittests", |
| 801 | ] |
| 802 | } |
| 803 | |
| 804 | group("All_syzygy") { |
| 805 | if (is_syzyasan) { |
| 806 | deps = [ |
| 807 | "//chrome/installer/mini_installer:mini_installer", |
| 808 | "//chrome/installer/mini_installer:mini_installer_syzygy", |
| 809 | ] |
| 810 | } |
| 811 | } |
| 812 | |
| 813 | if (is_syzyasan) { |
| 814 | group("chrome_official_syzyasan_builder") { |
| 815 | deps = [ |
| 816 | ":All_syzygy", |
| 817 | ":chrome_official_builder_no_unittests", |
| 818 | ] |
| 819 | } |
| 820 | } |
| 821 | } |
| 822 | |
| 823 | if (is_chromeos) { |
| 824 | group("chromiumos_preflight") { |
| 825 | testonly = true |
| 826 | deps = [ |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 827 | "//chrome", |
| 828 | "//chrome/test/chromedriver", |
| 829 | "//media:media_unittests", |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 830 | "//ppapi/examples/video_decode", |
| 831 | "//sandbox/linux:chrome_sandbox", |
| 832 | "//sandbox/linux:sandbox_linux_unittests", |
Mark Mentovai | ebb9ddd | 2017-09-25 17:24:41 | [diff] [blame] | 833 | "//third_party/breakpad:minidump_stackwalk($host_toolchain)", |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 834 | |
| 835 | # Blocked on https://github.com/catapult-project/catapult/issues/2297 |
| 836 | #"//third_party/catapult/telemetry:bitmaptools", |
| 837 | "//tools/perf/clear_system_cache", |
| 838 | ] |
Alexandre Courbot | 8ad2427d | 2017-08-25 14:04:55 | [diff] [blame] | 839 | |
| 840 | if (use_v4l2_codec || use_vaapi) { |
| 841 | deps += [ |
| 842 | "//media/gpu:video_decode_accelerator_unittest", |
| 843 | "//media/gpu:video_encode_accelerator_unittest", |
| 844 | ] |
| 845 | } |
tfarina | fbc99249 | 2017-03-08 22:44:04 | [diff] [blame] | 846 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 847 | } |
| 848 | |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 849 | group("gn_visibility") { |
dpranke | d62d851 | 2015-03-02 03:06:03 | [diff] [blame] | 850 | deps = [ |
dpranke | b6128d0 | 2015-05-01 16:40:30 | [diff] [blame] | 851 | "//build/config/sanitizers:options_sources", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 852 | # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility? |
| 853 | # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility? |
dpranke | d62d851 | 2015-03-02 03:06:03 | [diff] [blame] | 854 | ] |
dpranke | d2fb522 | 2015-09-10 22:39:05 | [diff] [blame] | 855 | |
| 856 | if (!is_ios) { |
Peng Huang | a3f0ece | 2018-01-20 01:22:46 | [diff] [blame] | 857 | deps += [ "//v8:postmortem-metadata" ] |
| 858 | if (v8_use_snapshot) { |
| 859 | deps += [ "//v8:v8_snapshot" ] |
| 860 | } |
dpranke | d2fb522 | 2015-09-10 22:39:05 | [diff] [blame] | 861 | } |
dpranke | d62d851 | 2015-03-02 03:06:03 | [diff] [blame] | 862 | } |
| 863 | |
Sergey Ulanov | daa25ebc | 2018-01-02 18:17:17 | [diff] [blame] | 864 | if (!is_ios) { |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 865 | # This group includes all of the targets needed to build and test Blink, |
| 866 | # including running the layout tests (see below). |
| 867 | group("blink_tests") { |
| 868 | testonly = true |
| 869 | |
| 870 | deps = [ |
tansell | 88df4259 | 2016-11-15 07:22:59 | [diff] [blame] | 871 | ":webkit_layout_tests", |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 872 | "//third_party/WebKit/public:all_blink", |
tansell | 88df4259 | 2016-11-15 07:22:59 | [diff] [blame] | 873 | ] |
| 874 | } |
| 875 | |
| 876 | # Layout tests runner |
| 877 | # third_party/WebKit/Tools/Scripts/run-webkit-tests |
| 878 | group("run_webkit_tests") { |
| 879 | testonly = true |
| 880 | deps = [ |
| 881 | ":webkit_layout_tests", |
| 882 | ] |
| 883 | } |
| 884 | |
| 885 | # https://www.chromium.org/developers/testing/webkit-layout-tests |
tansell | 0e6baaf2 | 2017-02-16 09:14:53 | [diff] [blame] | 886 | |
| 887 | # The _exparchive at the end of the name indicates to the isolate recipe |
| 888 | # that the isolate should be archived separately using the `exparchive` |
| 889 | # command, rather than as part of the normal `batcharchive` command. |
| 890 | group("webkit_layout_tests_exparchive") { |
| 891 | testonly = true |
| 892 | deps = [ |
| 893 | ":webkit_layout_tests", |
| 894 | ] |
| 895 | data_deps = [ |
| 896 | ":webkit_layout_tests", |
| 897 | ] |
| 898 | } |
| 899 | |
| 900 | # This target contains only a small subset of the layout tests, |
| 901 | # and is useful for testing with the regular isolate mechanism. |
| 902 | # To run the full layout test suite you need to use |
| 903 | # :webkit_layout_tests_exparchive, above, instead. |
tansell | 88df4259 | 2016-11-15 07:22:59 | [diff] [blame] | 904 | group("webkit_layout_tests") { |
| 905 | testonly = true |
tansell | 88df4259 | 2016-11-15 07:22:59 | [diff] [blame] | 906 | data_deps = [ |
yzshen | a064699 | 2017-04-02 22:01:27 | [diff] [blame] | 907 | ":layout_test_data_mojo_bindings", |
tansell | 88df4259 | 2016-11-15 07:22:59 | [diff] [blame] | 908 | "//content/shell:content_shell", |
yzshen | 9e737bf | 2017-06-21 19:38:23 | [diff] [blame] | 909 | "//content/test:mojo_layouttest_bindings_js_data_deps", |
Reilly Grant | fa93b14 | 2018-02-01 02:13:48 | [diff] [blame] | 910 | "//device/bluetooth/public/mojom:fake_bluetooth_interfaces_js_data_deps", |
| 911 | "//device/usb/public/mojom:mojom_js_data_deps", |
| 912 | "//device/vr/public/mojom:mojom_js_data_deps", |
yzshen | 9e737bf | 2017-06-21 19:38:23 | [diff] [blame] | 913 | "//media/capture/mojo:image_capture_js_data_deps", |
| 914 | "//mojo/public/interfaces/bindings/tests:test_data_deps", |
| 915 | "//services/device/public/interfaces:interfaces_js_data_deps", |
Ke He | 6071829 | 2017-07-06 04:08:11 | [diff] [blame] | 916 | "//services/device/public/interfaces:generic_sensor_js_data_deps", |
Ken Rockot | d7e999b | 2018-02-11 15:48:21 | [diff] [blame] | 917 | "//services/shape_detection/public/mojom:mojom_js_data_deps", |
tansell | 2bf83ac | 2017-02-18 04:01:14 | [diff] [blame] | 918 | "//third_party/WebKit/public:blink_devtools_frontend_resources_files", |
yzshen | 9e737bf | 2017-06-21 19:38:23 | [diff] [blame] | 919 | "//third_party/WebKit/public:mojo_bindings_js_data_deps", |
tansell | aac85d7 | 2017-02-17 05:13:04 | [diff] [blame] | 920 | "//third_party/mesa:osmesa", |
agrieve | 993374cf | 2016-04-13 00:05:39 | [diff] [blame] | 921 | "//tools/imagediff", |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 922 | ] |
| 923 | |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 924 | if (is_android) { |
tansell | 88df4259 | 2016-11-15 07:22:59 | [diff] [blame] | 925 | data_deps += [ |
Mark Mentovai | ebb9ddd | 2017-09-25 17:24:41 | [diff] [blame] | 926 | "//third_party/breakpad:breakpad_unittests", |
| 927 | "//third_party/breakpad:dump_syms", |
| 928 | "//third_party/breakpad:microdump_stackwalk", |
| 929 | "//third_party/breakpad:minidump_dump", |
| 930 | "//third_party/breakpad:minidump_stackwalk", |
| 931 | "//third_party/breakpad:symupload", |
jbudorick | e7bcf09 | 2016-09-28 18:24:14 | [diff] [blame] | 932 | "//tools/android/forwarder2", |
ojan | 94989c7 | 2015-07-17 21:56:42 | [diff] [blame] | 933 | ] |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 934 | } |
| 935 | |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 936 | if (!is_win && !is_android) { |
Mark Mentovai | ebb9ddd | 2017-09-25 17:24:41 | [diff] [blame] | 937 | data_deps += |
| 938 | [ "//third_party/breakpad:minidump_stackwalk($host_toolchain)" ] |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 939 | } |
| 940 | |
| 941 | if (is_mac) { |
Mark Mentovai | ebb9ddd | 2017-09-25 17:24:41 | [diff] [blame] | 942 | data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ] |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 943 | } |
| 944 | |
| 945 | if (is_linux) { |
Mark Mentovai | ebb9ddd | 2017-09-25 17:24:41 | [diff] [blame] | 946 | data_deps += [ "//third_party/breakpad:dump_syms($host_toolchain)" ] |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 947 | } |
qyearsley | 165a17a8 | 2016-08-01 17:58:50 | [diff] [blame] | 948 | |
Sergey Ulanov | daa25ebc | 2018-01-02 18:17:17 | [diff] [blame] | 949 | if (is_fuchsia) { |
Sergey Ulanov | 7de8580 | 2018-01-19 19:50:34 | [diff] [blame] | 950 | data_deps += [ |
| 951 | "//content/shell:content_shell_fuchsia", |
| 952 | "//build/fuchsia/layout_test_proxy:layout_test_proxy_runner", |
| 953 | ] |
Sergey Ulanov | daa25ebc | 2018-01-02 18:17:17 | [diff] [blame] | 954 | } |
| 955 | |
qyearsley | 165a17a8 | 2016-08-01 17:58:50 | [diff] [blame] | 956 | data = [ |
tansell | 5509091 | 2017-02-20 12:54:31 | [diff] [blame] | 957 | "$root_build_dir/resources/inspector/", |
tansell | 88df4259 | 2016-11-15 07:22:59 | [diff] [blame] | 958 | "//testing/scripts/common.py", |
tansell | 0e6baaf2 | 2017-02-16 09:14:53 | [diff] [blame] | 959 | "//testing/scripts/run_isolated_script_test.py", |
tansell | 5509091 | 2017-02-20 12:54:31 | [diff] [blame] | 960 | "//testing/xvfb.py", |
qyearsley | 165a17a8 | 2016-08-01 17:58:50 | [diff] [blame] | 961 | "//third_party/WebKit/LayoutTests/", |
tansell | 2bf83ac | 2017-02-18 04:01:14 | [diff] [blame] | 962 | "//third_party/WebKit/PerformanceTests/", |
qyearsley | 165a17a8 | 2016-08-01 17:58:50 | [diff] [blame] | 963 | "//third_party/WebKit/Tools/Scripts/", |
| 964 | ] |
tansell | 0e6baaf2 | 2017-02-16 09:14:53 | [diff] [blame] | 965 | |
tansell | 820f7df | 2017-02-16 13:59:15 | [diff] [blame] | 966 | if (is_win) { |
tansell | 1b05bbd | 2017-05-04 09:30:32 | [diff] [blame] | 967 | data += [ |
| 968 | "//third_party/apache-win32/", |
tansell | 1b05bbd | 2017-05-04 09:30:32 | [diff] [blame] | 969 | "//third_party/perl/", |
| 970 | ] |
tansell | 820f7df | 2017-02-16 13:59:15 | [diff] [blame] | 971 | } |
| 972 | |
tansell | 0e6baaf2 | 2017-02-16 09:14:53 | [diff] [blame] | 973 | if (is_android) { |
| 974 | data += [ |
| 975 | "//third_party/catapult/", |
| 976 | "//build/android/", |
| 977 | ] |
| 978 | } |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 979 | } |
yzshen | a064699 | 2017-04-02 22:01:27 | [diff] [blame] | 980 | |
| 981 | copy("layout_test_data_mojo_bindings") { |
| 982 | testonly = true |
| 983 | |
| 984 | sources = [ |
| 985 | "$root_gen_dir/mojo/public/js/mojo_bindings.js", |
| 986 | ] |
| 987 | |
| 988 | outputs = [ |
| 989 | "$root_gen_dir/layout_test_data/mojo/public/js/mojo_bindings.js", |
| 990 | ] |
| 991 | |
| 992 | deps = [ |
Yuzhu Shen | 4ccd269 | 2017-12-11 19:14:25 | [diff] [blame] | 993 | "//mojo/public/js:bindings", |
yzshen | a064699 | 2017-04-02 22:01:27 | [diff] [blame] | 994 | ] |
| 995 | } |
Dirk Pranke | 43a5c81 | 2017-09-06 03:25:41 | [diff] [blame] | 996 | |
| 997 | group("webkit_python_tests") { |
| 998 | data = [ |
| 999 | "//build/android/", |
| 1000 | "//components/crash/content/tools/generate_breakpad_symbols.py", |
| 1001 | "//testing/scripts/common.py", |
| 1002 | "//testing/scripts/run_isolated_script_test.py", |
| 1003 | "//testing/test_env.py", |
| 1004 | "//testing/xvfb.py", |
| 1005 | "//third_party/WebKit/LayoutTests/ASANExpectations", |
| 1006 | "//third_party/WebKit/LayoutTests/LeakExpectations", |
| 1007 | "//third_party/WebKit/LayoutTests/MSANExpectations", |
| 1008 | "//third_party/WebKit/LayoutTests/NeverFixTests", |
| 1009 | "//third_party/WebKit/LayoutTests/StaleTestExpectations", |
| 1010 | "//third_party/WebKit/LayoutTests/SlowTests", |
| 1011 | "//third_party/WebKit/LayoutTests/TestExpectations", |
| 1012 | "//third_party/WebKit/LayoutTests/VirtualTestSuites", |
| 1013 | "//third_party/WebKit/Source/bindings/scripts/", |
| 1014 | "//third_party/WebKit/Tools/Scripts/", |
| 1015 | "//third_party/blink/tools/", |
| 1016 | "//third_party/catapult/common/py_utils/", |
| 1017 | "//third_party/catapult/devil/", |
| 1018 | "//third_party/catapult/dependency_manager/", |
| 1019 | "//third_party/catapult/third_party/zipfile/", |
| 1020 | "//third_party/depot_tools/pylint.py", |
| 1021 | "//third_party/depot_tools/pylintrc", |
| 1022 | "//third_party/depot_tools/third_party/logilab/", |
| 1023 | "//third_party/depot_tools/third_party/pylint/", |
| 1024 | "//third_party/depot_tools/third_party/pylint.py", |
| 1025 | "//third_party/ply/", |
| 1026 | "//third_party/pymock/", |
| 1027 | "//third_party/typ/", |
| 1028 | "//tools/idl_parser/", |
| 1029 | ] |
| 1030 | } |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 1031 | } |
| 1032 | |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 1033 | group("chromium_builder_perf") { |
| 1034 | testonly = true |
| 1035 | |
scottmg | 2f97ee12 | 2017-05-12 17:50:37 | [diff] [blame] | 1036 | if (!is_ios && !is_android && !is_chromecast && !is_fuchsia) { |
malets | 6b706240 | 2016-09-15 08:14:26 | [diff] [blame] | 1037 | data_deps = [ |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 1038 | "//cc:cc_perftests", |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 1039 | "//chrome/test:load_library_perf_tests", |
Emily Hanley | edab9e5 | 2018-01-17 18:47:32 | [diff] [blame] | 1040 | "//chrome/test:performance_test_suite", |
eyaich | e1605ca | 2016-09-14 14:34:05 | [diff] [blame] | 1041 | "//chrome/test:telemetry_perf_tests", |
kraynov | c079758 | 2016-10-25 16:45:06 | [diff] [blame] | 1042 | "//components/tracing:tracing_perftests", |
Antoine Labour | c6ade25 | 2017-10-19 01:01:16 | [diff] [blame] | 1043 | "//gpu:command_buffer_perftests", |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 1044 | "//gpu:gpu_perftests", |
| 1045 | "//media:media_perftests", |
kbr | 1e58e78 | 2016-05-27 17:21:19 | [diff] [blame] | 1046 | "//tools/perf/chrome_telemetry_build:telemetry_chrome_test", |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 1047 | ] |
| 1048 | |
nednguyen | 6451d7d | 2017-05-09 14:37:54 | [diff] [blame] | 1049 | if (is_android) { |
| 1050 | data += [ "//third_party/android_tools/sdk/platform-tools/adb" ] |
| 1051 | } |
| 1052 | |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 1053 | if (!is_chromeos) { |
malets | 6b706240 | 2016-09-15 08:14:26 | [diff] [blame] | 1054 | data_deps += [ "//chrome/test:performance_browser_tests" ] |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 1055 | } |
| 1056 | if (is_linux && !is_chromeos) { |
dpranke | 9aed5d58 | 2015-11-22 23:22:04 | [diff] [blame] | 1057 | if (is_official_build) { |
| 1058 | # In GN builds, this is controlled by the 'linux_dump_symbols' |
| 1059 | # flag, which defaults to 1 for official builds. For now, |
| 1060 | # we skip the separate flag and just key off of is_official_build. |
malets | 6b706240 | 2016-09-15 08:14:26 | [diff] [blame] | 1061 | data_deps += [ "//chrome:linux_symbols" ] |
dpranke | 9aed5d58 | 2015-11-22 23:22:04 | [diff] [blame] | 1062 | } |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 1063 | |
kraynov | c079758 | 2016-10-25 16:45:06 | [diff] [blame] | 1064 | data_deps += [ "//tools/perf/clear_system_cache" ] |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 1065 | } |
| 1066 | |
| 1067 | if (is_win) { |
Yuly Novikov | 8a6e635 | 2017-11-11 02:00:40 | [diff] [blame] | 1068 | data_deps += [ "//chrome/installer/mini_installer:mini_installer" ] |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 1069 | } else { |
Mark Mentovai | ebb9ddd | 2017-09-25 17:24:41 | [diff] [blame] | 1070 | data_deps += |
| 1071 | [ "//third_party/breakpad:minidump_stackwalk($host_toolchain)" ] |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 1072 | } |
Yuly Novikov | 8a6e635 | 2017-11-11 02:00:40 | [diff] [blame] | 1073 | if (is_win || is_android) { |
| 1074 | data_deps += [ "//chrome/test:angle_perftests" ] |
| 1075 | } |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 1076 | } |
| 1077 | } |
agrieve | 017b91f | 2016-02-29 20:15:06 | [diff] [blame] | 1078 | |
scottmg | 2f97ee12 | 2017-05-12 17:50:37 | [diff] [blame] | 1079 | if (!is_ios && !is_android && !is_chromecast && !is_fuchsia) { |
thakis | 3f7d4fc | 2016-06-10 18:47:50 | [diff] [blame] | 1080 | group("chromium_builder_asan") { |
| 1081 | testonly = true |
| 1082 | |
| 1083 | deps = [ |
| 1084 | "//chrome:chrome", |
| 1085 | "//content/shell:content_shell", |
| 1086 | "//v8:d8", |
| 1087 | ] |
| 1088 | if (!is_win) { |
| 1089 | deps += [ |
| 1090 | "//net:dns_fuzz_stub", |
thakis | 3f7d4fc | 2016-06-10 18:47:50 | [diff] [blame] | 1091 | "//skia:filter_fuzz_stub", |
| 1092 | ] |
| 1093 | } |
| 1094 | if (enable_ipc_fuzzer && !is_component_build) { |
| 1095 | deps += [ "//tools/ipc_fuzzer:ipc_fuzzer_all" ] |
| 1096 | } |
| 1097 | if (!is_chromeos) { |
| 1098 | deps += [ |
| 1099 | "//third_party/pdfium/samples:pdfium_test", |
dpranke | 8a2de90 | 2016-07-14 20:08:37 | [diff] [blame] | 1100 | "//v8:v8_shell($v8_snapshot_toolchain)", |
thakis | 3f7d4fc | 2016-06-10 18:47:50 | [diff] [blame] | 1101 | ] |
| 1102 | } |
thakis | 3f7d4fc | 2016-06-10 18:47:50 | [diff] [blame] | 1103 | if (is_win && symbol_level == 2 && target_cpu == "x86" && is_syzyasan) { |
| 1104 | deps += [ |
| 1105 | "//chrome/tools/build/win/syzygy:chrome_dll_syzygy", |
sebmarchand | a2df339 | 2016-07-13 15:34:59 | [diff] [blame] | 1106 | "//content/shell:content_shell_syzyasan", |
thakis | 3f7d4fc | 2016-06-10 18:47:50 | [diff] [blame] | 1107 | ] |
thakis | 3f7d4fc | 2016-06-10 18:47:50 | [diff] [blame] | 1108 | } |
| 1109 | } |
| 1110 | } |
| 1111 | |
agrieve | 95ba444 | 2016-04-25 15:47:13 | [diff] [blame] | 1112 | if (is_android) { |
| 1113 | group("optimize_gn_gen") { |
| 1114 | deps = [ |
| 1115 | # These run expensive scripts in non-default toolchains. Generally, host |
| 1116 | # toolchain targets are loaded in the later part of the run, and the |
| 1117 | # result is they push out the end of generation. By preloading these, the |
| 1118 | # scripts can be parallelized with the rest of the load. |
| 1119 | "//build/config/linux(//build/toolchain/linux:clang_x64)", |
| 1120 | "//build/config/posix(//build/toolchain/linux:clang_x64)", |
| 1121 | |
| 1122 | # Include x86 toolchains as well since V8 uses them for 32-bit snapshot |
| 1123 | # generation. |
| 1124 | "//build/config/linux(//build/toolchain/linux:clang_x86)", |
| 1125 | "//build/config/posix(//build/toolchain/linux:clang_x86)", |
| 1126 | ] |
| 1127 | } |
| 1128 | } |
| 1129 | |
agrieve | 017b91f | 2016-02-29 20:15:06 | [diff] [blame] | 1130 | # Because of the source assignment filter, many targets end up over-filtering |
| 1131 | # their sources if the output directory contains a platform name. Assert that |
| 1132 | # this doesn't happen. http://crbug.com/548283 |
| 1133 | template("assert_valid_out_dir") { |
| 1134 | # List copied from //build/config/BUILDCONFIG.gn. |
| 1135 | set_sources_assignment_filter([ |
| 1136 | "*\bandroid/*", |
| 1137 | "*\bchromeos/*", |
| 1138 | "*\bcocoa/*", |
| 1139 | "*\bios/*", |
| 1140 | "*\blinux/*", |
| 1141 | "*\bmac/*", |
| 1142 | "*\bposix/*", |
| 1143 | "*\bwin/*", |
| 1144 | ]) |
| 1145 | assert(target_name != "") # Mark as used. |
| 1146 | sources = invoker.actual_sources |
| 1147 | assert( |
| 1148 | sources == invoker.actual_sources, |
| 1149 | "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283") |
| 1150 | } |
| 1151 | |
Christopher Lam | 488e9ef | 2018-01-23 05:00:58 | [diff] [blame] | 1152 | group("webui_closure_compile") { |
| 1153 | data_deps = [] |
| 1154 | if (is_chromeos) { |
| 1155 | data_deps += [ "//chrome/browser/resources/chromeos/login:closure_compile" ] |
Christopher Lam | 997fd81 | 2017-11-03 03:42:40 | [diff] [blame] | 1156 | } |
| 1157 | } |
| 1158 | |
agrieve | 017b91f | 2016-02-29 20:15:06 | [diff] [blame] | 1159 | assert_valid_out_dir("_unused") { |
| 1160 | actual_sources = [ "$root_build_dir/foo" ] |
| 1161 | } |