blob: 02b4f23724a2771afedd1e9ba807c4f1dff7a0bf [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",
brettwa874dcc2015-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",
brettwa874dcc2015-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",
sherouk53f0f1a2015-08-03 15:59:35109 "//media/midi:midi_unittests",
110 "//mojo",
111 "//mojo/application/public/cpp",
112 "//mojo/common:mojo_common_unittests",
113 "//net:hpack_example_generator",
114 "//net:hpack_fuzz_mutator",
115 "//net:hpack_fuzz_wrapper",
116 "//net:net_perftests",
sherouk53f0f1a2015-08-03 15:59:35117 "//ppapi:ppapi_unittests",
118 "//ppapi/examples/2d",
119 "//ppapi/examples/audio",
120 "//ppapi/examples/audio_input",
121 "//ppapi/examples/compositor",
122 "//ppapi/examples/crxfs",
123 "//ppapi/examples/enumerate_devices",
124 "//ppapi/examples/file_chooser",
125 "//ppapi/examples/flash_topmost",
126 "//ppapi/examples/font",
127 "//ppapi/examples/gamepad",
128 "//ppapi/examples/gles2",
129 "//ppapi/examples/gles2_spinning_cube",
130 "//ppapi/examples/ime",
131 "//ppapi/examples/input",
132 "//ppapi/examples/media_stream_audio",
133 "//ppapi/examples/media_stream_video",
134 "//ppapi/examples/mouse_cursor",
135 "//ppapi/examples/mouse_lock",
136 "//ppapi/examples/printing",
137 "//ppapi/examples/scaling",
138 "//ppapi/examples/scripting",
139 "//ppapi/examples/stub",
140 "//ppapi/examples/threading",
141 "//ppapi/examples/url_loader",
142 "//ppapi/examples/video_capture",
143 "//ppapi/examples/video_decode",
144 "//ppapi/examples/video_effects",
145 "//ppapi/examples/video_encode",
146 "//printing:printing_unittests",
sherouk53f0f1a2015-08-03 15:59:35147 "//third_party/WebKit/Source/platform:heap_unittests",
148 "//third_party/WebKit/Source/platform:platform_unittests",
149 "//third_party/WebKit/Source/web:webkit_unit_tests",
150 "//third_party/WebKit/Source/wtf:wtf_unittests",
151 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
152 "//third_party/codesighs",
jam76bcf0c2015-10-02 21:01:28153
154 # TODO(use-new-edk):
155 #"//mojo/edk/system:mojo_system_unittests",
156 #"//mojo/edk/test:mojo_public_bindings_unittests",
157 #"//mojo/edk/test:mojo_public_environment_unittests",
158 #"//mojo/edk/test:mojo_public_system_unittests",
159 #"//mojo/edk/test:mojo_public_utility_unittests",
sherouk53f0f1a2015-08-03 15:59:35160 "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",
161 "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",
162 "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",
163 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",
164 "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
165 "//third_party/pdfium/samples:pdfium_test",
166 "//third_party/smhasher:pmurhash",
167 "//tools/imagediff($host_toolchain)",
168 "//tools/gn",
169 "//tools/gn:gn_unittests",
170 "//tools/gn:generate_test_gn_data",
mswf90a6802015-09-30 18:16:36171 "//tools/perf/clear_system_cache",
sherouk53f0f1a2015-08-03 15:59:35172 "//tools/telemetry:bitmaptools($host_toolchain)",
173 "//ui/accessibility:accessibility_unittests",
174 "//ui/app_list:app_list_unittests",
sherouk53f0f1a2015-08-03 15:59:35175 "//ui/display:display_unittests",
176 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35177 "//ui/gl:gl_unittests",
178 "//ui/touch_selection:ui_touch_selection_unittests",
sherouk53f0f1a2015-08-03 15:59:35179 ]
sdefresne998e8582015-10-07 13:36:45180 } else {
sdefresnea378b452015-10-08 09:55:58181 deps += [
182 "//ios/net:ios_net_unittests",
sdefresnec6ddd7ac2015-10-09 17:30:19183 "//ios/testing:ocmock_support_unittest",
sdefresnea378b452015-10-08 09:55:58184 "//ios/third_party/gcdwebserver",
185 ]
sherouk53f0f1a2015-08-03 15:59:35186 }
dprankee2ef3822015-02-24 21:42:18187
scottmg34fb7e52014-12-03 23:27:24188 deps += root_extra_deps
[email protected]fce5c3fe2014-04-10 21:13:05189
dpranke021d4c92015-02-24 02:08:25190 if (enable_extensions && !is_mac) {
dprankefd1813272015-04-13 23:56:00191 # TODO(GYP): Get this working on the mac?
rockot2f1326e2015-02-23 23:53:51192 deps += [ "//extensions/shell:app_shell_unittests" ]
193 }
194
dprankefd1813272015-04-13 23:56:00195 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55196 deps += [ "//chrome/browser/media/router" ]
dprankefd1813272015-04-13 23:56:00197 }
198
garykac3eddb5b2015-04-17 23:16:38199 if (enable_remoting) {
200 deps += [ "//remoting:remoting_all" ]
dprankece5eb832015-04-01 20:21:05201 }
202
dprankee2ef3822015-02-24 21:42:18203 if (toolkit_views) {
204 deps += [ "//ui/views:views_unittests" ]
James Robinson060f2e32014-09-10 22:31:37205 }
206
dprankee2ef3822015-02-24 21:42:18207 if (use_aura) {
208 deps += [ "//ui/wm:wm_unittests" ]
209 }
210
211 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47212 deps += [ "//ui/ozone" ]
[email protected]a306aaa2014-05-24 13:21:50213 }
214
dprankefd1813272015-04-13 23:56:00215 if (use_x11) {
216 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22217 }
218
tmoniuszkoe5578b922015-04-14 09:38:03219 if (enable_configuration_policy) {
220 deps += [ "//components/policy:policy_templates" ]
221 }
222
dprankefd1813272015-04-13 23:56:00223 if (v8_use_external_startup_data) {
224 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
[email protected]2d6893a2014-06-02 19:16:36225 }
226
brettw66e3feab2015-07-20 23:52:22227 if (is_win) {
brettwf986f9572015-10-07 17:18:15228 deps += [
229 "//chrome/installer/gcapi",
230 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
231 ]
brettw66e3feab2015-07-20 23:52:22232 }
233
[email protected]5a8d5162014-04-12 01:19:16234 if (is_android) {
[email protected]26046b52014-07-16 00:11:03235 deps += [
cjhopman31511332014-10-23 01:05:02236 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38237 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02238 "//build/android/rezip",
agrieve40ba6862015-07-15 02:09:05239 "//third_party/errorprone:chromium_errorprone",
pkotwicze38594d2015-09-25 00:05:10240 "//tools/android:android_tools",
pkotwicz8b9d18c2015-10-05 01:59:33241 "//tools/android/heap_profiler:heap_profiler_unittests",
dgn28050da2015-10-19 10:16:43242 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
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",
dprankee2ef3822015-02-24 21:42:18284 "//jingle:jingle_unittests", # TODO(GYP) ??
rockot9c67e5f2015-03-12 20:01:21285 "//net:hpack_example_generator",
286 "//net:hpack_fuzz_mutator",
287 "//net:hpack_fuzz_wrapper",
288 "//net:net_perftests",
tfarina79ef072d2015-04-04 20:16:57289 "//ppapi/examples/2d",
290 "//ppapi/examples/audio",
291 "//ppapi/examples/audio_input",
292 "//ppapi/examples/compositor",
293 "//ppapi/examples/crxfs",
294 "//ppapi/examples/enumerate_devices",
295 "//ppapi/examples/file_chooser",
296 "//ppapi/examples/flash_topmost",
297 "//ppapi/examples/font",
298 "//ppapi/examples/gamepad",
299 "//ppapi/examples/gles2",
300 "//ppapi/examples/gles2_spinning_cube",
301 "//ppapi/examples/ime",
302 "//ppapi/examples/input",
303 "//ppapi/examples/media_stream_audio",
304 "//ppapi/examples/media_stream_video",
305 "//ppapi/examples/mouse_cursor",
306 "//ppapi/examples/mouse_lock",
307 "//ppapi/examples/printing",
308 "//ppapi/examples/scaling",
309 "//ppapi/examples/scripting",
310 "//ppapi/examples/stub",
311 "//ppapi/examples/threading",
312 "//ppapi/examples/url_loader",
313 "//ppapi/examples/video_capture",
314 "//ppapi/examples/video_decode",
315 "//ppapi/examples/video_effects",
316 "//ppapi/examples/video_encode",
dprankee2ef3822015-02-24 21:42:18317 "//third_party/pdfium/samples:pdfium_test",
318 "//tools/gn",
dprankefd1813272015-04-13 23:56:00319 "//tools/gn:generate_test_gn_data",
dprankee2ef3822015-02-24 21:42:18320 "//tools/gn:gn_unittests",
321 "//ui/app_list:app_list_unittests",
322 "//url:url_unittests",
[email protected]26046b52014-07-16 00:11:03323 ]
324
pkotwicz061c5a42015-09-30 02:16:54325 if (!is_chromecast) {
326 deps += [
327 "//chrome/android:chrome_public_apk",
328 "//chrome/android:chrome_public_test_apk",
329 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
pkotwicz0a2255e2015-10-06 16:29:05330 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54331 ]
332 }
333
cjhopmanca675d3e2014-10-24 03:50:45334 if (has_chrome_android_internal) {
dprankee2ef3822015-02-24 21:42:18335 deps += [ "//clank" ] # TODO(GYP) ??
cjhopmanca675d3e2014-10-24 03:50:45336 }
dprankedb5527d72015-03-08 04:22:47337 }
338
dprankefd1813272015-04-13 23:56:00339 if (is_linux) { # TODO(GYP): || is_android || is_bsd?
340 deps += [
341 "//breakpad:core-2-minidump",
342 "//breakpad:minidump-2-core",
343 ]
344 }
345
dpranke6293d252015-04-14 19:12:00346 if (is_chromeos) {
347 deps += [
348 "//chromeos:chromeos_unittests",
349 "//ui/chromeos:ui_chromeos_unittests",
350 ]
351 }
352
dprankefd1813272015-04-13 23:56:00353 if (is_chromeos || is_mac || is_win) {
354 deps += [
355 "//rlz:rlz_id",
356 "//rlz:rlz_lib",
357 "//rlz:rlz_unittests",
358 ]
359 }
360
dprankedb5527d72015-03-08 04:22:47361 if (is_linux) {
362 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06363 deps += [
dprankedb5527d72015-03-08 04:22:47364 "//breakpad:breakpad_unittests",
dprankedb5527d72015-03-08 04:22:47365 "//breakpad:generate_test_dump",
dprankedb5527d72015-03-08 04:22:47366 "//dbus:dbus_test_server",
dprankee2ef3822015-02-24 21:42:18367 "//dbus:dbus_unittests",
dprankedb5527d72015-03-08 04:22:47368 "//net:disk_cache_memory_test",
369 "//net:flip_in_mem_edsm_server",
370 "//net:flip_in_mem_edsm_server_unittests",
371 "//net:quic_client",
372 "//net:quic_server",
373 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18374 "//sandbox/linux:sandbox_linux_unittests",
dprankedb5527d72015-03-08 04:22:47375 "//sandbox/linux:sandbox_linux_jni_unittests",
hiroshigee6d374c2015-02-24 07:54:06376 ]
dnicoara8c6aa8e2015-03-11 23:20:32377
378 if (is_chromeos || use_ash) {
379 deps += [ "//components/session_manager/core" ]
380 }
dprankedb5527d72015-03-08 04:22:47381 }
382
sherouke1859f92015-08-05 10:19:10383 if (is_ios || is_win || (is_linux && !is_chromeos)) {
384 deps += [
385 "//base:base_i18n_perftests",
386 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58387 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10388 ]
389 }
390
dprankefd1813272015-04-13 23:56:00391 if (is_win || (is_linux && !is_chromeos)) {
392 # TODO(GYP): Figure out which of these should (and can) build
393 # for android/chromeos/mac/ios.
tfarina9e7cf702015-02-23 21:13:44394 deps += [
dprankedb5527d72015-03-08 04:22:47395 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47396 "//base:build_utf8_validator_tables",
dprankedb5527d72015-03-08 04:22:47397 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00398 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47399 "//chrome/test:load_library_perf_tests",
dpranke76f48222015-04-01 00:00:00400 "//chrome/test:performance_browser_tests",
dprankedb5527d72015-03-08 04:22:47401 "//chrome/test:sync_performance_tests",
402 "//chrome/test/chromedriver:chromedriver",
403 "//chrome/test/chromedriver:chromedriver_tests",
404 "//chrome/tools/profile_reset:jtl_compiler",
405 "//components:components_perftests",
dprankedb5527d72015-03-08 04:22:47406 "//content/test:content_gl_tests",
407 "//content/test:content_gl_benchmark",
408 "//courgette:courgette",
409 "//courgette:courgette_fuzz",
410 "//courgette:courgette_minimal_tool",
411 "//courgette:courgette_unittests",
412 "//device:device_unittests",
413 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47414 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47415 "//google_apis/gcm:mcs_probe",
dprankedb5527d72015-03-08 04:22:47416 "//gpu:gpu_perftests",
dprankefd1813272015-04-13 23:56:00417 "//gpu:gl_tests",
dprankedb5527d72015-03-08 04:22:47418 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47419 "//media:media_perftests",
dprankedb5527d72015-03-08 04:22:47420 "//media/cast:generate_barcode_video",
421 "//media/cast:generate_timecode_audio",
dprankedb5527d72015-03-08 04:22:47422 "//net:crash_cache",
423 "//net:crl_set_dump",
424 "//net:dns_fuzz_stub",
dprankefd1813272015-04-13 23:56:00425 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47426 "//net:gdig",
427 "//net:get_server_time",
dprankedb5527d72015-03-08 04:22:47428 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
dprankefd1813272015-04-13 23:56:00429 "//net:run_testserver",
dprankedb5527d72015-03-08 04:22:47430 "//net:stress_cache",
431 "//net:tld_cleanup",
dprankec09ccaa2015-03-27 22:00:38432 "//ppapi:pepper_hash_for_uma",
dprankefd1813272015-04-13 23:56:00433 "//ppapi:ppapi_perftests",
dprankedb5527d72015-03-08 04:22:47434 "//sync:run_sync_testserver",
cwallez4c57af32015-09-03 14:54:49435 "//third_party/angle/src/tests:angle_end2end_tests",
436 "//third_party/angle/src/tests:angle_unittests",
dprankedb5527d72015-03-08 04:22:47437 "//third_party/codesighs:maptsvdifftool",
dprankedb5527d72015-03-08 04:22:47438 "//third_party/leveldatabase:env_chromium_unittests",
439 "//third_party/libaddressinput:libaddressinput_unittests",
dprankefd1813272015-04-13 23:56:00440 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47441 "//ui/compositor:compositor_unittests",
442 ]
443
444 if (enable_extensions) {
445 deps += [ "//extensions/shell:app_shell" ]
446 }
447
448 if (enable_nacl) {
dprankefd1813272015-04-13 23:56:00449 deps += [ "//components/nacl:nacl_loader_unittests" ]
dprankedb5527d72015-03-08 04:22:47450 }
451
mostynb2196a462015-08-20 17:22:10452 if (media_use_ffmpeg) {
453 deps += [ "//media:ffmpeg_regression_tests" ]
454 }
455
dprankedb5527d72015-03-08 04:22:47456 if (use_ash) {
457 deps += [
benf97b2572015-09-25 23:12:53458 "//ash:ash_shell_with_content",
dprankedb5527d72015-03-08 04:22:47459 "//ash:ash_unittests",
460 ]
461 }
462
463 if (use_aura) {
464 deps += [
465 "//ui/aura:aura_unittests",
466 "//ui/aura:bench",
467 "//ui/aura:demo",
468 ]
469 }
dprankefd1813272015-04-13 23:56:00470 }
471
472 if (is_linux && !is_chromeos) {
473 deps += [
474 # TODO(GYP): Figure out which of these should (and can) build
475 # under which other conditions.
476 "//build/sanitizers:copy_llvm_symbolizer",
477 "//chrome/test:chrome_app_unittests",
478 "//cloud_print:cloud_print_unittests",
479 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00480 "//content/public/app:browser",
481 "//content/public/app:child",
482
483 # TODO(GYP): Remove this when the gles2 tests work
484 "//gpu/command_buffer/client:gles2_implementation_no_check",
485
486 "//gpu/khronos_glcts_support:khronos_glcts_test", # TODO(GYP) crbug.com/471903 to make this complete.
487 "//media/cast:cast_benchmarks",
488 "//media/cast:tap_proxy",
jam00802992015-05-20 03:37:19489 "//mojo/application/public/cpp",
dprankefd1813272015-04-13 23:56:00490 "//skia:filter_fuzz_stub",
491 "//skia:image_operations_bench",
492 "//sync/tools:sync_client",
493 "//sync/tools:sync_listen_notifications",
494 "//testing/gmock:gmock_main",
jam76bcf0c2015-10-02 21:01:28495
496 # TODO(use-new-edk):
497 #"//mojo/edk/test:mojo_public_system_perftests",
dprankefd1813272015-04-13 23:56:00498 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests",
dprankefd1813272015-04-13 23:56:00499 "//ui/keyboard:keyboard_unittests",
500 "//ui/message_center:message_center_unittests",
501 "//ui/snapshot:snapshot_unittests",
502 "//ui/views/examples:views_examples_with_content_exe",
503
dprankefd1813272015-04-13 23:56:00504 "//third_party/codesighs:nm2tsv",
505 "//third_party/sqlite:sqlite_shell",
506 ]
507
dprankeec10b3932015-10-02 17:58:23508 deps += [
509 "//breakpad:dump_syms($host_toolchain)",
510 "//breakpad:microdump_stackwalk($host_toolchain)",
511 "//breakpad:minidump_dump($host_toolchain)",
512 "//breakpad:minidump_stackwalk($host_toolchain)",
513 ]
dprankefd1813272015-04-13 23:56:00514
515 if (!is_debug && !is_component_build) {
516 deps += [ "//chrome/tools/service_discovery_sniffer" ]
517 }
518
519 if (toolkit_views) {
520 deps += [ "//ui/app_list:app_list_demo" ]
521 }
dprankedb5527d72015-03-08 04:22:47522
523 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44524 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59525 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44526 }
dprankedb5527d72015-03-08 04:22:47527 }
528 }
529
530 if (is_mac) {
531 deps += [
532 "//breakpad:crash_inspector",
533 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44534 "//third_party/apple_sample_code",
535 "//third_party/molokocacao",
536 ]
537
dprankee2ef3822015-02-24 21:42:18538 # TODO(GYP): Remove these when the targets below work and these
539 # are pulled in automatically.
540 deps += [
541 "//cc/blink",
Brett Wilson817fec02015-08-22 20:36:49542 "//components/ui/zoom",
dprankee2ef3822015-02-24 21:42:18543 "//content",
544 "//content/test:test_support",
545 "//device/battery",
546 "//device/bluetooth",
547 "//device/nfc",
548 "//device/usb",
549 "//device/vibration",
550 "//media/blink",
551 "//pdf",
552 "//storage/browser",
553 "//third_party/brotli",
554 "//third_party/flac",
tfarinae4a03f8f2015-05-18 05:55:26555 "//third_party/hunspell",
dprankee2ef3822015-02-24 21:42:18556 "//third_party/iccjpeg",
557 "//third_party/libphonenumber",
558 "//third_party/ots",
559 "//third_party/qcms",
560 "//third_party/smhasher:murmurhash3",
dprankee2ef3822015-02-24 21:42:18561 "//third_party/webrtc/system_wrappers",
tfarina42aa0172015-08-13 21:12:40562 "//ui/app_list:app_list_unittests",
tfarinaeda26472015-08-12 19:30:15563 "//ui/gfx:gfx_unittests",
dprankee2ef3822015-02-24 21:42:18564 "//ui/native_theme",
565 "//ui/snapshot",
566 "//ui/surface",
567 ]
568
dprankecf8465db72014-11-10 23:51:22569 # TODO(dpranke): These are as-yet untriaged but need at least the above.
dpranke43760592014-11-08 02:59:57570 deps -= [
dprankee2ef3822015-02-24 21:42:18571 "//chrome", # TODO(GYP)
572 "//chrome/test:browser_tests", # TODO(GYP)
573 "//chrome/test:interactive_ui_tests", # TODO(GYP)
574 "//chrome/test:sync_integration_tests", # TODO(GYP)
575 "//chrome/test:unit_tests", # TODO(GYP)
dprankef6ca89c52015-03-30 22:01:38576 "//components:components_browsertests", # TODO(GYP)
dprankee2ef3822015-02-24 21:42:18577 "//components:components_unittests", # TODO(GYP)
578 "//content/test:content_browsertests", # TODO(GYP)
579 "//content/test:content_perftests", # TODO(GYP)
dprankeb0713542015-07-31 21:07:21580 "//device:device_unittests", # TODO(GYP)
dprankee2ef3822015-02-24 21:42:18581 "//extensions:extensions_browsertests", # TODO(GYP)
582 "//extensions:extensions_unittests", # TODO(GYP)
dprankeb0713542015-07-31 21:07:21583 "//mojo", # TODO(GYP)
584 "//mojo/application/public/cpp", # TODO(GYP)
tfarinacb2638b2015-05-12 03:24:15585
586 # TODO(GYP): Re-enable this as soon as we can link Blink binaries on mac.
587 "//third_party/WebKit/Source/platform:heap_unittests",
588 "//third_party/WebKit/Source/platform:platform_unittests",
589 "//third_party/WebKit/Source/web:webkit_unit_tests",
dprankecf8465db72014-11-10 23:51:22590 ]
dprankefd1813272015-04-13 23:56:00591 }
592
593 if (is_win) {
594 deps += [
595 "//base:pe_image_test",
grt734e87b2015-07-06 19:36:43596 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00597 "//chrome_elf:chrome_elf_unittests",
598 "//chrome_elf:dll_hash_main",
brettw70b359a2015-10-14 23:43:23599 "//cloud_print/service/win:cloud_print_service",
600 "//cloud_print:cloud_print_unittests",
sdefresne8ba0b88c2015-09-18 10:33:13601 "//components/crash/content/tools:crash_service",
dprankefd1813272015-04-13 23:56:00602 "//components/wifi:wifi_test",
603 "//net:quic_client",
604 "//net:quic_server",
605 "//sandbox/win:pocdll",
606 "//sandbox/win:sandbox_poc",
607 "//sandbox/win:sbox_integration_tests",
608 "//sandbox/win:sbox_unittests",
609 "//sandbox/win:sbox_validation_tests",
610 "//testing/gtest:gtest_main",
611 "//third_party/codesighs:msmap2tsv",
612 "//third_party/pdfium/samples:pdfium_diff",
613 "//ui/metro_viewer",
614 ]
dprankee2ef3822015-02-24 21:42:18615 deps -= [
616 "//crypto:crypto_unittests", # TODO(GYP)
617 "//net:net_unittests", # TODO(GYP)
618 ]
sherouk53f0f1a2015-08-03 15:59:35619 } else if (!is_android && !is_ios) {
pkotwiczba3c2482015-10-13 21:12:28620 deps += [
621 "//breakpad:symupload",
622 "//media/cast:cast_unittests",
623 ]
mohsenf837da7c2014-12-09 19:01:34624 }
[email protected]f0e7ff882013-12-26 21:23:09625}
brettw533c50422015-02-26 17:49:16626
dpranked62d8512015-03-02 03:06:03627group("gn_only") {
dprankedb5527d72015-03-08 04:22:47628 testonly = true
629
dpranke2a294622015-08-07 05:23:01630 deps = []
631
sherouk53f0f1a2015-08-03 15:59:35632 if (!is_ios) {
dpranke2a294622015-08-07 05:23:01633 deps += [ "//mandoline:all" ]
sherouk53f0f1a2015-08-03 15:59:35634 }
isherman0f89b43eb2015-04-11 00:02:45635
636 if (!is_android && !is_ios) {
637 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
638 }
639
dprankedb5527d72015-03-08 04:22:47640 if (is_linux && !is_chromeos) {
641 # TODO(GYP): Figure out if any of these should be in gn_all
642 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45643 deps += [
dprankedb5527d72015-03-08 04:22:47644 ":gn_mojo_targets",
dtrainor4ae32722015-09-26 00:14:12645 "//blimp:blimp_tests",
dprankedb5527d72015-03-08 04:22:47646 "//chrome/browser/resources:extension_resource_demo",
647 "//chrome/installer/util:strings",
648 "//chrome:main_dll",
649 "//chrome/test:load_library_perf_tests",
650 "//chrome/tools/convert_dict",
651 "//components/constrained_window:unit_tests",
652 "//components/enhanced_bookmarks:test_support",
dprankedb5527d72015-03-08 04:22:47653 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45654 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47655 "//components/rappor:unit_tests",
656 "//components/sessions:unit_tests",
657 "//media/blink:media_blink_unittests",
dprankedb5527d72015-03-08 04:22:47658 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47659 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
660 "//storage/browser:dump_file_system",
661 "//third_party/angle:libANGLE",
662 "//third_party/angle:libEGL",
663 "//third_party/angle:libGLESv2",
664 "//third_party/cld_2:cld_2_dynamic_data_tool",
665 "//third_party/leveldatabase:leveldb_arena_test",
666 "//third_party/leveldatabase:leveldb_bloom_test",
667 "//third_party/leveldatabase:leveldb_db_test",
668 "//third_party/leveldatabase:leveldb_crc32c_test",
669 "//third_party/leveldatabase:leveldb_cache_test",
670 "//third_party/leveldatabase:leveldb_env_test",
671 "//third_party/leveldatabase:leveldb_write_batch_test",
672 "//third_party/leveldatabase:leveldb_filter_block_test",
673 "//third_party/leveldatabase:leveldb_version_edit_test",
674 "//third_party/leveldatabase:leveldb_db_bench",
675 "//third_party/leveldatabase:leveldb_log_test",
676 "//third_party/leveldatabase:leveldb_corruption_test",
677 "//third_party/leveldatabase:leveldb_table_test",
678 "//third_party/leveldatabase:leveldb_skiplist_test",
679 "//third_party/leveldatabase:leveldb_filename_test",
680 "//third_party/leveldatabase:leveldb_dbformat_test",
thestig93786e62015-08-05 04:03:29681 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47682 "//third_party/libjpeg_turbo:simd",
dprankedb5527d72015-03-08 04:22:47683 "//third_party/libsrtp:replay_driver",
684 "//third_party/libsrtp:roc_driver",
685 "//third_party/libsrtp:rtpw",
686 "//third_party/libsrtp:rdbx_driver",
687 "//third_party/libsrtp:srtp_driver",
688 "//third_party/libsrtp:srtp_driver",
689 "//third_party/libsrtp:srtp_test_kernel_driver",
690 "//third_party/libsrtp:srtp_test_cipher_driver",
691 "//third_party/libsrtp:srtp_test_datatypes_driver",
692 "//third_party/libsrtp:srtp_test_aes_calc",
693 "//third_party/libsrtp:srtp_test_env",
694 "//third_party/libsrtp:srtp_test_rand_gen",
695 "//third_party/libsrtp:srtp_test_sha1_driver",
696 "//third_party/libsrtp:srtp_test_stat_driver",
697 "//third_party/opus:opus_compare",
698 "//third_party/opus:opus_demo",
699 "//third_party/opus:test_opus_decode",
700 "//third_party/opus:test_opus_encode",
701 "//third_party/opus:test_opus_api",
702 "//third_party/opus:test_opus_padding",
703 "//third_party/webrtc/system_wrappers:field_trial_default",
704 "//third_party/webrtc/system_wrappers:metrics_default",
705 "//ui/display/types",
706 "//ui/shell_dialogs:shell_dialogs_unittests",
707 "//ui/views/examples:views_examples_exe",
dprankedb5527d72015-03-08 04:22:47708 ]
dprankeb0713542015-07-31 21:07:21709
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16710 if (target_cpu == "x86" || target_cpu == "x64") {
mcgrathr916aafa2015-09-15 00:06:53711 deps += [
712 "//third_party/libjpeg_turbo:simd_asm",
713 "//native_client/src/trusted/platform_qualify:vcpuid",
714 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16715 }
dprankedb5527d72015-03-08 04:22:47716 if (enable_nacl) {
717 deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ]
718 }
719 if (use_ozone) {
720 deps += [ "//ui/ozone/demo" ]
721 }
722 if (is_android) {
723 deps += [ "//build/android/gyp/test:hello_world" ]
724 }
dpranke807f602b2015-03-17 23:20:56725
726 if (is_linux && current_toolchain == host_toolchain) {
727 deps += [ "//v8:d8" ]
728 }
dprankedb5527d72015-03-08 04:22:47729 }
dprankeb0713542015-07-31 21:07:21730
nyquistb5f050b2015-09-10 05:10:35731 if (is_android) {
nyquist7af11b72015-09-10 20:18:14732 deps += [ "//blimp" ]
nyquistb5f050b2015-09-10 05:10:35733 }
734
dprankeb0713542015-07-31 21:07:21735 if (is_mac) {
736 deps -= [ "//mandoline:all" ] # TODO(GYP)
737 }
aizatskyfc46a9f2015-10-09 21:20:08738
739 if (use_libfuzzer) {
740 deps += [ "//testing/libfuzzer:libfuzzer_main" ]
741 }
dprankedb5527d72015-03-08 04:22:47742}
743
744group("gn_mojo_targets") {
745 testonly = true
746 if (is_linux && !is_chromeos) {
747 # TODO(GYP): Figure out if any of these should be in gn_all
748 # and figure out how cross-platform they are
749 deps = [
dprankedb5527d72015-03-08 04:22:47750 "//ipc/mojo:ipc_mojo_perftests",
dprankedb5527d72015-03-08 04:22:47751 "//media/mojo/services:cdm_service",
752 "//media/mojo:tests",
msw1bb9c6c2015-05-06 21:35:44753 "//mojo:tests",
pkotwicz8b9d18c2015-10-05 01:59:33754
jam76bcf0c2015-10-02 21:01:28755 # TODO(use-new-edk):
756 #"//mojo/edk/js/test:js_integration_tests",
757 #"//mojo/edk/js/tests:js_to_cpp_bindings_python",
dprankedb5527d72015-03-08 04:22:47758 "//third_party/mojo/src/mojo/edk/js/test:js_integration_tests",
dprankedb5527d72015-03-08 04:22:47759 ]
dprankedb5527d72015-03-08 04:22:47760 }
761}
762
763group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03764 deps = [
dprankeb6128d02015-05-01 16:40:30765 "//build/config/sanitizers:options_sources",
766
dprankedb5527d72015-03-08 04:22:47767 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
768 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dprankeb6128d02015-05-01 16:40:30769
770 "//ui/resources:repack_ui_test_mac_locale_pack",
dpranked62d8512015-03-02 03:06:03771 ]
dpranked2fb5222015-09-10 22:39:05772
773 if (!is_ios) {
774 deps += [
775 "//v8:v8_snapshot",
776 "//v8:postmortem-metadata",
777 ]
778 }
dpranked62d8512015-03-02 03:06:03779}
780
tfarinacb2638b2015-05-12 03:24:15781if (!is_ios) {
782 # This group includes all of the targets needed to build and test Blink,
783 # including running the layout tests (see below).
784 group("blink_tests") {
785 testonly = true
786
787 deps = [
788 "//third_party/WebKit/public:all_blink",
789 ]
790
791 # NOTE: The following deps are needed to run the layout tests
792 # (run-webkit-tests) but there is no GN target for the layout tests,
793 # so we need to specify the dependencies here instead.
794 if (is_android) {
795 deps += [
796 "//breakpad:dump_syms($host_toolchain)",
797 "//breakpad:minidump_stackwalk($host_toolchain)",
798 "//content/shell/android:content_shell_apk",
ojan94989c72015-07-17 21:56:42799 "//tools/imagediff($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15800 ]
801 } else {
ojan94989c72015-07-17 21:56:42802 deps += [
803 "//content/shell:content_shell",
804 "//tools/imagediff",
805 ]
tfarinacb2638b2015-05-12 03:24:15806 }
807
808 if (is_win) {
809 deps += [
jochen73e711c2015-06-03 10:01:46810 "//components/test_runner:layout_test_helper",
tfarina795e01a2015-05-15 19:29:57811 "//content/shell:crash_service",
tfarinacb2638b2015-05-12 03:24:15812 ]
813 }
814
815 if (!is_win && !is_android) {
Gordana.Cmiljanovicf243e9a2015-05-26 22:14:47816 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15817 }
818
819 if (is_mac) {
820 deps += [
821 "//breakpad:dump_syms($host_toolchain)",
jochen73e711c2015-06-03 10:01:46822 "//components/test_runner:layout_test_helper",
tfarinacb2638b2015-05-12 03:24:15823 ]
824 }
825
826 if (is_linux) {
827 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
828 }
829 }
830}
831
dpranke6abd8652015-08-28 03:21:11832# Add a dummy target for compatibility w/ GYP
833group("chromium_swarm_tests") {
834}
835
dpranke2302dfa2015-09-29 02:21:52836group("chromium_builder_perf") {
837 testonly = true
838
839 # TODO(GYP): Make this target work on the mac.
840 if (!is_ios && !is_android && !is_chromecast && !is_mac) {
841 deps = [
842 "//cc:cc_perftests",
843 "//chrome",
844 "//chrome/test:load_library_perf_tests",
845 "//chrome/test:sync_performance_tests",
846 "//gpu:gpu_perftests",
847 "//media:media_perftests",
848 "//media/midi:midi_unittests",
849 "//tools/telemetry:bitmaptools",
850 ]
851
852 if (!is_chromeos) {
853 deps += [ "//chrome/test:performance_browser_tests" ]
854 }
855 if (is_linux && !is_chromeos) {
856 deps += [ "//chrome:linux_symbols" ]
857
858 if (!is_chromeos) {
859 deps += [ "//tools/perf/clear_system_cache" ]
860 }
861 }
862
863 if (is_win) {
864 deps += [
865 "//content/shell:crash_service",
866 # "//gpu:angle_perftests", TODO(GYP): crbug.com/537008
867 ]
868
869 if (target_cpu == "x86") {
870 deps += [
871 # "//content/shell:crash_service_win64", TODO(GYP): crbug.com/537009
872 ]
873 }
874 } else {
dprankeec10b3932015-10-02 17:58:23875 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52876 }
877 }
878}