[go: nahoru, domu]

blob: 8184fd8e7554d4dd90a3f24199229134684b9b40 [file] [log] [blame]
brettw@chromium.orgf0e7ff882013-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")
tfarina@chromium.org378b4f02014-06-10 15:58:4513import("//build/config/ui.gni")
dprankefd1813272015-04-13 23:56:0014import("//build/module_args/v8.gni")
mostynb2196a462015-08-20 17:22:1015import("//media/media_options.gni")
dprankee2ef3822015-02-24 21:42:1816
cjhopmanca675d3e2014-10-24 03:50:4517if (is_android) {
18 import("//build/config/android/config.gni")
19}
tfarina@chromium.org378b4f02014-06-10 15:58:4520
brettwb84b2942014-10-22 22:58:4521declare_args() {
22 # A list of extra dependencies to add to the root target. This allows a
23 # checkout to add additional targets without explicitly changing any checked-
24 # in files.
25 root_extra_deps = []
26}
27
dprankeb6128d02015-05-01 16:40:3028# This file defines the following four main targets:
dpranked62d8512015-03-02 03:06:0329#
dprankeddc174902015-04-29 01:38:3530# "both_gn_and_gyp" should list every root target (target that nothing else
31# depends on) built by GN that is also built in the GYP build.
dpranked62d8512015-03-02 03:06:0332#
dprankeddc174902015-04-29 01:38:3533# "gn_all" should (transitively) cause everything to be built; if you run
34# 'ninja gn_all' and then 'ninja all', the second build should do no work.
35#
36# "gn_only" should list every root target that is *not* intended to be built
37# in a GYP build. Because GN has different rules for deciding what an 'all'
38# build is, this may end up including targets that are actually defined in a
39# GYP build but not dependencies of GYP's "all" (and so not actually built).
40#
dprankeb6128d02015-05-01 16:40:3041# "gn_visibility": targets that are normally not visible to top-level targets,
42# but are built anyway by "all". Since we don't want any such targets, we
43# have this placeholder to make sure hidden targets that aren't otherwise
44# depended on yet are accounted for.
45#
dprankeddc174902015-04-29 01:38:3546# TODO(GYP): crbug.com/481694. Make sure that the above is true and there are
47# scripts run on the bots that enforce this. Once the GYP migration is over,
48# we can collapse all of these targets as desired.
dprankeff30e3d2015-02-24 06:52:3949
dprankee2ef3822015-02-24 21:42:1850group("gn_all") {
dprankeddc174902015-04-29 01:38:3551 testonly = true
52
53 deps = [
54 ":both_gn_and_gyp",
55 ":gn_only",
dprankeb6128d02015-05-01 16:40:3056 ":gn_visibility",
dprankeddc174902015-04-29 01:38:3557 ]
58}
59
60# The "both_gn_and_gyp" target should reflect every target that is built
61# in both the GN and GYP builds, and ideally it should match the
62# "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line.
63#
64# TODO(GYP): Add build steps that check and enforce this on the bots.
65group("both_gn_and_gyp") {
dprankee2ef3822015-02-24 21:42:1866 testonly = true
dprankee2ef3822015-02-24 21:42:1867 deps = [
68 "//base:base_unittests",
brettwa874dcc2015-08-28 23:59:1869 "//chrome/installer",
sheroukdc35ba272015-09-22 14:09:3770 "//components:components_unittests",
sheroukce1c7d72015-08-24 15:21:5971 "//net:net_unittests",
sherouk2866d662015-08-24 16:29:4472 "//skia:skia_unittests",
brettwa874dcc2015-08-28 23:59:1873 "//sql:sql_unittests",
sherouk3eee4a82015-09-01 10:42:3374 "//sync:sync_unit_tests",
sherouk4fb74d42015-08-24 15:58:4175 "//ui/base:ui_base_unittests",
sherouk84a45ff2015-09-01 13:31:3976 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:4177 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:1878 ]
dpranke2a294622015-08-07 05:23:0179
sherouk53f0f1a2015-08-03 15:59:3580 if (!is_ios) {
dpranke2a294622015-08-07 05:23:0181 # TODO(GYP): Figure out which of these should actually build on iOS,
82 # and whether there should be other targets that are iOS-only and missing.
sherouk53f0f1a2015-08-03 15:59:3583 deps += [
84 "//cc:cc_unittests",
85 "//chrome",
86 "//chrome/test:browser_tests",
87 "//chrome/test:interactive_ui_tests",
88 "//chrome/test:sync_integration_tests",
89 "//chrome/test:unit_tests",
90 "//chrome/test/chromedriver:chromedriver_unittests",
91 "//components:components_browsertests",
sherouk53f0f1a2015-08-03 15:59:3592 "//content/shell:content_shell",
93 "//content/test:content_browsertests",
94 "//content/test:content_perftests",
95 "//content/test:content_unittests",
96 "//crypto:crypto_unittests",
97 "//device:device_unittests",
98 "//extensions:extensions_browsertests",
99 "//extensions:extensions_unittests",
100 "//google_apis/gcm:gcm_unit_tests",
101 "//gpu:gpu_unittests",
dprankedbdd9d82015-08-12 21:18:18102 "//gpu/gles2_conform_support:gles2_conform_test",
sherouk53f0f1a2015-08-03 15:59:35103 "//ipc:ipc_tests",
104 "//ipc/mojo:ipc_mojo_unittests",
105 "//jingle:jingle_unittests",
106 "//media:media_unittests",
107 "//media/cast:cast_unittests",
108 "//media/midi:midi_unittests",
109 "//mojo",
110 "//mojo/application/public/cpp",
111 "//mojo/common:mojo_common_unittests",
112 "//net:hpack_example_generator",
113 "//net:hpack_fuzz_mutator",
114 "//net:hpack_fuzz_wrapper",
115 "//net:net_perftests",
sherouk53f0f1a2015-08-03 15:59:35116 "//ppapi:ppapi_unittests",
117 "//ppapi/examples/2d",
118 "//ppapi/examples/audio",
119 "//ppapi/examples/audio_input",
120 "//ppapi/examples/compositor",
121 "//ppapi/examples/crxfs",
122 "//ppapi/examples/enumerate_devices",
123 "//ppapi/examples/file_chooser",
124 "//ppapi/examples/flash_topmost",
125 "//ppapi/examples/font",
126 "//ppapi/examples/gamepad",
127 "//ppapi/examples/gles2",
128 "//ppapi/examples/gles2_spinning_cube",
129 "//ppapi/examples/ime",
130 "//ppapi/examples/input",
131 "//ppapi/examples/media_stream_audio",
132 "//ppapi/examples/media_stream_video",
133 "//ppapi/examples/mouse_cursor",
134 "//ppapi/examples/mouse_lock",
135 "//ppapi/examples/printing",
136 "//ppapi/examples/scaling",
137 "//ppapi/examples/scripting",
138 "//ppapi/examples/stub",
139 "//ppapi/examples/threading",
140 "//ppapi/examples/url_loader",
141 "//ppapi/examples/video_capture",
142 "//ppapi/examples/video_decode",
143 "//ppapi/examples/video_effects",
144 "//ppapi/examples/video_encode",
145 "//printing:printing_unittests",
sherouk53f0f1a2015-08-03 15:59:35146 "//third_party/WebKit/Source/platform:heap_unittests",
147 "//third_party/WebKit/Source/platform:platform_unittests",
148 "//third_party/WebKit/Source/web:webkit_unit_tests",
149 "//third_party/WebKit/Source/wtf:wtf_unittests",
150 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
151 "//third_party/codesighs",
jam76bcf0c2015-10-02 21:01:28152
153 # TODO(use-new-edk):
154 #"//mojo/edk/system:mojo_system_unittests",
155 #"//mojo/edk/test:mojo_public_bindings_unittests",
156 #"//mojo/edk/test:mojo_public_environment_unittests",
157 #"//mojo/edk/test:mojo_public_system_unittests",
158 #"//mojo/edk/test:mojo_public_utility_unittests",
sherouk53f0f1a2015-08-03 15:59:35159 "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",
160 "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",
161 "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",
162 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",
163 "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
164 "//third_party/pdfium/samples:pdfium_test",
165 "//third_party/smhasher:pmurhash",
166 "//tools/imagediff($host_toolchain)",
167 "//tools/gn",
168 "//tools/gn:gn_unittests",
169 "//tools/gn:generate_test_gn_data",
mswf90a6802015-09-30 18:16:36170 "//tools/perf/clear_system_cache",
sherouk53f0f1a2015-08-03 15:59:35171 "//tools/telemetry:bitmaptools($host_toolchain)",
172 "//ui/accessibility:accessibility_unittests",
173 "//ui/app_list:app_list_unittests",
sherouk53f0f1a2015-08-03 15:59:35174 "//ui/display:display_unittests",
175 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35176 "//ui/gl:gl_unittests",
177 "//ui/touch_selection:ui_touch_selection_unittests",
sherouk53f0f1a2015-08-03 15:59:35178 ]
sdefresne998e8582015-10-07 13:36:45179 } else {
sdefresnea378b452015-10-08 09:55:58180 deps += [
181 "//ios/net:ios_net_unittests",
sdefresnec6ddd7ac2015-10-09 17:30:19182 "//ios/testing:ocmock_support_unittest",
sdefresnea378b452015-10-08 09:55:58183 "//ios/third_party/gcdwebserver",
184 ]
sherouk53f0f1a2015-08-03 15:59:35185 }
dprankee2ef3822015-02-24 21:42:18186
scottmg34fb7e52014-12-03 23:27:24187 deps += root_extra_deps
brettw@chromium.orgfce5c3fe2014-04-10 21:13:05188
dpranke021d4c92015-02-24 02:08:25189 if (enable_extensions && !is_mac) {
dprankefd1813272015-04-13 23:56:00190 # TODO(GYP): Get this working on the mac?
rockot2f1326e2015-02-23 23:53:51191 deps += [ "//extensions/shell:app_shell_unittests" ]
dprankefd1813272015-04-13 23:56:00192 }
193
dprankefd1813272015-04-13 23:56:00194 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55195 deps += [ "//chrome/browser/media/router" ]
rockot2f1326e2015-02-23 23:53:51196 }
197
garykac3eddb5b2015-04-17 23:16:38198 if (enable_remoting) {
199 deps += [ "//remoting:remoting_all" ]
James Robinson060f2e32014-09-10 22:31:37200 }
201
dprankee2ef3822015-02-24 21:42:18202 if (toolkit_views) {
203 deps += [ "//ui/views:views_unittests" ]
brettw@chromium.org6b9028ab2014-07-23 17:15:38204 }
205
dprankee2ef3822015-02-24 21:42:18206 if (use_aura) {
207 deps += [ "//ui/wm:wm_unittests" ]
208 }
209
210 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47211 deps += [ "//ui/ozone" ]
tfarina@chromium.orga306aaa2014-05-24 13:21:50212 }
213
dprankefd1813272015-04-13 23:56:00214 if (use_x11) {
215 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22216 }
217
tmoniuszkoe5578b922015-04-14 09:38:03218 if (enable_configuration_policy) {
219 deps += [ "//components/policy:policy_templates" ]
220 }
221
dprankefd1813272015-04-13 23:56:00222 if (v8_use_external_startup_data) {
223 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
brettw@chromium.org137dff6d2014-06-12 19:35:55224 }
225
brettw66e3feab2015-07-20 23:52:22226 if (is_win) {
brettwf986f952015-10-07 17:18:15227 deps += [
228 "//chrome/installer/gcapi",
229 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
230 ]
brettw66e3feab2015-07-20 23:52:22231 }
232
dpranke@chromium.org5a8d5162014-04-12 01:19:16233 if (is_android) {
cjhopman@chromium.org26046b52014-07-16 00:11:03234 deps += [
cjhopman31511332014-10-23 01:05:02235 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38236 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02237 "//build/android/rezip",
agrieve40ba6862015-07-15 02:09:05238 "//third_party/errorprone:chromium_errorprone",
pkotwicze38594d2015-09-25 00:05:10239 "//tools/android:android_tools",
pkotwicz8b9d18c2015-10-05 01:59:33240 "//tools/android/heap_profiler:heap_profiler_unittests",
dprankee2ef3822015-02-24 21:42:18241 "//tools/imagediff($host_toolchain)",
242
243 # TODO(GYP): Remove these when the components_unittests work.
244 "//components/history/core/test:test",
245 "//components/policy:policy_component_test_support",
246 "//components/policy:test_support",
247 "//components/rappor:test_support",
248 "//components/signin/core/browser:test_support",
249 "//components/sync_driver:test_support",
250 "//components/user_manager",
251 "//components/wallpaper",
252 "//content/shell/android:content_shell_apk",
253
254 # TODO(GYP): Are these needed, or will they be pulled in automatically?
cjhopman@chromium.org684b2292014-08-22 19:12:39255 "//third_party/android_tools:android_gcm_java",
256 "//third_party/android_tools:uiautomator_java",
257 "//third_party/android_tools:android_support_v13_java",
258 "//third_party/android_tools:android_support_v7_appcompat_java",
259 "//third_party/android_tools:android_support_v7_mediarouter_java",
dprankee2ef3822015-02-24 21:42:18260 "//third_party/mesa",
mikecase85e83ed2014-12-08 19:18:29261 "//third_party/mockito:mockito_java",
dprankee2ef3822015-02-24 21:42:18262 "//third_party/openmax_dl/dl",
dprankee2ef3822015-02-24 21:42:18263 "//ui/android:ui_java",
264
265 # TODO(GYP): Are these needed?
266 "//chrome/test:test_support_unit",
267 "//third_party/smhasher:murmurhash3",
268 "//ui/message_center:test_support",
269 ]
270 deps -= [
dprankee2ef3822015-02-24 21:42:18271 "//chrome", # TODO(GYP) ??
272 "//chrome/test:browser_tests", # TODO(GYP) ??
273 "//chrome/test:interactive_ui_tests", # TODO(GYP) ??
274 "//chrome/test:sync_integration_tests", # TODO(GYP) ??
275 "//chrome/test:unit_tests", # TODO(GYP)
brettw922d3aa2015-02-27 22:15:46276
277 # Chromedriver shouldn't be compiled on Android.
278 "//chrome/test/chromedriver:chromedriver_unittests",
dprankee2ef3822015-02-24 21:42:18279 "//extensions:extensions_browsertests",
280 "//extensions:extensions_unittests",
281 "//google_apis/gcm:gcm_unit_tests",
282 "//ipc:ipc_tests", # TODO(GYP) ??
283 "//jingle:jingle_unittests", # TODO(GYP) ??
rockot9c67e5f2015-03-12 20:01:21284 "//net:hpack_example_generator",
285 "//net:hpack_fuzz_mutator",
286 "//net:hpack_fuzz_wrapper",
287 "//net:net_perftests",
tfarina79ef072d2015-04-04 20:16:57288 "//ppapi/examples/2d",
289 "//ppapi/examples/audio",
290 "//ppapi/examples/audio_input",
291 "//ppapi/examples/compositor",
292 "//ppapi/examples/crxfs",
293 "//ppapi/examples/enumerate_devices",
294 "//ppapi/examples/file_chooser",
295 "//ppapi/examples/flash_topmost",
296 "//ppapi/examples/font",
297 "//ppapi/examples/gamepad",
298 "//ppapi/examples/gles2",
299 "//ppapi/examples/gles2_spinning_cube",
300 "//ppapi/examples/ime",
301 "//ppapi/examples/input",
302 "//ppapi/examples/media_stream_audio",
303 "//ppapi/examples/media_stream_video",
304 "//ppapi/examples/mouse_cursor",
305 "//ppapi/examples/mouse_lock",
306 "//ppapi/examples/printing",
307 "//ppapi/examples/scaling",
308 "//ppapi/examples/scripting",
309 "//ppapi/examples/stub",
310 "//ppapi/examples/threading",
311 "//ppapi/examples/url_loader",
312 "//ppapi/examples/video_capture",
313 "//ppapi/examples/video_decode",
314 "//ppapi/examples/video_effects",
315 "//ppapi/examples/video_encode",
dprankee2ef3822015-02-24 21:42:18316 "//third_party/pdfium/samples:pdfium_test",
317 "//tools/gn",
dprankefd1813272015-04-13 23:56:00318 "//tools/gn:generate_test_gn_data",
dprankee2ef3822015-02-24 21:42:18319 "//tools/gn:gn_unittests",
320 "//ui/app_list:app_list_unittests",
321 "//url:url_unittests",
cjhopman@chromium.org26046b52014-07-16 00:11:03322 ]
323
pkotwicz061c5a42015-09-30 02:16:54324 if (!is_chromecast) {
325 deps += [
326 "//chrome/android:chrome_public_apk",
327 "//chrome/android:chrome_public_test_apk",
328 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
pkotwicz0a2255e2015-10-06 16:29:05329 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54330 ]
331 }
332
cjhopmanca675d3e2014-10-24 03:50:45333 if (has_chrome_android_internal) {
dprankee2ef3822015-02-24 21:42:18334 deps += [ "//clank" ] # TODO(GYP) ??
cjhopmanca675d3e2014-10-24 03:50:45335 }
dprankefd1813272015-04-13 23:56:00336 }
337
338 if (is_linux) { # TODO(GYP): || is_android || is_bsd?
339 deps += [
340 "//breakpad:core-2-minidump",
341 "//breakpad:minidump-2-core",
342 ]
343 }
344
dpranke6293d252015-04-14 19:12:00345 if (is_chromeos) {
346 deps += [
347 "//chromeos:chromeos_unittests",
348 "//ui/chromeos:ui_chromeos_unittests",
349 ]
350 }
351
dprankefd1813272015-04-13 23:56:00352 if (is_chromeos || is_mac || is_win) {
353 deps += [
354 "//rlz:rlz_id",
355 "//rlz:rlz_lib",
356 "//rlz:rlz_unittests",
357 ]
dprankedb5527d72015-03-08 04:22:47358 }
359
360 if (is_linux) {
361 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06362 deps += [
dprankedb5527d72015-03-08 04:22:47363 "//breakpad:breakpad_unittests",
dprankedb5527d72015-03-08 04:22:47364 "//breakpad:generate_test_dump",
dprankedb5527d72015-03-08 04:22:47365 "//dbus:dbus_test_server",
dprankee2ef3822015-02-24 21:42:18366 "//dbus:dbus_unittests",
dprankedb5527d72015-03-08 04:22:47367 "//net:disk_cache_memory_test",
368 "//net:flip_in_mem_edsm_server",
369 "//net:flip_in_mem_edsm_server_unittests",
370 "//net:quic_client",
371 "//net:quic_server",
372 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18373 "//sandbox/linux:sandbox_linux_unittests",
dprankedb5527d72015-03-08 04:22:47374 "//sandbox/linux:sandbox_linux_jni_unittests",
hiroshigee6d374c2015-02-24 07:54:06375 ]
dnicoara8c6aa8e2015-03-11 23:20:32376
377 if (is_chromeos || use_ash) {
378 deps += [ "//components/session_manager/core" ]
379 }
dprankedb5527d72015-03-08 04:22:47380 }
381
sherouke1859f92015-08-05 10:19:10382 if (is_ios || is_win || (is_linux && !is_chromeos)) {
383 deps += [
384 "//base:base_i18n_perftests",
385 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58386 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10387 ]
388 }
389
dprankefd1813272015-04-13 23:56:00390 if (is_win || (is_linux && !is_chromeos)) {
391 # TODO(GYP): Figure out which of these should (and can) build
392 # for android/chromeos/mac/ios.
tfarina9e7cf702015-02-23 21:13:44393 deps += [
dprankedb5527d72015-03-08 04:22:47394 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47395 "//base:build_utf8_validator_tables",
dprankedb5527d72015-03-08 04:22:47396 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00397 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47398 "//chrome/test:load_library_perf_tests",
dpranke76f48222015-04-01 00:00:00399 "//chrome/test:performance_browser_tests",
dprankedb5527d72015-03-08 04:22:47400 "//chrome/test:sync_performance_tests",
401 "//chrome/test/chromedriver:chromedriver",
402 "//chrome/test/chromedriver:chromedriver_tests",
403 "//chrome/tools/profile_reset:jtl_compiler",
404 "//components:components_perftests",
dprankedb5527d72015-03-08 04:22:47405 "//content/test:content_gl_tests",
406 "//content/test:content_gl_benchmark",
407 "//courgette:courgette",
408 "//courgette:courgette_fuzz",
409 "//courgette:courgette_minimal_tool",
410 "//courgette:courgette_unittests",
411 "//device:device_unittests",
412 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47413 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47414 "//google_apis/gcm:mcs_probe",
dprankedb5527d72015-03-08 04:22:47415 "//gpu:gpu_perftests",
dprankefd1813272015-04-13 23:56:00416 "//gpu:gl_tests",
dprankedb5527d72015-03-08 04:22:47417 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47418 "//media:media_perftests",
dprankedb5527d72015-03-08 04:22:47419 "//media/cast:generate_barcode_video",
420 "//media/cast:generate_timecode_audio",
dprankedb5527d72015-03-08 04:22:47421 "//net:crash_cache",
422 "//net:crl_set_dump",
423 "//net:dns_fuzz_stub",
dprankefd1813272015-04-13 23:56:00424 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47425 "//net:gdig",
426 "//net:get_server_time",
dprankedb5527d72015-03-08 04:22:47427 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
dprankefd1813272015-04-13 23:56:00428 "//net:run_testserver",
dprankedb5527d72015-03-08 04:22:47429 "//net:stress_cache",
430 "//net:tld_cleanup",
dprankec09ccaa2015-03-27 22:00:38431 "//ppapi:pepper_hash_for_uma",
dprankefd1813272015-04-13 23:56:00432 "//ppapi:ppapi_perftests",
dprankedb5527d72015-03-08 04:22:47433 "//sync:run_sync_testserver",
cwallez4c57af32015-09-03 14:54:49434 "//third_party/angle/src/tests:angle_end2end_tests",
435 "//third_party/angle/src/tests:angle_unittests",
dprankedb5527d72015-03-08 04:22:47436 "//third_party/codesighs:maptsvdifftool",
dprankedb5527d72015-03-08 04:22:47437 "//third_party/leveldatabase:env_chromium_unittests",
438 "//third_party/libaddressinput:libaddressinput_unittests",
dprankefd1813272015-04-13 23:56:00439 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47440 "//ui/compositor:compositor_unittests",
441 ]
442
443 if (enable_extensions) {
444 deps += [ "//extensions/shell:app_shell" ]
445 }
446
447 if (enable_nacl) {
dprankefd1813272015-04-13 23:56:00448 deps += [ "//components/nacl:nacl_loader_unittests" ]
dprankedb5527d72015-03-08 04:22:47449 }
450
mostynb2196a462015-08-20 17:22:10451 if (media_use_ffmpeg) {
452 deps += [ "//media:ffmpeg_regression_tests" ]
453 }
454
dprankedb5527d72015-03-08 04:22:47455 if (use_ash) {
456 deps += [
benf97b2572015-09-25 23:12:53457 "//ash:ash_shell_with_content",
dprankedb5527d72015-03-08 04:22:47458 "//ash:ash_unittests",
459 ]
460 }
461
462 if (use_aura) {
463 deps += [
464 "//ui/aura:aura_unittests",
465 "//ui/aura:bench",
466 "//ui/aura:demo",
467 ]
468 }
dprankefd1813272015-04-13 23:56:00469 }
470
471 if (is_linux && !is_chromeos) {
472 deps += [
473 # TODO(GYP): Figure out which of these should (and can) build
474 # under which other conditions.
475 "//build/sanitizers:copy_llvm_symbolizer",
476 "//chrome/test:chrome_app_unittests",
477 "//cloud_print:cloud_print_unittests",
478 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00479 "//content/public/app:browser",
480 "//content/public/app:child",
481
482 # TODO(GYP): Remove this when the gles2 tests work
483 "//gpu/command_buffer/client:gles2_implementation_no_check",
484
485 "//gpu/khronos_glcts_support:khronos_glcts_test", # TODO(GYP) crbug.com/471903 to make this complete.
486 "//media/cast:cast_benchmarks",
487 "//media/cast:tap_proxy",
jam00802992015-05-20 03:37:19488 "//mojo/application/public/cpp",
dprankefd1813272015-04-13 23:56:00489 "//skia:filter_fuzz_stub",
490 "//skia:image_operations_bench",
491 "//sync/tools:sync_client",
492 "//sync/tools:sync_listen_notifications",
493 "//testing/gmock:gmock_main",
jam76bcf0c2015-10-02 21:01:28494
495 # TODO(use-new-edk):
496 #"//mojo/edk/test:mojo_public_system_perftests",
dprankefd1813272015-04-13 23:56:00497 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests",
dprankefd1813272015-04-13 23:56:00498 "//ui/keyboard:keyboard_unittests",
499 "//ui/message_center:message_center_unittests",
500 "//ui/snapshot:snapshot_unittests",
501 "//ui/views/examples:views_examples_with_content_exe",
502
dprankefd1813272015-04-13 23:56:00503 "//third_party/codesighs:nm2tsv",
504 "//third_party/sqlite:sqlite_shell",
505 ]
506
dprankeec10b3932015-10-02 17:58:23507 deps += [
508 "//breakpad:dump_syms($host_toolchain)",
509 "//breakpad:microdump_stackwalk($host_toolchain)",
510 "//breakpad:minidump_dump($host_toolchain)",
511 "//breakpad:minidump_stackwalk($host_toolchain)",
512 ]
dprankefd1813272015-04-13 23:56:00513
514 if (!is_debug && !is_component_build) {
515 deps += [ "//chrome/tools/service_discovery_sniffer" ]
516 }
517
518 if (toolkit_views) {
519 deps += [ "//ui/app_list:app_list_demo" ]
520 }
dprankedb5527d72015-03-08 04:22:47521
522 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44523 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59524 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44525 }
dprankedb5527d72015-03-08 04:22:47526 }
527 }
528
529 if (is_mac) {
530 deps += [
531 "//breakpad:crash_inspector",
532 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44533 "//third_party/apple_sample_code",
534 "//third_party/molokocacao",
535 ]
536
dprankee2ef3822015-02-24 21:42:18537 # TODO(GYP): Remove these when the targets below work and these
538 # are pulled in automatically.
539 deps += [
540 "//cc/blink",
Brett Wilson817fec02015-08-22 20:36:49541 "//components/ui/zoom",
dprankee2ef3822015-02-24 21:42:18542 "//content",
543 "//content/test:test_support",
544 "//device/battery",
545 "//device/bluetooth",
546 "//device/nfc",
547 "//device/usb",
548 "//device/vibration",
549 "//media/blink",
550 "//pdf",
551 "//storage/browser",
552 "//third_party/brotli",
553 "//third_party/flac",
tfarinae4a03f8f2015-05-18 05:55:26554 "//third_party/hunspell",
dprankee2ef3822015-02-24 21:42:18555 "//third_party/iccjpeg",
556 "//third_party/libphonenumber",
557 "//third_party/ots",
558 "//third_party/qcms",
559 "//third_party/smhasher:murmurhash3",
dprankee2ef3822015-02-24 21:42:18560 "//third_party/webrtc/system_wrappers",
tfarina42aa0172015-08-13 21:12:40561 "//ui/app_list:app_list_unittests",
tfarinaeda26472015-08-12 19:30:15562 "//ui/gfx:gfx_unittests",
dprankee2ef3822015-02-24 21:42:18563 "//ui/native_theme",
564 "//ui/snapshot",
565 "//ui/surface",
566 ]
567
dprankecf8465db72014-11-10 23:51:22568 # TODO(dpranke): These are as-yet untriaged but need at least the above.
dpranke43760592014-11-08 02:59:57569 deps -= [
dprankee2ef3822015-02-24 21:42:18570 "//chrome", # TODO(GYP)
571 "//chrome/test:browser_tests", # TODO(GYP)
572 "//chrome/test:interactive_ui_tests", # TODO(GYP)
573 "//chrome/test:sync_integration_tests", # TODO(GYP)
574 "//chrome/test:unit_tests", # TODO(GYP)
dprankef6ca89c52015-03-30 22:01:38575 "//components:components_browsertests", # TODO(GYP)
dprankee2ef3822015-02-24 21:42:18576 "//components:components_unittests", # TODO(GYP)
577 "//content/test:content_browsertests", # TODO(GYP)
578 "//content/test:content_perftests", # TODO(GYP)
dprankeb0713542015-07-31 21:07:21579 "//device:device_unittests", # TODO(GYP)
dprankee2ef3822015-02-24 21:42:18580 "//extensions:extensions_browsertests", # TODO(GYP)
581 "//extensions:extensions_unittests", # TODO(GYP)
dprankeb0713542015-07-31 21:07:21582 "//mojo", # TODO(GYP)
583 "//mojo/application/public/cpp", # TODO(GYP)
tfarinacb2638b2015-05-12 03:24:15584
585 # TODO(GYP): Re-enable this as soon as we can link Blink binaries on mac.
586 "//third_party/WebKit/Source/platform:heap_unittests",
587 "//third_party/WebKit/Source/platform:platform_unittests",
588 "//third_party/WebKit/Source/web:webkit_unit_tests",
mohsen29fd4052014-12-08 21:06:46589 ]
dprankefd1813272015-04-13 23:56:00590 }
591
592 if (is_win) {
593 deps += [
594 "//base:pe_image_test",
grt734e87b2015-07-06 19:36:43595 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00596 "//chrome_elf:chrome_elf_unittests",
597 "//chrome_elf:dll_hash_main",
sdefresne8ba0b88c2015-09-18 10:33:13598 "//components/crash/content/tools:crash_service",
dprankefd1813272015-04-13 23:56:00599 "//components/wifi:wifi_test",
600 "//net:quic_client",
601 "//net:quic_server",
602 "//sandbox/win:pocdll",
603 "//sandbox/win:sandbox_poc",
604 "//sandbox/win:sbox_integration_tests",
605 "//sandbox/win:sbox_unittests",
606 "//sandbox/win:sbox_validation_tests",
607 "//testing/gtest:gtest_main",
608 "//third_party/codesighs:msmap2tsv",
609 "//third_party/pdfium/samples:pdfium_diff",
610 "//ui/metro_viewer",
611 ]
dprankee2ef3822015-02-24 21:42:18612 deps -= [
613 "//crypto:crypto_unittests", # TODO(GYP)
614 "//net:net_unittests", # TODO(GYP)
615 ]
sherouk53f0f1a2015-08-03 15:59:35616 } else if (!is_android && !is_ios) {
dpranke6293d252015-04-14 19:12:00617 deps += [ "//breakpad:symupload" ]
mohsenf837da7c2014-12-09 19:01:34618 }
dpranke18e57432015-02-27 21:46:47619}
620
dpranked62d8512015-03-02 03:06:03621group("gn_only") {
dprankedb5527d72015-03-08 04:22:47622 testonly = true
623
dpranke2a294622015-08-07 05:23:01624 deps = []
625
sherouk53f0f1a2015-08-03 15:59:35626 if (!is_ios) {
dpranke2a294622015-08-07 05:23:01627 deps += [ "//mandoline:all" ]
sherouk53f0f1a2015-08-03 15:59:35628 }
isherman0f89b43eb2015-04-11 00:02:45629
630 if (!is_android && !is_ios) {
631 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
632 }
633
dprankedb5527d72015-03-08 04:22:47634 if (is_linux && !is_chromeos) {
635 # TODO(GYP): Figure out if any of these should be in gn_all
636 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45637 deps += [
dprankedb5527d72015-03-08 04:22:47638 ":gn_mojo_targets",
dtrainor4ae32722015-09-26 00:14:12639 "//blimp:blimp_tests",
dprankedb5527d72015-03-08 04:22:47640 "//chrome/browser/resources:extension_resource_demo",
641 "//chrome/installer/util:strings",
642 "//chrome:main_dll",
643 "//chrome/test:load_library_perf_tests",
644 "//chrome/tools/convert_dict",
645 "//components/constrained_window:unit_tests",
646 "//components/enhanced_bookmarks:test_support",
dprankedb5527d72015-03-08 04:22:47647 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45648 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47649 "//components/rappor:unit_tests",
650 "//components/sessions:unit_tests",
651 "//media/blink:media_blink_unittests",
dprankedb5527d72015-03-08 04:22:47652 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47653 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
654 "//storage/browser:dump_file_system",
655 "//third_party/angle:libANGLE",
656 "//third_party/angle:libEGL",
657 "//third_party/angle:libGLESv2",
658 "//third_party/cld_2:cld_2_dynamic_data_tool",
659 "//third_party/leveldatabase:leveldb_arena_test",
660 "//third_party/leveldatabase:leveldb_bloom_test",
661 "//third_party/leveldatabase:leveldb_db_test",
662 "//third_party/leveldatabase:leveldb_crc32c_test",
663 "//third_party/leveldatabase:leveldb_cache_test",
664 "//third_party/leveldatabase:leveldb_env_test",
665 "//third_party/leveldatabase:leveldb_write_batch_test",
666 "//third_party/leveldatabase:leveldb_filter_block_test",
667 "//third_party/leveldatabase:leveldb_version_edit_test",
668 "//third_party/leveldatabase:leveldb_db_bench",
669 "//third_party/leveldatabase:leveldb_log_test",
670 "//third_party/leveldatabase:leveldb_corruption_test",
671 "//third_party/leveldatabase:leveldb_table_test",
672 "//third_party/leveldatabase:leveldb_skiplist_test",
673 "//third_party/leveldatabase:leveldb_filename_test",
674 "//third_party/leveldatabase:leveldb_dbformat_test",
thestig93786e62015-08-05 04:03:29675 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47676 "//third_party/libjpeg_turbo:simd",
dprankedb5527d72015-03-08 04:22:47677 "//third_party/libsrtp:replay_driver",
678 "//third_party/libsrtp:roc_driver",
679 "//third_party/libsrtp:rtpw",
680 "//third_party/libsrtp:rdbx_driver",
681 "//third_party/libsrtp:srtp_driver",
682 "//third_party/libsrtp:srtp_driver",
683 "//third_party/libsrtp:srtp_test_kernel_driver",
684 "//third_party/libsrtp:srtp_test_cipher_driver",
685 "//third_party/libsrtp:srtp_test_datatypes_driver",
686 "//third_party/libsrtp:srtp_test_aes_calc",
687 "//third_party/libsrtp:srtp_test_env",
688 "//third_party/libsrtp:srtp_test_rand_gen",
689 "//third_party/libsrtp:srtp_test_sha1_driver",
690 "//third_party/libsrtp:srtp_test_stat_driver",
691 "//third_party/opus:opus_compare",
692 "//third_party/opus:opus_demo",
693 "//third_party/opus:test_opus_decode",
694 "//third_party/opus:test_opus_encode",
695 "//third_party/opus:test_opus_api",
696 "//third_party/opus:test_opus_padding",
697 "//third_party/webrtc/system_wrappers:field_trial_default",
698 "//third_party/webrtc/system_wrappers:metrics_default",
699 "//ui/display/types",
700 "//ui/shell_dialogs:shell_dialogs_unittests",
701 "//ui/views/examples:views_examples_exe",
dprankedb5527d72015-03-08 04:22:47702 ]
dprankeb0713542015-07-31 21:07:21703
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16704 if (target_cpu == "x86" || target_cpu == "x64") {
mcgrathr916aafa2015-09-15 00:06:53705 deps += [
706 "//third_party/libjpeg_turbo:simd_asm",
707 "//native_client/src/trusted/platform_qualify:vcpuid",
708 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16709 }
dprankedb5527d72015-03-08 04:22:47710 if (enable_nacl) {
711 deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ]
712 }
713 if (use_ozone) {
714 deps += [ "//ui/ozone/demo" ]
715 }
716 if (is_android) {
717 deps += [ "//build/android/gyp/test:hello_world" ]
718 }
dpranke807f6022015-03-17 23:20:56719
720 if (is_linux && current_toolchain == host_toolchain) {
721 deps += [ "//v8:d8" ]
722 }
nyquist6aeec5142015-09-10 03:38:52723 }
724
nyquistb5f050b2015-09-10 05:10:35725 if (is_android) {
nyquist7af11b72015-09-10 20:18:14726 deps += [ "//blimp" ]
nyquistb5f050b2015-09-10 05:10:35727 }
728
dprankeb0713542015-07-31 21:07:21729 if (is_mac) {
730 deps -= [ "//mandoline:all" ] # TODO(GYP)
731 }
dprankedb5527d72015-03-08 04:22:47732}
733
734group("gn_mojo_targets") {
735 testonly = true
736 if (is_linux && !is_chromeos) {
737 # TODO(GYP): Figure out if any of these should be in gn_all
738 # and figure out how cross-platform they are
739 deps = [
dprankedb5527d72015-03-08 04:22:47740 "//ipc/mojo:ipc_mojo_perftests",
dprankedb5527d72015-03-08 04:22:47741 "//media/mojo/services:cdm_service",
742 "//media/mojo:tests",
msw1bb9c6c2015-05-06 21:35:44743 "//mojo:tests",
pkotwicz8b9d18c2015-10-05 01:59:33744
jam76bcf0c2015-10-02 21:01:28745 # TODO(use-new-edk):
746 #"//mojo/edk/js/test:js_integration_tests",
747 #"//mojo/edk/js/tests:js_to_cpp_bindings_python",
dprankedb5527d72015-03-08 04:22:47748 "//third_party/mojo/src/mojo/edk/js/test:js_integration_tests",
dprankedb5527d72015-03-08 04:22:47749 ]
dprankedb5527d72015-03-08 04:22:47750 }
751}
752
753group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03754 deps = [
dprankeb6128d02015-05-01 16:40:30755 "//build/config/sanitizers:options_sources",
756
dprankedb5527d72015-03-08 04:22:47757 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
758 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dprankeb6128d02015-05-01 16:40:30759
760 "//ui/resources:repack_ui_test_mac_locale_pack",
dpranked62d8512015-03-02 03:06:03761 ]
dpranked2fb5222015-09-10 22:39:05762
763 if (!is_ios) {
764 deps += [
765 "//v8:v8_snapshot",
766 "//v8:postmortem-metadata",
767 ]
768 }
dpranked62d8512015-03-02 03:06:03769}
770
tfarinacb2638b2015-05-12 03:24:15771if (!is_ios) {
772 # This group includes all of the targets needed to build and test Blink,
773 # including running the layout tests (see below).
774 group("blink_tests") {
775 testonly = true
776
777 deps = [
778 "//third_party/WebKit/public:all_blink",
779 ]
780
781 # NOTE: The following deps are needed to run the layout tests
782 # (run-webkit-tests) but there is no GN target for the layout tests,
783 # so we need to specify the dependencies here instead.
784 if (is_android) {
785 deps += [
786 "//breakpad:dump_syms($host_toolchain)",
787 "//breakpad:minidump_stackwalk($host_toolchain)",
788 "//content/shell/android:content_shell_apk",
ojan94989c72015-07-17 21:56:42789 "//tools/imagediff($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15790 ]
791 } else {
ojan94989c72015-07-17 21:56:42792 deps += [
793 "//content/shell:content_shell",
794 "//tools/imagediff",
795 ]
tfarinacb2638b2015-05-12 03:24:15796 }
797
798 if (is_win) {
799 deps += [
jochen73e711c2015-06-03 10:01:46800 "//components/test_runner:layout_test_helper",
tfarina795e01a2015-05-15 19:29:57801 "//content/shell:crash_service",
tfarinacb2638b2015-05-12 03:24:15802 ]
803 }
804
805 if (!is_win && !is_android) {
Gordana.Cmiljanovicf243e9a2015-05-26 22:14:47806 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15807 }
808
809 if (is_mac) {
810 deps += [
811 "//breakpad:dump_syms($host_toolchain)",
jochen73e711c2015-06-03 10:01:46812 "//components/test_runner:layout_test_helper",
tfarinacb2638b2015-05-12 03:24:15813 ]
814 }
815
816 if (is_linux) {
817 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
818 }
819 }
820}
821
dpranke6abd8652015-08-28 03:21:11822# Add a dummy target for compatibility w/ GYP
823group("chromium_swarm_tests") {
824}
825
dpranke2302dfa2015-09-29 02:21:52826group("chromium_builder_perf") {
827 testonly = true
828
829 # TODO(GYP): Make this target work on the mac.
830 if (!is_ios && !is_android && !is_chromecast && !is_mac) {
831 deps = [
832 "//cc:cc_perftests",
833 "//chrome",
834 "//chrome/test:load_library_perf_tests",
835 "//chrome/test:sync_performance_tests",
836 "//gpu:gpu_perftests",
837 "//media:media_perftests",
838 "//media/midi:midi_unittests",
839 "//tools/telemetry:bitmaptools",
840 ]
841
842 if (!is_chromeos) {
843 deps += [ "//chrome/test:performance_browser_tests" ]
844 }
845 if (is_linux && !is_chromeos) {
846 deps += [ "//chrome:linux_symbols" ]
847
848 if (!is_chromeos) {
849 deps += [ "//tools/perf/clear_system_cache" ]
850 }
851 }
852
853 if (is_win) {
854 deps += [
855 "//content/shell:crash_service",
856 # "//gpu:angle_perftests", TODO(GYP): crbug.com/537008
857 ]
858
859 if (target_cpu == "x86") {
860 deps += [
861 # "//content/shell:crash_service_win64", TODO(GYP): crbug.com/537009
862 ]
863 }
864 } else {
dprankeec10b3932015-10-02 17:58:23865 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52866 }
867 }
868}