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