blob: e460d21a1e94f058dae1b839ae1090c7c37614c2 [file] [log] [blame]
[email protected]f0e7ff882013-12-26 21:23:091# Copyright (c) 2013 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5# This is the root build file for GN. GN will start processing by loading this
6# file, and recursively load all dependencies until all dependencies are either
7# resolved or known not to exist (which will cause the build to fail). So if
8# you add a new build file, there must be some path of dependencies from this
9# file to your new one or GN won't know about it.
10
dprankefd1813272015-04-13 23:56:0011import("//build/config/crypto.gni")
rockot2f1326e2015-02-23 23:53:5112import("//build/config/features.gni")
aizatskyfc46a9f2015-10-09 21:20:0813import("//build/config/sanitizers/sanitizers.gni")
[email protected]378b4f02014-06-10 15:58:4514import("//build/config/ui.gni")
dpranked4da5ab42015-10-13 06:20:3315import("//build_overrides/v8.gni")
mostynb2196a462015-08-20 17:22:1016import("//media/media_options.gni")
dprankee2ef3822015-02-24 21:42:1817
cjhopmanca675d3e2014-10-24 03:50:4518if (is_android) {
19 import("//build/config/android/config.gni")
20}
[email protected]378b4f02014-06-10 15:58:4521
brettwb84b29472014-10-22 22:58:4522declare_args() {
23 # A list of extra dependencies to add to the root target. This allows a
24 # checkout to add additional targets without explicitly changing any checked-
25 # in files.
26 root_extra_deps = []
27}
28
dprankeb6128d02015-05-01 16:40:3029# This file defines the following four main targets:
dpranked62d8512015-03-02 03:06:0330#
dprankeddc174902015-04-29 01:38:3531# "both_gn_and_gyp" should list every root target (target that nothing else
32# depends on) built by GN that is also built in the GYP build.
dpranked62d8512015-03-02 03:06:0333#
dprankeddc174902015-04-29 01:38:3534# "gn_all" should (transitively) cause everything to be built; if you run
35# 'ninja gn_all' and then 'ninja all', the second build should do no work.
36#
37# "gn_only" should list every root target that is *not* intended to be built
38# in a GYP build. Because GN has different rules for deciding what an 'all'
39# build is, this may end up including targets that are actually defined in a
40# GYP build but not dependencies of GYP's "all" (and so not actually built).
41#
dprankeb6128d02015-05-01 16:40:3042# "gn_visibility": targets that are normally not visible to top-level targets,
43# but are built anyway by "all". Since we don't want any such targets, we
44# have this placeholder to make sure hidden targets that aren't otherwise
45# depended on yet are accounted for.
46#
dprankeddc174902015-04-29 01:38:3547# TODO(GYP): crbug.com/481694. Make sure that the above is true and there are
48# scripts run on the bots that enforce this. Once the GYP migration is over,
49# we can collapse all of these targets as desired.
dprankeff30e3d2015-02-24 06:52:3950
dprankee2ef3822015-02-24 21:42:1851group("gn_all") {
52 testonly = true
53
54 deps = [
dprankeddc174902015-04-29 01:38:3555 ":both_gn_and_gyp",
56 ":gn_only",
dprankeb6128d02015-05-01 16:40:3057 ":gn_visibility",
dprankeddc174902015-04-29 01:38:3558 ]
59}
60
61# The "both_gn_and_gyp" target should reflect every target that is built
62# in both the GN and GYP builds, and ideally it should match the
63# "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line.
64#
65# TODO(GYP): Add build steps that check and enforce this on the bots.
66group("both_gn_and_gyp") {
67 testonly = true
dprankeddc174902015-04-29 01:38:3568 deps = [
dprankee2ef3822015-02-24 21:42:1869 "//base:base_unittests",
brettwa874dccb2015-08-28 23:59:1870 "//chrome/installer",
sheroukdc35ba272015-09-22 14:09:3771 "//components:components_unittests",
sheroukce1c7d72015-08-24 15:21:5972 "//net:net_unittests",
sherouk2866d662015-08-24 16:29:4473 "//skia:skia_unittests",
brettwa874dccb2015-08-28 23:59:1874 "//sql:sql_unittests",
sherouk3eee4a82015-09-01 10:42:3375 "//sync:sync_unit_tests",
hbose409ed42015-10-13 16:27:4076 "//third_party/openh264/tests:openh264_unittests",
sherouk4fb74d42015-08-24 15:58:4177 "//ui/base:ui_base_unittests",
sherouk84a45ff2015-09-01 13:31:3978 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:4179 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:1880 ]
dpranke2a294622015-08-07 05:23:0181
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 -= [
dprankee2ef3822015-02-24 21:42:18279 "//chrome/test:unit_tests", # TODO(GYP)
rockot9c67e5f2015-03-12 20:01:21280 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18281 "//url:url_unittests",
[email protected]26046b52014-07-16 00:11:03282 ]
283
pkotwicz061c5a42015-09-30 02:16:54284 if (!is_chromecast) {
285 deps += [
michaelbai6da58b3a2015-10-19 21:35:57286 "//android_webview:system_webview_apk",
pkotwicz061c5a42015-09-30 02:16:54287 "//chrome/android:chrome_public_apk",
288 "//chrome/android:chrome_public_test_apk",
289 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
pkotwicz0a2255e2015-10-06 16:29:05290 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54291 ]
292 }
293
cjhopmanca675d3e2014-10-24 03:50:45294 if (has_chrome_android_internal) {
dprankee2ef3822015-02-24 21:42:18295 deps += [ "//clank" ] # TODO(GYP) ??
cjhopmanca675d3e2014-10-24 03:50:45296 }
dprankedb5527d72015-03-08 04:22:47297 }
298
dprankefd1813272015-04-13 23:56:00299 if (is_linux) { # TODO(GYP): || is_android || is_bsd?
300 deps += [
301 "//breakpad:core-2-minidump",
302 "//breakpad:minidump-2-core",
303 ]
304 }
305
dpranke6293d252015-04-14 19:12:00306 if (is_chromeos) {
307 deps += [
308 "//chromeos:chromeos_unittests",
309 "//ui/chromeos:ui_chromeos_unittests",
310 ]
311 }
312
dprankefd1813272015-04-13 23:56:00313 if (is_chromeos || is_mac || is_win) {
314 deps += [
315 "//rlz:rlz_id",
316 "//rlz:rlz_lib",
317 "//rlz:rlz_unittests",
318 ]
319 }
320
dprankedb5527d72015-03-08 04:22:47321 if (is_linux) {
322 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06323 deps += [
dprankedb5527d72015-03-08 04:22:47324 "//breakpad:breakpad_unittests",
dprankedb5527d72015-03-08 04:22:47325 "//breakpad:generate_test_dump",
dprankedb5527d72015-03-08 04:22:47326 "//dbus:dbus_test_server",
dprankee2ef3822015-02-24 21:42:18327 "//dbus:dbus_unittests",
dprankedb5527d72015-03-08 04:22:47328 "//net:disk_cache_memory_test",
329 "//net:flip_in_mem_edsm_server",
330 "//net:flip_in_mem_edsm_server_unittests",
331 "//net:quic_client",
332 "//net:quic_server",
333 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18334 "//sandbox/linux:sandbox_linux_unittests",
dprankedb5527d72015-03-08 04:22:47335 "//sandbox/linux:sandbox_linux_jni_unittests",
hiroshigee6d374c2015-02-24 07:54:06336 ]
dnicoara8c6aa8e2015-03-11 23:20:32337
338 if (is_chromeos || use_ash) {
339 deps += [ "//components/session_manager/core" ]
340 }
dprankedb5527d72015-03-08 04:22:47341 }
342
sherouke1859f92015-08-05 10:19:10343 if (is_ios || is_win || (is_linux && !is_chromeos)) {
344 deps += [
345 "//base:base_i18n_perftests",
346 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58347 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10348 ]
349 }
350
dprankefd1813272015-04-13 23:56:00351 if (is_win || (is_linux && !is_chromeos)) {
352 # TODO(GYP): Figure out which of these should (and can) build
353 # for android/chromeos/mac/ios.
tfarina9e7cf702015-02-23 21:13:44354 deps += [
dprankedb5527d72015-03-08 04:22:47355 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47356 "//base:build_utf8_validator_tables",
dprankedb5527d72015-03-08 04:22:47357 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00358 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47359 "//chrome/test:load_library_perf_tests",
dpranke76f48222015-04-01 00:00:00360 "//chrome/test:performance_browser_tests",
dprankedb5527d72015-03-08 04:22:47361 "//chrome/test:sync_performance_tests",
362 "//chrome/test/chromedriver:chromedriver",
363 "//chrome/test/chromedriver:chromedriver_tests",
364 "//chrome/tools/profile_reset:jtl_compiler",
365 "//components:components_perftests",
dprankedb5527d72015-03-08 04:22:47366 "//content/test:content_gl_tests",
367 "//content/test:content_gl_benchmark",
368 "//courgette:courgette",
369 "//courgette:courgette_fuzz",
370 "//courgette:courgette_minimal_tool",
371 "//courgette:courgette_unittests",
372 "//device:device_unittests",
373 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47374 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47375 "//google_apis/gcm:mcs_probe",
dprankedb5527d72015-03-08 04:22:47376 "//gpu:gpu_perftests",
dprankefd1813272015-04-13 23:56:00377 "//gpu:gl_tests",
dprankedb5527d72015-03-08 04:22:47378 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47379 "//media:media_perftests",
dprankedb5527d72015-03-08 04:22:47380 "//media/cast:generate_barcode_video",
381 "//media/cast:generate_timecode_audio",
dprankedb5527d72015-03-08 04:22:47382 "//net:crash_cache",
383 "//net:crl_set_dump",
384 "//net:dns_fuzz_stub",
dprankefd1813272015-04-13 23:56:00385 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47386 "//net:gdig",
387 "//net:get_server_time",
dprankedb5527d72015-03-08 04:22:47388 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
dprankefd1813272015-04-13 23:56:00389 "//net:run_testserver",
dprankedb5527d72015-03-08 04:22:47390 "//net:stress_cache",
391 "//net:tld_cleanup",
dprankec09ccaa2015-03-27 22:00:38392 "//ppapi:pepper_hash_for_uma",
dprankefd1813272015-04-13 23:56:00393 "//ppapi:ppapi_perftests",
dprankedb5527d72015-03-08 04:22:47394 "//sync:run_sync_testserver",
cwallez4c57af32015-09-03 14:54:49395 "//third_party/angle/src/tests:angle_end2end_tests",
396 "//third_party/angle/src/tests:angle_unittests",
dprankedb5527d72015-03-08 04:22:47397 "//third_party/codesighs:maptsvdifftool",
dprankedb5527d72015-03-08 04:22:47398 "//third_party/leveldatabase:env_chromium_unittests",
399 "//third_party/libaddressinput:libaddressinput_unittests",
dprankefd1813272015-04-13 23:56:00400 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47401 "//ui/compositor:compositor_unittests",
402 ]
403
404 if (enable_extensions) {
405 deps += [ "//extensions/shell:app_shell" ]
406 }
407
408 if (enable_nacl) {
dprankefd1813272015-04-13 23:56:00409 deps += [ "//components/nacl:nacl_loader_unittests" ]
dprankedb5527d72015-03-08 04:22:47410 }
411
mostynb2196a462015-08-20 17:22:10412 if (media_use_ffmpeg) {
413 deps += [ "//media:ffmpeg_regression_tests" ]
414 }
415
dprankedb5527d72015-03-08 04:22:47416 if (use_ash) {
417 deps += [
benf97b2572015-09-25 23:12:53418 "//ash:ash_shell_with_content",
dprankedb5527d72015-03-08 04:22:47419 "//ash:ash_unittests",
420 ]
421 }
422
423 if (use_aura) {
424 deps += [
425 "//ui/aura:aura_unittests",
426 "//ui/aura:bench",
427 "//ui/aura:demo",
428 ]
429 }
dprankefd1813272015-04-13 23:56:00430 }
431
432 if (is_linux && !is_chromeos) {
433 deps += [
434 # TODO(GYP): Figure out which of these should (and can) build
435 # under which other conditions.
436 "//build/sanitizers:copy_llvm_symbolizer",
437 "//chrome/test:chrome_app_unittests",
438 "//cloud_print:cloud_print_unittests",
439 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00440 "//content/public/app:browser",
441 "//content/public/app:child",
442
443 # TODO(GYP): Remove this when the gles2 tests work
444 "//gpu/command_buffer/client:gles2_implementation_no_check",
445
446 "//gpu/khronos_glcts_support:khronos_glcts_test", # TODO(GYP) crbug.com/471903 to make this complete.
447 "//media/cast:cast_benchmarks",
448 "//media/cast:tap_proxy",
jam00802992015-05-20 03:37:19449 "//mojo/application/public/cpp",
dprankefd1813272015-04-13 23:56:00450 "//skia:filter_fuzz_stub",
451 "//skia:image_operations_bench",
452 "//sync/tools:sync_client",
453 "//sync/tools:sync_listen_notifications",
454 "//testing/gmock:gmock_main",
jam76bcf0c2015-10-02 21:01:28455
456 # TODO(use-new-edk):
457 #"//mojo/edk/test:mojo_public_system_perftests",
dprankefd1813272015-04-13 23:56:00458 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests",
dprankefd1813272015-04-13 23:56:00459 "//ui/keyboard:keyboard_unittests",
460 "//ui/message_center:message_center_unittests",
461 "//ui/snapshot:snapshot_unittests",
462 "//ui/views/examples:views_examples_with_content_exe",
463
dprankefd1813272015-04-13 23:56:00464 "//third_party/codesighs:nm2tsv",
465 "//third_party/sqlite:sqlite_shell",
466 ]
467
dprankeec10b3932015-10-02 17:58:23468 deps += [
469 "//breakpad:dump_syms($host_toolchain)",
470 "//breakpad:microdump_stackwalk($host_toolchain)",
471 "//breakpad:minidump_dump($host_toolchain)",
472 "//breakpad:minidump_stackwalk($host_toolchain)",
473 ]
dprankefd1813272015-04-13 23:56:00474
475 if (!is_debug && !is_component_build) {
476 deps += [ "//chrome/tools/service_discovery_sniffer" ]
477 }
478
479 if (toolkit_views) {
480 deps += [ "//ui/app_list:app_list_demo" ]
481 }
dprankedb5527d72015-03-08 04:22:47482
483 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44484 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59485 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44486 }
dprankedb5527d72015-03-08 04:22:47487 }
488 }
489
490 if (is_mac) {
491 deps += [
492 "//breakpad:crash_inspector",
493 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44494 "//third_party/apple_sample_code",
495 "//third_party/molokocacao",
496 ]
dpranke43760592014-11-08 02:59:57497 deps -= [
brettw011138d2015-10-21 03:05:38498 # Mojo in GN contains some things which are never compiled in GYP on Mac,
499 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10500 "//mojo",
dprankecf8465db72014-11-10 23:51:22501 ]
dprankefd1813272015-04-13 23:56:00502 }
503
504 if (is_win) {
505 deps += [
506 "//base:pe_image_test",
grt734e87b2015-07-06 19:36:43507 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00508 "//chrome_elf:chrome_elf_unittests",
509 "//chrome_elf:dll_hash_main",
brettw70b359a2015-10-14 23:43:23510 "//cloud_print/service/win:cloud_print_service",
511 "//cloud_print:cloud_print_unittests",
sdefresne8ba0b88c2015-09-18 10:33:13512 "//components/crash/content/tools:crash_service",
dprankefd1813272015-04-13 23:56:00513 "//components/wifi:wifi_test",
514 "//net:quic_client",
515 "//net:quic_server",
516 "//sandbox/win:pocdll",
517 "//sandbox/win:sandbox_poc",
518 "//sandbox/win:sbox_integration_tests",
519 "//sandbox/win:sbox_unittests",
520 "//sandbox/win:sbox_validation_tests",
521 "//testing/gtest:gtest_main",
522 "//third_party/codesighs:msmap2tsv",
523 "//third_party/pdfium/samples:pdfium_diff",
524 "//ui/metro_viewer",
525 ]
dprankee2ef3822015-02-24 21:42:18526 deps -= [
527 "//crypto:crypto_unittests", # TODO(GYP)
528 "//net:net_unittests", # TODO(GYP)
529 ]
sherouk53f0f1a2015-08-03 15:59:35530 } else if (!is_android && !is_ios) {
pkotwiczba3c2482015-10-13 21:12:28531 deps += [
532 "//breakpad:symupload",
533 "//media/cast:cast_unittests",
534 ]
mohsenf837da7c2014-12-09 19:01:34535 }
[email protected]f0e7ff882013-12-26 21:23:09536}
brettw533c50422015-02-26 17:49:16537
dpranked62d8512015-03-02 03:06:03538group("gn_only") {
dprankedb5527d72015-03-08 04:22:47539 testonly = true
540
dpranke2a294622015-08-07 05:23:01541 deps = []
542
sherouk53f0f1a2015-08-03 15:59:35543 if (!is_ios) {
dpranke2a294622015-08-07 05:23:01544 deps += [ "//mandoline:all" ]
sherouk53f0f1a2015-08-03 15:59:35545 }
isherman0f89b43eb2015-04-11 00:02:45546
547 if (!is_android && !is_ios) {
548 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
549 }
550
dprankedb5527d72015-03-08 04:22:47551 if (is_linux && !is_chromeos) {
552 # TODO(GYP): Figure out if any of these should be in gn_all
553 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45554 deps += [
dprankedb5527d72015-03-08 04:22:47555 ":gn_mojo_targets",
dtrainor4ae32722015-09-26 00:14:12556 "//blimp:blimp_tests",
dprankedb5527d72015-03-08 04:22:47557 "//chrome/browser/resources:extension_resource_demo",
558 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47559 "//chrome/test:load_library_perf_tests",
560 "//chrome/tools/convert_dict",
561 "//components/constrained_window:unit_tests",
562 "//components/enhanced_bookmarks:test_support",
dprankedb5527d72015-03-08 04:22:47563 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45564 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47565 "//components/rappor:unit_tests",
566 "//components/sessions:unit_tests",
567 "//media/blink:media_blink_unittests",
dprankedb5527d72015-03-08 04:22:47568 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47569 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
570 "//storage/browser:dump_file_system",
571 "//third_party/angle:libANGLE",
572 "//third_party/angle:libEGL",
573 "//third_party/angle:libGLESv2",
574 "//third_party/cld_2:cld_2_dynamic_data_tool",
575 "//third_party/leveldatabase:leveldb_arena_test",
576 "//third_party/leveldatabase:leveldb_bloom_test",
577 "//third_party/leveldatabase:leveldb_db_test",
578 "//third_party/leveldatabase:leveldb_crc32c_test",
579 "//third_party/leveldatabase:leveldb_cache_test",
580 "//third_party/leveldatabase:leveldb_env_test",
581 "//third_party/leveldatabase:leveldb_write_batch_test",
582 "//third_party/leveldatabase:leveldb_filter_block_test",
583 "//third_party/leveldatabase:leveldb_version_edit_test",
584 "//third_party/leveldatabase:leveldb_db_bench",
585 "//third_party/leveldatabase:leveldb_log_test",
586 "//third_party/leveldatabase:leveldb_corruption_test",
587 "//third_party/leveldatabase:leveldb_table_test",
588 "//third_party/leveldatabase:leveldb_skiplist_test",
589 "//third_party/leveldatabase:leveldb_filename_test",
590 "//third_party/leveldatabase:leveldb_dbformat_test",
thestig93786e62015-08-05 04:03:29591 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47592 "//third_party/libjpeg_turbo:simd",
dprankedb5527d72015-03-08 04:22:47593 "//third_party/libsrtp:replay_driver",
594 "//third_party/libsrtp:roc_driver",
595 "//third_party/libsrtp:rtpw",
596 "//third_party/libsrtp:rdbx_driver",
597 "//third_party/libsrtp:srtp_driver",
598 "//third_party/libsrtp:srtp_driver",
599 "//third_party/libsrtp:srtp_test_kernel_driver",
600 "//third_party/libsrtp:srtp_test_cipher_driver",
601 "//third_party/libsrtp:srtp_test_datatypes_driver",
602 "//third_party/libsrtp:srtp_test_aes_calc",
603 "//third_party/libsrtp:srtp_test_env",
604 "//third_party/libsrtp:srtp_test_rand_gen",
605 "//third_party/libsrtp:srtp_test_sha1_driver",
606 "//third_party/libsrtp:srtp_test_stat_driver",
607 "//third_party/opus:opus_compare",
608 "//third_party/opus:opus_demo",
609 "//third_party/opus:test_opus_decode",
610 "//third_party/opus:test_opus_encode",
611 "//third_party/opus:test_opus_api",
612 "//third_party/opus:test_opus_padding",
613 "//third_party/webrtc/system_wrappers:field_trial_default",
614 "//third_party/webrtc/system_wrappers:metrics_default",
615 "//ui/display/types",
616 "//ui/shell_dialogs:shell_dialogs_unittests",
617 "//ui/views/examples:views_examples_exe",
dprankedb5527d72015-03-08 04:22:47618 ]
dprankeb0713542015-07-31 21:07:21619
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16620 if (target_cpu == "x86" || target_cpu == "x64") {
mcgrathr916aafa2015-09-15 00:06:53621 deps += [
622 "//third_party/libjpeg_turbo:simd_asm",
623 "//native_client/src/trusted/platform_qualify:vcpuid",
624 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16625 }
dprankedb5527d72015-03-08 04:22:47626 if (enable_nacl) {
627 deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ]
628 }
629 if (use_ozone) {
630 deps += [ "//ui/ozone/demo" ]
631 }
632 if (is_android) {
633 deps += [ "//build/android/gyp/test:hello_world" ]
634 }
dpranke807f602b2015-03-17 23:20:56635
636 if (is_linux && current_toolchain == host_toolchain) {
637 deps += [ "//v8:d8" ]
638 }
dprankedb5527d72015-03-08 04:22:47639 }
dprankeb0713542015-07-31 21:07:21640
nyquistb5f050b2015-09-10 05:10:35641 if (is_android) {
nyquist7af11b72015-09-10 20:18:14642 deps += [ "//blimp" ]
nyquistb5f050b2015-09-10 05:10:35643 }
644
dprankeb0713542015-07-31 21:07:21645 if (is_mac) {
646 deps -= [ "//mandoline:all" ] # TODO(GYP)
647 }
aizatskyfc46a9f2015-10-09 21:20:08648
649 if (use_libfuzzer) {
650 deps += [ "//testing/libfuzzer:libfuzzer_main" ]
651 }
dprankedb5527d72015-03-08 04:22:47652}
653
654group("gn_mojo_targets") {
655 testonly = true
656 if (is_linux && !is_chromeos) {
657 # TODO(GYP): Figure out if any of these should be in gn_all
658 # and figure out how cross-platform they are
659 deps = [
dprankedb5527d72015-03-08 04:22:47660 "//ipc/mojo:ipc_mojo_perftests",
dprankedb5527d72015-03-08 04:22:47661 "//media/mojo/services:cdm_service",
662 "//media/mojo:tests",
msw1bb9c6c2015-05-06 21:35:44663 "//mojo:tests",
pkotwicz8b9d18c2015-10-05 01:59:33664
jam76bcf0c2015-10-02 21:01:28665 # TODO(use-new-edk):
666 #"//mojo/edk/js/test:js_integration_tests",
667 #"//mojo/edk/js/tests:js_to_cpp_bindings_python",
dprankedb5527d72015-03-08 04:22:47668 "//third_party/mojo/src/mojo/edk/js/test:js_integration_tests",
dprankedb5527d72015-03-08 04:22:47669 ]
dprankedb5527d72015-03-08 04:22:47670 }
671}
672
673group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03674 deps = [
dprankeb6128d02015-05-01 16:40:30675 "//build/config/sanitizers:options_sources",
676
dprankedb5527d72015-03-08 04:22:47677 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
678 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dprankeb6128d02015-05-01 16:40:30679
680 "//ui/resources:repack_ui_test_mac_locale_pack",
dpranked62d8512015-03-02 03:06:03681 ]
dpranked2fb5222015-09-10 22:39:05682
683 if (!is_ios) {
684 deps += [
685 "//v8:v8_snapshot",
686 "//v8:postmortem-metadata",
687 ]
688 }
dpranked62d8512015-03-02 03:06:03689}
690
tfarinacb2638b2015-05-12 03:24:15691if (!is_ios) {
692 # This group includes all of the targets needed to build and test Blink,
693 # including running the layout tests (see below).
694 group("blink_tests") {
695 testonly = true
696
697 deps = [
698 "//third_party/WebKit/public:all_blink",
699 ]
700
701 # NOTE: The following deps are needed to run the layout tests
702 # (run-webkit-tests) but there is no GN target for the layout tests,
703 # so we need to specify the dependencies here instead.
704 if (is_android) {
705 deps += [
706 "//breakpad:dump_syms($host_toolchain)",
707 "//breakpad:minidump_stackwalk($host_toolchain)",
708 "//content/shell/android:content_shell_apk",
ojan94989c72015-07-17 21:56:42709 "//tools/imagediff($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15710 ]
711 } else {
ojan94989c72015-07-17 21:56:42712 deps += [
713 "//content/shell:content_shell",
714 "//tools/imagediff",
715 ]
tfarinacb2638b2015-05-12 03:24:15716 }
717
718 if (is_win) {
719 deps += [
jochen73e711c2015-06-03 10:01:46720 "//components/test_runner:layout_test_helper",
tfarina795e01a2015-05-15 19:29:57721 "//content/shell:crash_service",
tfarinacb2638b2015-05-12 03:24:15722 ]
723 }
724
725 if (!is_win && !is_android) {
Gordana.Cmiljanovicf243e9a2015-05-26 22:14:47726 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15727 }
728
729 if (is_mac) {
730 deps += [
731 "//breakpad:dump_syms($host_toolchain)",
jochen73e711c2015-06-03 10:01:46732 "//components/test_runner:layout_test_helper",
tfarinacb2638b2015-05-12 03:24:15733 ]
734 }
735
736 if (is_linux) {
737 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
738 }
739 }
740}
741
dpranke6abd8652015-08-28 03:21:11742# Add a dummy target for compatibility w/ GYP
743group("chromium_swarm_tests") {
744}
745
dpranke2302dfa2015-09-29 02:21:52746group("chromium_builder_perf") {
747 testonly = true
748
749 # TODO(GYP): Make this target work on the mac.
750 if (!is_ios && !is_android && !is_chromecast && !is_mac) {
751 deps = [
752 "//cc:cc_perftests",
753 "//chrome",
754 "//chrome/test:load_library_perf_tests",
755 "//chrome/test:sync_performance_tests",
756 "//gpu:gpu_perftests",
757 "//media:media_perftests",
758 "//media/midi:midi_unittests",
759 "//tools/telemetry:bitmaptools",
760 ]
761
762 if (!is_chromeos) {
763 deps += [ "//chrome/test:performance_browser_tests" ]
764 }
765 if (is_linux && !is_chromeos) {
766 deps += [ "//chrome:linux_symbols" ]
767
768 if (!is_chromeos) {
769 deps += [ "//tools/perf/clear_system_cache" ]
770 }
771 }
772
773 if (is_win) {
774 deps += [
775 "//content/shell:crash_service",
776 # "//gpu:angle_perftests", TODO(GYP): crbug.com/537008
777 ]
778
779 if (target_cpu == "x86") {
780 deps += [
781 # "//content/shell:crash_service_win64", TODO(GYP): crbug.com/537009
782 ]
783 }
784 } else {
dprankeec10b3932015-10-02 17:58:23785 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52786 }
787 }
788}