blob: 623f1250629c46e68635284345cda3f7e63e58f2 [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
pkotwicz558d5252015-10-19 21:09:5582 if (!is_ios && !is_android) {
sherouk53f0f1a2015-08-03 15:59:3583 deps += [
sherouk53f0f1a2015-08-03 15:59:3584 "//chrome",
85 "//chrome/test:browser_tests",
86 "//chrome/test:interactive_ui_tests",
87 "//chrome/test:sync_integration_tests",
sherouk53f0f1a2015-08-03 15:59:3588 "//chrome/test/chromedriver:chromedriver_unittests",
sherouk53f0f1a2015-08-03 15:59:3589 "//crypto:crypto_unittests",
sherouk53f0f1a2015-08-03 15:59:3590 "//extensions:extensions_browsertests",
91 "//extensions:extensions_unittests",
92 "//google_apis/gcm:gcm_unit_tests",
dprankedbdd9d82015-08-12 21:18:1893 "//gpu/gles2_conform_support:gles2_conform_test",
sherouk53f0f1a2015-08-03 15:59:3594 "//jingle:jingle_unittests",
sherouk53f0f1a2015-08-03 15:59:3595 "//net:hpack_example_generator",
96 "//net:hpack_fuzz_mutator",
97 "//net:hpack_fuzz_wrapper",
sherouk53f0f1a2015-08-03 15:59:3598 "//ppapi:ppapi_unittests",
99 "//ppapi/examples/2d",
100 "//ppapi/examples/audio",
101 "//ppapi/examples/audio_input",
102 "//ppapi/examples/compositor",
103 "//ppapi/examples/crxfs",
104 "//ppapi/examples/enumerate_devices",
105 "//ppapi/examples/file_chooser",
106 "//ppapi/examples/flash_topmost",
107 "//ppapi/examples/font",
108 "//ppapi/examples/gamepad",
109 "//ppapi/examples/gles2",
110 "//ppapi/examples/gles2_spinning_cube",
111 "//ppapi/examples/ime",
112 "//ppapi/examples/input",
113 "//ppapi/examples/media_stream_audio",
114 "//ppapi/examples/media_stream_video",
115 "//ppapi/examples/mouse_cursor",
116 "//ppapi/examples/mouse_lock",
117 "//ppapi/examples/printing",
118 "//ppapi/examples/scaling",
119 "//ppapi/examples/scripting",
120 "//ppapi/examples/stub",
121 "//ppapi/examples/threading",
122 "//ppapi/examples/url_loader",
123 "//ppapi/examples/video_capture",
124 "//ppapi/examples/video_decode",
125 "//ppapi/examples/video_effects",
126 "//ppapi/examples/video_encode",
127 "//printing:printing_unittests",
sherouk53f0f1a2015-08-03 15:59:35128 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
129 "//third_party/codesighs",
pkotwicz558d5252015-10-19 21:09:55130 "//third_party/pdfium/samples:pdfium_test",
131 "//tools/gn",
132 "//tools/gn:gn_unittests",
133 "//tools/gn:generate_test_gn_data",
134 "//tools/perf/clear_system_cache",
135 "//ui/accessibility:accessibility_unittests",
136 "//ui/app_list:app_list_unittests",
137 ]
138 }
139
140 if (!is_ios) {
141 # TODO(GYP): Figure out which of these should actually build on iOS,
142 # and whether there should be other targets that are iOS-only and missing.
143 deps += [
144 "//cc:cc_unittests",
145 "//chrome/test:unit_tests",
146 "//components:components_browsertests",
147 "//content/shell:content_shell",
148 "//content/test:content_browsertests",
149 "//content/test:content_perftests",
150 "//content/test:content_unittests",
151 "//device:device_unittests",
152 "//gpu:gpu_unittests",
153 "//ipc:ipc_tests",
154 "//ipc/mojo:ipc_mojo_unittests",
155 "//media:media_unittests",
156 "//media/midi:midi_unittests",
157 "//mojo",
158 "//mojo/application/public/cpp",
159 "//mojo/common:mojo_common_unittests",
160 "//net:net_perftests",
jam76bcf0c2015-10-02 21:01:28161
162 # TODO(use-new-edk):
163 #"//mojo/edk/system:mojo_system_unittests",
164 #"//mojo/edk/test:mojo_public_bindings_unittests",
165 #"//mojo/edk/test:mojo_public_environment_unittests",
166 #"//mojo/edk/test:mojo_public_system_unittests",
167 #"//mojo/edk/test:mojo_public_utility_unittests",
sherouk53f0f1a2015-08-03 15:59:35168 "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",
169 "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",
170 "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",
171 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",
172 "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
pkotwicz558d5252015-10-19 21:09:55173
174 "//third_party/WebKit/Source/platform:heap_unittests",
175 "//third_party/WebKit/Source/platform:platform_unittests",
176 "//third_party/WebKit/Source/web:webkit_unit_tests",
177 "//third_party/WebKit/Source/wtf:wtf_unittests",
sherouk53f0f1a2015-08-03 15:59:35178 "//third_party/smhasher:pmurhash",
charliea9a3b7202015-10-26 22:12:29179 "//tools/battor_agent",
sherouk53f0f1a2015-08-03 15:59:35180 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35181 "//tools/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35182 "//ui/display:display_unittests",
183 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35184 "//ui/gl:gl_unittests",
185 "//ui/touch_selection:ui_touch_selection_unittests",
sherouk53f0f1a2015-08-03 15:59:35186 ]
sdefresne998e8582015-10-07 13:36:45187 } else {
sdefresnea378b452015-10-08 09:55:58188 deps += [
189 "//ios/net:ios_net_unittests",
sdefresnec6ddd7ac2015-10-09 17:30:19190 "//ios/testing:ocmock_support_unittest",
sdefresneaa7c1cf2015-10-22 00:41:11191 "//ios/web:ios_web_unittests",
sdefresnea378b452015-10-08 09:55:58192 ]
sherouk53f0f1a2015-08-03 15:59:35193 }
dprankee2ef3822015-02-24 21:42:18194
scottmg34fb7e52014-12-03 23:27:24195 deps += root_extra_deps
[email protected]fce5c3fe2014-04-10 21:13:05196
tfarina4aa9edc2015-10-26 22:14:02197 if (enable_extensions) {
rockot2f1326e2015-02-23 23:53:51198 deps += [ "//extensions/shell:app_shell_unittests" ]
199 }
200
dprankefd1813272015-04-13 23:56:00201 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55202 deps += [ "//chrome/browser/media/router" ]
dprankefd1813272015-04-13 23:56:00203 }
204
garykac3eddb5b2015-04-17 23:16:38205 if (enable_remoting) {
206 deps += [ "//remoting:remoting_all" ]
dprankece5eb832015-04-01 20:21:05207 }
208
dprankee2ef3822015-02-24 21:42:18209 if (toolkit_views) {
210 deps += [ "//ui/views:views_unittests" ]
James Robinson060f2e32014-09-10 22:31:37211 }
212
dprankee2ef3822015-02-24 21:42:18213 if (use_aura) {
214 deps += [ "//ui/wm:wm_unittests" ]
215 }
216
217 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47218 deps += [ "//ui/ozone" ]
[email protected]a306aaa2014-05-24 13:21:50219 }
220
dprankefd1813272015-04-13 23:56:00221 if (use_x11) {
222 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22223 }
224
tmoniuszkoe5578b922015-04-14 09:38:03225 if (enable_configuration_policy) {
226 deps += [ "//components/policy:policy_templates" ]
227 }
228
dprankefd1813272015-04-13 23:56:00229 if (v8_use_external_startup_data) {
230 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
[email protected]2d6893a2014-06-02 19:16:36231 }
232
brettw66e3feab2015-07-20 23:52:22233 if (is_win) {
brettwf986f9572015-10-07 17:18:15234 deps += [
235 "//chrome/installer/gcapi",
236 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
237 ]
brettw66e3feab2015-07-20 23:52:22238 }
239
[email protected]5a8d5162014-04-12 01:19:16240 if (is_android) {
[email protected]26046b52014-07-16 00:11:03241 deps += [
cjhopman31511332014-10-23 01:05:02242 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38243 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02244 "//build/android/rezip",
agrieve40ba6862015-07-15 02:09:05245 "//third_party/errorprone:chromium_errorprone",
pkotwicze38594d2015-09-25 00:05:10246 "//tools/android:android_tools",
pkotwicz8b9d18c2015-10-05 01:59:33247 "//tools/android/heap_profiler:heap_profiler_unittests",
dgn28050da2015-10-19 10:16:43248 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
dprankee2ef3822015-02-24 21:42:18249 "//tools/imagediff($host_toolchain)",
250
251 # TODO(GYP): Remove these when the components_unittests work.
252 "//components/history/core/test:test",
253 "//components/policy:policy_component_test_support",
254 "//components/policy:test_support",
255 "//components/rappor:test_support",
256 "//components/signin/core/browser:test_support",
257 "//components/sync_driver:test_support",
258 "//components/user_manager",
259 "//components/wallpaper",
260 "//content/shell/android:content_shell_apk",
261
262 # TODO(GYP): Are these needed, or will they be pulled in automatically?
[email protected]684b2292014-08-22 19:12:39263 "//third_party/android_tools:android_gcm_java",
264 "//third_party/android_tools:uiautomator_java",
265 "//third_party/android_tools:android_support_v13_java",
266 "//third_party/android_tools:android_support_v7_appcompat_java",
267 "//third_party/android_tools:android_support_v7_mediarouter_java",
dprankee2ef3822015-02-24 21:42:18268 "//third_party/mesa",
mikecase85e83ed2014-12-08 19:18:29269 "//third_party/mockito:mockito_java",
dprankee2ef3822015-02-24 21:42:18270 "//third_party/openmax_dl/dl",
dprankee2ef3822015-02-24 21:42:18271 "//ui/android:ui_java",
272
273 # TODO(GYP): Are these needed?
274 "//chrome/test:test_support_unit",
275 "//third_party/smhasher:murmurhash3",
276 "//ui/message_center:test_support",
277 ]
278 deps -= [
rockot9c67e5f2015-03-12 20:01:21279 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18280 "//url:url_unittests",
[email protected]26046b52014-07-16 00:11:03281 ]
282
pkotwicz061c5a42015-09-30 02:16:54283 if (!is_chromecast) {
284 deps += [
michaelbai6da58b3a2015-10-19 21:35:57285 "//android_webview:system_webview_apk",
pkotwicz061c5a42015-09-30 02:16:54286 "//chrome/android:chrome_public_apk",
287 "//chrome/android:chrome_public_test_apk",
288 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
pkotwicz0a2255e2015-10-06 16:29:05289 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54290 ]
291 }
292
pkotwicz06a4b4b42015-10-29 23:11:11293 if (target_cpu != "x64") {
294 deps += [ "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)" ]
295 }
296
cjhopmanca675d3e2014-10-24 03:50:45297 if (has_chrome_android_internal) {
dprankee2ef3822015-02-24 21:42:18298 deps += [ "//clank" ] # TODO(GYP) ??
cjhopmanca675d3e2014-10-24 03:50:45299 }
dprankedb5527d72015-03-08 04:22:47300 }
301
pkotwicza4d233b22015-11-02 18:20:38302 if (is_linux || is_android) { # TODO(GYP): || is_bsd?
dprankefd1813272015-04-13 23:56:00303 deps += [
pkotwicza4d233b22015-11-02 18:20:38304 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00305 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38306 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00307 "//breakpad:minidump-2-core",
308 ]
309 }
310
dpranke6293d252015-04-14 19:12:00311 if (is_chromeos) {
312 deps += [
313 "//chromeos:chromeos_unittests",
314 "//ui/chromeos:ui_chromeos_unittests",
315 ]
316 }
317
dprankefd1813272015-04-13 23:56:00318 if (is_chromeos || is_mac || is_win) {
319 deps += [
320 "//rlz:rlz_id",
321 "//rlz:rlz_lib",
322 "//rlz:rlz_unittests",
323 ]
324 }
325
dprankedb5527d72015-03-08 04:22:47326 if (is_linux) {
327 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06328 deps += [
dprankedb5527d72015-03-08 04:22:47329 "//dbus:dbus_test_server",
dprankee2ef3822015-02-24 21:42:18330 "//dbus:dbus_unittests",
dprankedb5527d72015-03-08 04:22:47331 "//net:disk_cache_memory_test",
332 "//net:flip_in_mem_edsm_server",
333 "//net:flip_in_mem_edsm_server_unittests",
334 "//net:quic_client",
335 "//net:quic_server",
336 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18337 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06338 ]
dnicoara8c6aa8e2015-03-11 23:20:32339
340 if (is_chromeos || use_ash) {
341 deps += [ "//components/session_manager/core" ]
342 }
dprankedb5527d72015-03-08 04:22:47343 }
344
sherouke1859f92015-08-05 10:19:10345 if (is_ios || is_win || (is_linux && !is_chromeos)) {
346 deps += [
347 "//base:base_i18n_perftests",
348 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58349 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10350 ]
351 }
352
dprankefd1813272015-04-13 23:56:00353 if (is_win || (is_linux && !is_chromeos)) {
354 # TODO(GYP): Figure out which of these should (and can) build
355 # for android/chromeos/mac/ios.
tfarina9e7cf702015-02-23 21:13:44356 deps += [
dprankedb5527d72015-03-08 04:22:47357 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47358 "//base:build_utf8_validator_tables",
dprankedb5527d72015-03-08 04:22:47359 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00360 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47361 "//chrome/test:load_library_perf_tests",
dpranke76f48222015-04-01 00:00:00362 "//chrome/test:performance_browser_tests",
dprankedb5527d72015-03-08 04:22:47363 "//chrome/test:sync_performance_tests",
364 "//chrome/test/chromedriver:chromedriver",
365 "//chrome/test/chromedriver:chromedriver_tests",
366 "//chrome/tools/profile_reset:jtl_compiler",
367 "//components:components_perftests",
dprankedb5527d72015-03-08 04:22:47368 "//content/test:content_gl_tests",
369 "//content/test:content_gl_benchmark",
370 "//courgette:courgette",
371 "//courgette:courgette_fuzz",
372 "//courgette:courgette_minimal_tool",
373 "//courgette:courgette_unittests",
374 "//device:device_unittests",
375 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47376 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47377 "//google_apis/gcm:mcs_probe",
dprankedb5527d72015-03-08 04:22:47378 "//gpu:gpu_perftests",
dprankefd1813272015-04-13 23:56:00379 "//gpu:gl_tests",
dprankedb5527d72015-03-08 04:22:47380 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47381 "//media:media_perftests",
dprankedb5527d72015-03-08 04:22:47382 "//media/cast:generate_barcode_video",
383 "//media/cast:generate_timecode_audio",
dprankedb5527d72015-03-08 04:22:47384 "//net:crash_cache",
385 "//net:crl_set_dump",
386 "//net:dns_fuzz_stub",
dprankefd1813272015-04-13 23:56:00387 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47388 "//net:gdig",
389 "//net:get_server_time",
dprankedb5527d72015-03-08 04:22:47390 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
dprankefd1813272015-04-13 23:56:00391 "//net:run_testserver",
dprankedb5527d72015-03-08 04:22:47392 "//net:stress_cache",
393 "//net:tld_cleanup",
dprankec09ccaa2015-03-27 22:00:38394 "//ppapi:pepper_hash_for_uma",
dprankefd1813272015-04-13 23:56:00395 "//ppapi:ppapi_perftests",
dprankedb5527d72015-03-08 04:22:47396 "//sync:run_sync_testserver",
cwallez4c57af32015-09-03 14:54:49397 "//third_party/angle/src/tests:angle_end2end_tests",
398 "//third_party/angle/src/tests:angle_unittests",
dprankedb5527d72015-03-08 04:22:47399 "//third_party/codesighs:maptsvdifftool",
dprankedb5527d72015-03-08 04:22:47400 "//third_party/leveldatabase:env_chromium_unittests",
401 "//third_party/libaddressinput:libaddressinput_unittests",
dprankefd1813272015-04-13 23:56:00402 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47403 "//ui/compositor:compositor_unittests",
404 ]
405
406 if (enable_extensions) {
407 deps += [ "//extensions/shell:app_shell" ]
408 }
409
410 if (enable_nacl) {
dprankefd1813272015-04-13 23:56:00411 deps += [ "//components/nacl:nacl_loader_unittests" ]
dprankedb5527d72015-03-08 04:22:47412 }
413
mostynb2196a462015-08-20 17:22:10414 if (media_use_ffmpeg) {
415 deps += [ "//media:ffmpeg_regression_tests" ]
416 }
417
dprankedb5527d72015-03-08 04:22:47418 if (use_ash) {
419 deps += [
benf97b2572015-09-25 23:12:53420 "//ash:ash_shell_with_content",
dprankedb5527d72015-03-08 04:22:47421 "//ash:ash_unittests",
422 ]
423 }
424
425 if (use_aura) {
426 deps += [
427 "//ui/aura:aura_unittests",
428 "//ui/aura:bench",
429 "//ui/aura:demo",
430 ]
431 }
dprankefd1813272015-04-13 23:56:00432 }
433
434 if (is_linux && !is_chromeos) {
435 deps += [
436 # TODO(GYP): Figure out which of these should (and can) build
437 # under which other conditions.
438 "//build/sanitizers:copy_llvm_symbolizer",
439 "//chrome/test:chrome_app_unittests",
440 "//cloud_print:cloud_print_unittests",
441 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00442 "//content/public/app:browser",
443 "//content/public/app:child",
444
445 # TODO(GYP): Remove this when the gles2 tests work
446 "//gpu/command_buffer/client:gles2_implementation_no_check",
447
448 "//gpu/khronos_glcts_support:khronos_glcts_test", # TODO(GYP) crbug.com/471903 to make this complete.
449 "//media/cast:cast_benchmarks",
450 "//media/cast:tap_proxy",
jam00802992015-05-20 03:37:19451 "//mojo/application/public/cpp",
dprankefd1813272015-04-13 23:56:00452 "//skia:filter_fuzz_stub",
453 "//skia:image_operations_bench",
454 "//sync/tools:sync_client",
455 "//sync/tools:sync_listen_notifications",
456 "//testing/gmock:gmock_main",
jam76bcf0c2015-10-02 21:01:28457
458 # TODO(use-new-edk):
459 #"//mojo/edk/test:mojo_public_system_perftests",
dprankefd1813272015-04-13 23:56:00460 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests",
dprankefd1813272015-04-13 23:56:00461 "//ui/keyboard:keyboard_unittests",
462 "//ui/message_center:message_center_unittests",
463 "//ui/snapshot:snapshot_unittests",
464 "//ui/views/examples:views_examples_with_content_exe",
465
dprankefd1813272015-04-13 23:56:00466 "//third_party/codesighs:nm2tsv",
467 "//third_party/sqlite:sqlite_shell",
468 ]
469
dprankeec10b3932015-10-02 17:58:23470 deps += [
471 "//breakpad:dump_syms($host_toolchain)",
472 "//breakpad:microdump_stackwalk($host_toolchain)",
473 "//breakpad:minidump_dump($host_toolchain)",
474 "//breakpad:minidump_stackwalk($host_toolchain)",
475 ]
dprankefd1813272015-04-13 23:56:00476
477 if (!is_debug && !is_component_build) {
478 deps += [ "//chrome/tools/service_discovery_sniffer" ]
479 }
480
481 if (toolkit_views) {
482 deps += [ "//ui/app_list:app_list_demo" ]
483 }
dprankedb5527d72015-03-08 04:22:47484
485 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44486 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59487 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44488 }
dprankedb5527d72015-03-08 04:22:47489 }
490 }
491
492 if (is_mac) {
493 deps += [
494 "//breakpad:crash_inspector",
495 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44496 "//third_party/apple_sample_code",
497 "//third_party/molokocacao",
498 ]
dpranke43760592014-11-08 02:59:57499 deps -= [
brettw011138d2015-10-21 03:05:38500 # Mojo in GN contains some things which are never compiled in GYP on Mac,
501 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10502 "//mojo",
dprankecf8465db72014-11-10 23:51:22503 ]
dprankefd1813272015-04-13 23:56:00504 }
505
506 if (is_win) {
507 deps += [
508 "//base:pe_image_test",
grt734e87b2015-07-06 19:36:43509 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00510 "//chrome_elf:chrome_elf_unittests",
511 "//chrome_elf:dll_hash_main",
brettw70b359a2015-10-14 23:43:23512 "//cloud_print/service/win:cloud_print_service",
513 "//cloud_print:cloud_print_unittests",
sdefresne8ba0b88c2015-09-18 10:33:13514 "//components/crash/content/tools:crash_service",
dprankefd1813272015-04-13 23:56:00515 "//components/wifi:wifi_test",
516 "//net:quic_client",
517 "//net:quic_server",
518 "//sandbox/win:pocdll",
519 "//sandbox/win:sandbox_poc",
520 "//sandbox/win:sbox_integration_tests",
521 "//sandbox/win:sbox_unittests",
522 "//sandbox/win:sbox_validation_tests",
523 "//testing/gtest:gtest_main",
524 "//third_party/codesighs:msmap2tsv",
525 "//third_party/pdfium/samples:pdfium_diff",
526 "//ui/metro_viewer",
527 ]
dprankee2ef3822015-02-24 21:42:18528 deps -= [
529 "//crypto:crypto_unittests", # TODO(GYP)
530 "//net:net_unittests", # TODO(GYP)
531 ]
sherouk53f0f1a2015-08-03 15:59:35532 } else if (!is_android && !is_ios) {
pkotwiczba3c2482015-10-13 21:12:28533 deps += [
534 "//breakpad:symupload",
535 "//media/cast:cast_unittests",
536 ]
mohsenf837da7c2014-12-09 19:01:34537 }
[email protected]f0e7ff882013-12-26 21:23:09538}
brettw533c50422015-02-26 17:49:16539
dpranked62d8512015-03-02 03:06:03540group("gn_only") {
dprankedb5527d72015-03-08 04:22:47541 testonly = true
542
dpranke2a294622015-08-07 05:23:01543 deps = []
544
sherouk53f0f1a2015-08-03 15:59:35545 if (!is_ios) {
dpranke2a294622015-08-07 05:23:01546 deps += [ "//mandoline:all" ]
sherouk53f0f1a2015-08-03 15:59:35547 }
isherman0f89b43eb2015-04-11 00:02:45548
549 if (!is_android && !is_ios) {
550 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
551 }
552
dprankedb5527d72015-03-08 04:22:47553 if (is_linux && !is_chromeos) {
554 # TODO(GYP): Figure out if any of these should be in gn_all
555 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45556 deps += [
dprankedb5527d72015-03-08 04:22:47557 ":gn_mojo_targets",
dtrainor4ae32722015-09-26 00:14:12558 "//blimp:blimp_tests",
dprankedb5527d72015-03-08 04:22:47559 "//chrome/browser/resources:extension_resource_demo",
560 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47561 "//chrome/test:load_library_perf_tests",
562 "//chrome/tools/convert_dict",
563 "//components/constrained_window:unit_tests",
564 "//components/enhanced_bookmarks:test_support",
dprankedb5527d72015-03-08 04:22:47565 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45566 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47567 "//components/rappor:unit_tests",
568 "//components/sessions:unit_tests",
569 "//media/blink:media_blink_unittests",
dprankedb5527d72015-03-08 04:22:47570 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47571 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
572 "//storage/browser:dump_file_system",
573 "//third_party/angle:libANGLE",
574 "//third_party/angle:libEGL",
575 "//third_party/angle:libGLESv2",
576 "//third_party/cld_2:cld_2_dynamic_data_tool",
577 "//third_party/leveldatabase:leveldb_arena_test",
578 "//third_party/leveldatabase:leveldb_bloom_test",
579 "//third_party/leveldatabase:leveldb_db_test",
580 "//third_party/leveldatabase:leveldb_crc32c_test",
581 "//third_party/leveldatabase:leveldb_cache_test",
582 "//third_party/leveldatabase:leveldb_env_test",
583 "//third_party/leveldatabase:leveldb_write_batch_test",
584 "//third_party/leveldatabase:leveldb_filter_block_test",
585 "//third_party/leveldatabase:leveldb_version_edit_test",
586 "//third_party/leveldatabase:leveldb_db_bench",
587 "//third_party/leveldatabase:leveldb_log_test",
588 "//third_party/leveldatabase:leveldb_corruption_test",
589 "//third_party/leveldatabase:leveldb_table_test",
590 "//third_party/leveldatabase:leveldb_skiplist_test",
591 "//third_party/leveldatabase:leveldb_filename_test",
592 "//third_party/leveldatabase:leveldb_dbformat_test",
thestig93786e62015-08-05 04:03:29593 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47594 "//third_party/libjpeg_turbo:simd",
dprankedb5527d72015-03-08 04:22:47595 "//third_party/libsrtp:replay_driver",
596 "//third_party/libsrtp:roc_driver",
597 "//third_party/libsrtp:rtpw",
598 "//third_party/libsrtp:rdbx_driver",
599 "//third_party/libsrtp:srtp_driver",
600 "//third_party/libsrtp:srtp_driver",
601 "//third_party/libsrtp:srtp_test_kernel_driver",
602 "//third_party/libsrtp:srtp_test_cipher_driver",
603 "//third_party/libsrtp:srtp_test_datatypes_driver",
604 "//third_party/libsrtp:srtp_test_aes_calc",
605 "//third_party/libsrtp:srtp_test_env",
606 "//third_party/libsrtp:srtp_test_rand_gen",
607 "//third_party/libsrtp:srtp_test_sha1_driver",
608 "//third_party/libsrtp:srtp_test_stat_driver",
609 "//third_party/opus:opus_compare",
610 "//third_party/opus:opus_demo",
611 "//third_party/opus:test_opus_decode",
612 "//third_party/opus:test_opus_encode",
613 "//third_party/opus:test_opus_api",
614 "//third_party/opus:test_opus_padding",
615 "//third_party/webrtc/system_wrappers:field_trial_default",
616 "//third_party/webrtc/system_wrappers:metrics_default",
617 "//ui/display/types",
618 "//ui/shell_dialogs:shell_dialogs_unittests",
619 "//ui/views/examples:views_examples_exe",
dprankedb5527d72015-03-08 04:22:47620 ]
dprankeb0713542015-07-31 21:07:21621
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16622 if (target_cpu == "x86" || target_cpu == "x64") {
mcgrathr916aafa2015-09-15 00:06:53623 deps += [
624 "//third_party/libjpeg_turbo:simd_asm",
625 "//native_client/src/trusted/platform_qualify:vcpuid",
626 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16627 }
dprankedb5527d72015-03-08 04:22:47628 if (enable_nacl) {
629 deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ]
630 }
631 if (use_ozone) {
632 deps += [ "//ui/ozone/demo" ]
633 }
634 if (is_android) {
635 deps += [ "//build/android/gyp/test:hello_world" ]
636 }
dpranke807f602b2015-03-17 23:20:56637
638 if (is_linux && current_toolchain == host_toolchain) {
639 deps += [ "//v8:d8" ]
640 }
dprankedb5527d72015-03-08 04:22:47641 }
dprankeb0713542015-07-31 21:07:21642
nyquistb5f050b2015-09-10 05:10:35643 if (is_android) {
nyquist7af11b72015-09-10 20:18:14644 deps += [ "//blimp" ]
nyquistb5f050b2015-09-10 05:10:35645 }
646
dprankeb0713542015-07-31 21:07:21647 if (is_mac) {
648 deps -= [ "//mandoline:all" ] # TODO(GYP)
649 }
aizatskyfc46a9f2015-10-09 21:20:08650
651 if (use_libfuzzer) {
652 deps += [ "//testing/libfuzzer:libfuzzer_main" ]
653 }
dprankedb5527d72015-03-08 04:22:47654}
655
656group("gn_mojo_targets") {
657 testonly = true
658 if (is_linux && !is_chromeos) {
659 # TODO(GYP): Figure out if any of these should be in gn_all
660 # and figure out how cross-platform they are
661 deps = [
dprankedb5527d72015-03-08 04:22:47662 "//ipc/mojo:ipc_mojo_perftests",
dprankedb5527d72015-03-08 04:22:47663 "//media/mojo/services:cdm_service",
664 "//media/mojo:tests",
msw1bb9c6c2015-05-06 21:35:44665 "//mojo:tests",
pkotwicz8b9d18c2015-10-05 01:59:33666
jam76bcf0c2015-10-02 21:01:28667 # TODO(use-new-edk):
668 #"//mojo/edk/js/test:js_integration_tests",
669 #"//mojo/edk/js/tests:js_to_cpp_bindings_python",
dprankedb5527d72015-03-08 04:22:47670 "//third_party/mojo/src/mojo/edk/js/test:js_integration_tests",
dprankedb5527d72015-03-08 04:22:47671 ]
dprankedb5527d72015-03-08 04:22:47672 }
673}
674
675group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03676 deps = [
dprankeb6128d02015-05-01 16:40:30677 "//build/config/sanitizers:options_sources",
678
dprankedb5527d72015-03-08 04:22:47679 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
680 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dprankeb6128d02015-05-01 16:40:30681
682 "//ui/resources:repack_ui_test_mac_locale_pack",
dpranked62d8512015-03-02 03:06:03683 ]
dpranked2fb5222015-09-10 22:39:05684
685 if (!is_ios) {
686 deps += [
687 "//v8:v8_snapshot",
688 "//v8:postmortem-metadata",
689 ]
690 }
dpranked62d8512015-03-02 03:06:03691}
692
tfarinacb2638b2015-05-12 03:24:15693if (!is_ios) {
694 # This group includes all of the targets needed to build and test Blink,
695 # including running the layout tests (see below).
696 group("blink_tests") {
697 testonly = true
698
699 deps = [
700 "//third_party/WebKit/public:all_blink",
701 ]
702
703 # NOTE: The following deps are needed to run the layout tests
704 # (run-webkit-tests) but there is no GN target for the layout tests,
705 # so we need to specify the dependencies here instead.
706 if (is_android) {
707 deps += [
pkotwicza4d233b22015-11-02 18:20:38708 "//breakpad:breakpad_unittests_deps",
tfarinacb2638b2015-05-12 03:24:15709 "//breakpad:dump_syms($host_toolchain)",
pkotwicza4d233b22015-11-02 18:20:38710 "//breakpad:microdump_stackwalk($host_toolchain)",
711 "//breakpad:minidump_dump($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15712 "//breakpad:minidump_stackwalk($host_toolchain)",
pkotwicza4d233b22015-11-02 18:20:38713 "//breakpad:symupload($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15714 "//content/shell/android:content_shell_apk",
ojan94989c72015-07-17 21:56:42715 "//tools/imagediff($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15716 ]
717 } else {
ojan94989c72015-07-17 21:56:42718 deps += [
719 "//content/shell:content_shell",
720 "//tools/imagediff",
721 ]
tfarinacb2638b2015-05-12 03:24:15722 }
723
724 if (is_win) {
725 deps += [
jochen73e711c2015-06-03 10:01:46726 "//components/test_runner:layout_test_helper",
tfarina795e01a2015-05-15 19:29:57727 "//content/shell:crash_service",
tfarinacb2638b2015-05-12 03:24:15728 ]
729 }
730
731 if (!is_win && !is_android) {
Gordana.Cmiljanovicf243e9a2015-05-26 22:14:47732 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15733 }
734
735 if (is_mac) {
736 deps += [
737 "//breakpad:dump_syms($host_toolchain)",
jochen73e711c2015-06-03 10:01:46738 "//components/test_runner:layout_test_helper",
tfarinacb2638b2015-05-12 03:24:15739 ]
740 }
741
742 if (is_linux) {
743 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
744 }
745 }
746}
747
dpranke6abd8652015-08-28 03:21:11748# Add a dummy target for compatibility w/ GYP
749group("chromium_swarm_tests") {
750}
751
dpranke2302dfa2015-09-29 02:21:52752group("chromium_builder_perf") {
753 testonly = true
754
755 # TODO(GYP): Make this target work on the mac.
756 if (!is_ios && !is_android && !is_chromecast && !is_mac) {
757 deps = [
758 "//cc:cc_perftests",
759 "//chrome",
760 "//chrome/test:load_library_perf_tests",
761 "//chrome/test:sync_performance_tests",
762 "//gpu:gpu_perftests",
763 "//media:media_perftests",
764 "//media/midi:midi_unittests",
765 "//tools/telemetry:bitmaptools",
766 ]
767
768 if (!is_chromeos) {
769 deps += [ "//chrome/test:performance_browser_tests" ]
770 }
771 if (is_linux && !is_chromeos) {
772 deps += [ "//chrome:linux_symbols" ]
773
774 if (!is_chromeos) {
775 deps += [ "//tools/perf/clear_system_cache" ]
776 }
777 }
778
779 if (is_win) {
780 deps += [
781 "//content/shell:crash_service",
782 # "//gpu:angle_perftests", TODO(GYP): crbug.com/537008
783 ]
784
785 if (target_cpu == "x86") {
786 deps += [
787 # "//content/shell:crash_service_win64", TODO(GYP): crbug.com/537009
788 ]
789 }
790 } else {
dprankeec10b3932015-10-02 17:58:23791 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52792 }
793 }
794}