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 | |
rockot | 2f1326e | 2015-02-23 23:53:51 | [diff] [blame] | 11 | import("//build/config/features.gni") |
aizatsky | fc46a9f | 2015-10-09 21:20:08 | [diff] [blame] | 12 | import("//build/config/sanitizers/sanitizers.gni") |
tfarina@chromium.org | 378b4f0 | 2014-06-10 15:58:45 | [diff] [blame] | 13 | import("//build/config/ui.gni") |
dpranke | d4da5ab | 2015-10-13 06:20:33 | [diff] [blame] | 14 | import("//build_overrides/v8.gni") |
dpranke | d43eab4 | 2015-12-15 23:10:44 | [diff] [blame] | 15 | import("//build_overrides/webrtc.gni") |
mostynb | 2196a46 | 2015-08-20 17:22:10 | [diff] [blame] | 16 | import("//media/media_options.gni") |
hbos | 17a7b4a2 | 2015-12-07 10:49:45 | [diff] [blame] | 17 | import("//third_party/openh264/openh264_args.gni") |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 18 | |
cjhopman | ca675d3e | 2014-10-24 03:50:45 | [diff] [blame] | 19 | if (is_android) { |
| 20 | import("//build/config/android/config.gni") |
| 21 | } |
tfarina@chromium.org | 378b4f0 | 2014-06-10 15:58:45 | [diff] [blame] | 22 | |
brettw | b84b294 | 2014-10-22 22:58:45 | [diff] [blame] | 23 | declare_args() { |
| 24 | # A list of extra dependencies to add to the root target. This allows a |
| 25 | # checkout to add additional targets without explicitly changing any checked- |
| 26 | # in files. |
| 27 | root_extra_deps = [] |
| 28 | } |
| 29 | |
dpranke | ef9c5e58 | 2015-11-15 23:22:08 | [diff] [blame] | 30 | # This file defines the following five main targets: |
dpranke | d62d851 | 2015-03-02 03:06:03 | [diff] [blame] | 31 | # |
dpranke | ddc17490 | 2015-04-29 01:38:35 | [diff] [blame] | 32 | # "both_gn_and_gyp" should list every root target (target that nothing else |
| 33 | # depends on) built by GN that is also built in the GYP build. |
dpranke | d62d851 | 2015-03-02 03:06:03 | [diff] [blame] | 34 | # |
dpranke | ddc17490 | 2015-04-29 01:38:35 | [diff] [blame] | 35 | # "gn_all" should (transitively) cause everything to be built; if you run |
| 36 | # 'ninja gn_all' and then 'ninja all', the second build should do no work. |
| 37 | # |
dpranke | ef9c5e58 | 2015-11-15 23:22:08 | [diff] [blame] | 38 | # "gn_only" should list every root target that is *not* intended to be built in |
| 39 | # a GYP build. Because GN has different rules for deciding what an 'all' build |
| 40 | # is, this may end up including targets that are actually defined in a GYP |
| 41 | # build but not dependencies of GYP's "all" (and so not actually built). |
dpranke | ddc17490 | 2015-04-29 01:38:35 | [diff] [blame] | 42 | # |
dpranke | b6128d0 | 2015-05-01 16:40:30 | [diff] [blame] | 43 | # "gn_visibility": targets that are normally not visible to top-level targets, |
dpranke | ef9c5e58 | 2015-11-15 23:22:08 | [diff] [blame] | 44 | # but are built anyway by "all". Since we don't want any such targets, we have |
| 45 | # this placeholder to make sure hidden targets that aren't otherwise depended |
| 46 | # on yet are accounted for. |
| 47 | # |
| 48 | # "All" is an alias for "gn_all". It exists for bot compatibility w/ GYP for |
| 49 | # the iOS bots and the official builders, but should not be generally used |
| 50 | # during the GYP->GN migration. We cannot guarantee that GN's "All" builds the |
| 51 | # same set of targets as GYP's "All" does, because GYP's "All" supports |
| 52 | # wildcards. |
| 53 | # |
| 54 | # Lastly, none of these targets are guaranteed to be the same as what ninja |
| 55 | # will build with "all". For more on how "all" works and the differences in how |
| 56 | # GYP and GN determine "all", see crbug.com/503241. |
dpranke | b6128d0 | 2015-05-01 16:40:30 | [diff] [blame] | 57 | # |
dpranke | ddc17490 | 2015-04-29 01:38:35 | [diff] [blame] | 58 | # TODO(GYP): crbug.com/481694. Make sure that the above is true and there are |
dpranke | ef9c5e58 | 2015-11-15 23:22:08 | [diff] [blame] | 59 | # scripts run on the bots that enforce this. Once the GYP migration is over, we |
| 60 | # can collapse all of these targets as desired. |
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") { |
dpranke | ddc17490 | 2015-04-29 01:38:35 | [diff] [blame] | 63 | testonly = true |
| 64 | |
| 65 | deps = [ |
| 66 | ":both_gn_and_gyp", |
| 67 | ":gn_only", |
dpranke | b6128d0 | 2015-05-01 16:40:30 | [diff] [blame] | 68 | ":gn_visibility", |
dpranke | ddc17490 | 2015-04-29 01:38:35 | [diff] [blame] | 69 | ] |
| 70 | } |
| 71 | |
dpranke | ef9c5e58 | 2015-11-15 23:22:08 | [diff] [blame] | 72 | # TODO(GYP): This target exists for compatibility with GYP, specifically |
| 73 | # for the iOS bots and the official builders. |
| 74 | group("All") { |
| 75 | testonly = true |
| 76 | |
| 77 | deps = [ |
| 78 | ":gn_all", |
| 79 | ] |
| 80 | } |
| 81 | |
dpranke | ddc17490 | 2015-04-29 01:38:35 | [diff] [blame] | 82 | # The "both_gn_and_gyp" target should reflect every target that is built |
| 83 | # in both the GN and GYP builds, and ideally it should match the |
| 84 | # "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line. |
| 85 | # |
| 86 | # TODO(GYP): Add build steps that check and enforce this on the bots. |
| 87 | group("both_gn_and_gyp") { |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 88 | testonly = true |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 89 | deps = [ |
| 90 | "//base:base_unittests", |
brettw | a874dcc | 2015-08-28 23:59:18 | [diff] [blame] | 91 | "//chrome/installer", |
sherouk | dc35ba27 | 2015-09-22 14:09:37 | [diff] [blame] | 92 | "//components:components_unittests", |
sherouk | ce1c7d7 | 2015-08-24 15:21:59 | [diff] [blame] | 93 | "//net:net_unittests", |
sherouk | 2866d66 | 2015-08-24 16:29:44 | [diff] [blame] | 94 | "//skia:skia_unittests", |
brettw | a874dcc | 2015-08-28 23:59:18 | [diff] [blame] | 95 | "//sql:sql_unittests", |
sherouk | 3eee4a8 | 2015-09-01 10:42:33 | [diff] [blame] | 96 | "//sync:sync_unit_tests", |
sherouk | 4fb74d4 | 2015-08-24 15:58:41 | [diff] [blame] | 97 | "//ui/base:ui_base_unittests", |
sherouk | 84a45ff | 2015-09-01 13:31:39 | [diff] [blame] | 98 | "//ui/gfx:gfx_unittests", |
sherouk | 4fb74d4 | 2015-08-24 15:58:41 | [diff] [blame] | 99 | "//url:url_unittests", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 100 | ] |
dpranke | 2a29462 | 2015-08-07 05:23:01 | [diff] [blame] | 101 | |
slan | ce9d62f | 2015-11-04 01:15:01 | [diff] [blame] | 102 | if (!is_ios && !is_android && !is_chromecast) { |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 103 | deps += [ |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 104 | "//chrome", |
| 105 | "//chrome/test:browser_tests", |
| 106 | "//chrome/test:interactive_ui_tests", |
| 107 | "//chrome/test:sync_integration_tests", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 108 | "//chrome/test/chromedriver:chromedriver_unittests", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 109 | "//crypto:crypto_unittests", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 110 | "//extensions:extensions_browsertests", |
| 111 | "//extensions:extensions_unittests", |
| 112 | "//google_apis/gcm:gcm_unit_tests", |
dpranke | dbdd9d8 | 2015-08-12 21:18:18 | [diff] [blame] | 113 | "//gpu/gles2_conform_support:gles2_conform_test", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 114 | "//jingle:jingle_unittests", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 115 | "//net:hpack_example_generator", |
| 116 | "//net:hpack_fuzz_mutator", |
| 117 | "//net:hpack_fuzz_wrapper", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 118 | "//ppapi:ppapi_unittests", |
| 119 | "//ppapi/examples/2d", |
| 120 | "//ppapi/examples/audio", |
| 121 | "//ppapi/examples/audio_input", |
| 122 | "//ppapi/examples/compositor", |
| 123 | "//ppapi/examples/crxfs", |
| 124 | "//ppapi/examples/enumerate_devices", |
| 125 | "//ppapi/examples/file_chooser", |
| 126 | "//ppapi/examples/flash_topmost", |
| 127 | "//ppapi/examples/font", |
| 128 | "//ppapi/examples/gamepad", |
| 129 | "//ppapi/examples/gles2", |
| 130 | "//ppapi/examples/gles2_spinning_cube", |
| 131 | "//ppapi/examples/ime", |
| 132 | "//ppapi/examples/input", |
| 133 | "//ppapi/examples/media_stream_audio", |
| 134 | "//ppapi/examples/media_stream_video", |
| 135 | "//ppapi/examples/mouse_cursor", |
| 136 | "//ppapi/examples/mouse_lock", |
| 137 | "//ppapi/examples/printing", |
| 138 | "//ppapi/examples/scaling", |
| 139 | "//ppapi/examples/scripting", |
| 140 | "//ppapi/examples/stub", |
| 141 | "//ppapi/examples/threading", |
| 142 | "//ppapi/examples/url_loader", |
| 143 | "//ppapi/examples/video_capture", |
| 144 | "//ppapi/examples/video_decode", |
| 145 | "//ppapi/examples/video_effects", |
| 146 | "//ppapi/examples/video_encode", |
| 147 | "//printing:printing_unittests", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 148 | "//third_party/cacheinvalidation:cacheinvalidation_unittests", |
| 149 | "//third_party/codesighs", |
pkotwicz | 558d525 | 2015-10-19 21:09:55 | [diff] [blame] | 150 | "//third_party/pdfium/samples:pdfium_test", |
charliea | 0005528 | 2016-01-26 00:15:15 | [diff] [blame] | 151 | "//tools/battor_agent", |
pkotwicz | 558d525 | 2015-10-19 21:09:55 | [diff] [blame] | 152 | "//tools/gn", |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 153 | "//tools/gn:gn_unittests", |
pkotwicz | 558d525 | 2015-10-19 21:09:55 | [diff] [blame] | 154 | "//tools/perf/clear_system_cache", |
| 155 | "//ui/accessibility:accessibility_unittests", |
| 156 | "//ui/app_list:app_list_unittests", |
| 157 | ] |
| 158 | } |
| 159 | |
| 160 | if (!is_ios) { |
| 161 | # TODO(GYP): Figure out which of these should actually build on iOS, |
| 162 | # and whether there should be other targets that are iOS-only and missing. |
| 163 | deps += [ |
| 164 | "//cc:cc_unittests", |
| 165 | "//chrome/test:unit_tests", |
| 166 | "//components:components_browsertests", |
| 167 | "//content/shell:content_shell", |
| 168 | "//content/test:content_browsertests", |
| 169 | "//content/test:content_perftests", |
| 170 | "//content/test:content_unittests", |
| 171 | "//device:device_unittests", |
| 172 | "//gpu:gpu_unittests", |
| 173 | "//ipc:ipc_tests", |
| 174 | "//ipc/mojo:ipc_mojo_unittests", |
| 175 | "//media:media_unittests", |
miu | 45b848fe | 2015-11-26 01:23:29 | [diff] [blame] | 176 | "//media/cast:cast_unittests", |
pkotwicz | 558d525 | 2015-10-19 21:09:55 | [diff] [blame] | 177 | "//media/midi:midi_unittests", |
| 178 | "//mojo", |
pkotwicz | 558d525 | 2015-10-19 21:09:55 | [diff] [blame] | 179 | "//mojo/common:mojo_common_unittests", |
ben | 273c1e3 | 2016-01-12 02:44:08 | [diff] [blame] | 180 | "//mojo/shell/public/cpp", |
pkotwicz | 558d525 | 2015-10-19 21:09:55 | [diff] [blame] | 181 | "//net:net_perftests", |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 182 | |
| 183 | # TODO(use-new-edk): |
| 184 | #"//mojo/edk/system:mojo_system_unittests", |
| 185 | #"//mojo/edk/test:mojo_public_bindings_unittests", |
| 186 | #"//mojo/edk/test:mojo_public_environment_unittests", |
| 187 | #"//mojo/edk/test:mojo_public_system_unittests", |
| 188 | #"//mojo/edk/test:mojo_public_utility_unittests", |
Dirk Pranke | 4980273 | 2015-12-10 01:36:41 | [diff] [blame] | 189 | "//third_party/WebKit/Source/platform:blink_heap_unittests", |
| 190 | "//third_party/WebKit/Source/platform:blink_platform_unittests", |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 191 | "//third_party/WebKit/Source/web:webkit_unit_tests", |
| 192 | "//third_party/WebKit/Source/wtf:wtf_unittests", |
nednguyen | c42bf91 | 2016-01-27 01:39:28 | [diff] [blame] | 193 | "//third_party/catapult/telemetry:bitmaptools($host_toolchain)", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 194 | "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests", |
| 195 | "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests", |
| 196 | "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests", |
| 197 | "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests", |
| 198 | "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 199 | "//third_party/smhasher:pmurhash", |
| 200 | "//tools/imagediff($host_toolchain)", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 201 | "//ui/display:display_unittests", |
| 202 | "//ui/events:events_unittests", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 203 | "//ui/gl:gl_unittests", |
| 204 | "//ui/touch_selection:ui_touch_selection_unittests", |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 205 | ] |
sdefresne | 998e858 | 2015-10-07 13:36:45 | [diff] [blame] | 206 | } else { |
sdefresne | a378b45 | 2015-10-08 09:55:58 | [diff] [blame] | 207 | deps += [ |
| 208 | "//ios/net:ios_net_unittests", |
sdefresne | 89308c9 | 2015-11-16 10:40:34 | [diff] [blame] | 209 | "//ios/public/provider/web", |
sdefresne | c6ddd7ac | 2015-10-09 17:30:19 | [diff] [blame] | 210 | "//ios/testing:ocmock_support_unittest", |
sdefresne | aa7c1cf | 2015-10-22 00:41:11 | [diff] [blame] | 211 | "//ios/web:ios_web_unittests", |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 212 | "//ios/web/shell:ios_web_shell", |
sdefresne | a378b45 | 2015-10-08 09:55:58 | [diff] [blame] | 213 | ] |
dpranke | d43eab4 | 2015-12-15 23:10:44 | [diff] [blame] | 214 | |
| 215 | if (ios_use_webrtc) { |
| 216 | deps += [ |
| 217 | "//ios/chrome:ios_chrome_unittests", |
| 218 | "//ios/chrome/app", |
| 219 | "//ios/chrome/browser", |
| 220 | "//ios/chrome/common", |
| 221 | "//ios/public/provider/chrome/browser", |
| 222 | ] |
| 223 | } |
agrieve | 97dd57d | 2016-01-05 19:26:27 | [diff] [blame] | 224 | } |
| 225 | |
scottmg | 34fb7e5 | 2014-12-03 23:27:24 | [diff] [blame] | 226 | deps += root_extra_deps |
brettw@chromium.org | fce5c3fe | 2014-04-10 21:13:05 | [diff] [blame] | 227 | |
tfarina | 4aa9edc | 2015-10-26 22:14:02 | [diff] [blame] | 228 | if (enable_extensions) { |
rockot | 2f1326e | 2015-02-23 23:53:51 | [diff] [blame] | 229 | deps += [ "//extensions/shell:app_shell_unittests" ] |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 230 | } |
| 231 | |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 232 | if (enable_media_router) { |
imcheng | b6b09239f | 2015-05-15 21:41:55 | [diff] [blame] | 233 | deps += [ "//chrome/browser/media/router" ] |
rockot | 2f1326e | 2015-02-23 23:53:51 | [diff] [blame] | 234 | } |
| 235 | |
garykac | 3eddb5b | 2015-04-17 23:16:38 | [diff] [blame] | 236 | if (enable_remoting) { |
| 237 | deps += [ "//remoting:remoting_all" ] |
James Robinson | 060f2e3 | 2014-09-10 22:31:37 | [diff] [blame] | 238 | } |
| 239 | |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 240 | if (toolkit_views) { |
| 241 | deps += [ "//ui/views:views_unittests" ] |
brettw@chromium.org | 6b9028ab | 2014-07-23 17:15:38 | [diff] [blame] | 242 | } |
| 243 | |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 244 | if (use_aura) { |
| 245 | deps += [ "//ui/wm:wm_unittests" ] |
| 246 | } |
| 247 | |
| 248 | if (use_ozone) { |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 249 | deps += [ "//ui/ozone" ] |
tfarina@chromium.org | a306aaa | 2014-05-24 13:21:50 | [diff] [blame] | 250 | } |
| 251 | |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 252 | if (use_x11) { |
| 253 | deps += [ "//tools/xdisplaycheck" ] |
kmarshall | d2f3bea | 2015-03-11 23:42:22 | [diff] [blame] | 254 | } |
| 255 | |
tmoniuszko | e5578b92 | 2015-04-14 09:38:03 | [diff] [blame] | 256 | if (enable_configuration_policy) { |
| 257 | deps += [ "//components/policy:policy_templates" ] |
| 258 | } |
| 259 | |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 260 | if (v8_use_external_startup_data) { |
| 261 | deps += [ "//gin:gin_v8_snapshot_fingerprint" ] |
brettw@chromium.org | 137dff6d | 2014-06-12 19:35:55 | [diff] [blame] | 262 | } |
| 263 | |
brettw | 66e3feab | 2015-07-20 23:52:22 | [diff] [blame] | 264 | if (is_win) { |
brettw | f986f95 | 2015-10-07 17:18:15 | [diff] [blame] | 265 | deps += [ |
| 266 | "//chrome/installer/gcapi", |
| 267 | "//chrome/tools/build/win/syzygy:chrome_dll_syzygy", |
| 268 | ] |
brettw | 66e3feab | 2015-07-20 23:52:22 | [diff] [blame] | 269 | } |
| 270 | |
dpranke@chromium.org | 5a8d516 | 2014-04-12 01:19:16 | [diff] [blame] | 271 | if (is_android) { |
cjhopman@chromium.org | 26046b5 | 2014-07-16 00:11:03 | [diff] [blame] | 272 | deps += [ |
pkotwicz | e2dae8b | 2015-11-03 20:12:55 | [diff] [blame] | 273 | "//base:base_junit_tests", |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 274 | "//base/android/linker:chromium_android_linker", |
cjhopman | 3d85c6d | 2014-11-18 03:39:38 | [diff] [blame] | 275 | "//build/android/gyp/test:hello_world", |
cjhopman | 3151133 | 2014-10-23 01:05:02 | [diff] [blame] | 276 | "//build/android/rezip", |
pkotwicz | e2dae8b | 2015-11-03 20:12:55 | [diff] [blame] | 277 | "//components/invalidation/impl:components_invalidation_impl_junit_tests", |
| 278 | "//components/policy/android:components_policy_junit_tests", |
| 279 | "//content/public/android:content_junit_tests", |
pkotwicz | 8adff4e | 2015-12-17 21:55:45 | [diff] [blame] | 280 | "//content/shell/android:content_shell_apk", |
| 281 | "//content/test:video_decode_accelerator_unittest", |
pkotwicz | e2dae8b | 2015-11-03 20:12:55 | [diff] [blame] | 282 | "//net/android:net_junit_tests", |
| 283 | "//testing/android/junit:junit_unittests", |
pkotwicz | 8adff4e | 2015-12-17 21:55:45 | [diff] [blame] | 284 | "//third_party/android_tools:uiautomator_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", |
pkotwicz | 8b9d18c | 2015-10-05 01:59:33 | [diff] [blame] | 289 | "//tools/android/heap_profiler:heap_profiler_unittests", |
dgn | 28050da | 2015-10-19 10:16:43 | [diff] [blame] | 290 | "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk", |
pkotwicz | 07709376 | 2015-12-21 16:47:15 | [diff] [blame] | 291 | "//tools/cygprofile:cygprofile_unittests", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 292 | "//tools/imagediff($host_toolchain)", |
newt | 9e22603 | 2016-01-26 01:30:15 | [diff] [blame] | 293 | "//ui/android:ui_junit_tests", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 294 | ] |
| 295 | deps -= [ |
rockot | 9c67e5f | 2015-03-12 20:01:21 | [diff] [blame] | 296 | "//net:net_perftests", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 297 | "//url:url_unittests", |
cjhopman@chromium.org | 26046b5 | 2014-07-16 00:11:03 | [diff] [blame] | 298 | ] |
| 299 | |
pkotwicz | 92e2e231 | 2015-12-15 22:29:46 | [diff] [blame] | 300 | if (!is_component_build) { |
| 301 | deps += [ |
agrieve | e23386b | 2016-01-05 04:47:58 | [diff] [blame] | 302 | "//components/cronet/android:cronet_package", |
pkotwicz | 92e2e231 | 2015-12-15 22:29:46 | [diff] [blame] | 303 | "//components/cronet/android:cronet_sample_apk", |
| 304 | "//components/cronet/android:cronet_sample_test_apk", |
| 305 | "//components/cronet/android:cronet_test_apk", |
| 306 | "//components/cronet/android:cronet_test_instrumentation_apk", |
| 307 | "//components/cronet/android:cronet_unittests", |
| 308 | ] |
| 309 | } |
| 310 | |
pkotwicz | 061c5a4 | 2015-09-30 02:16:54 | [diff] [blame] | 311 | if (!is_chromecast) { |
| 312 | deps += [ |
michaelbai | cbcc7e6 | 2015-11-12 04:29:53 | [diff] [blame] | 313 | "//android_webview", |
agrieve | b08e2f5b | 2015-12-29 01:17:30 | [diff] [blame] | 314 | "//android_webview/test", |
agrieve | 1a3e9eb | 2015-12-29 02:07:26 | [diff] [blame] | 315 | "//android_webview/tools", |
pkotwicz | e2dae8b | 2015-11-03 20:12:55 | [diff] [blame] | 316 | "//chrome/android:chrome_junit_tests", |
pkotwicz | 061c5a4 | 2015-09-30 02:16:54 | [diff] [blame] | 317 | "//chrome/android:chrome_public_apk", |
| 318 | "//chrome/android:chrome_public_test_apk", |
| 319 | "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk", |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 320 | "//content/shell/android:content_shell_test_apk", |
pkotwicz | 0a2255e | 2015-10-06 16:29:05 | [diff] [blame] | 321 | "//third_party/custom_tabs_client:custom_tabs_client_example_apk", |
pkotwicz | 061c5a4 | 2015-09-30 02:16:54 | [diff] [blame] | 322 | ] |
| 323 | } |
| 324 | |
pkotwicz | 06a4b4b4 | 2015-10-29 23:11:11 | [diff] [blame] | 325 | if (target_cpu != "x64") { |
| 326 | deps += [ "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)" ] |
| 327 | } |
| 328 | |
cjhopman | ca675d3e | 2014-10-24 03:50:45 | [diff] [blame] | 329 | if (has_chrome_android_internal) { |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 330 | deps += [ "//clank" ] # TODO(GYP) ?? |
cjhopman | ca675d3e | 2014-10-24 03:50:45 | [diff] [blame] | 331 | } |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 332 | } |
| 333 | |
pkotwicz | a4d233b2 | 2015-11-02 18:20:38 | [diff] [blame] | 334 | if (is_linux || is_android) { # TODO(GYP): || is_bsd? |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 335 | deps += [ |
pkotwicz | a4d233b2 | 2015-11-02 18:20:38 | [diff] [blame] | 336 | "//breakpad:breakpad_unittests", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 337 | "//breakpad:core-2-minidump", |
pkotwicz | a4d233b2 | 2015-11-02 18:20:38 | [diff] [blame] | 338 | "//breakpad:generate_test_dump", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 339 | "//breakpad:minidump-2-core", |
| 340 | ] |
| 341 | } |
| 342 | |
dpranke | 6293d25 | 2015-04-14 19:12:00 | [diff] [blame] | 343 | if (is_chromeos) { |
| 344 | deps += [ |
| 345 | "//chromeos:chromeos_unittests", |
| 346 | "//ui/chromeos:ui_chromeos_unittests", |
| 347 | ] |
| 348 | } |
| 349 | |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 350 | if (is_chromeos || is_mac || is_win) { |
| 351 | deps += [ |
| 352 | "//rlz:rlz_id", |
| 353 | "//rlz:rlz_lib", |
| 354 | "//rlz:rlz_unittests", |
| 355 | ] |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 356 | } |
| 357 | |
| 358 | if (is_linux) { |
| 359 | # The following are definitely linux-only. |
hiroshige | e6d374c | 2015-02-24 07:54:06 | [diff] [blame] | 360 | deps += [ |
dpranke | 2bc8921 | 2015-11-18 00:24:43 | [diff] [blame] | 361 | "//chrome:manpage", |
| 362 | "//chrome:xdg_mime", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 363 | "//dbus:dbus_test_server", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 364 | "//dbus:dbus_unittests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 365 | "//net:disk_cache_memory_test", |
| 366 | "//net:flip_in_mem_edsm_server", |
| 367 | "//net:flip_in_mem_edsm_server_unittests", |
| 368 | "//net:quic_client", |
| 369 | "//net:quic_server", |
| 370 | "//sandbox/linux:chrome_sandbox", |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 371 | "//sandbox/linux:sandbox_linux_unittests", |
hiroshige | e6d374c | 2015-02-24 07:54:06 | [diff] [blame] | 372 | ] |
dnicoara | 8c6aa8e | 2015-03-11 23:20:32 | [diff] [blame] | 373 | |
| 374 | if (is_chromeos || use_ash) { |
| 375 | deps += [ "//components/session_manager/core" ] |
dpranke | 2bc8921 | 2015-11-18 00:24:43 | [diff] [blame] | 376 | } |
| 377 | |
| 378 | if (is_chrome_branded && is_official_build) { |
| 379 | # TODO(dpranke): add the linux_dump_symbols flag? |
| 380 | deps += [ "//chrome:linux_symbols" ] |
dnicoara | 8c6aa8e | 2015-03-11 23:20:32 | [diff] [blame] | 381 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 382 | } |
| 383 | |
sherouk | e1859f9 | 2015-08-05 10:19:10 | [diff] [blame] | 384 | if (is_ios || is_win || (is_linux && !is_chromeos)) { |
| 385 | deps += [ |
| 386 | "//base:base_i18n_perftests", |
| 387 | "//base:base_perftests", |
sherouk | 710734d | 2015-09-02 19:02:58 | [diff] [blame] | 388 | "//google_apis:google_apis_unittests", |
sherouk | e1859f9 | 2015-08-05 10:19:10 | [diff] [blame] | 389 | ] |
| 390 | } |
| 391 | |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 392 | if (is_android || is_win || (is_linux && !is_chromeos)) { |
tfarina | 9e7cf70 | 2015-02-23 21:13:44 | [diff] [blame] | 393 | deps += [ |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 394 | "//base:build_utf8_validator_tables", |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 395 | "//base:check_example", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 396 | "//cc:cc_perftests", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 397 | "//cc/blink:cc_blink_unittests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 398 | "//components:components_perftests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 399 | "//content/test:content_gl_benchmark", |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 400 | "//content/test:content_gl_tests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 401 | "//device:device_unittests", |
| 402 | "//gin:gin_shell", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 403 | "//gin:gin_unittests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 404 | "//google_apis/gcm:mcs_probe", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 405 | "//gpu:gl_tests", |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 406 | "//gpu:gpu_perftests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 407 | "//ipc:ipc_perftests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 408 | "//media:media_perftests", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 409 | "//net:dump_cache", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 410 | "//sync:run_sync_testserver", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 411 | "//third_party/codesighs:maptsvdifftool", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 412 | "//third_party/libphonenumber:libphonenumber_unittests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 413 | "//ui/compositor:compositor_unittests", |
| 414 | ] |
| 415 | |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 416 | # TODO(GYP): Figure out which of these should (and can) build |
| 417 | # for chromeos/mac/ios. |
| 418 | if (!is_android) { |
| 419 | deps += [ |
| 420 | "//chrome/test:load_library_perf_tests", |
| 421 | "//chrome/test:sync_performance_tests", |
| 422 | "//chrome/test/chromedriver:chromedriver", |
| 423 | "//chrome/test/chromedriver:chromedriver_tests", |
| 424 | "//courgette:courgette", |
| 425 | "//courgette:courgette_fuzz", |
| 426 | "//courgette:courgette_minimal_tool", |
| 427 | "//courgette:courgette_unittests", |
| 428 | "//media/cast:generate_barcode_video", |
| 429 | "//media/cast:generate_timecode_audio", |
| 430 | "//net:crash_cache", |
| 431 | "//net:crl_set_dump", |
| 432 | "//net:dns_fuzz_stub", |
| 433 | "//net:gdig", |
| 434 | "//net:get_server_time", |
| 435 | "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net |
| 436 | "//net:run_testserver", |
| 437 | "//net:stress_cache", |
| 438 | "//net:tld_cleanup", |
| 439 | "//ppapi:pepper_hash_for_uma", |
| 440 | "//ppapi:ppapi_perftests", |
| 441 | "//third_party/angle/src/tests:angle_unittests", |
| 442 | "//third_party/leveldatabase:env_chromium_unittests", |
| 443 | "//third_party/libaddressinput:libaddressinput_unittests", |
| 444 | ] |
| 445 | } |
| 446 | if (!is_android && !is_linux) { |
dpranke | 7e19b47 | 2015-11-13 00:49:33 | [diff] [blame] | 447 | # TODO(dpranke): Re-enable this once |
| 448 | # https://chromium-review.googlesource.com/#/c/312298/1 is rolled |
| 449 | # into chromium. |
| 450 | deps += [ "//third_party/angle/src/tests:angle_end2end_tests" ] |
| 451 | } |
| 452 | |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 453 | if (enable_extensions) { |
| 454 | deps += [ "//extensions/shell:app_shell" ] |
| 455 | } |
| 456 | |
| 457 | if (enable_nacl) { |
brettw | f4b4a428 | 2015-12-16 00:41:13 | [diff] [blame] | 458 | deps += [ "//components/nacl/loader:nacl_loader_unittests" ] |
dpranke | 2bc8921 | 2015-11-18 00:24:43 | [diff] [blame] | 459 | |
| 460 | if (is_linux) { |
| 461 | # TODO(dpranke): Figure out what platforms should actually have this. |
| 462 | deps += [ |
brettw | f4b4a428 | 2015-12-16 00:41:13 | [diff] [blame] | 463 | "//components/nacl/loader:helper_nonsfi", |
phosek | ca8571a9 | 2015-12-17 16:35:42 | [diff] [blame] | 464 | "//components/nacl/loader:helper_nonsfi_unittests", |
brettw | f4b4a428 | 2015-12-16 00:41:13 | [diff] [blame] | 465 | "//components/nacl/loader:nacl_helper", |
dpranke | 2bc8921 | 2015-11-18 00:24:43 | [diff] [blame] | 466 | ] |
| 467 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 468 | } |
| 469 | |
xhwang | fa2d9d47 | 2015-12-18 23:31:18 | [diff] [blame] | 470 | if (media_use_ffmpeg && !is_android) { |
mostynb | 2196a46 | 2015-08-20 17:22:10 | [diff] [blame] | 471 | deps += [ "//media:ffmpeg_regression_tests" ] |
| 472 | } |
| 473 | |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 474 | if (use_ash) { |
| 475 | deps += [ |
ben | f97b257 | 2015-09-25 23:12:53 | [diff] [blame] | 476 | "//ash:ash_shell_with_content", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 477 | "//ash:ash_unittests", |
| 478 | ] |
| 479 | } |
| 480 | |
| 481 | if (use_aura) { |
| 482 | deps += [ |
| 483 | "//ui/aura:aura_unittests", |
| 484 | "//ui/aura:bench", |
| 485 | "//ui/aura:demo", |
| 486 | ] |
| 487 | } |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 488 | } |
| 489 | |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 490 | if (is_android || (is_linux && !is_chromeos)) { |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 491 | deps += [ |
| 492 | # TODO(GYP): Figure out which of these should (and can) build |
| 493 | # under which other conditions. |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 494 | "//breakpad:dump_syms($host_toolchain)", |
| 495 | "//breakpad:microdump_stackwalk($host_toolchain)", |
| 496 | "//breakpad:minidump_dump($host_toolchain)", |
| 497 | "//breakpad:minidump_stackwalk($host_toolchain)", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 498 | "//cloud_print:cloud_print_unittests", |
| 499 | "//components/network_hints/browser", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 500 | "//content/public/app:browser", |
| 501 | "//content/public/app:child", |
| 502 | |
| 503 | # TODO(GYP): Remove this when the gles2 tests work |
| 504 | "//gpu/command_buffer/client:gles2_implementation_no_check", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 505 | "//gpu/khronos_glcts_support:khronos_glcts_test", # TODO(GYP) crbug.com/471903 to make this complete. |
ben | 273c1e3 | 2016-01-12 02:44:08 | [diff] [blame] | 506 | "//mojo/shell/public/cpp", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 507 | "//testing/gmock:gmock_main", |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 508 | |
| 509 | # TODO(use-new-edk): |
| 510 | #"//mojo/edk/test:mojo_public_system_perftests", |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 511 | "//third_party/codesighs:nm2tsv", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 512 | "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 513 | ] |
| 514 | |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 515 | if (!is_android) { |
| 516 | deps += [ |
| 517 | "//build/sanitizers:copy_llvm_symbolizer", |
| 518 | "//chrome/test:chrome_app_unittests", |
| 519 | "//media/cast:cast_benchmarks", |
| 520 | "//media/cast:tap_proxy", |
| 521 | "//skia:filter_fuzz_stub", |
| 522 | "//skia:image_operations_bench", |
| 523 | "//sync/tools:sync_client", |
| 524 | "//sync/tools:sync_listen_notifications", |
| 525 | "//third_party/sqlite:sqlite_shell", |
| 526 | "//ui/keyboard:keyboard_unittests", |
| 527 | "//ui/message_center:message_center_unittests", |
| 528 | "//ui/snapshot:snapshot_unittests", |
| 529 | "//ui/views/examples:views_examples_with_content_exe", |
| 530 | ] |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 531 | |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 532 | if (!is_debug && !is_component_build) { |
| 533 | deps += [ "//chrome/tools/service_discovery_sniffer" ] |
| 534 | } |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 535 | } |
| 536 | |
| 537 | if (toolkit_views) { |
| 538 | deps += [ "//ui/app_list:app_list_demo" ] |
| 539 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 540 | |
| 541 | if (use_x11) { |
wtc | 6e2e29c | 2015-03-13 01:09:44 | [diff] [blame] | 542 | if (target_cpu != "arm") { |
tfarina | 8944e6f | 2015-03-25 20:06:59 | [diff] [blame] | 543 | deps += [ "//gpu/tools/compositor_model_bench" ] |
wtc | 6e2e29c | 2015-03-13 01:09:44 | [diff] [blame] | 544 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 545 | } |
| 546 | } |
| 547 | |
| 548 | if (is_mac) { |
| 549 | deps += [ |
| 550 | "//breakpad:crash_inspector", |
| 551 | "//breakpad:dump_syms", |
tfarina | 9e7cf70 | 2015-02-23 21:13:44 | [diff] [blame] | 552 | "//third_party/apple_sample_code", |
| 553 | "//third_party/molokocacao", |
| 554 | ] |
dpranke | 4376059 | 2014-11-08 02:59:57 | [diff] [blame] | 555 | deps -= [ |
brettw | 011138d | 2015-10-21 03:05:38 | [diff] [blame] | 556 | # Mojo in GN contains some things which are never compiled in GYP on Mac, |
| 557 | # so compilation fails on Mac. They need porting. |
brettw | e1d4065 | 2015-10-23 23:06:10 | [diff] [blame] | 558 | "//mojo", |
mohsen | 29fd405 | 2014-12-08 21:06:46 | [diff] [blame] | 559 | ] |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 560 | } |
| 561 | |
| 562 | if (is_win) { |
| 563 | deps += [ |
| 564 | "//base:pe_image_test", |
grt | 734e87b | 2015-07-06 19:36:43 | [diff] [blame] | 565 | "//chrome/installer/setup:setup_unittests", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 566 | "//chrome_elf:chrome_elf_unittests", |
| 567 | "//chrome_elf:dll_hash_main", |
brettw | 70b359a | 2015-10-14 23:43:23 | [diff] [blame] | 568 | "//cloud_print:cloud_print_unittests", |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 569 | "//cloud_print/service/win:cloud_print_service", |
dpranke | fd181327 | 2015-04-13 23:56:00 | [diff] [blame] | 570 | "//components/wifi:wifi_test", |
| 571 | "//net:quic_client", |
| 572 | "//net:quic_server", |
| 573 | "//sandbox/win:pocdll", |
| 574 | "//sandbox/win:sandbox_poc", |
| 575 | "//sandbox/win:sbox_integration_tests", |
| 576 | "//sandbox/win:sbox_unittests", |
| 577 | "//sandbox/win:sbox_validation_tests", |
| 578 | "//testing/gtest:gtest_main", |
| 579 | "//third_party/codesighs:msmap2tsv", |
| 580 | "//third_party/pdfium/samples:pdfium_diff", |
| 581 | "//ui/metro_viewer", |
| 582 | ] |
dpranke | e2ef382 | 2015-02-24 21:42:18 | [diff] [blame] | 583 | deps -= [ |
| 584 | "//crypto:crypto_unittests", # TODO(GYP) |
| 585 | "//net:net_unittests", # TODO(GYP) |
| 586 | ] |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 587 | } else if (!is_android && !is_ios) { |
miu | 45b848fe | 2015-11-26 01:23:29 | [diff] [blame] | 588 | deps += [ "//breakpad:symupload($host_toolchain)" ] |
mohsen | f837da7c | 2014-12-09 19:01:34 | [diff] [blame] | 589 | } |
slan | ce9d62f | 2015-11-04 01:15:01 | [diff] [blame] | 590 | if (is_chromecast) { |
| 591 | deps += [ "//chromecast:cast_shell" ] |
| 592 | } |
miu | 45b848fe | 2015-11-26 01:23:29 | [diff] [blame] | 593 | |
dpranke | d43eab4 | 2015-12-15 23:10:44 | [diff] [blame] | 594 | if (is_mac) { # TODO(GYP) || is_ios |
miu | 45b848fe | 2015-11-26 01:23:29 | [diff] [blame] | 595 | deps += [ "//media/cast:cast_h264_vt_encoder_unittests" ] |
| 596 | } |
hbos | 17a7b4a2 | 2015-12-07 10:49:45 | [diff] [blame] | 597 | |
| 598 | if (use_openh264) { |
| 599 | deps += [ |
| 600 | "//third_party/openh264:common", |
| 601 | "//third_party/openh264:encoder", |
| 602 | "//third_party/openh264:processing", |
| 603 | ] |
| 604 | } |
dpranke | 18e5743 | 2015-02-27 21:46:47 | [diff] [blame] | 605 | } |
| 606 | |
sky | 60a230b | 2016-01-23 01:04:53 | [diff] [blame] | 607 | # This group contains all the targets needed to run mojo's apptest_runner. |
| 608 | group("mojo_apptests") { |
| 609 | testonly = true |
| 610 | |
| 611 | deps = [] |
| 612 | |
| 613 | if (is_win || is_linux) { |
| 614 | deps += [ |
| 615 | "//mandoline:tests", |
| 616 | "//mash/wm:tests", |
jrummell | 135d61e | 2016-01-27 19:36:17 | [diff] [blame^] | 617 | "//media/mojo/services:tests", |
sky | 60a230b | 2016-01-23 01:04:53 | [diff] [blame] | 618 | "//ui/views/mus:tests", |
| 619 | ] |
| 620 | } |
| 621 | } |
| 622 | |
dpranke | d62d851 | 2015-03-02 03:06:03 | [diff] [blame] | 623 | group("gn_only") { |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 624 | testonly = true |
| 625 | |
dpranke | 2a29462 | 2015-08-07 05:23:01 | [diff] [blame] | 626 | deps = [] |
| 627 | |
amistry | 4dcd7c4 | 2015-12-16 04:53:10 | [diff] [blame] | 628 | if (!is_ios) { |
| 629 | deps += [ "//mojo/common:mojo_common_perftests" ] |
| 630 | } |
| 631 | |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 632 | if (!is_mac && !is_ios && !is_chromecast) { |
dpranke | 2a29462 | 2015-08-07 05:23:01 | [diff] [blame] | 633 | deps += [ "//mandoline:all" ] |
sherouk | 53f0f1a | 2015-08-03 15:59:35 | [diff] [blame] | 634 | } |
isherman | 0f89b43eb | 2015-04-11 00:02:45 | [diff] [blame] | 635 | |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 636 | if (!is_android && !is_ios && !is_chromeos) { |
isherman | 0f89b43eb | 2015-04-11 00:02:45 | [diff] [blame] | 637 | deps += [ "//components/proximity_auth:proximity_auth_unittests" ] |
| 638 | } |
| 639 | |
ben | 8f4e95ad | 2015-12-01 18:35:58 | [diff] [blame] | 640 | if (is_win || is_linux) { |
sky | 70471b2 | 2016-01-14 16:20:54 | [diff] [blame] | 641 | deps += [ |
sky | 60a230b | 2016-01-23 01:04:53 | [diff] [blame] | 642 | ":mojo_apptests", |
sky | 70471b2 | 2016-01-14 16:20:54 | [diff] [blame] | 643 | "//mash:all", |
sky | 70471b2 | 2016-01-14 16:20:54 | [diff] [blame] | 644 | ] |
sky | 97b6559 | 2015-11-02 20:08:25 | [diff] [blame] | 645 | } |
| 646 | |
zhaoqin | 756f857 | 2016-01-25 21:41:17 | [diff] [blame] | 647 | if (is_win && use_drfuzz) { |
| 648 | # build libfuzzer fuzzers on Windows to run with Dr. Fuzz |
| 649 | deps += [ |
| 650 | "//testing/libfuzzer/fuzzers", |
| 651 | "//testing/libfuzzer/tests:libfuzzer_tests", |
| 652 | ] |
| 653 | } |
| 654 | |
slan | ce9d62f | 2015-11-04 01:15:01 | [diff] [blame] | 655 | if (is_linux && !is_chromeos && !is_chromecast) { |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 656 | # TODO(GYP): Figure out if any of these should be in gn_all |
| 657 | # and figure out how cross-platform they are |
isherman | 0f89b43eb | 2015-04-11 00:02:45 | [diff] [blame] | 658 | deps += [ |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 659 | ":gn_mojo_targets", |
| 660 | "//chrome/browser/resources:extension_resource_demo", |
| 661 | "//chrome/installer/util:strings", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 662 | "//chrome/tools/convert_dict", |
| 663 | "//components/constrained_window:unit_tests", |
| 664 | "//components/enhanced_bookmarks:test_support", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 665 | "//components/metrics:serialization", |
isherman | 0f89b43eb | 2015-04-11 00:02:45 | [diff] [blame] | 666 | "//components/password_manager/content/renderer:browser_tests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 667 | "//components/rappor:unit_tests", |
| 668 | "//components/sessions:unit_tests", |
| 669 | "//media/blink:media_blink_unittests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 670 | "//media/cast:udp_proxy", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 671 | "//native_client/src/trusted/debug_stub:gdb_rsp_unittest", |
| 672 | "//storage/browser:dump_file_system", |
aizatsky | c562c13 | 2016-01-20 00:00:14 | [diff] [blame] | 673 | "//testing/libfuzzer/fuzzers", |
| 674 | "//testing/libfuzzer/tests:libfuzzer_tests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 675 | "//third_party/angle:libANGLE", |
| 676 | "//third_party/angle:libEGL", |
| 677 | "//third_party/angle:libGLESv2", |
| 678 | "//third_party/cld_2:cld_2_dynamic_data_tool", |
| 679 | "//third_party/leveldatabase:leveldb_arena_test", |
| 680 | "//third_party/leveldatabase:leveldb_bloom_test", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 681 | "//third_party/leveldatabase:leveldb_cache_test", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 682 | "//third_party/leveldatabase:leveldb_corruption_test", |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 683 | "//third_party/leveldatabase:leveldb_crc32c_test", |
| 684 | "//third_party/leveldatabase:leveldb_db_bench", |
| 685 | "//third_party/leveldatabase:leveldb_db_test", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 686 | "//third_party/leveldatabase:leveldb_dbformat_test", |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 687 | "//third_party/leveldatabase:leveldb_env_test", |
| 688 | "//third_party/leveldatabase:leveldb_filename_test", |
| 689 | "//third_party/leveldatabase:leveldb_filter_block_test", |
| 690 | "//third_party/leveldatabase:leveldb_log_test", |
| 691 | "//third_party/leveldatabase:leveldb_skiplist_test", |
| 692 | "//third_party/leveldatabase:leveldb_table_test", |
| 693 | "//third_party/leveldatabase:leveldb_version_edit_test", |
| 694 | "//third_party/leveldatabase:leveldb_write_batch_test", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 695 | "//third_party/libjpeg_turbo:simd", |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 696 | "//third_party/libsrtp:rdbx_driver", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 697 | "//third_party/libsrtp:replay_driver", |
| 698 | "//third_party/libsrtp:roc_driver", |
| 699 | "//third_party/libsrtp:rtpw", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 700 | "//third_party/libsrtp:srtp_driver", |
| 701 | "//third_party/libsrtp:srtp_driver", |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 702 | "//third_party/libsrtp:srtp_test_aes_calc", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 703 | "//third_party/libsrtp:srtp_test_cipher_driver", |
| 704 | "//third_party/libsrtp:srtp_test_datatypes_driver", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 705 | "//third_party/libsrtp:srtp_test_env", |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 706 | "//third_party/libsrtp:srtp_test_kernel_driver", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 707 | "//third_party/libsrtp:srtp_test_rand_gen", |
| 708 | "//third_party/libsrtp:srtp_test_sha1_driver", |
| 709 | "//third_party/libsrtp:srtp_test_stat_driver", |
| 710 | "//third_party/opus:opus_compare", |
| 711 | "//third_party/opus:opus_demo", |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 712 | "//third_party/opus:test_opus_api", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 713 | "//third_party/opus:test_opus_decode", |
| 714 | "//third_party/opus:test_opus_encode", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 715 | "//third_party/opus:test_opus_padding", |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 716 | "//third_party/pdfium/third_party:fx_freetype", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 717 | "//third_party/webrtc/system_wrappers:field_trial_default", |
| 718 | "//third_party/webrtc/system_wrappers:metrics_default", |
| 719 | "//ui/display/types", |
| 720 | "//ui/shell_dialogs:shell_dialogs_unittests", |
| 721 | "//ui/views/examples:views_examples_exe", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 722 | ] |
dpranke | b071354 | 2015-07-31 21:07:21 | [diff] [blame] | 723 | |
Gordana.Cmiljanovic | 85746ff1 | 2015-04-28 08:17:16 | [diff] [blame] | 724 | if (target_cpu == "x86" || target_cpu == "x64") { |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 725 | if (!is_android) { |
| 726 | deps += [ "//chrome/test:load_library_perf_tests" ] |
| 727 | } |
mcgrathr | 916aafa | 2015-09-15 00:06:53 | [diff] [blame] | 728 | deps += [ |
mcgrathr | 916aafa | 2015-09-15 00:06:53 | [diff] [blame] | 729 | "//native_client/src/trusted/platform_qualify:vcpuid", |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 730 | "//third_party/libjpeg_turbo:simd_asm", |
mcgrathr | 916aafa | 2015-09-15 00:06:53 | [diff] [blame] | 731 | ] |
Gordana.Cmiljanovic | 85746ff1 | 2015-04-28 08:17:16 | [diff] [blame] | 732 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 733 | if (enable_nacl) { |
| 734 | deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ] |
| 735 | } |
| 736 | if (use_ozone) { |
| 737 | deps += [ "//ui/ozone/demo" ] |
| 738 | } |
dpranke | 807f602 | 2015-03-17 23:20:56 | [diff] [blame] | 739 | |
| 740 | if (is_linux && current_toolchain == host_toolchain) { |
| 741 | deps += [ "//v8:d8" ] |
| 742 | } |
nyquist | 6aeec514 | 2015-09-10 03:38:52 | [diff] [blame] | 743 | } |
| 744 | |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 745 | if (is_android) { |
| 746 | deps += [ |
| 747 | "//build/android/gyp/test:hello_world", |
| 748 | "//build/android/incremental_install:bootstrap_java", |
| 749 | ] |
nyquist | b5f050b | 2015-09-10 05:10:35 | [diff] [blame] | 750 | } |
| 751 | |
agrieve | 473155b | 2015-12-28 20:23:11 | [diff] [blame] | 752 | if (!is_chromecast && (is_android || is_linux || is_chromeos)) { |
| 753 | deps += [ |
| 754 | "//blimp", |
| 755 | "//blimp:blimp_tests", |
aizatsky | ddefc99 | 2015-11-20 08:42:03 | [diff] [blame] | 756 | ] |
aizatsky | fc46a9f | 2015-10-09 21:20:08 | [diff] [blame] | 757 | } |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 758 | } |
| 759 | |
| 760 | group("gn_mojo_targets") { |
| 761 | testonly = true |
| 762 | if (is_linux && !is_chromeos) { |
| 763 | # TODO(GYP): Figure out if any of these should be in gn_all |
| 764 | # and figure out how cross-platform they are |
| 765 | deps = [ |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 766 | "//ipc/mojo:ipc_mojo_perftests", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 767 | "//media/mojo:tests", |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 768 | "//media/mojo/services:cdm_service", |
msw | 1bb9c6c | 2015-05-06 21:35:44 | [diff] [blame] | 769 | "//mojo:tests", |
pkotwicz | 8b9d18c | 2015-10-05 01:59:33 | [diff] [blame] | 770 | |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 771 | # TODO(use-new-edk): |
jam | 76bcf0c | 2015-10-02 21:01:28 | [diff] [blame] | 772 | #"//mojo/edk/js/tests:js_to_cpp_bindings_python", |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 773 | ] |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 774 | } |
| 775 | } |
| 776 | |
| 777 | group("gn_visibility") { |
dpranke | d62d851 | 2015-03-02 03:06:03 | [diff] [blame] | 778 | deps = [ |
dpranke | b6128d0 | 2015-05-01 16:40:30 | [diff] [blame] | 779 | "//build/config/sanitizers:options_sources", |
| 780 | |
dpranke | db5527d7 | 2015-03-08 04:22:47 | [diff] [blame] | 781 | # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility? |
| 782 | # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility? |
dpranke | b6128d0 | 2015-05-01 16:40:30 | [diff] [blame] | 783 | |
| 784 | "//ui/resources:repack_ui_test_mac_locale_pack", |
dpranke | d62d851 | 2015-03-02 03:06:03 | [diff] [blame] | 785 | ] |
dpranke | d2fb522 | 2015-09-10 22:39:05 | [diff] [blame] | 786 | |
| 787 | if (!is_ios) { |
| 788 | deps += [ |
dpranke | d2fb522 | 2015-09-10 22:39:05 | [diff] [blame] | 789 | "//v8:postmortem-metadata", |
dpranke | 244f973 | 2015-11-20 05:38:10 | [diff] [blame] | 790 | "//v8:v8_snapshot", |
dpranke | d2fb522 | 2015-09-10 22:39:05 | [diff] [blame] | 791 | ] |
| 792 | } |
dpranke | d62d851 | 2015-03-02 03:06:03 | [diff] [blame] | 793 | } |
| 794 | |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 795 | if (!is_ios) { |
| 796 | # This group includes all of the targets needed to build and test Blink, |
| 797 | # including running the layout tests (see below). |
| 798 | group("blink_tests") { |
| 799 | testonly = true |
| 800 | |
| 801 | deps = [ |
| 802 | "//third_party/WebKit/public:all_blink", |
| 803 | ] |
| 804 | |
| 805 | # NOTE: The following deps are needed to run the layout tests |
| 806 | # (run-webkit-tests) but there is no GN target for the layout tests, |
| 807 | # so we need to specify the dependencies here instead. |
| 808 | if (is_android) { |
| 809 | deps += [ |
pkotwicz | a4d233b2 | 2015-11-02 18:20:38 | [diff] [blame] | 810 | "//breakpad:breakpad_unittests_deps", |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 811 | "//breakpad:dump_syms($host_toolchain)", |
pkotwicz | a4d233b2 | 2015-11-02 18:20:38 | [diff] [blame] | 812 | "//breakpad:microdump_stackwalk($host_toolchain)", |
| 813 | "//breakpad:minidump_dump($host_toolchain)", |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 814 | "//breakpad:minidump_stackwalk($host_toolchain)", |
pkotwicz | a4d233b2 | 2015-11-02 18:20:38 | [diff] [blame] | 815 | "//breakpad:symupload($host_toolchain)", |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 816 | "//content/shell/android:content_shell_apk", |
ojan | 94989c7 | 2015-07-17 21:56:42 | [diff] [blame] | 817 | "//tools/imagediff($host_toolchain)", |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 818 | ] |
| 819 | } else { |
ojan | 94989c7 | 2015-07-17 21:56:42 | [diff] [blame] | 820 | deps += [ |
| 821 | "//content/shell:content_shell", |
| 822 | "//tools/imagediff", |
| 823 | ] |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 824 | } |
| 825 | |
| 826 | if (is_win) { |
| 827 | deps += [ |
jochen | 73e711c | 2015-06-03 10:01:46 | [diff] [blame] | 828 | "//components/test_runner:layout_test_helper", |
brettw | 0d3b1df | 2015-12-03 00:10:01 | [diff] [blame] | 829 | "//content/shell:content_shell_crash_service", |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 830 | ] |
| 831 | } |
| 832 | |
| 833 | if (!is_win && !is_android) { |
Gordana.Cmiljanovic | f243e9a | 2015-05-26 22:14:47 | [diff] [blame] | 834 | deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ] |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 835 | } |
| 836 | |
| 837 | if (is_mac) { |
| 838 | deps += [ |
| 839 | "//breakpad:dump_syms($host_toolchain)", |
jochen | 73e711c | 2015-06-03 10:01:46 | [diff] [blame] | 840 | "//components/test_runner:layout_test_helper", |
tfarina | cb2638b | 2015-05-12 03:24:15 | [diff] [blame] | 841 | ] |
| 842 | } |
| 843 | |
| 844 | if (is_linux) { |
| 845 | deps += [ "//breakpad:dump_syms($host_toolchain)" ] |
| 846 | } |
| 847 | } |
| 848 | } |
| 849 | |
dpranke | 6abd865 | 2015-08-28 03:21:11 | [diff] [blame] | 850 | # Add a dummy target for compatibility w/ GYP |
| 851 | group("chromium_swarm_tests") { |
| 852 | } |
| 853 | |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 854 | group("chromium_builder_perf") { |
| 855 | testonly = true |
| 856 | |
| 857 | # TODO(GYP): Make this target work on the mac. |
| 858 | if (!is_ios && !is_android && !is_chromecast && !is_mac) { |
| 859 | deps = [ |
| 860 | "//cc:cc_perftests", |
| 861 | "//chrome", |
| 862 | "//chrome/test:load_library_perf_tests", |
| 863 | "//chrome/test:sync_performance_tests", |
| 864 | "//gpu:gpu_perftests", |
| 865 | "//media:media_perftests", |
| 866 | "//media/midi:midi_unittests", |
nednguyen | c42bf91 | 2016-01-27 01:39:28 | [diff] [blame] | 867 | "//third_party/catapult/telemetry:bitmaptools", |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 868 | ] |
| 869 | |
| 870 | if (!is_chromeos) { |
| 871 | deps += [ "//chrome/test:performance_browser_tests" ] |
| 872 | } |
| 873 | if (is_linux && !is_chromeos) { |
dpranke | 9aed5d58 | 2015-11-22 23:22:04 | [diff] [blame] | 874 | if (is_official_build) { |
| 875 | # In GN builds, this is controlled by the 'linux_dump_symbols' |
| 876 | # flag, which defaults to 1 for official builds. For now, |
| 877 | # we skip the separate flag and just key off of is_official_build. |
| 878 | deps += [ "//chrome:linux_symbols" ] |
| 879 | } |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 880 | |
| 881 | if (!is_chromeos) { |
| 882 | deps += [ "//tools/perf/clear_system_cache" ] |
| 883 | } |
| 884 | } |
| 885 | |
| 886 | if (is_win) { |
| 887 | deps += [ |
brettw | 0d3b1df | 2015-12-03 00:10:01 | [diff] [blame] | 888 | "//chrome/tools/crash_service", |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 889 | # "//gpu:angle_perftests", TODO(GYP): crbug.com/537008 |
| 890 | ] |
| 891 | |
| 892 | if (target_cpu == "x86") { |
brettw | 0d3b1df | 2015-12-03 00:10:01 | [diff] [blame] | 893 | deps += [ "//chrome/tools/crash_service:crash_service_win64" ] |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 894 | } |
| 895 | } else { |
dpranke | ec10b393 | 2015-10-02 17:58:23 | [diff] [blame] | 896 | deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ] |
dpranke | 2302dfa | 2015-09-29 02:21:52 | [diff] [blame] | 897 | } |
| 898 | } |
| 899 | } |