blob: c019bc250917ff3e63a6b37677683959b0ef5d16 [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",
pkotwicze2dae8b2015-11-03 20:12:55243 "//base:base_junit_tests",
cjhopman3d85c6d2014-11-18 03:39:38244 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02245 "//build/android/rezip",
pkotwicze2dae8b2015-11-03 20:12:55246 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
247 "//components/policy/android:components_policy_junit_tests",
248 "//content/public/android:content_junit_tests",
249 "//net/android:net_junit_tests",
250 "//testing/android/junit:junit_unittests",
agrieve40ba6862015-07-15 02:09:05251 "//third_party/errorprone:chromium_errorprone",
pkotwicze38594d2015-09-25 00:05:10252 "//tools/android:android_tools",
pkotwicz8b9d18c2015-10-05 01:59:33253 "//tools/android/heap_profiler:heap_profiler_unittests",
dgn28050da2015-10-19 10:16:43254 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
dprankee2ef3822015-02-24 21:42:18255 "//tools/imagediff($host_toolchain)",
256
257 # TODO(GYP): Remove these when the components_unittests work.
258 "//components/history/core/test:test",
259 "//components/policy:policy_component_test_support",
260 "//components/policy:test_support",
261 "//components/rappor:test_support",
262 "//components/signin/core/browser:test_support",
263 "//components/sync_driver:test_support",
264 "//components/user_manager",
265 "//components/wallpaper",
266 "//content/shell/android:content_shell_apk",
267
268 # TODO(GYP): Are these needed, or will they be pulled in automatically?
[email protected]684b2292014-08-22 19:12:39269 "//third_party/android_tools:android_gcm_java",
270 "//third_party/android_tools:uiautomator_java",
271 "//third_party/android_tools:android_support_v13_java",
272 "//third_party/android_tools:android_support_v7_appcompat_java",
273 "//third_party/android_tools:android_support_v7_mediarouter_java",
dprankee2ef3822015-02-24 21:42:18274 "//third_party/mesa",
mikecase85e83ed2014-12-08 19:18:29275 "//third_party/mockito:mockito_java",
dprankee2ef3822015-02-24 21:42:18276 "//third_party/openmax_dl/dl",
dprankee2ef3822015-02-24 21:42:18277 "//ui/android:ui_java",
278
279 # TODO(GYP): Are these needed?
280 "//chrome/test:test_support_unit",
281 "//third_party/smhasher:murmurhash3",
282 "//ui/message_center:test_support",
283 ]
284 deps -= [
rockot9c67e5f2015-03-12 20:01:21285 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18286 "//url:url_unittests",
[email protected]26046b52014-07-16 00:11:03287 ]
288
pkotwicz061c5a42015-09-30 02:16:54289 if (!is_chromecast) {
290 deps += [
michaelbai6da58b3a2015-10-19 21:35:57291 "//android_webview:system_webview_apk",
pkotwicze2dae8b2015-11-03 20:12:55292 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54293 "//chrome/android:chrome_public_apk",
294 "//chrome/android:chrome_public_test_apk",
295 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
pkotwicz0a2255e2015-10-06 16:29:05296 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54297 ]
298 }
299
pkotwicz06a4b4b42015-10-29 23:11:11300 if (target_cpu != "x64") {
301 deps += [ "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)" ]
302 }
303
cjhopmanca675d3e2014-10-24 03:50:45304 if (has_chrome_android_internal) {
dprankee2ef3822015-02-24 21:42:18305 deps += [ "//clank" ] # TODO(GYP) ??
cjhopmanca675d3e2014-10-24 03:50:45306 }
dprankedb5527d72015-03-08 04:22:47307 }
308
pkotwicza4d233b22015-11-02 18:20:38309 if (is_linux || is_android) { # TODO(GYP): || is_bsd?
dprankefd1813272015-04-13 23:56:00310 deps += [
pkotwicza4d233b22015-11-02 18:20:38311 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00312 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38313 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00314 "//breakpad:minidump-2-core",
315 ]
316 }
317
dpranke6293d252015-04-14 19:12:00318 if (is_chromeos) {
319 deps += [
320 "//chromeos:chromeos_unittests",
321 "//ui/chromeos:ui_chromeos_unittests",
322 ]
323 }
324
dprankefd1813272015-04-13 23:56:00325 if (is_chromeos || is_mac || is_win) {
326 deps += [
327 "//rlz:rlz_id",
328 "//rlz:rlz_lib",
329 "//rlz:rlz_unittests",
330 ]
331 }
332
dprankedb5527d72015-03-08 04:22:47333 if (is_linux) {
334 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06335 deps += [
dprankedb5527d72015-03-08 04:22:47336 "//dbus:dbus_test_server",
dprankee2ef3822015-02-24 21:42:18337 "//dbus:dbus_unittests",
dprankedb5527d72015-03-08 04:22:47338 "//net:disk_cache_memory_test",
339 "//net:flip_in_mem_edsm_server",
340 "//net:flip_in_mem_edsm_server_unittests",
341 "//net:quic_client",
342 "//net:quic_server",
343 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18344 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06345 ]
dnicoara8c6aa8e2015-03-11 23:20:32346
347 if (is_chromeos || use_ash) {
348 deps += [ "//components/session_manager/core" ]
349 }
dprankedb5527d72015-03-08 04:22:47350 }
351
sherouke1859f92015-08-05 10:19:10352 if (is_ios || is_win || (is_linux && !is_chromeos)) {
353 deps += [
354 "//base:base_i18n_perftests",
355 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58356 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10357 ]
358 }
359
dprankefd1813272015-04-13 23:56:00360 if (is_win || (is_linux && !is_chromeos)) {
361 # TODO(GYP): Figure out which of these should (and can) build
362 # for android/chromeos/mac/ios.
tfarina9e7cf702015-02-23 21:13:44363 deps += [
dprankedb5527d72015-03-08 04:22:47364 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47365 "//base:build_utf8_validator_tables",
dprankedb5527d72015-03-08 04:22:47366 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00367 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47368 "//chrome/test:load_library_perf_tests",
dpranke76f48222015-04-01 00:00:00369 "//chrome/test:performance_browser_tests",
dprankedb5527d72015-03-08 04:22:47370 "//chrome/test:sync_performance_tests",
371 "//chrome/test/chromedriver:chromedriver",
372 "//chrome/test/chromedriver:chromedriver_tests",
373 "//chrome/tools/profile_reset:jtl_compiler",
374 "//components:components_perftests",
dprankedb5527d72015-03-08 04:22:47375 "//content/test:content_gl_tests",
376 "//content/test:content_gl_benchmark",
377 "//courgette:courgette",
378 "//courgette:courgette_fuzz",
379 "//courgette:courgette_minimal_tool",
380 "//courgette:courgette_unittests",
381 "//device:device_unittests",
382 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47383 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47384 "//google_apis/gcm:mcs_probe",
dprankedb5527d72015-03-08 04:22:47385 "//gpu:gpu_perftests",
dprankefd1813272015-04-13 23:56:00386 "//gpu:gl_tests",
dprankedb5527d72015-03-08 04:22:47387 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47388 "//media:media_perftests",
dprankedb5527d72015-03-08 04:22:47389 "//media/cast:generate_barcode_video",
390 "//media/cast:generate_timecode_audio",
dprankedb5527d72015-03-08 04:22:47391 "//net:crash_cache",
392 "//net:crl_set_dump",
393 "//net:dns_fuzz_stub",
dprankefd1813272015-04-13 23:56:00394 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47395 "//net:gdig",
396 "//net:get_server_time",
dprankedb5527d72015-03-08 04:22:47397 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
dprankefd1813272015-04-13 23:56:00398 "//net:run_testserver",
dprankedb5527d72015-03-08 04:22:47399 "//net:stress_cache",
400 "//net:tld_cleanup",
dprankec09ccaa2015-03-27 22:00:38401 "//ppapi:pepper_hash_for_uma",
dprankefd1813272015-04-13 23:56:00402 "//ppapi:ppapi_perftests",
dprankedb5527d72015-03-08 04:22:47403 "//sync:run_sync_testserver",
cwallez4c57af32015-09-03 14:54:49404 "//third_party/angle/src/tests:angle_end2end_tests",
405 "//third_party/angle/src/tests:angle_unittests",
dprankedb5527d72015-03-08 04:22:47406 "//third_party/codesighs:maptsvdifftool",
dprankedb5527d72015-03-08 04:22:47407 "//third_party/leveldatabase:env_chromium_unittests",
408 "//third_party/libaddressinput:libaddressinput_unittests",
dprankefd1813272015-04-13 23:56:00409 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47410 "//ui/compositor:compositor_unittests",
411 ]
412
413 if (enable_extensions) {
414 deps += [ "//extensions/shell:app_shell" ]
415 }
416
417 if (enable_nacl) {
dprankefd1813272015-04-13 23:56:00418 deps += [ "//components/nacl:nacl_loader_unittests" ]
dprankedb5527d72015-03-08 04:22:47419 }
420
mostynb2196a462015-08-20 17:22:10421 if (media_use_ffmpeg) {
422 deps += [ "//media:ffmpeg_regression_tests" ]
423 }
424
dprankedb5527d72015-03-08 04:22:47425 if (use_ash) {
426 deps += [
benf97b2572015-09-25 23:12:53427 "//ash:ash_shell_with_content",
dprankedb5527d72015-03-08 04:22:47428 "//ash:ash_unittests",
429 ]
430 }
431
432 if (use_aura) {
433 deps += [
434 "//ui/aura:aura_unittests",
435 "//ui/aura:bench",
436 "//ui/aura:demo",
437 ]
438 }
dprankefd1813272015-04-13 23:56:00439 }
440
441 if (is_linux && !is_chromeos) {
442 deps += [
443 # TODO(GYP): Figure out which of these should (and can) build
444 # under which other conditions.
445 "//build/sanitizers:copy_llvm_symbolizer",
446 "//chrome/test:chrome_app_unittests",
447 "//cloud_print:cloud_print_unittests",
448 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00449 "//content/public/app:browser",
450 "//content/public/app:child",
451
452 # TODO(GYP): Remove this when the gles2 tests work
453 "//gpu/command_buffer/client:gles2_implementation_no_check",
454
455 "//gpu/khronos_glcts_support:khronos_glcts_test", # TODO(GYP) crbug.com/471903 to make this complete.
456 "//media/cast:cast_benchmarks",
457 "//media/cast:tap_proxy",
jam00802992015-05-20 03:37:19458 "//mojo/application/public/cpp",
dprankefd1813272015-04-13 23:56:00459 "//skia:filter_fuzz_stub",
460 "//skia:image_operations_bench",
461 "//sync/tools:sync_client",
462 "//sync/tools:sync_listen_notifications",
463 "//testing/gmock:gmock_main",
jam76bcf0c2015-10-02 21:01:28464
465 # TODO(use-new-edk):
466 #"//mojo/edk/test:mojo_public_system_perftests",
dprankefd1813272015-04-13 23:56:00467 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests",
dprankefd1813272015-04-13 23:56:00468 "//ui/keyboard:keyboard_unittests",
469 "//ui/message_center:message_center_unittests",
470 "//ui/snapshot:snapshot_unittests",
471 "//ui/views/examples:views_examples_with_content_exe",
472
dprankefd1813272015-04-13 23:56:00473 "//third_party/codesighs:nm2tsv",
474 "//third_party/sqlite:sqlite_shell",
475 ]
476
dprankeec10b3932015-10-02 17:58:23477 deps += [
478 "//breakpad:dump_syms($host_toolchain)",
479 "//breakpad:microdump_stackwalk($host_toolchain)",
480 "//breakpad:minidump_dump($host_toolchain)",
481 "//breakpad:minidump_stackwalk($host_toolchain)",
482 ]
dprankefd1813272015-04-13 23:56:00483
484 if (!is_debug && !is_component_build) {
485 deps += [ "//chrome/tools/service_discovery_sniffer" ]
486 }
487
488 if (toolkit_views) {
489 deps += [ "//ui/app_list:app_list_demo" ]
490 }
dprankedb5527d72015-03-08 04:22:47491
492 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44493 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59494 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44495 }
dprankedb5527d72015-03-08 04:22:47496 }
497 }
498
499 if (is_mac) {
500 deps += [
501 "//breakpad:crash_inspector",
502 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44503 "//third_party/apple_sample_code",
504 "//third_party/molokocacao",
505 ]
dpranke43760592014-11-08 02:59:57506 deps -= [
brettw011138d2015-10-21 03:05:38507 # Mojo in GN contains some things which are never compiled in GYP on Mac,
508 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10509 "//mojo",
dprankecf8465db72014-11-10 23:51:22510 ]
dprankefd1813272015-04-13 23:56:00511 }
512
513 if (is_win) {
514 deps += [
515 "//base:pe_image_test",
grt734e87b2015-07-06 19:36:43516 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00517 "//chrome_elf:chrome_elf_unittests",
518 "//chrome_elf:dll_hash_main",
brettw70b359a2015-10-14 23:43:23519 "//cloud_print/service/win:cloud_print_service",
520 "//cloud_print:cloud_print_unittests",
sdefresne8ba0b88c2015-09-18 10:33:13521 "//components/crash/content/tools:crash_service",
dprankefd1813272015-04-13 23:56:00522 "//components/wifi:wifi_test",
523 "//net:quic_client",
524 "//net:quic_server",
525 "//sandbox/win:pocdll",
526 "//sandbox/win:sandbox_poc",
527 "//sandbox/win:sbox_integration_tests",
528 "//sandbox/win:sbox_unittests",
529 "//sandbox/win:sbox_validation_tests",
530 "//testing/gtest:gtest_main",
531 "//third_party/codesighs:msmap2tsv",
532 "//third_party/pdfium/samples:pdfium_diff",
533 "//ui/metro_viewer",
534 ]
dprankee2ef3822015-02-24 21:42:18535 deps -= [
536 "//crypto:crypto_unittests", # TODO(GYP)
537 "//net:net_unittests", # TODO(GYP)
538 ]
sherouk53f0f1a2015-08-03 15:59:35539 } else if (!is_android && !is_ios) {
pkotwiczba3c2482015-10-13 21:12:28540 deps += [
541 "//breakpad:symupload",
542 "//media/cast:cast_unittests",
543 ]
mohsenf837da7c2014-12-09 19:01:34544 }
[email protected]f0e7ff882013-12-26 21:23:09545}
brettw533c50422015-02-26 17:49:16546
dpranked62d8512015-03-02 03:06:03547group("gn_only") {
dprankedb5527d72015-03-08 04:22:47548 testonly = true
549
dpranke2a294622015-08-07 05:23:01550 deps = []
551
sherouk53f0f1a2015-08-03 15:59:35552 if (!is_ios) {
dpranke2a294622015-08-07 05:23:01553 deps += [ "//mandoline:all" ]
sherouk53f0f1a2015-08-03 15:59:35554 }
isherman0f89b43eb2015-04-11 00:02:45555
556 if (!is_android && !is_ios) {
557 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
558 }
559
sky97b65592015-11-02 20:08:25560 if (!is_component_build && (is_win || is_linux)) {
561 deps += [ "//components/mus/example:all" ]
562 }
563
dprankedb5527d72015-03-08 04:22:47564 if (is_linux && !is_chromeos) {
565 # TODO(GYP): Figure out if any of these should be in gn_all
566 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45567 deps += [
dprankedb5527d72015-03-08 04:22:47568 ":gn_mojo_targets",
dtrainor4ae32722015-09-26 00:14:12569 "//blimp:blimp_tests",
dprankedb5527d72015-03-08 04:22:47570 "//chrome/browser/resources:extension_resource_demo",
571 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47572 "//chrome/test:load_library_perf_tests",
573 "//chrome/tools/convert_dict",
574 "//components/constrained_window:unit_tests",
575 "//components/enhanced_bookmarks:test_support",
dprankedb5527d72015-03-08 04:22:47576 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45577 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47578 "//components/rappor:unit_tests",
579 "//components/sessions:unit_tests",
580 "//media/blink:media_blink_unittests",
dprankedb5527d72015-03-08 04:22:47581 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47582 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
583 "//storage/browser:dump_file_system",
584 "//third_party/angle:libANGLE",
585 "//third_party/angle:libEGL",
586 "//third_party/angle:libGLESv2",
587 "//third_party/cld_2:cld_2_dynamic_data_tool",
588 "//third_party/leveldatabase:leveldb_arena_test",
589 "//third_party/leveldatabase:leveldb_bloom_test",
590 "//third_party/leveldatabase:leveldb_db_test",
591 "//third_party/leveldatabase:leveldb_crc32c_test",
592 "//third_party/leveldatabase:leveldb_cache_test",
593 "//third_party/leveldatabase:leveldb_env_test",
594 "//third_party/leveldatabase:leveldb_write_batch_test",
595 "//third_party/leveldatabase:leveldb_filter_block_test",
596 "//third_party/leveldatabase:leveldb_version_edit_test",
597 "//third_party/leveldatabase:leveldb_db_bench",
598 "//third_party/leveldatabase:leveldb_log_test",
599 "//third_party/leveldatabase:leveldb_corruption_test",
600 "//third_party/leveldatabase:leveldb_table_test",
601 "//third_party/leveldatabase:leveldb_skiplist_test",
602 "//third_party/leveldatabase:leveldb_filename_test",
603 "//third_party/leveldatabase:leveldb_dbformat_test",
thestig93786e62015-08-05 04:03:29604 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47605 "//third_party/libjpeg_turbo:simd",
dprankedb5527d72015-03-08 04:22:47606 "//third_party/libsrtp:replay_driver",
607 "//third_party/libsrtp:roc_driver",
608 "//third_party/libsrtp:rtpw",
609 "//third_party/libsrtp:rdbx_driver",
610 "//third_party/libsrtp:srtp_driver",
611 "//third_party/libsrtp:srtp_driver",
612 "//third_party/libsrtp:srtp_test_kernel_driver",
613 "//third_party/libsrtp:srtp_test_cipher_driver",
614 "//third_party/libsrtp:srtp_test_datatypes_driver",
615 "//third_party/libsrtp:srtp_test_aes_calc",
616 "//third_party/libsrtp:srtp_test_env",
617 "//third_party/libsrtp:srtp_test_rand_gen",
618 "//third_party/libsrtp:srtp_test_sha1_driver",
619 "//third_party/libsrtp:srtp_test_stat_driver",
620 "//third_party/opus:opus_compare",
621 "//third_party/opus:opus_demo",
622 "//third_party/opus:test_opus_decode",
623 "//third_party/opus:test_opus_encode",
624 "//third_party/opus:test_opus_api",
625 "//third_party/opus:test_opus_padding",
626 "//third_party/webrtc/system_wrappers:field_trial_default",
627 "//third_party/webrtc/system_wrappers:metrics_default",
628 "//ui/display/types",
629 "//ui/shell_dialogs:shell_dialogs_unittests",
630 "//ui/views/examples:views_examples_exe",
dprankedb5527d72015-03-08 04:22:47631 ]
dprankeb0713542015-07-31 21:07:21632
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16633 if (target_cpu == "x86" || target_cpu == "x64") {
mcgrathr916aafa2015-09-15 00:06:53634 deps += [
635 "//third_party/libjpeg_turbo:simd_asm",
636 "//native_client/src/trusted/platform_qualify:vcpuid",
637 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16638 }
dprankedb5527d72015-03-08 04:22:47639 if (enable_nacl) {
640 deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ]
641 }
642 if (use_ozone) {
643 deps += [ "//ui/ozone/demo" ]
644 }
645 if (is_android) {
646 deps += [ "//build/android/gyp/test:hello_world" ]
647 }
dpranke807f602b2015-03-17 23:20:56648
649 if (is_linux && current_toolchain == host_toolchain) {
650 deps += [ "//v8:d8" ]
651 }
dprankedb5527d72015-03-08 04:22:47652 }
dprankeb0713542015-07-31 21:07:21653
nyquistb5f050b2015-09-10 05:10:35654 if (is_android) {
nyquist7af11b72015-09-10 20:18:14655 deps += [ "//blimp" ]
nyquistb5f050b2015-09-10 05:10:35656 }
657
dprankeb0713542015-07-31 21:07:21658 if (is_mac) {
659 deps -= [ "//mandoline:all" ] # TODO(GYP)
660 }
aizatskyfc46a9f2015-10-09 21:20:08661
662 if (use_libfuzzer) {
663 deps += [ "//testing/libfuzzer:libfuzzer_main" ]
664 }
dprankedb5527d72015-03-08 04:22:47665}
666
667group("gn_mojo_targets") {
668 testonly = true
669 if (is_linux && !is_chromeos) {
670 # TODO(GYP): Figure out if any of these should be in gn_all
671 # and figure out how cross-platform they are
672 deps = [
dprankedb5527d72015-03-08 04:22:47673 "//ipc/mojo:ipc_mojo_perftests",
dprankedb5527d72015-03-08 04:22:47674 "//media/mojo/services:cdm_service",
675 "//media/mojo:tests",
msw1bb9c6c2015-05-06 21:35:44676 "//mojo:tests",
pkotwicz8b9d18c2015-10-05 01:59:33677
jam76bcf0c2015-10-02 21:01:28678 # TODO(use-new-edk):
679 #"//mojo/edk/js/test:js_integration_tests",
680 #"//mojo/edk/js/tests:js_to_cpp_bindings_python",
dprankedb5527d72015-03-08 04:22:47681 "//third_party/mojo/src/mojo/edk/js/test:js_integration_tests",
dprankedb5527d72015-03-08 04:22:47682 ]
dprankedb5527d72015-03-08 04:22:47683 }
684}
685
686group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03687 deps = [
dprankeb6128d02015-05-01 16:40:30688 "//build/config/sanitizers:options_sources",
689
dprankedb5527d72015-03-08 04:22:47690 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
691 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dprankeb6128d02015-05-01 16:40:30692
693 "//ui/resources:repack_ui_test_mac_locale_pack",
dpranked62d8512015-03-02 03:06:03694 ]
dpranked2fb5222015-09-10 22:39:05695
696 if (!is_ios) {
697 deps += [
698 "//v8:v8_snapshot",
699 "//v8:postmortem-metadata",
700 ]
701 }
dpranked62d8512015-03-02 03:06:03702}
703
tfarinacb2638b2015-05-12 03:24:15704if (!is_ios) {
705 # This group includes all of the targets needed to build and test Blink,
706 # including running the layout tests (see below).
707 group("blink_tests") {
708 testonly = true
709
710 deps = [
711 "//third_party/WebKit/public:all_blink",
712 ]
713
714 # NOTE: The following deps are needed to run the layout tests
715 # (run-webkit-tests) but there is no GN target for the layout tests,
716 # so we need to specify the dependencies here instead.
717 if (is_android) {
718 deps += [
pkotwicza4d233b22015-11-02 18:20:38719 "//breakpad:breakpad_unittests_deps",
tfarinacb2638b2015-05-12 03:24:15720 "//breakpad:dump_syms($host_toolchain)",
pkotwicza4d233b22015-11-02 18:20:38721 "//breakpad:microdump_stackwalk($host_toolchain)",
722 "//breakpad:minidump_dump($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15723 "//breakpad:minidump_stackwalk($host_toolchain)",
pkotwicza4d233b22015-11-02 18:20:38724 "//breakpad:symupload($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15725 "//content/shell/android:content_shell_apk",
ojan94989c72015-07-17 21:56:42726 "//tools/imagediff($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15727 ]
728 } else {
ojan94989c72015-07-17 21:56:42729 deps += [
730 "//content/shell:content_shell",
731 "//tools/imagediff",
732 ]
tfarinacb2638b2015-05-12 03:24:15733 }
734
735 if (is_win) {
736 deps += [
jochen73e711c2015-06-03 10:01:46737 "//components/test_runner:layout_test_helper",
tfarina795e01a2015-05-15 19:29:57738 "//content/shell:crash_service",
tfarinacb2638b2015-05-12 03:24:15739 ]
740 }
741
742 if (!is_win && !is_android) {
Gordana.Cmiljanovicf243e9a2015-05-26 22:14:47743 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15744 }
745
746 if (is_mac) {
747 deps += [
748 "//breakpad:dump_syms($host_toolchain)",
jochen73e711c2015-06-03 10:01:46749 "//components/test_runner:layout_test_helper",
tfarinacb2638b2015-05-12 03:24:15750 ]
751 }
752
753 if (is_linux) {
754 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
755 }
756 }
757}
758
dpranke6abd8652015-08-28 03:21:11759# Add a dummy target for compatibility w/ GYP
760group("chromium_swarm_tests") {
761}
762
dpranke2302dfa2015-09-29 02:21:52763group("chromium_builder_perf") {
764 testonly = true
765
766 # TODO(GYP): Make this target work on the mac.
767 if (!is_ios && !is_android && !is_chromecast && !is_mac) {
768 deps = [
769 "//cc:cc_perftests",
770 "//chrome",
771 "//chrome/test:load_library_perf_tests",
772 "//chrome/test:sync_performance_tests",
773 "//gpu:gpu_perftests",
774 "//media:media_perftests",
775 "//media/midi:midi_unittests",
776 "//tools/telemetry:bitmaptools",
777 ]
778
779 if (!is_chromeos) {
780 deps += [ "//chrome/test:performance_browser_tests" ]
781 }
782 if (is_linux && !is_chromeos) {
783 deps += [ "//chrome:linux_symbols" ]
784
785 if (!is_chromeos) {
786 deps += [ "//tools/perf/clear_system_cache" ]
787 }
788 }
789
790 if (is_win) {
791 deps += [
792 "//content/shell:crash_service",
793 # "//gpu:angle_perftests", TODO(GYP): crbug.com/537008
794 ]
795
796 if (target_cpu == "x86") {
797 deps += [
798 # "//content/shell:crash_service_win64", TODO(GYP): crbug.com/537009
799 ]
800 }
801 } else {
dprankeec10b3932015-10-02 17:58:23802 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52803 }
804 }
805}