blob: 1637b8037784b9d9b52dcb03ffe457ccef27ebe9 [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
rockot2f1326e2015-02-23 23:53:5111import("//build/config/features.gni")
aizatskyfc46a9f2015-10-09 21:20:0812import("//build/config/sanitizers/sanitizers.gni")
[email protected]378b4f02014-06-10 15:58:4513import("//build/config/ui.gni")
dpranked4da5ab42015-10-13 06:20:3314import("//build_overrides/v8.gni")
mostynb2196a462015-08-20 17:22:1015import("//media/media_options.gni")
dprankee2ef3822015-02-24 21:42:1816
cjhopmanca675d3e2014-10-24 03:50:4517if (is_android) {
18 import("//build/config/android/config.gni")
19}
[email protected]378b4f02014-06-10 15:58:4520
brettwb84b29472014-10-22 22:58:4521declare_args() {
22 # A list of extra dependencies to add to the root target. This allows a
23 # checkout to add additional targets without explicitly changing any checked-
24 # in files.
25 root_extra_deps = []
26}
27
dprankeef9c5e582015-11-15 23:22:0828# This file defines the following five main targets:
dpranked62d8512015-03-02 03:06:0329#
dprankeddc174902015-04-29 01:38:3530# "both_gn_and_gyp" should list every root target (target that nothing else
31# depends on) built by GN that is also built in the GYP build.
dpranked62d8512015-03-02 03:06:0332#
dprankeddc174902015-04-29 01:38:3533# "gn_all" should (transitively) cause everything to be built; if you run
34# 'ninja gn_all' and then 'ninja all', the second build should do no work.
35#
dprankeef9c5e582015-11-15 23:22:0836# "gn_only" should list every root target that is *not* intended to be built in
37# a GYP build. Because GN has different rules for deciding what an 'all' build
38# is, this may end up including targets that are actually defined in a GYP
39# build but not dependencies of GYP's "all" (and so not actually built).
dprankeddc174902015-04-29 01:38:3540#
dprankeb6128d02015-05-01 16:40:3041# "gn_visibility": targets that are normally not visible to top-level targets,
dprankeef9c5e582015-11-15 23:22:0842# but are built anyway by "all". Since we don't want any such targets, we have
43# this placeholder to make sure hidden targets that aren't otherwise depended
44# on yet are accounted for.
45#
46# "All" is an alias for "gn_all". It exists for bot compatibility w/ GYP for
47# the iOS bots and the official builders, but should not be generally used
48# during the GYP->GN migration. We cannot guarantee that GN's "All" builds the
49# same set of targets as GYP's "All" does, because GYP's "All" supports
50# wildcards.
51#
52# Lastly, none of these targets are guaranteed to be the same as what ninja
53# will build with "all". For more on how "all" works and the differences in how
54# GYP and GN determine "all", see crbug.com/503241.
dprankeb6128d02015-05-01 16:40:3055#
dprankeddc174902015-04-29 01:38:3556# TODO(GYP): crbug.com/481694. Make sure that the above is true and there are
dprankeef9c5e582015-11-15 23:22:0857# scripts run on the bots that enforce this. Once the GYP migration is over, we
58# can collapse all of these targets as desired.
dprankeff30e3d2015-02-24 06:52:3959
dprankee2ef3822015-02-24 21:42:1860group("gn_all") {
61 testonly = true
62
63 deps = [
dprankeddc174902015-04-29 01:38:3564 ":both_gn_and_gyp",
65 ":gn_only",
dprankeb6128d02015-05-01 16:40:3066 ":gn_visibility",
dprankeddc174902015-04-29 01:38:3567 ]
68}
69
dprankeef9c5e582015-11-15 23:22:0870# TODO(GYP): This target exists for compatibility with GYP, specifically
71# for the iOS bots and the official builders.
72group("All") {
73 testonly = true
74
75 deps = [
76 ":gn_all",
77 ]
78}
79
dprankeddc174902015-04-29 01:38:3580# The "both_gn_and_gyp" target should reflect every target that is built
81# in both the GN and GYP builds, and ideally it should match the
82# "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line.
83#
84# TODO(GYP): Add build steps that check and enforce this on the bots.
85group("both_gn_and_gyp") {
86 testonly = true
dprankeddc174902015-04-29 01:38:3587 deps = [
dprankee2ef3822015-02-24 21:42:1888 "//base:base_unittests",
brettwa874dcc2015-08-28 23:59:1889 "//chrome/installer",
sheroukdc35ba272015-09-22 14:09:3790 "//components:components_unittests",
sheroukce1c7d72015-08-24 15:21:5991 "//net:net_unittests",
sherouk2866d662015-08-24 16:29:4492 "//skia:skia_unittests",
brettwa874dcc2015-08-28 23:59:1893 "//sql:sql_unittests",
sherouk3eee4a82015-09-01 10:42:3394 "//sync:sync_unit_tests",
sherouk4fb74d42015-08-24 15:58:4195 "//ui/base:ui_base_unittests",
sherouk84a45ff2015-09-01 13:31:3996 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:4197 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:1898 ]
dpranke2a294622015-08-07 05:23:0199
slance9d62f2015-11-04 01:15:01100 if (!is_ios && !is_android && !is_chromecast) {
sherouk53f0f1a2015-08-03 15:59:35101 deps += [
sherouk53f0f1a2015-08-03 15:59:35102 "//chrome",
103 "//chrome/test:browser_tests",
104 "//chrome/test:interactive_ui_tests",
105 "//chrome/test:sync_integration_tests",
sherouk53f0f1a2015-08-03 15:59:35106 "//chrome/test/chromedriver:chromedriver_unittests",
sherouk53f0f1a2015-08-03 15:59:35107 "//crypto:crypto_unittests",
sherouk53f0f1a2015-08-03 15:59:35108 "//extensions:extensions_browsertests",
109 "//extensions:extensions_unittests",
110 "//google_apis/gcm:gcm_unit_tests",
dprankedbdd9d82015-08-12 21:18:18111 "//gpu/gles2_conform_support:gles2_conform_test",
sherouk53f0f1a2015-08-03 15:59:35112 "//jingle:jingle_unittests",
sherouk53f0f1a2015-08-03 15:59:35113 "//net:hpack_example_generator",
114 "//net:hpack_fuzz_mutator",
115 "//net:hpack_fuzz_wrapper",
sherouk53f0f1a2015-08-03 15:59:35116 "//ppapi:ppapi_unittests",
117 "//ppapi/examples/2d",
118 "//ppapi/examples/audio",
119 "//ppapi/examples/audio_input",
120 "//ppapi/examples/compositor",
121 "//ppapi/examples/crxfs",
122 "//ppapi/examples/enumerate_devices",
123 "//ppapi/examples/file_chooser",
124 "//ppapi/examples/flash_topmost",
125 "//ppapi/examples/font",
126 "//ppapi/examples/gamepad",
127 "//ppapi/examples/gles2",
128 "//ppapi/examples/gles2_spinning_cube",
129 "//ppapi/examples/ime",
130 "//ppapi/examples/input",
131 "//ppapi/examples/media_stream_audio",
132 "//ppapi/examples/media_stream_video",
133 "//ppapi/examples/mouse_cursor",
134 "//ppapi/examples/mouse_lock",
135 "//ppapi/examples/printing",
136 "//ppapi/examples/scaling",
137 "//ppapi/examples/scripting",
138 "//ppapi/examples/stub",
139 "//ppapi/examples/threading",
140 "//ppapi/examples/url_loader",
141 "//ppapi/examples/video_capture",
142 "//ppapi/examples/video_decode",
143 "//ppapi/examples/video_effects",
144 "//ppapi/examples/video_encode",
145 "//printing:printing_unittests",
sherouk53f0f1a2015-08-03 15:59:35146 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
147 "//third_party/codesighs",
pkotwicz558d5252015-10-19 21:09:55148 "//third_party/pdfium/samples:pdfium_test",
149 "//tools/gn",
pkotwicz558d5252015-10-19 21:09:55150 "//tools/gn:generate_test_gn_data",
dpranke244f973d62015-11-20 05:38:10151 "//tools/gn:gn_unittests",
pkotwicz558d5252015-10-19 21:09:55152 "//tools/perf/clear_system_cache",
153 "//ui/accessibility:accessibility_unittests",
154 "//ui/app_list:app_list_unittests",
155 ]
156 }
157
158 if (!is_ios) {
159 # TODO(GYP): Figure out which of these should actually build on iOS,
160 # and whether there should be other targets that are iOS-only and missing.
161 deps += [
162 "//cc:cc_unittests",
163 "//chrome/test:unit_tests",
164 "//components:components_browsertests",
165 "//content/shell:content_shell",
166 "//content/test:content_browsertests",
167 "//content/test:content_perftests",
168 "//content/test:content_unittests",
169 "//device:device_unittests",
170 "//gpu:gpu_unittests",
171 "//ipc:ipc_tests",
172 "//ipc/mojo:ipc_mojo_unittests",
173 "//media:media_unittests",
miu45b848fe2015-11-26 01:23:29174 "//media/cast:cast_unittests",
pkotwicz558d5252015-10-19 21:09:55175 "//media/midi:midi_unittests",
176 "//mojo",
177 "//mojo/application/public/cpp",
178 "//mojo/common:mojo_common_unittests",
179 "//net:net_perftests",
jam76bcf0c2015-10-02 21:01:28180
181 # TODO(use-new-edk):
182 #"//mojo/edk/system:mojo_system_unittests",
183 #"//mojo/edk/test:mojo_public_bindings_unittests",
184 #"//mojo/edk/test:mojo_public_environment_unittests",
185 #"//mojo/edk/test:mojo_public_system_unittests",
186 #"//mojo/edk/test:mojo_public_utility_unittests",
dpranke244f973d62015-11-20 05:38:10187 "//third_party/WebKit/Source/platform:heap_unittests",
188 "//third_party/WebKit/Source/platform:platform_unittests",
189 "//third_party/WebKit/Source/web:webkit_unit_tests",
190 "//third_party/WebKit/Source/wtf:wtf_unittests",
sherouk53f0f1a2015-08-03 15:59:35191 "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",
192 "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",
193 "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",
194 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",
195 "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
sherouk53f0f1a2015-08-03 15:59:35196 "//third_party/smhasher:pmurhash",
charliea9a3b7202015-10-26 22:12:29197 "//tools/battor_agent",
sherouk53f0f1a2015-08-03 15:59:35198 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35199 "//tools/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35200 "//ui/display:display_unittests",
201 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35202 "//ui/gl:gl_unittests",
203 "//ui/touch_selection:ui_touch_selection_unittests",
sherouk53f0f1a2015-08-03 15:59:35204 ]
sdefresne998e8582015-10-07 13:36:45205 } else {
sdefresnea378b452015-10-08 09:55:58206 deps += [
dpranke244f973d62015-11-20 05:38:10207 "//ios/chrome:ios_chrome_unittests",
sdefresne0ddaed52015-11-19 10:40:02208 "//ios/chrome/app",
209 "//ios/chrome/browser",
210 "//ios/chrome/common",
sdefresnea378b452015-10-08 09:55:58211 "//ios/net:ios_net_unittests",
sdefresne32132f23c2015-11-17 16:22:23212 "//ios/public/provider/chrome/browser",
sdefresne89308c92015-11-16 10:40:34213 "//ios/public/provider/web",
sdefresnec6ddd7ac2015-10-09 17:30:19214 "//ios/testing:ocmock_support_unittest",
sdefresneaa7c1cf2015-10-22 00:41:11215 "//ios/web:ios_web_unittests",
dpranke244f973d62015-11-20 05:38:10216 "//ios/web/shell:ios_web_shell",
sdefresnea378b452015-10-08 09:55:58217 ]
sherouk53f0f1a2015-08-03 15:59:35218 }
dprankee2ef3822015-02-24 21:42:18219
scottmg34fb7e52014-12-03 23:27:24220 deps += root_extra_deps
[email protected]fce5c3fe2014-04-10 21:13:05221
tfarina4aa9edc2015-10-26 22:14:02222 if (enable_extensions) {
rockot2f1326e2015-02-23 23:53:51223 deps += [ "//extensions/shell:app_shell_unittests" ]
224 }
225
dprankefd1813272015-04-13 23:56:00226 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55227 deps += [ "//chrome/browser/media/router" ]
dprankefd1813272015-04-13 23:56:00228 }
229
garykac3eddb5b2015-04-17 23:16:38230 if (enable_remoting) {
231 deps += [ "//remoting:remoting_all" ]
dprankece5eb832015-04-01 20:21:05232 }
233
dprankee2ef3822015-02-24 21:42:18234 if (toolkit_views) {
235 deps += [ "//ui/views:views_unittests" ]
James Robinson060f2e32014-09-10 22:31:37236 }
237
dprankee2ef3822015-02-24 21:42:18238 if (use_aura) {
239 deps += [ "//ui/wm:wm_unittests" ]
240 }
241
242 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47243 deps += [ "//ui/ozone" ]
[email protected]a306aaa2014-05-24 13:21:50244 }
245
dprankefd1813272015-04-13 23:56:00246 if (use_x11) {
247 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22248 }
249
tmoniuszkoe5578b922015-04-14 09:38:03250 if (enable_configuration_policy) {
251 deps += [ "//components/policy:policy_templates" ]
252 }
253
dprankefd1813272015-04-13 23:56:00254 if (v8_use_external_startup_data) {
255 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
[email protected]2d6893a2014-06-02 19:16:36256 }
257
brettw66e3feab2015-07-20 23:52:22258 if (is_win) {
brettwf986f9572015-10-07 17:18:15259 deps += [
260 "//chrome/installer/gcapi",
261 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
262 ]
brettw66e3feab2015-07-20 23:52:22263 }
264
[email protected]5a8d5162014-04-12 01:19:16265 if (is_android) {
[email protected]26046b52014-07-16 00:11:03266 deps += [
pkotwicze2dae8b2015-11-03 20:12:55267 "//base:base_junit_tests",
dpranke244f973d62015-11-20 05:38:10268 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38269 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02270 "//build/android/rezip",
pkotwicze2dae8b2015-11-03 20:12:55271 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
272 "//components/policy/android:components_policy_junit_tests",
273 "//content/public/android:content_junit_tests",
274 "//net/android:net_junit_tests",
275 "//testing/android/junit:junit_unittests",
agrieve40ba6862015-07-15 02:09:05276 "//third_party/errorprone:chromium_errorprone",
pkotwicze38594d2015-09-25 00:05:10277 "//tools/android:android_tools",
pkotwicz8b9d18c2015-10-05 01:59:33278 "//tools/android/heap_profiler:heap_profiler_unittests",
dgn28050da2015-10-19 10:16:43279 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
dprankee2ef3822015-02-24 21:42:18280 "//tools/imagediff($host_toolchain)",
281
282 # TODO(GYP): Remove these when the components_unittests work.
283 "//components/history/core/test:test",
284 "//components/policy:policy_component_test_support",
285 "//components/policy:test_support",
286 "//components/rappor:test_support",
287 "//components/signin/core/browser:test_support",
288 "//components/sync_driver:test_support",
289 "//components/user_manager",
290 "//components/wallpaper",
291 "//content/shell/android:content_shell_apk",
pkotwicz8c316092015-11-23 20:30:53292 "//content/test:video_decode_accelerator_unittest",
dprankee2ef3822015-02-24 21:42:18293
294 # TODO(GYP): Are these needed, or will they be pulled in automatically?
[email protected]684b2292014-08-22 19:12:39295 "//third_party/android_tools:android_gcm_java",
[email protected]684b2292014-08-22 19:12:39296 "//third_party/android_tools:android_support_v13_java",
297 "//third_party/android_tools:android_support_v7_appcompat_java",
298 "//third_party/android_tools:android_support_v7_mediarouter_java",
dpranke244f973d62015-11-20 05:38:10299 "//third_party/android_tools:uiautomator_java",
dprankee2ef3822015-02-24 21:42:18300 "//third_party/mesa",
mikecase85e83ed2014-12-08 19:18:29301 "//third_party/mockito:mockito_java",
dprankee2ef3822015-02-24 21:42:18302 "//third_party/openmax_dl/dl",
dprankee2ef3822015-02-24 21:42:18303 "//ui/android:ui_java",
304
305 # TODO(GYP): Are these needed?
306 "//chrome/test:test_support_unit",
307 "//third_party/smhasher:murmurhash3",
308 "//ui/message_center:test_support",
309 ]
310 deps -= [
rockot9c67e5f2015-03-12 20:01:21311 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18312 "//url:url_unittests",
[email protected]26046b52014-07-16 00:11:03313 ]
314
pkotwicz061c5a42015-09-30 02:16:54315 if (!is_chromecast) {
316 deps += [
michaelbaicbcc7e62015-11-12 04:29:53317 "//android_webview",
pkotwicze2dae8b2015-11-03 20:12:55318 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54319 "//chrome/android:chrome_public_apk",
320 "//chrome/android:chrome_public_test_apk",
321 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
pkotwicz0a2255e2015-10-06 16:29:05322 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54323 ]
324 }
325
pkotwicz06a4b4b42015-10-29 23:11:11326 if (target_cpu != "x64") {
327 deps += [ "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)" ]
328 }
329
cjhopmanca675d3e2014-10-24 03:50:45330 if (has_chrome_android_internal) {
dprankee2ef3822015-02-24 21:42:18331 deps += [ "//clank" ] # TODO(GYP) ??
cjhopmanca675d3e2014-10-24 03:50:45332 }
dprankedb5527d72015-03-08 04:22:47333 }
334
pkotwicza4d233b22015-11-02 18:20:38335 if (is_linux || is_android) { # TODO(GYP): || is_bsd?
dprankefd1813272015-04-13 23:56:00336 deps += [
pkotwicza4d233b22015-11-02 18:20:38337 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00338 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38339 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00340 "//breakpad:minidump-2-core",
341 ]
342 }
343
dpranke6293d252015-04-14 19:12:00344 if (is_chromeos) {
345 deps += [
346 "//chromeos:chromeos_unittests",
347 "//ui/chromeos:ui_chromeos_unittests",
348 ]
349 }
350
dprankefd1813272015-04-13 23:56:00351 if (is_chromeos || is_mac || is_win) {
352 deps += [
353 "//rlz:rlz_id",
354 "//rlz:rlz_lib",
355 "//rlz:rlz_unittests",
356 ]
357 }
358
dprankedb5527d72015-03-08 04:22:47359 if (is_linux) {
360 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06361 deps += [
dpranke2bc89212015-11-18 00:24:43362 "//chrome:manpage",
363 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47364 "//dbus:dbus_test_server",
dprankee2ef3822015-02-24 21:42:18365 "//dbus:dbus_unittests",
dprankedb5527d72015-03-08 04:22:47366 "//net:disk_cache_memory_test",
367 "//net:flip_in_mem_edsm_server",
368 "//net:flip_in_mem_edsm_server_unittests",
369 "//net:quic_client",
370 "//net:quic_server",
371 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18372 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06373 ]
dnicoara8c6aa8e2015-03-11 23:20:32374
375 if (is_chromeos || use_ash) {
376 deps += [ "//components/session_manager/core" ]
377 }
dpranke2bc89212015-11-18 00:24:43378
379 if (is_chrome_branded && is_official_build) {
380 # TODO(dpranke): add the linux_dump_symbols flag?
381 deps += [ "//chrome:linux_symbols" ]
382 }
dprankedb5527d72015-03-08 04:22:47383 }
384
sherouke1859f92015-08-05 10:19:10385 if (is_ios || is_win || (is_linux && !is_chromeos)) {
386 deps += [
387 "//base:base_i18n_perftests",
388 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58389 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10390 ]
391 }
392
dprankefd1813272015-04-13 23:56:00393 if (is_win || (is_linux && !is_chromeos)) {
394 # TODO(GYP): Figure out which of these should (and can) build
395 # for android/chromeos/mac/ios.
tfarina9e7cf702015-02-23 21:13:44396 deps += [
dprankedb5527d72015-03-08 04:22:47397 "//base:build_utf8_validator_tables",
dpranke244f973d62015-11-20 05:38:10398 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47399 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00400 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47401 "//chrome/test:load_library_perf_tests",
dpranke76f48222015-04-01 00:00:00402 "//chrome/test:performance_browser_tests",
dprankedb5527d72015-03-08 04:22:47403 "//chrome/test:sync_performance_tests",
404 "//chrome/test/chromedriver:chromedriver",
405 "//chrome/test/chromedriver:chromedriver_tests",
dprankedb5527d72015-03-08 04:22:47406 "//components:components_perftests",
dprankedb5527d72015-03-08 04:22:47407 "//content/test:content_gl_benchmark",
dpranke244f973d62015-11-20 05:38:10408 "//content/test:content_gl_tests",
dprankedb5527d72015-03-08 04:22:47409 "//courgette:courgette",
410 "//courgette:courgette_fuzz",
411 "//courgette:courgette_minimal_tool",
412 "//courgette:courgette_unittests",
413 "//device:device_unittests",
414 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47415 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47416 "//google_apis/gcm:mcs_probe",
dprankefd1813272015-04-13 23:56:00417 "//gpu:gl_tests",
dpranke244f973d62015-11-20 05:38:10418 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47419 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47420 "//media:media_perftests",
dprankedb5527d72015-03-08 04:22:47421 "//net:crash_cache",
422 "//net:crl_set_dump",
423 "//net:dns_fuzz_stub",
dprankefd1813272015-04-13 23:56:00424 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47425 "//net:gdig",
426 "//net:get_server_time",
dprankedb5527d72015-03-08 04:22:47427 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
dprankefd1813272015-04-13 23:56:00428 "//net:run_testserver",
dprankedb5527d72015-03-08 04:22:47429 "//net:stress_cache",
430 "//net:tld_cleanup",
dprankec09ccaa2015-03-27 22:00:38431 "//ppapi:pepper_hash_for_uma",
dprankefd1813272015-04-13 23:56:00432 "//ppapi:ppapi_perftests",
dprankedb5527d72015-03-08 04:22:47433 "//sync:run_sync_testserver",
cwallez4c57af32015-09-03 14:54:49434 "//third_party/angle/src/tests:angle_unittests",
dprankedb5527d72015-03-08 04:22:47435 "//third_party/codesighs:maptsvdifftool",
dprankedb5527d72015-03-08 04:22:47436 "//third_party/leveldatabase:env_chromium_unittests",
437 "//third_party/libaddressinput:libaddressinput_unittests",
dprankefd1813272015-04-13 23:56:00438 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47439 "//ui/compositor:compositor_unittests",
440 ]
441
dpranke7e19b472015-11-13 00:49:33442 if (!is_linux) {
443 # TODO(dpranke): Re-enable this once
444 # https://chromium-review.googlesource.com/#/c/312298/1 is rolled
445 # into chromium.
446 deps += [ "//third_party/angle/src/tests:angle_end2end_tests" ]
447 }
448
dprankedb5527d72015-03-08 04:22:47449 if (enable_extensions) {
450 deps += [ "//extensions/shell:app_shell" ]
451 }
452
453 if (enable_nacl) {
dprankefd1813272015-04-13 23:56:00454 deps += [ "//components/nacl:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43455
456 if (is_linux) {
457 # TODO(dpranke): Figure out what platforms should actually have this.
458 deps += [
dpranke2bc89212015-11-18 00:24:43459 "//components/nacl:helper_nonsfi",
dpranke244f973d62015-11-20 05:38:10460 "//components/nacl:nacl_helper",
dpranke2bc89212015-11-18 00:24:43461 ]
462 }
dprankedb5527d72015-03-08 04:22:47463 }
464
mostynb2196a462015-08-20 17:22:10465 if (media_use_ffmpeg) {
466 deps += [ "//media:ffmpeg_regression_tests" ]
467 }
468
dprankedb5527d72015-03-08 04:22:47469 if (use_ash) {
470 deps += [
benf97b2572015-09-25 23:12:53471 "//ash:ash_shell_with_content",
dprankedb5527d72015-03-08 04:22:47472 "//ash:ash_unittests",
473 ]
474 }
475
476 if (use_aura) {
477 deps += [
478 "//ui/aura:aura_unittests",
479 "//ui/aura:bench",
480 "//ui/aura:demo",
481 ]
482 }
dprankefd1813272015-04-13 23:56:00483 }
484
485 if (is_linux && !is_chromeos) {
486 deps += [
487 # TODO(GYP): Figure out which of these should (and can) build
488 # under which other conditions.
489 "//build/sanitizers:copy_llvm_symbolizer",
490 "//chrome/test:chrome_app_unittests",
491 "//cloud_print:cloud_print_unittests",
492 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00493 "//content/public/app:browser",
494 "//content/public/app:child",
495
496 # TODO(GYP): Remove this when the gles2 tests work
497 "//gpu/command_buffer/client:gles2_implementation_no_check",
dprankefd1813272015-04-13 23:56:00498 "//gpu/khronos_glcts_support:khronos_glcts_test", # TODO(GYP) crbug.com/471903 to make this complete.
dprankefd1813272015-04-13 23:56:00499 "//media/cast:tap_proxy",
miu45b848fe2015-11-26 01:23:29500 "//media/cast:testing_tools",
jam00802992015-05-20 03:37:19501 "//mojo/application/public/cpp",
dprankefd1813272015-04-13 23:56:00502 "//skia:filter_fuzz_stub",
503 "//skia:image_operations_bench",
504 "//sync/tools:sync_client",
505 "//sync/tools:sync_listen_notifications",
506 "//testing/gmock:gmock_main",
jam76bcf0c2015-10-02 21:01:28507
508 # TODO(use-new-edk):
509 #"//mojo/edk/test:mojo_public_system_perftests",
dpranke244f973d62015-11-20 05:38:10510 "//third_party/codesighs:nm2tsv",
dprankefd1813272015-04-13 23:56:00511 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests",
dpranke244f973d62015-11-20 05:38:10512 "//third_party/sqlite:sqlite_shell",
dprankefd1813272015-04-13 23:56:00513 "//ui/keyboard:keyboard_unittests",
514 "//ui/message_center:message_center_unittests",
515 "//ui/snapshot:snapshot_unittests",
516 "//ui/views/examples:views_examples_with_content_exe",
dprankefd1813272015-04-13 23:56:00517 ]
518
dprankeec10b3932015-10-02 17:58:23519 deps += [
520 "//breakpad:dump_syms($host_toolchain)",
521 "//breakpad:microdump_stackwalk($host_toolchain)",
522 "//breakpad:minidump_dump($host_toolchain)",
523 "//breakpad:minidump_stackwalk($host_toolchain)",
524 ]
dprankefd1813272015-04-13 23:56:00525
526 if (!is_debug && !is_component_build) {
527 deps += [ "//chrome/tools/service_discovery_sniffer" ]
528 }
529
530 if (toolkit_views) {
531 deps += [ "//ui/app_list:app_list_demo" ]
532 }
dprankedb5527d72015-03-08 04:22:47533
534 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44535 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59536 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44537 }
dprankedb5527d72015-03-08 04:22:47538 }
539 }
540
541 if (is_mac) {
542 deps += [
543 "//breakpad:crash_inspector",
544 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44545 "//third_party/apple_sample_code",
546 "//third_party/molokocacao",
547 ]
dpranke43760592014-11-08 02:59:57548 deps -= [
brettw011138d2015-10-21 03:05:38549 # Mojo in GN contains some things which are never compiled in GYP on Mac,
550 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10551 "//mojo",
dprankecf8465db72014-11-10 23:51:22552 ]
dprankefd1813272015-04-13 23:56:00553 }
554
555 if (is_win) {
556 deps += [
557 "//base:pe_image_test",
grt734e87b2015-07-06 19:36:43558 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00559 "//chrome_elf:chrome_elf_unittests",
560 "//chrome_elf:dll_hash_main",
brettw70b359a2015-10-14 23:43:23561 "//cloud_print:cloud_print_unittests",
dpranke244f973d62015-11-20 05:38:10562 "//cloud_print/service/win:cloud_print_service",
sdefresne8ba0b88c2015-09-18 10:33:13563 "//components/crash/content/tools:crash_service",
dprankefd1813272015-04-13 23:56:00564 "//components/wifi:wifi_test",
565 "//net:quic_client",
566 "//net:quic_server",
567 "//sandbox/win:pocdll",
568 "//sandbox/win:sandbox_poc",
569 "//sandbox/win:sbox_integration_tests",
570 "//sandbox/win:sbox_unittests",
571 "//sandbox/win:sbox_validation_tests",
572 "//testing/gtest:gtest_main",
573 "//third_party/codesighs:msmap2tsv",
574 "//third_party/pdfium/samples:pdfium_diff",
575 "//ui/metro_viewer",
576 ]
dprankee2ef3822015-02-24 21:42:18577 deps -= [
578 "//crypto:crypto_unittests", # TODO(GYP)
579 "//net:net_unittests", # TODO(GYP)
580 ]
sherouk53f0f1a2015-08-03 15:59:35581 } else if (!is_android && !is_ios) {
miu45b848fe2015-11-26 01:23:29582 deps += [ "//breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34583 }
slance9d62f2015-11-04 01:15:01584 if (is_chromecast) {
585 deps += [ "//chromecast:cast_shell" ]
586 }
miu45b848fe2015-11-26 01:23:29587
588 if (is_ios || is_mac) {
589 deps += [ "//media/cast:cast_h264_vt_encoder_unittests" ]
590 }
[email protected]f0e7ff882013-12-26 21:23:09591}
brettw533c50422015-02-26 17:49:16592
dpranked62d8512015-03-02 03:06:03593group("gn_only") {
dprankedb5527d72015-03-08 04:22:47594 testonly = true
595
dpranke2a294622015-08-07 05:23:01596 deps = []
597
slance9d62f2015-11-04 01:15:01598 if (!is_ios && !is_chromecast) {
dpranke2a294622015-08-07 05:23:01599 deps += [ "//mandoline:all" ]
sherouk53f0f1a2015-08-03 15:59:35600 }
isherman0f89b43eb2015-04-11 00:02:45601
dpranke244f973d62015-11-20 05:38:10602 if (!is_android && !is_ios && !is_chromeos) {
isherman0f89b43eb2015-04-11 00:02:45603 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
604 }
605
ben8f4e95ad2015-12-01 18:35:58606 if (is_win || is_linux) {
sky130827232015-11-23 20:41:08607 deps += [ "//mash:all" ]
sky97b65592015-11-02 20:08:25608 }
609
slance9d62f2015-11-04 01:15:01610 if (is_linux && !is_chromeos && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47611 # TODO(GYP): Figure out if any of these should be in gn_all
612 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45613 deps += [
dprankedb5527d72015-03-08 04:22:47614 ":gn_mojo_targets",
dtrainor4ae32722015-09-26 00:14:12615 "//blimp:blimp_tests",
dprankedb5527d72015-03-08 04:22:47616 "//chrome/browser/resources:extension_resource_demo",
617 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47618 "//chrome/test:load_library_perf_tests",
619 "//chrome/tools/convert_dict",
620 "//components/constrained_window:unit_tests",
621 "//components/enhanced_bookmarks:test_support",
dprankedb5527d72015-03-08 04:22:47622 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45623 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47624 "//components/rappor:unit_tests",
625 "//components/sessions:unit_tests",
626 "//media/blink:media_blink_unittests",
dprankedb5527d72015-03-08 04:22:47627 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47628 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
629 "//storage/browser:dump_file_system",
630 "//third_party/angle:libANGLE",
631 "//third_party/angle:libEGL",
632 "//third_party/angle:libGLESv2",
633 "//third_party/cld_2:cld_2_dynamic_data_tool",
634 "//third_party/leveldatabase:leveldb_arena_test",
635 "//third_party/leveldatabase:leveldb_bloom_test",
dprankedb5527d72015-03-08 04:22:47636 "//third_party/leveldatabase:leveldb_cache_test",
dprankedb5527d72015-03-08 04:22:47637 "//third_party/leveldatabase:leveldb_corruption_test",
dpranke244f973d62015-11-20 05:38:10638 "//third_party/leveldatabase:leveldb_crc32c_test",
639 "//third_party/leveldatabase:leveldb_db_bench",
640 "//third_party/leveldatabase:leveldb_db_test",
dprankedb5527d72015-03-08 04:22:47641 "//third_party/leveldatabase:leveldb_dbformat_test",
dpranke244f973d62015-11-20 05:38:10642 "//third_party/leveldatabase:leveldb_env_test",
643 "//third_party/leveldatabase:leveldb_filename_test",
644 "//third_party/leveldatabase:leveldb_filter_block_test",
645 "//third_party/leveldatabase:leveldb_log_test",
646 "//third_party/leveldatabase:leveldb_skiplist_test",
647 "//third_party/leveldatabase:leveldb_table_test",
648 "//third_party/leveldatabase:leveldb_version_edit_test",
649 "//third_party/leveldatabase:leveldb_write_batch_test",
dprankedb5527d72015-03-08 04:22:47650 "//third_party/libjpeg_turbo:simd",
dpranke244f973d62015-11-20 05:38:10651 "//third_party/libsrtp:rdbx_driver",
dprankedb5527d72015-03-08 04:22:47652 "//third_party/libsrtp:replay_driver",
653 "//third_party/libsrtp:roc_driver",
654 "//third_party/libsrtp:rtpw",
dprankedb5527d72015-03-08 04:22:47655 "//third_party/libsrtp:srtp_driver",
656 "//third_party/libsrtp:srtp_driver",
dpranke244f973d62015-11-20 05:38:10657 "//third_party/libsrtp:srtp_test_aes_calc",
dprankedb5527d72015-03-08 04:22:47658 "//third_party/libsrtp:srtp_test_cipher_driver",
659 "//third_party/libsrtp:srtp_test_datatypes_driver",
dprankedb5527d72015-03-08 04:22:47660 "//third_party/libsrtp:srtp_test_env",
dpranke244f973d62015-11-20 05:38:10661 "//third_party/libsrtp:srtp_test_kernel_driver",
dprankedb5527d72015-03-08 04:22:47662 "//third_party/libsrtp:srtp_test_rand_gen",
663 "//third_party/libsrtp:srtp_test_sha1_driver",
664 "//third_party/libsrtp:srtp_test_stat_driver",
665 "//third_party/opus:opus_compare",
666 "//third_party/opus:opus_demo",
dpranke244f973d62015-11-20 05:38:10667 "//third_party/opus:test_opus_api",
dprankedb5527d72015-03-08 04:22:47668 "//third_party/opus:test_opus_decode",
669 "//third_party/opus:test_opus_encode",
dprankedb5527d72015-03-08 04:22:47670 "//third_party/opus:test_opus_padding",
dpranke244f973d62015-11-20 05:38:10671 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47672 "//third_party/webrtc/system_wrappers:field_trial_default",
673 "//third_party/webrtc/system_wrappers:metrics_default",
674 "//ui/display/types",
675 "//ui/shell_dialogs:shell_dialogs_unittests",
676 "//ui/views/examples:views_examples_exe",
dprankedb5527d72015-03-08 04:22:47677 ]
dprankeb0713542015-07-31 21:07:21678
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16679 if (target_cpu == "x86" || target_cpu == "x64") {
mcgrathr916aafa2015-09-15 00:06:53680 deps += [
mcgrathr916aafa2015-09-15 00:06:53681 "//native_client/src/trusted/platform_qualify:vcpuid",
dpranke244f973d62015-11-20 05:38:10682 "//third_party/libjpeg_turbo:simd_asm",
mcgrathr916aafa2015-09-15 00:06:53683 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16684 }
dprankedb5527d72015-03-08 04:22:47685 if (enable_nacl) {
686 deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ]
687 }
688 if (use_ozone) {
689 deps += [ "//ui/ozone/demo" ]
690 }
691 if (is_android) {
692 deps += [ "//build/android/gyp/test:hello_world" ]
693 }
dpranke807f602b2015-03-17 23:20:56694
695 if (is_linux && current_toolchain == host_toolchain) {
696 deps += [ "//v8:d8" ]
697 }
dprankedb5527d72015-03-08 04:22:47698 }
dprankeb0713542015-07-31 21:07:21699
wez1cbe17a2015-11-11 07:23:56700 if (is_android || is_linux || is_chromeos) {
nyquist7af11b72015-09-10 20:18:14701 deps += [ "//blimp" ]
nyquistb5f050b2015-09-10 05:10:35702 }
703
dprankeb0713542015-07-31 21:07:21704 if (is_mac) {
705 deps -= [ "//mandoline:all" ] # TODO(GYP)
706 }
aizatskyfc46a9f2015-10-09 21:20:08707
708 if (use_libfuzzer) {
aizatskyddefc992015-11-20 08:42:03709 # these are needed only for gn to discover build files.
710 deps += [
711 "//testing/libfuzzer:libfuzzer_main",
agrieved7a71c882015-11-20 19:53:28712 "//testing/libfuzzer/fuzzers:string_to_int_fuzzer",
aizatskyddefc992015-11-20 08:42:03713 ]
aizatskyfc46a9f2015-10-09 21:20:08714 }
dprankedb5527d72015-03-08 04:22:47715}
716
717group("gn_mojo_targets") {
718 testonly = true
719 if (is_linux && !is_chromeos) {
720 # TODO(GYP): Figure out if any of these should be in gn_all
721 # and figure out how cross-platform they are
722 deps = [
dprankedb5527d72015-03-08 04:22:47723 "//ipc/mojo:ipc_mojo_perftests",
dprankedb5527d72015-03-08 04:22:47724 "//media/mojo:tests",
dpranke244f973d62015-11-20 05:38:10725 "//media/mojo/services:cdm_service",
msw1bb9c6c2015-05-06 21:35:44726 "//mojo:tests",
pkotwicz8b9d18c2015-10-05 01:59:33727
jam76bcf0c2015-10-02 21:01:28728 # TODO(use-new-edk):
729 #"//mojo/edk/js/test:js_integration_tests",
730 #"//mojo/edk/js/tests:js_to_cpp_bindings_python",
dprankedb5527d72015-03-08 04:22:47731 "//third_party/mojo/src/mojo/edk/js/test:js_integration_tests",
dprankedb5527d72015-03-08 04:22:47732 ]
dprankedb5527d72015-03-08 04:22:47733 }
734}
735
736group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03737 deps = [
dprankeb6128d02015-05-01 16:40:30738 "//build/config/sanitizers:options_sources",
739
dprankedb5527d72015-03-08 04:22:47740 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
741 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dprankeb6128d02015-05-01 16:40:30742
743 "//ui/resources:repack_ui_test_mac_locale_pack",
dpranked62d8512015-03-02 03:06:03744 ]
dpranked2fb5222015-09-10 22:39:05745
746 if (!is_ios) {
747 deps += [
dpranked2fb5222015-09-10 22:39:05748 "//v8:postmortem-metadata",
dpranke244f973d62015-11-20 05:38:10749 "//v8:v8_snapshot",
dpranked2fb5222015-09-10 22:39:05750 ]
751 }
dpranked62d8512015-03-02 03:06:03752}
753
tfarinacb2638b2015-05-12 03:24:15754if (!is_ios) {
755 # This group includes all of the targets needed to build and test Blink,
756 # including running the layout tests (see below).
757 group("blink_tests") {
758 testonly = true
759
760 deps = [
761 "//third_party/WebKit/public:all_blink",
762 ]
763
764 # NOTE: The following deps are needed to run the layout tests
765 # (run-webkit-tests) but there is no GN target for the layout tests,
766 # so we need to specify the dependencies here instead.
767 if (is_android) {
768 deps += [
pkotwicza4d233b22015-11-02 18:20:38769 "//breakpad:breakpad_unittests_deps",
tfarinacb2638b2015-05-12 03:24:15770 "//breakpad:dump_syms($host_toolchain)",
pkotwicza4d233b22015-11-02 18:20:38771 "//breakpad:microdump_stackwalk($host_toolchain)",
772 "//breakpad:minidump_dump($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15773 "//breakpad:minidump_stackwalk($host_toolchain)",
pkotwicza4d233b22015-11-02 18:20:38774 "//breakpad:symupload($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15775 "//content/shell/android:content_shell_apk",
ojan94989c72015-07-17 21:56:42776 "//tools/imagediff($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15777 ]
778 } else {
ojan94989c72015-07-17 21:56:42779 deps += [
780 "//content/shell:content_shell",
781 "//tools/imagediff",
782 ]
tfarinacb2638b2015-05-12 03:24:15783 }
784
785 if (is_win) {
786 deps += [
jochen73e711c2015-06-03 10:01:46787 "//components/test_runner:layout_test_helper",
tfarina795e01a2015-05-15 19:29:57788 "//content/shell:crash_service",
tfarinacb2638b2015-05-12 03:24:15789 ]
790 }
791
792 if (!is_win && !is_android) {
Gordana.Cmiljanovicf243e9a2015-05-26 22:14:47793 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15794 }
795
796 if (is_mac) {
797 deps += [
798 "//breakpad:dump_syms($host_toolchain)",
jochen73e711c2015-06-03 10:01:46799 "//components/test_runner:layout_test_helper",
tfarinacb2638b2015-05-12 03:24:15800 ]
801 }
802
803 if (is_linux) {
804 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
805 }
806 }
807}
808
dpranke6abd8652015-08-28 03:21:11809# Add a dummy target for compatibility w/ GYP
810group("chromium_swarm_tests") {
811}
812
dpranke2302dfa2015-09-29 02:21:52813group("chromium_builder_perf") {
814 testonly = true
815
816 # TODO(GYP): Make this target work on the mac.
817 if (!is_ios && !is_android && !is_chromecast && !is_mac) {
818 deps = [
819 "//cc:cc_perftests",
820 "//chrome",
821 "//chrome/test:load_library_perf_tests",
822 "//chrome/test:sync_performance_tests",
823 "//gpu:gpu_perftests",
824 "//media:media_perftests",
825 "//media/midi:midi_unittests",
826 "//tools/telemetry:bitmaptools",
827 ]
828
829 if (!is_chromeos) {
830 deps += [ "//chrome/test:performance_browser_tests" ]
831 }
832 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:04833 if (is_official_build) {
834 # In GN builds, this is controlled by the 'linux_dump_symbols'
835 # flag, which defaults to 1 for official builds. For now,
836 # we skip the separate flag and just key off of is_official_build.
837 deps += [ "//chrome:linux_symbols" ]
838 }
dpranke2302dfa2015-09-29 02:21:52839
840 if (!is_chromeos) {
841 deps += [ "//tools/perf/clear_system_cache" ]
842 }
843 }
844
845 if (is_win) {
846 deps += [
847 "//content/shell:crash_service",
848 # "//gpu:angle_perftests", TODO(GYP): crbug.com/537008
849 ]
850
851 if (target_cpu == "x86") {
852 deps += [
853 # "//content/shell:crash_service_win64", TODO(GYP): crbug.com/537009
854 ]
855 }
856 } else {
dprankeec10b3932015-10-02 17:58:23857 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52858 }
859 }
860}