blob: d9e32d863edc45aa050342bf6b240d619f73efa8 [file] [log] [blame]
[email protected]f0e7ff882013-12-26 21:23:091# Copyright (c) 2013 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5# This is the root build file for GN. GN will start processing by loading this
6# file, and recursively load all dependencies until all dependencies are either
7# resolved or known not to exist (which will cause the build to fail). So if
8# you add a new build file, there must be some path of dependencies from this
9# file to your new one or GN won't know about it.
10
dprankefd1813272015-04-13 23:56:0011import("//build/config/crypto.gni")
rockot2f1326e2015-02-23 23:53:5112import("//build/config/features.gni")
aizatskyfc46a9f2015-10-09 21:20:0813import("//build/config/sanitizers/sanitizers.gni")
[email protected]378b4f02014-06-10 15:58:4514import("//build/config/ui.gni")
dpranked4da5ab42015-10-13 06:20:3315import("//build_overrides/v8.gni")
mostynb2196a462015-08-20 17:22:1016import("//media/media_options.gni")
dprankee2ef3822015-02-24 21:42:1817
cjhopmanca675d3e2014-10-24 03:50:4518if (is_android) {
19 import("//build/config/android/config.gni")
20}
[email protected]378b4f02014-06-10 15:58:4521
brettwb84b29472014-10-22 22:58:4522declare_args() {
23 # A list of extra dependencies to add to the root target. This allows a
24 # checkout to add additional targets without explicitly changing any checked-
25 # in files.
26 root_extra_deps = []
27}
28
dprankeb6128d02015-05-01 16:40:3029# This file defines the following four main targets:
dpranked62d8512015-03-02 03:06:0330#
dprankeddc174902015-04-29 01:38:3531# "both_gn_and_gyp" should list every root target (target that nothing else
32# depends on) built by GN that is also built in the GYP build.
dpranked62d8512015-03-02 03:06:0333#
dprankeddc174902015-04-29 01:38:3534# "gn_all" should (transitively) cause everything to be built; if you run
35# 'ninja gn_all' and then 'ninja all', the second build should do no work.
36#
37# "gn_only" should list every root target that is *not* intended to be built
38# in a GYP build. Because GN has different rules for deciding what an 'all'
39# build is, this may end up including targets that are actually defined in a
40# GYP build but not dependencies of GYP's "all" (and so not actually built).
41#
dprankeb6128d02015-05-01 16:40:3042# "gn_visibility": targets that are normally not visible to top-level targets,
43# but are built anyway by "all". Since we don't want any such targets, we
44# have this placeholder to make sure hidden targets that aren't otherwise
45# depended on yet are accounted for.
46#
dprankeddc174902015-04-29 01:38:3547# TODO(GYP): crbug.com/481694. Make sure that the above is true and there are
48# scripts run on the bots that enforce this. Once the GYP migration is over,
49# we can collapse all of these targets as desired.
dprankeff30e3d2015-02-24 06:52:3950
dprankee2ef3822015-02-24 21:42:1851group("gn_all") {
52 testonly = true
53
54 deps = [
dprankeddc174902015-04-29 01:38:3555 ":both_gn_and_gyp",
56 ":gn_only",
dprankeb6128d02015-05-01 16:40:3057 ":gn_visibility",
dprankeddc174902015-04-29 01:38:3558 ]
59}
60
61# The "both_gn_and_gyp" target should reflect every target that is built
62# in both the GN and GYP builds, and ideally it should match the
63# "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line.
64#
65# TODO(GYP): Add build steps that check and enforce this on the bots.
66group("both_gn_and_gyp") {
67 testonly = true
dprankeddc174902015-04-29 01:38:3568 deps = [
dprankee2ef3822015-02-24 21:42:1869 "//base:base_unittests",
brettwa874dccb2015-08-28 23:59:1870 "//chrome/installer",
sheroukdc35ba272015-09-22 14:09:3771 "//components:components_unittests",
sheroukce1c7d72015-08-24 15:21:5972 "//net:net_unittests",
sherouk2866d662015-08-24 16:29:4473 "//skia:skia_unittests",
brettwa874dccb2015-08-28 23:59:1874 "//sql:sql_unittests",
sherouk3eee4a82015-09-01 10:42:3375 "//sync:sync_unit_tests",
hbose409ed42015-10-13 16:27:4076 "//third_party/openh264/tests:openh264_unittests",
sherouk4fb74d42015-08-24 15:58:4177 "//ui/base:ui_base_unittests",
sherouk84a45ff2015-09-01 13:31:3978 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:4179 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:1880 ]
dpranke2a294622015-08-07 05:23:0181
sherouk53f0f1a2015-08-03 15:59:3582 if (!is_ios) {
dpranke2a294622015-08-07 05:23:0183 # TODO(GYP): Figure out which of these should actually build on iOS,
84 # and whether there should be other targets that are iOS-only and missing.
sherouk53f0f1a2015-08-03 15:59:3585 deps += [
86 "//cc:cc_unittests",
87 "//chrome",
88 "//chrome/test:browser_tests",
89 "//chrome/test:interactive_ui_tests",
90 "//chrome/test:sync_integration_tests",
91 "//chrome/test:unit_tests",
92 "//chrome/test/chromedriver:chromedriver_unittests",
93 "//components:components_browsertests",
sherouk53f0f1a2015-08-03 15:59:3594 "//content/shell:content_shell",
95 "//content/test:content_browsertests",
96 "//content/test:content_perftests",
97 "//content/test:content_unittests",
98 "//crypto:crypto_unittests",
99 "//device:device_unittests",
100 "//extensions:extensions_browsertests",
101 "//extensions:extensions_unittests",
102 "//google_apis/gcm:gcm_unit_tests",
103 "//gpu:gpu_unittests",
dprankedbdd9d82015-08-12 21:18:18104 "//gpu/gles2_conform_support:gles2_conform_test",
sherouk53f0f1a2015-08-03 15:59:35105 "//ipc:ipc_tests",
106 "//ipc/mojo:ipc_mojo_unittests",
107 "//jingle:jingle_unittests",
108 "//media:media_unittests",
109 "//media/cast:cast_unittests",
110 "//media/midi:midi_unittests",
111 "//mojo",
112 "//mojo/application/public/cpp",
113 "//mojo/common:mojo_common_unittests",
114 "//net:hpack_example_generator",
115 "//net:hpack_fuzz_mutator",
116 "//net:hpack_fuzz_wrapper",
117 "//net:net_perftests",
sherouk53f0f1a2015-08-03 15:59:35118 "//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",
sherouk53f0f1a2015-08-03 15:59:35148 "//third_party/WebKit/Source/platform:heap_unittests",
149 "//third_party/WebKit/Source/platform:platform_unittests",
150 "//third_party/WebKit/Source/web:webkit_unit_tests",
151 "//third_party/WebKit/Source/wtf:wtf_unittests",
152 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
153 "//third_party/codesighs",
jam76bcf0c2015-10-02 21:01:28154
155 # TODO(use-new-edk):
156 #"//mojo/edk/system:mojo_system_unittests",
157 #"//mojo/edk/test:mojo_public_bindings_unittests",
158 #"//mojo/edk/test:mojo_public_environment_unittests",
159 #"//mojo/edk/test:mojo_public_system_unittests",
160 #"//mojo/edk/test:mojo_public_utility_unittests",
sherouk53f0f1a2015-08-03 15:59:35161 "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",
162 "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",
163 "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",
164 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",
165 "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
166 "//third_party/pdfium/samples:pdfium_test",
167 "//third_party/smhasher:pmurhash",
168 "//tools/imagediff($host_toolchain)",
169 "//tools/gn",
170 "//tools/gn:gn_unittests",
171 "//tools/gn:generate_test_gn_data",
mswf90a6802015-09-30 18:16:36172 "//tools/perf/clear_system_cache",
sherouk53f0f1a2015-08-03 15:59:35173 "//tools/telemetry:bitmaptools($host_toolchain)",
174 "//ui/accessibility:accessibility_unittests",
175 "//ui/app_list:app_list_unittests",
sherouk53f0f1a2015-08-03 15:59:35176 "//ui/display:display_unittests",
177 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35178 "//ui/gl:gl_unittests",
179 "//ui/touch_selection:ui_touch_selection_unittests",
sherouk53f0f1a2015-08-03 15:59:35180 ]
sdefresne998e8582015-10-07 13:36:45181 } else {
sdefresnea378b452015-10-08 09:55:58182 deps += [
183 "//ios/net:ios_net_unittests",
sdefresnec6ddd7ac2015-10-09 17:30:19184 "//ios/testing:ocmock_support_unittest",
sdefresnea378b452015-10-08 09:55:58185 "//ios/third_party/gcdwebserver",
186 ]
sherouk53f0f1a2015-08-03 15:59:35187 }
dprankee2ef3822015-02-24 21:42:18188
scottmg34fb7e52014-12-03 23:27:24189 deps += root_extra_deps
[email protected]fce5c3fe2014-04-10 21:13:05190
dpranke021d4c92015-02-24 02:08:25191 if (enable_extensions && !is_mac) {
dprankefd1813272015-04-13 23:56:00192 # TODO(GYP): Get this working on the mac?
rockot2f1326e2015-02-23 23:53:51193 deps += [ "//extensions/shell:app_shell_unittests" ]
194 }
195
dprankefd1813272015-04-13 23:56:00196 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55197 deps += [ "//chrome/browser/media/router" ]
dprankefd1813272015-04-13 23:56:00198 }
199
garykac3eddb5b2015-04-17 23:16:38200 if (enable_remoting) {
201 deps += [ "//remoting:remoting_all" ]
dprankece5eb832015-04-01 20:21:05202 }
203
dprankee2ef3822015-02-24 21:42:18204 if (toolkit_views) {
205 deps += [ "//ui/views:views_unittests" ]
James Robinson060f2e32014-09-10 22:31:37206 }
207
dprankee2ef3822015-02-24 21:42:18208 if (use_aura) {
209 deps += [ "//ui/wm:wm_unittests" ]
210 }
211
212 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47213 deps += [ "//ui/ozone" ]
[email protected]a306aaa2014-05-24 13:21:50214 }
215
dprankefd1813272015-04-13 23:56:00216 if (use_x11) {
217 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22218 }
219
tmoniuszkoe5578b922015-04-14 09:38:03220 if (enable_configuration_policy) {
221 deps += [ "//components/policy:policy_templates" ]
222 }
223
dprankefd1813272015-04-13 23:56:00224 if (v8_use_external_startup_data) {
225 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
[email protected]2d6893a2014-06-02 19:16:36226 }
227
brettw66e3feab2015-07-20 23:52:22228 if (is_win) {
brettwf986f9572015-10-07 17:18:15229 deps += [
230 "//chrome/installer/gcapi",
231 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
232 ]
brettw66e3feab2015-07-20 23:52:22233 }
234
[email protected]5a8d5162014-04-12 01:19:16235 if (is_android) {
[email protected]26046b52014-07-16 00:11:03236 deps += [
cjhopman31511332014-10-23 01:05:02237 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38238 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02239 "//build/android/rezip",
agrieve40ba6862015-07-15 02:09:05240 "//third_party/errorprone:chromium_errorprone",
pkotwicze38594d2015-09-25 00:05:10241 "//tools/android:android_tools",
pkotwicz8b9d18c2015-10-05 01:59:33242 "//tools/android/heap_profiler:heap_profiler_unittests",
dprankee2ef3822015-02-24 21:42:18243 "//tools/imagediff($host_toolchain)",
244
245 # TODO(GYP): Remove these when the components_unittests work.
246 "//components/history/core/test:test",
247 "//components/policy:policy_component_test_support",
248 "//components/policy:test_support",
249 "//components/rappor:test_support",
250 "//components/signin/core/browser:test_support",
251 "//components/sync_driver:test_support",
252 "//components/user_manager",
253 "//components/wallpaper",
254 "//content/shell/android:content_shell_apk",
255
256 # TODO(GYP): Are these needed, or will they be pulled in automatically?
[email protected]684b2292014-08-22 19:12:39257 "//third_party/android_tools:android_gcm_java",
258 "//third_party/android_tools:uiautomator_java",
259 "//third_party/android_tools:android_support_v13_java",
260 "//third_party/android_tools:android_support_v7_appcompat_java",
261 "//third_party/android_tools:android_support_v7_mediarouter_java",
dprankee2ef3822015-02-24 21:42:18262 "//third_party/mesa",
mikecase85e83ed2014-12-08 19:18:29263 "//third_party/mockito:mockito_java",
dprankee2ef3822015-02-24 21:42:18264 "//third_party/openmax_dl/dl",
dprankee2ef3822015-02-24 21:42:18265 "//ui/android:ui_java",
266
267 # TODO(GYP): Are these needed?
268 "//chrome/test:test_support_unit",
269 "//third_party/smhasher:murmurhash3",
270 "//ui/message_center:test_support",
271 ]
272 deps -= [
dprankee2ef3822015-02-24 21:42:18273 "//chrome", # TODO(GYP) ??
274 "//chrome/test:browser_tests", # TODO(GYP) ??
275 "//chrome/test:interactive_ui_tests", # TODO(GYP) ??
276 "//chrome/test:sync_integration_tests", # TODO(GYP) ??
277 "//chrome/test:unit_tests", # TODO(GYP)
brettw922d3aa2015-02-27 22:15:46278
279 # Chromedriver shouldn't be compiled on Android.
280 "//chrome/test/chromedriver:chromedriver_unittests",
dprankee2ef3822015-02-24 21:42:18281 "//extensions:extensions_browsertests",
282 "//extensions:extensions_unittests",
283 "//google_apis/gcm:gcm_unit_tests",
284 "//ipc:ipc_tests", # TODO(GYP) ??
285 "//jingle:jingle_unittests", # TODO(GYP) ??
rockot9c67e5f2015-03-12 20:01:21286 "//net:hpack_example_generator",
287 "//net:hpack_fuzz_mutator",
288 "//net:hpack_fuzz_wrapper",
289 "//net:net_perftests",
tfarina79ef072d2015-04-04 20:16:57290 "//ppapi/examples/2d",
291 "//ppapi/examples/audio",
292 "//ppapi/examples/audio_input",
293 "//ppapi/examples/compositor",
294 "//ppapi/examples/crxfs",
295 "//ppapi/examples/enumerate_devices",
296 "//ppapi/examples/file_chooser",
297 "//ppapi/examples/flash_topmost",
298 "//ppapi/examples/font",
299 "//ppapi/examples/gamepad",
300 "//ppapi/examples/gles2",
301 "//ppapi/examples/gles2_spinning_cube",
302 "//ppapi/examples/ime",
303 "//ppapi/examples/input",
304 "//ppapi/examples/media_stream_audio",
305 "//ppapi/examples/media_stream_video",
306 "//ppapi/examples/mouse_cursor",
307 "//ppapi/examples/mouse_lock",
308 "//ppapi/examples/printing",
309 "//ppapi/examples/scaling",
310 "//ppapi/examples/scripting",
311 "//ppapi/examples/stub",
312 "//ppapi/examples/threading",
313 "//ppapi/examples/url_loader",
314 "//ppapi/examples/video_capture",
315 "//ppapi/examples/video_decode",
316 "//ppapi/examples/video_effects",
317 "//ppapi/examples/video_encode",
dprankee2ef3822015-02-24 21:42:18318 "//third_party/pdfium/samples:pdfium_test",
319 "//tools/gn",
dprankefd1813272015-04-13 23:56:00320 "//tools/gn:generate_test_gn_data",
dprankee2ef3822015-02-24 21:42:18321 "//tools/gn:gn_unittests",
322 "//ui/app_list:app_list_unittests",
323 "//url:url_unittests",
[email protected]26046b52014-07-16 00:11:03324 ]
325
pkotwicz061c5a42015-09-30 02:16:54326 if (!is_chromecast) {
327 deps += [
328 "//chrome/android:chrome_public_apk",
329 "//chrome/android:chrome_public_test_apk",
330 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
pkotwicz0a2255e2015-10-06 16:29:05331 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54332 ]
333 }
334
cjhopmanca675d3e2014-10-24 03:50:45335 if (has_chrome_android_internal) {
dprankee2ef3822015-02-24 21:42:18336 deps += [ "//clank" ] # TODO(GYP) ??
cjhopmanca675d3e2014-10-24 03:50:45337 }
dprankedb5527d72015-03-08 04:22:47338 }
339
dprankefd1813272015-04-13 23:56:00340 if (is_linux) { # TODO(GYP): || is_android || is_bsd?
341 deps += [
342 "//breakpad:core-2-minidump",
343 "//breakpad:minidump-2-core",
344 ]
345 }
346
dpranke6293d252015-04-14 19:12:00347 if (is_chromeos) {
348 deps += [
349 "//chromeos:chromeos_unittests",
350 "//ui/chromeos:ui_chromeos_unittests",
351 ]
352 }
353
dprankefd1813272015-04-13 23:56:00354 if (is_chromeos || is_mac || is_win) {
355 deps += [
356 "//rlz:rlz_id",
357 "//rlz:rlz_lib",
358 "//rlz:rlz_unittests",
359 ]
360 }
361
dprankedb5527d72015-03-08 04:22:47362 if (is_linux) {
363 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06364 deps += [
dprankedb5527d72015-03-08 04:22:47365 "//breakpad:breakpad_unittests",
dprankedb5527d72015-03-08 04:22:47366 "//breakpad:generate_test_dump",
dprankedb5527d72015-03-08 04:22:47367 "//dbus:dbus_test_server",
dprankee2ef3822015-02-24 21:42:18368 "//dbus:dbus_unittests",
dprankedb5527d72015-03-08 04:22:47369 "//net:disk_cache_memory_test",
370 "//net:flip_in_mem_edsm_server",
371 "//net:flip_in_mem_edsm_server_unittests",
372 "//net:quic_client",
373 "//net:quic_server",
374 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18375 "//sandbox/linux:sandbox_linux_unittests",
dprankedb5527d72015-03-08 04:22:47376 "//sandbox/linux:sandbox_linux_jni_unittests",
hiroshigee6d374c2015-02-24 07:54:06377 ]
dnicoara8c6aa8e2015-03-11 23:20:32378
379 if (is_chromeos || use_ash) {
380 deps += [ "//components/session_manager/core" ]
381 }
dprankedb5527d72015-03-08 04:22:47382 }
383
sherouke1859f92015-08-05 10:19:10384 if (is_ios || is_win || (is_linux && !is_chromeos)) {
385 deps += [
386 "//base:base_i18n_perftests",
387 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58388 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10389 ]
390 }
391
dprankefd1813272015-04-13 23:56:00392 if (is_win || (is_linux && !is_chromeos)) {
393 # TODO(GYP): Figure out which of these should (and can) build
394 # for android/chromeos/mac/ios.
tfarina9e7cf702015-02-23 21:13:44395 deps += [
dprankedb5527d72015-03-08 04:22:47396 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47397 "//base:build_utf8_validator_tables",
dprankedb5527d72015-03-08 04:22:47398 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00399 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47400 "//chrome/test:load_library_perf_tests",
dpranke76f48222015-04-01 00:00:00401 "//chrome/test:performance_browser_tests",
dprankedb5527d72015-03-08 04:22:47402 "//chrome/test:sync_performance_tests",
403 "//chrome/test/chromedriver:chromedriver",
404 "//chrome/test/chromedriver:chromedriver_tests",
405 "//chrome/tools/profile_reset:jtl_compiler",
406 "//components:components_perftests",
dprankedb5527d72015-03-08 04:22:47407 "//content/test:content_gl_tests",
408 "//content/test:content_gl_benchmark",
409 "//courgette:courgette",
410 "//courgette:courgette_fuzz",
411 "//courgette:courgette_minimal_tool",
412 "//courgette:courgette_unittests",
413 "//device:device_unittests",
414 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47415 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47416 "//google_apis/gcm:mcs_probe",
dprankedb5527d72015-03-08 04:22:47417 "//gpu:gpu_perftests",
dprankefd1813272015-04-13 23:56:00418 "//gpu:gl_tests",
dprankedb5527d72015-03-08 04:22:47419 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47420 "//media:media_perftests",
dprankedb5527d72015-03-08 04:22:47421 "//media/cast:generate_barcode_video",
422 "//media/cast:generate_timecode_audio",
dprankedb5527d72015-03-08 04:22:47423 "//net:crash_cache",
424 "//net:crl_set_dump",
425 "//net:dns_fuzz_stub",
dprankefd1813272015-04-13 23:56:00426 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47427 "//net:gdig",
428 "//net:get_server_time",
dprankedb5527d72015-03-08 04:22:47429 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
dprankefd1813272015-04-13 23:56:00430 "//net:run_testserver",
dprankedb5527d72015-03-08 04:22:47431 "//net:stress_cache",
432 "//net:tld_cleanup",
dprankec09ccaa2015-03-27 22:00:38433 "//ppapi:pepper_hash_for_uma",
dprankefd1813272015-04-13 23:56:00434 "//ppapi:ppapi_perftests",
dprankedb5527d72015-03-08 04:22:47435 "//sync:run_sync_testserver",
cwallez4c57af32015-09-03 14:54:49436 "//third_party/angle/src/tests:angle_end2end_tests",
437 "//third_party/angle/src/tests:angle_unittests",
dprankedb5527d72015-03-08 04:22:47438 "//third_party/codesighs:maptsvdifftool",
dprankedb5527d72015-03-08 04:22:47439 "//third_party/leveldatabase:env_chromium_unittests",
440 "//third_party/libaddressinput:libaddressinput_unittests",
dprankefd1813272015-04-13 23:56:00441 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47442 "//ui/compositor:compositor_unittests",
443 ]
444
445 if (enable_extensions) {
446 deps += [ "//extensions/shell:app_shell" ]
447 }
448
449 if (enable_nacl) {
dprankefd1813272015-04-13 23:56:00450 deps += [ "//components/nacl:nacl_loader_unittests" ]
dprankedb5527d72015-03-08 04:22:47451 }
452
mostynb2196a462015-08-20 17:22:10453 if (media_use_ffmpeg) {
454 deps += [ "//media:ffmpeg_regression_tests" ]
455 }
456
dprankedb5527d72015-03-08 04:22:47457 if (use_ash) {
458 deps += [
benf97b2572015-09-25 23:12:53459 "//ash:ash_shell_with_content",
dprankedb5527d72015-03-08 04:22:47460 "//ash:ash_unittests",
461 ]
462 }
463
464 if (use_aura) {
465 deps += [
466 "//ui/aura:aura_unittests",
467 "//ui/aura:bench",
468 "//ui/aura:demo",
469 ]
470 }
dprankefd1813272015-04-13 23:56:00471 }
472
473 if (is_linux && !is_chromeos) {
474 deps += [
475 # TODO(GYP): Figure out which of these should (and can) build
476 # under which other conditions.
477 "//build/sanitizers:copy_llvm_symbolizer",
478 "//chrome/test:chrome_app_unittests",
479 "//cloud_print:cloud_print_unittests",
480 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00481 "//content/public/app:browser",
482 "//content/public/app:child",
483
484 # TODO(GYP): Remove this when the gles2 tests work
485 "//gpu/command_buffer/client:gles2_implementation_no_check",
486
487 "//gpu/khronos_glcts_support:khronos_glcts_test", # TODO(GYP) crbug.com/471903 to make this complete.
488 "//media/cast:cast_benchmarks",
489 "//media/cast:tap_proxy",
jam00802992015-05-20 03:37:19490 "//mojo/application/public/cpp",
dprankefd1813272015-04-13 23:56:00491 "//skia:filter_fuzz_stub",
492 "//skia:image_operations_bench",
493 "//sync/tools:sync_client",
494 "//sync/tools:sync_listen_notifications",
495 "//testing/gmock:gmock_main",
jam76bcf0c2015-10-02 21:01:28496
497 # TODO(use-new-edk):
498 #"//mojo/edk/test:mojo_public_system_perftests",
dprankefd1813272015-04-13 23:56:00499 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests",
dprankefd1813272015-04-13 23:56:00500 "//ui/keyboard:keyboard_unittests",
501 "//ui/message_center:message_center_unittests",
502 "//ui/snapshot:snapshot_unittests",
503 "//ui/views/examples:views_examples_with_content_exe",
504
dprankefd1813272015-04-13 23:56:00505 "//third_party/codesighs:nm2tsv",
506 "//third_party/sqlite:sqlite_shell",
507 ]
508
dprankeec10b3932015-10-02 17:58:23509 deps += [
510 "//breakpad:dump_syms($host_toolchain)",
511 "//breakpad:microdump_stackwalk($host_toolchain)",
512 "//breakpad:minidump_dump($host_toolchain)",
513 "//breakpad:minidump_stackwalk($host_toolchain)",
514 ]
dprankefd1813272015-04-13 23:56:00515
516 if (!is_debug && !is_component_build) {
517 deps += [ "//chrome/tools/service_discovery_sniffer" ]
518 }
519
520 if (toolkit_views) {
521 deps += [ "//ui/app_list:app_list_demo" ]
522 }
dprankedb5527d72015-03-08 04:22:47523
524 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44525 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59526 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44527 }
dprankedb5527d72015-03-08 04:22:47528 }
529 }
530
531 if (is_mac) {
532 deps += [
533 "//breakpad:crash_inspector",
534 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44535 "//third_party/apple_sample_code",
536 "//third_party/molokocacao",
537 ]
538
dprankee2ef3822015-02-24 21:42:18539 # TODO(GYP): Remove these when the targets below work and these
540 # are pulled in automatically.
541 deps += [
542 "//cc/blink",
Brett Wilson817fec02015-08-22 20:36:49543 "//components/ui/zoom",
dprankee2ef3822015-02-24 21:42:18544 "//content",
545 "//content/test:test_support",
546 "//device/battery",
547 "//device/bluetooth",
548 "//device/nfc",
549 "//device/usb",
550 "//device/vibration",
551 "//media/blink",
552 "//pdf",
553 "//storage/browser",
554 "//third_party/brotli",
555 "//third_party/flac",
tfarinae4a03f8f2015-05-18 05:55:26556 "//third_party/hunspell",
dprankee2ef3822015-02-24 21:42:18557 "//third_party/iccjpeg",
558 "//third_party/libphonenumber",
559 "//third_party/ots",
560 "//third_party/qcms",
561 "//third_party/smhasher:murmurhash3",
dprankee2ef3822015-02-24 21:42:18562 "//third_party/webrtc/system_wrappers",
tfarina42aa0172015-08-13 21:12:40563 "//ui/app_list:app_list_unittests",
tfarinaeda26472015-08-12 19:30:15564 "//ui/gfx:gfx_unittests",
dprankee2ef3822015-02-24 21:42:18565 "//ui/native_theme",
566 "//ui/snapshot",
567 "//ui/surface",
568 ]
569
dprankecf8465db72014-11-10 23:51:22570 # TODO(dpranke): These are as-yet untriaged but need at least the above.
dpranke43760592014-11-08 02:59:57571 deps -= [
dprankee2ef3822015-02-24 21:42:18572 "//chrome", # TODO(GYP)
573 "//chrome/test:browser_tests", # TODO(GYP)
574 "//chrome/test:interactive_ui_tests", # TODO(GYP)
575 "//chrome/test:sync_integration_tests", # TODO(GYP)
576 "//chrome/test:unit_tests", # TODO(GYP)
dprankef6ca89c52015-03-30 22:01:38577 "//components:components_browsertests", # TODO(GYP)
dprankee2ef3822015-02-24 21:42:18578 "//components:components_unittests", # TODO(GYP)
579 "//content/test:content_browsertests", # TODO(GYP)
580 "//content/test:content_perftests", # TODO(GYP)
dprankeb0713542015-07-31 21:07:21581 "//device:device_unittests", # TODO(GYP)
dprankee2ef3822015-02-24 21:42:18582 "//extensions:extensions_browsertests", # TODO(GYP)
583 "//extensions:extensions_unittests", # TODO(GYP)
dprankeb0713542015-07-31 21:07:21584 "//mojo", # TODO(GYP)
585 "//mojo/application/public/cpp", # TODO(GYP)
tfarinacb2638b2015-05-12 03:24:15586
587 # TODO(GYP): Re-enable this as soon as we can link Blink binaries on mac.
588 "//third_party/WebKit/Source/platform:heap_unittests",
589 "//third_party/WebKit/Source/platform:platform_unittests",
590 "//third_party/WebKit/Source/web:webkit_unit_tests",
dprankecf8465db72014-11-10 23:51:22591 ]
dprankefd1813272015-04-13 23:56:00592 }
593
594 if (is_win) {
595 deps += [
596 "//base:pe_image_test",
grt734e87b2015-07-06 19:36:43597 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00598 "//chrome_elf:chrome_elf_unittests",
599 "//chrome_elf:dll_hash_main",
sdefresne8ba0b88c2015-09-18 10:33:13600 "//components/crash/content/tools:crash_service",
dprankefd1813272015-04-13 23:56:00601 "//components/wifi:wifi_test",
602 "//net:quic_client",
603 "//net:quic_server",
604 "//sandbox/win:pocdll",
605 "//sandbox/win:sandbox_poc",
606 "//sandbox/win:sbox_integration_tests",
607 "//sandbox/win:sbox_unittests",
608 "//sandbox/win:sbox_validation_tests",
609 "//testing/gtest:gtest_main",
610 "//third_party/codesighs:msmap2tsv",
611 "//third_party/pdfium/samples:pdfium_diff",
612 "//ui/metro_viewer",
613 ]
dprankee2ef3822015-02-24 21:42:18614 deps -= [
615 "//crypto:crypto_unittests", # TODO(GYP)
616 "//net:net_unittests", # TODO(GYP)
617 ]
sherouk53f0f1a2015-08-03 15:59:35618 } else if (!is_android && !is_ios) {
dpranke6293d252015-04-14 19:12:00619 deps += [ "//breakpad:symupload" ]
mohsenf837da7c2014-12-09 19:01:34620 }
[email protected]f0e7ff882013-12-26 21:23:09621}
brettw533c50422015-02-26 17:49:16622
dpranked62d8512015-03-02 03:06:03623group("gn_only") {
dprankedb5527d72015-03-08 04:22:47624 testonly = true
625
dpranke2a294622015-08-07 05:23:01626 deps = []
627
sherouk53f0f1a2015-08-03 15:59:35628 if (!is_ios) {
dpranke2a294622015-08-07 05:23:01629 deps += [ "//mandoline:all" ]
sherouk53f0f1a2015-08-03 15:59:35630 }
isherman0f89b43eb2015-04-11 00:02:45631
632 if (!is_android && !is_ios) {
633 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
634 }
635
dprankedb5527d72015-03-08 04:22:47636 if (is_linux && !is_chromeos) {
637 # TODO(GYP): Figure out if any of these should be in gn_all
638 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45639 deps += [
dprankedb5527d72015-03-08 04:22:47640 ":gn_mojo_targets",
dtrainor4ae32722015-09-26 00:14:12641 "//blimp:blimp_tests",
dprankedb5527d72015-03-08 04:22:47642 "//chrome/browser/resources:extension_resource_demo",
643 "//chrome/installer/util:strings",
644 "//chrome:main_dll",
645 "//chrome/test:load_library_perf_tests",
646 "//chrome/tools/convert_dict",
647 "//components/constrained_window:unit_tests",
648 "//components/enhanced_bookmarks:test_support",
dprankedb5527d72015-03-08 04:22:47649 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45650 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47651 "//components/rappor:unit_tests",
652 "//components/sessions:unit_tests",
653 "//media/blink:media_blink_unittests",
dprankedb5527d72015-03-08 04:22:47654 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47655 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
656 "//storage/browser:dump_file_system",
657 "//third_party/angle:libANGLE",
658 "//third_party/angle:libEGL",
659 "//third_party/angle:libGLESv2",
660 "//third_party/cld_2:cld_2_dynamic_data_tool",
661 "//third_party/leveldatabase:leveldb_arena_test",
662 "//third_party/leveldatabase:leveldb_bloom_test",
663 "//third_party/leveldatabase:leveldb_db_test",
664 "//third_party/leveldatabase:leveldb_crc32c_test",
665 "//third_party/leveldatabase:leveldb_cache_test",
666 "//third_party/leveldatabase:leveldb_env_test",
667 "//third_party/leveldatabase:leveldb_write_batch_test",
668 "//third_party/leveldatabase:leveldb_filter_block_test",
669 "//third_party/leveldatabase:leveldb_version_edit_test",
670 "//third_party/leveldatabase:leveldb_db_bench",
671 "//third_party/leveldatabase:leveldb_log_test",
672 "//third_party/leveldatabase:leveldb_corruption_test",
673 "//third_party/leveldatabase:leveldb_table_test",
674 "//third_party/leveldatabase:leveldb_skiplist_test",
675 "//third_party/leveldatabase:leveldb_filename_test",
676 "//third_party/leveldatabase:leveldb_dbformat_test",
thestig93786e62015-08-05 04:03:29677 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47678 "//third_party/libjpeg_turbo:simd",
dprankedb5527d72015-03-08 04:22:47679 "//third_party/libsrtp:replay_driver",
680 "//third_party/libsrtp:roc_driver",
681 "//third_party/libsrtp:rtpw",
682 "//third_party/libsrtp:rdbx_driver",
683 "//third_party/libsrtp:srtp_driver",
684 "//third_party/libsrtp:srtp_driver",
685 "//third_party/libsrtp:srtp_test_kernel_driver",
686 "//third_party/libsrtp:srtp_test_cipher_driver",
687 "//third_party/libsrtp:srtp_test_datatypes_driver",
688 "//third_party/libsrtp:srtp_test_aes_calc",
689 "//third_party/libsrtp:srtp_test_env",
690 "//third_party/libsrtp:srtp_test_rand_gen",
691 "//third_party/libsrtp:srtp_test_sha1_driver",
692 "//third_party/libsrtp:srtp_test_stat_driver",
693 "//third_party/opus:opus_compare",
694 "//third_party/opus:opus_demo",
695 "//third_party/opus:test_opus_decode",
696 "//third_party/opus:test_opus_encode",
697 "//third_party/opus:test_opus_api",
698 "//third_party/opus:test_opus_padding",
699 "//third_party/webrtc/system_wrappers:field_trial_default",
700 "//third_party/webrtc/system_wrappers:metrics_default",
701 "//ui/display/types",
702 "//ui/shell_dialogs:shell_dialogs_unittests",
703 "//ui/views/examples:views_examples_exe",
dprankedb5527d72015-03-08 04:22:47704 ]
dprankeb0713542015-07-31 21:07:21705
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16706 if (target_cpu == "x86" || target_cpu == "x64") {
mcgrathr916aafa2015-09-15 00:06:53707 deps += [
708 "//third_party/libjpeg_turbo:simd_asm",
709 "//native_client/src/trusted/platform_qualify:vcpuid",
710 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16711 }
dprankedb5527d72015-03-08 04:22:47712 if (enable_nacl) {
713 deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ]
714 }
715 if (use_ozone) {
716 deps += [ "//ui/ozone/demo" ]
717 }
718 if (is_android) {
719 deps += [ "//build/android/gyp/test:hello_world" ]
720 }
dpranke807f602b2015-03-17 23:20:56721
722 if (is_linux && current_toolchain == host_toolchain) {
723 deps += [ "//v8:d8" ]
724 }
dprankedb5527d72015-03-08 04:22:47725 }
dprankeb0713542015-07-31 21:07:21726
nyquistb5f050b2015-09-10 05:10:35727 if (is_android) {
nyquist7af11b72015-09-10 20:18:14728 deps += [ "//blimp" ]
nyquistb5f050b2015-09-10 05:10:35729 }
730
dprankeb0713542015-07-31 21:07:21731 if (is_mac) {
732 deps -= [ "//mandoline:all" ] # TODO(GYP)
733 }
aizatskyfc46a9f2015-10-09 21:20:08734
735 if (use_libfuzzer) {
736 deps += [ "//testing/libfuzzer:libfuzzer_main" ]
737 }
dprankedb5527d72015-03-08 04:22:47738}
739
740group("gn_mojo_targets") {
741 testonly = true
742 if (is_linux && !is_chromeos) {
743 # TODO(GYP): Figure out if any of these should be in gn_all
744 # and figure out how cross-platform they are
745 deps = [
dprankedb5527d72015-03-08 04:22:47746 "//ipc/mojo:ipc_mojo_perftests",
dprankedb5527d72015-03-08 04:22:47747 "//media/mojo/services:cdm_service",
748 "//media/mojo:tests",
msw1bb9c6c2015-05-06 21:35:44749 "//mojo:tests",
pkotwicz8b9d18c2015-10-05 01:59:33750
jam76bcf0c2015-10-02 21:01:28751 # TODO(use-new-edk):
752 #"//mojo/edk/js/test:js_integration_tests",
753 #"//mojo/edk/js/tests:js_to_cpp_bindings_python",
dprankedb5527d72015-03-08 04:22:47754 "//third_party/mojo/src/mojo/edk/js/test:js_integration_tests",
dprankedb5527d72015-03-08 04:22:47755 ]
dprankedb5527d72015-03-08 04:22:47756 }
757}
758
759group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03760 deps = [
dprankeb6128d02015-05-01 16:40:30761 "//build/config/sanitizers:options_sources",
762
dprankedb5527d72015-03-08 04:22:47763 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
764 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dprankeb6128d02015-05-01 16:40:30765
766 "//ui/resources:repack_ui_test_mac_locale_pack",
dpranked62d8512015-03-02 03:06:03767 ]
dpranked2fb5222015-09-10 22:39:05768
769 if (!is_ios) {
770 deps += [
771 "//v8:v8_snapshot",
772 "//v8:postmortem-metadata",
773 ]
774 }
dpranked62d8512015-03-02 03:06:03775}
776
tfarinacb2638b2015-05-12 03:24:15777if (!is_ios) {
778 # This group includes all of the targets needed to build and test Blink,
779 # including running the layout tests (see below).
780 group("blink_tests") {
781 testonly = true
782
783 deps = [
784 "//third_party/WebKit/public:all_blink",
785 ]
786
787 # NOTE: The following deps are needed to run the layout tests
788 # (run-webkit-tests) but there is no GN target for the layout tests,
789 # so we need to specify the dependencies here instead.
790 if (is_android) {
791 deps += [
792 "//breakpad:dump_syms($host_toolchain)",
793 "//breakpad:minidump_stackwalk($host_toolchain)",
794 "//content/shell/android:content_shell_apk",
ojan94989c72015-07-17 21:56:42795 "//tools/imagediff($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15796 ]
797 } else {
ojan94989c72015-07-17 21:56:42798 deps += [
799 "//content/shell:content_shell",
800 "//tools/imagediff",
801 ]
tfarinacb2638b2015-05-12 03:24:15802 }
803
804 if (is_win) {
805 deps += [
jochen73e711c2015-06-03 10:01:46806 "//components/test_runner:layout_test_helper",
tfarina795e01a2015-05-15 19:29:57807 "//content/shell:crash_service",
tfarinacb2638b2015-05-12 03:24:15808 ]
809 }
810
811 if (!is_win && !is_android) {
Gordana.Cmiljanovicf243e9a2015-05-26 22:14:47812 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15813 }
814
815 if (is_mac) {
816 deps += [
817 "//breakpad:dump_syms($host_toolchain)",
jochen73e711c2015-06-03 10:01:46818 "//components/test_runner:layout_test_helper",
tfarinacb2638b2015-05-12 03:24:15819 ]
820 }
821
822 if (is_linux) {
823 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
824 }
825 }
826}
827
dpranke6abd8652015-08-28 03:21:11828# Add a dummy target for compatibility w/ GYP
829group("chromium_swarm_tests") {
830}
831
dpranke2302dfa2015-09-29 02:21:52832group("chromium_builder_perf") {
833 testonly = true
834
835 # TODO(GYP): Make this target work on the mac.
836 if (!is_ios && !is_android && !is_chromecast && !is_mac) {
837 deps = [
838 "//cc:cc_perftests",
839 "//chrome",
840 "//chrome/test:load_library_perf_tests",
841 "//chrome/test:sync_performance_tests",
842 "//gpu:gpu_perftests",
843 "//media:media_perftests",
844 "//media/midi:midi_unittests",
845 "//tools/telemetry:bitmaptools",
846 ]
847
848 if (!is_chromeos) {
849 deps += [ "//chrome/test:performance_browser_tests" ]
850 }
851 if (is_linux && !is_chromeos) {
852 deps += [ "//chrome:linux_symbols" ]
853
854 if (!is_chromeos) {
855 deps += [ "//tools/perf/clear_system_cache" ]
856 }
857 }
858
859 if (is_win) {
860 deps += [
861 "//content/shell:crash_service",
862 # "//gpu:angle_perftests", TODO(GYP): crbug.com/537008
863 ]
864
865 if (target_cpu == "x86") {
866 deps += [
867 # "//content/shell:crash_service_win64", TODO(GYP): crbug.com/537009
868 ]
869 }
870 } else {
dprankeec10b3932015-10-02 17:58:23871 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52872 }
873 }
874}