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