blob: b453d53febcd3a32b92e0d99ff3e4dd70adc5939 [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
dprankead249c72016-06-11 18:01:2211import("//build/config/compiler/compiler.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")
brettw00899e62016-11-12 02:10:1716import("//extensions/features/features.gni")
mostynb2196a462015-08-20 17:22:1017import("//media/media_options.gni")
brettw2b112cd2016-10-12 19:35:3618import("//remoting/remoting_enable.gni")
hbos17a7b4a22015-12-07 10:49:4519import("//third_party/openh264/openh264_args.gni")
thakis3f7d4fc2016-06-10 18:47:5020import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
machenbachd65ec5c2016-07-22 09:05:2321import("//v8/gni/v8.gni")
dpranke8a2de902016-07-14 20:08:3722import("//v8/snapshot_toolchain.gni")
dprankee2ef3822015-02-24 21:42:1823
cjhopmanca675d3e2014-10-24 03:50:4524if (is_android) {
25 import("//build/config/android/config.gni")
26}
[email protected]378b4f02014-06-10 15:58:4527
brettwb84b29472014-10-22 22:58:4528declare_args() {
29 # A list of extra dependencies to add to the root target. This allows a
30 # checkout to add additional targets without explicitly changing any checked-
31 # in files.
32 root_extra_deps = []
33}
34
brucedawsonc8d6d652016-09-02 19:43:1835if (is_official_build) {
36 # An official (maximally optimized!) component (optimized for build times)
37 # build doesn't make sense and usually doesn't work.
38 assert(!is_component_build)
39}
40
dprankeef9c5e582015-11-15 23:22:0841# This file defines the following five main targets:
dpranked62d8512015-03-02 03:06:0342#
dprankeddc174902015-04-29 01:38:3543# "both_gn_and_gyp" should list every root target (target that nothing else
44# depends on) built by GN that is also built in the GYP build.
dpranked62d8512015-03-02 03:06:0345#
dprankeddc174902015-04-29 01:38:3546# "gn_all" should (transitively) cause everything to be built; if you run
47# 'ninja gn_all' and then 'ninja all', the second build should do no work.
48#
dprankeef9c5e582015-11-15 23:22:0849# "gn_only" should list every root target that is *not* intended to be built in
50# a GYP build. Because GN has different rules for deciding what an 'all' build
51# is, this may end up including targets that are actually defined in a GYP
52# build but not dependencies of GYP's "all" (and so not actually built).
dprankeddc174902015-04-29 01:38:3553#
dprankeb6128d02015-05-01 16:40:3054# "gn_visibility": targets that are normally not visible to top-level targets,
dprankeef9c5e582015-11-15 23:22:0855# but are built anyway by "all". Since we don't want any such targets, we have
56# this placeholder to make sure hidden targets that aren't otherwise depended
57# on yet are accounted for.
58#
59# "All" is an alias for "gn_all". It exists for bot compatibility w/ GYP for
60# the iOS bots and the official builders, but should not be generally used
61# during the GYP->GN migration. We cannot guarantee that GN's "All" builds the
62# same set of targets as GYP's "All" does, because GYP's "All" supports
63# wildcards.
64#
65# Lastly, none of these targets are guaranteed to be the same as what ninja
66# will build with "all". For more on how "all" works and the differences in how
67# GYP and GN determine "all", see crbug.com/503241.
dprankeb6128d02015-05-01 16:40:3068#
brettwf9427f92016-05-05 23:18:5569# TODO(GYP_GONE): crbug.com/481694. Make sure that the above is true and there
70# are scripts run on the bots that enforce this. Once the GYP migration is
71# over, we can collapse all of these targets as desired.
dprankeff30e3d2015-02-24 06:52:3972
dprankee2ef3822015-02-24 21:42:1873group("gn_all") {
74 testonly = true
75
76 deps = [
dprankeddc174902015-04-29 01:38:3577 ":both_gn_and_gyp",
78 ":gn_only",
dprankeb6128d02015-05-01 16:40:3079 ":gn_visibility",
dprankeddc174902015-04-29 01:38:3580 ]
machenbach640e53da2016-06-06 09:19:0881
82 if (!is_ios) {
jmadilla42eba2a2016-06-07 18:58:2983 deps += [ "//v8:gn_all" ]
machenbach640e53da2016-06-06 09:19:0884 }
dprankeddc174902015-04-29 01:38:3585}
86
brettwf9427f92016-05-05 23:18:5587# TODO(GYP_GONE): This target exists for compatibility with GYP, specifically
dprankeef9c5e582015-11-15 23:22:0888# for the iOS bots and the official builders.
89group("All") {
90 testonly = true
91
92 deps = [
93 ":gn_all",
94 ]
95}
96
brettwf9427f92016-05-05 23:18:5597# TODO(GYP_GONE): This target exists for compatibility with GYP for the
dprankec7bbafa2016-06-17 03:02:0598# builders that specify targets in the recipes directly.
99# Ideally it should not exist, and the builders should be specifying
100# more specific targets (or 'All') via the source-side
101# //testing/buildbot/*.json files. We should simply delete this target
102# and update any recipes that are using it.
Dirk Prankef00b78b2016-04-18 23:59:20103group("chromium_builder_tests") {
104 testonly = true
dprankec7bbafa2016-06-17 03:02:05105 deps = []
Dirk Prankef00b78b2016-04-18 23:59:20106}
107
dpranke1d5b70692016-06-20 21:09:04108# TODO(GYP_GONE): Figure out if we really need this target or if there's
109# some better way to specify things.
110if (is_win) {
111 group("chrome_official_builder_no_unittests") {
112 deps = [
113 "//chrome/installer/gcapi",
114 "//chrome/installer/mini_installer",
zmin6211e7d62016-06-23 01:19:29115 "//components/policy:pack_policy_templates",
dpranke1d5b70692016-06-20 21:09:04116 "//courgette",
sebmarchand8541a4d2016-07-20 23:35:29117 "//courgette:copy_courgette_binaries",
dpranke1d5b70692016-06-20 21:09:04118 "//remoting/webapp",
119 ]
dpranke6311f0fd2016-06-29 23:41:46120
etienneb364deb72016-07-30 03:43:42121 if (target_cpu == "x86") {
122 if (is_clang) {
123 deps += [ "//courgette(//build/toolchain/win:clang_x64)" ]
124 } else {
125 deps += [ "//courgette(//build/toolchain/win:x64)" ]
126 }
zijieheab5f1ccc2016-10-13 22:57:16127 }
128 if (is_chrome_branded) {
129 deps += [ "//remoting/host:remoting_host_installation" ]
dpranke1d5b70692016-06-20 21:09:04130 }
131 }
dpranke33e626e2016-06-23 04:41:32132
133 group("chrome_official_builder") {
134 testonly = true
135
136 deps = [
137 ":chrome_official_builder_no_unittests",
138 "//base:base_unittests",
139 "//chrome/test:browser_tests",
140 "//chrome/test:sync_integration_tests",
141 "//ipc:ipc_tests",
142 "//media:media_unittests",
143 "//media/midi:midi_unittests",
144 "//net:net_unittests",
145 "//printing:printing_unittests",
146 "//sql:sql_unittests",
dpranke33e626e2016-06-23 04:41:32147 "//ui/base:ui_base_unittests",
148 "//ui/gfx:gfx_unittests",
149 "//ui/touch_selection:ui_touch_selection_unittests",
150 "//ui/views:views_unittests",
151 "//url:url_unittests",
152 ]
153 }
dprankebad56d4b2016-06-26 18:06:30154
155 group("All_syzygy") {
sebmarchanddc24dfdf2016-10-17 21:01:35156 if (is_syzyasan) {
dprankebad56d4b2016-06-26 18:06:30157 deps = [
158 "//chrome/installer/mini_installer:mini_installer",
159 "//chrome/installer/mini_installer:mini_installer_syzygy",
160 ]
161 }
162 }
sebmarchand6c0a80ee2016-09-28 19:05:29163
164 if (is_syzyasan) {
165 group("chrome_official_syzyasan_builder") {
166 deps = [
167 ":All_syzygy",
168 ":chrome_official_builder_no_unittests",
169 ]
170 }
171 }
dpranke1d5b70692016-06-20 21:09:04172}
173
dprankef92633b2016-04-28 04:33:34174if (is_chromeos) {
175 group("chromiumos_preflight") {
176 testonly = true
177 deps = [
178 "//breakpad:minidump_stackwalk($host_toolchain)",
179 "//chrome",
180 "//chrome/test/chromedriver",
dprankef92633b2016-04-28 04:33:34181 "//media:media_unittests",
markdittmer6e70beb82016-05-02 05:40:47182 "//media/gpu:video_decode_accelerator_unittest",
183 "//media/gpu:video_encode_accelerator_unittest",
dprankef92633b2016-04-28 04:33:34184 "//ppapi/examples/video_decode",
185 "//sandbox/linux:chrome_sandbox",
186 "//sandbox/linux:sandbox_linux_unittests",
187
stevenjbd570b1f2016-04-29 22:57:36188 # Blocked on https://github.com/catapult-project/catapult/issues/2297
dprankef92633b2016-04-28 04:33:34189 #"//third_party/catapult/telemetry:bitmaptools",
dprankef92633b2016-04-28 04:33:34190 "//tools/perf/clear_system_cache",
191 ]
192 }
193}
194
dprankeddc174902015-04-29 01:38:35195# The "both_gn_and_gyp" target should reflect every target that is built
196# in both the GN and GYP builds, and ideally it should match the
197# "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line.
dprankeddc174902015-04-29 01:38:35198group("both_gn_and_gyp") {
199 testonly = true
dprankeddc174902015-04-29 01:38:35200 deps = [
dprankee2ef3822015-02-24 21:42:18201 "//base:base_unittests",
brettwa874dcc2015-08-28 23:59:18202 "//chrome/installer",
sheroukdc35ba272015-09-22 14:09:37203 "//components:components_unittests",
sheroukce1c7d72015-08-24 15:21:59204 "//net:net_unittests",
sherouk2866d662015-08-24 16:29:44205 "//skia:skia_unittests",
brettwa874dcc2015-08-28 23:59:18206 "//sql:sql_unittests",
ochangcc11d0e2016-04-26 19:58:26207 "//tools/ipc_fuzzer:ipc_fuzzer_all",
sherouk4fb74d42015-08-24 15:58:41208 "//ui/base:ui_base_unittests",
sherouk84a45ff2015-09-01 13:31:39209 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:41210 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:18211 ]
dpranke2a294622015-08-07 05:23:01212
sdefresne21832bf92016-03-30 22:01:02213 if (!is_android && !is_chromecast) {
214 deps += [
215 "//crypto:crypto_unittests",
216 "//google_apis/gcm:gcm_unit_tests",
217 ]
218 }
219
slance9d62f2015-11-04 01:15:01220 if (!is_ios && !is_android && !is_chromecast) {
sherouk53f0f1a2015-08-03 15:59:35221 deps += [
sherouk53f0f1a2015-08-03 15:59:35222 "//chrome",
223 "//chrome/test:browser_tests",
224 "//chrome/test:interactive_ui_tests",
225 "//chrome/test:sync_integration_tests",
sherouk53f0f1a2015-08-03 15:59:35226 "//chrome/test/chromedriver:chromedriver_unittests",
Max Boguefef332d2016-07-28 22:09:09227 "//components/sync/tools:sync_client",
228 "//components/sync/tools:sync_listen_notifications",
jamescookfbbf9112016-06-14 16:24:49229 "//extensions:extensions_browsertests",
230 "//extensions:extensions_unittests",
dprankedbdd9d82015-08-12 21:18:18231 "//gpu/gles2_conform_support:gles2_conform_test",
stevenjb604316362016-05-06 22:10:26232 "//gpu/khronos_glcts_support:khronos_glcts_test",
sherouk53f0f1a2015-08-03 15:59:35233 "//jingle:jingle_unittests",
sherouk53f0f1a2015-08-03 15:59:35234 "//net:hpack_example_generator",
235 "//net:hpack_fuzz_mutator",
236 "//net:hpack_fuzz_wrapper",
sherouk53f0f1a2015-08-03 15:59:35237 "//ppapi:ppapi_unittests",
238 "//ppapi/examples/2d",
239 "//ppapi/examples/audio",
240 "//ppapi/examples/audio_input",
241 "//ppapi/examples/compositor",
242 "//ppapi/examples/crxfs",
243 "//ppapi/examples/enumerate_devices",
244 "//ppapi/examples/file_chooser",
245 "//ppapi/examples/flash_topmost",
246 "//ppapi/examples/font",
247 "//ppapi/examples/gamepad",
248 "//ppapi/examples/gles2",
249 "//ppapi/examples/gles2_spinning_cube",
250 "//ppapi/examples/ime",
251 "//ppapi/examples/input",
252 "//ppapi/examples/media_stream_audio",
253 "//ppapi/examples/media_stream_video",
254 "//ppapi/examples/mouse_cursor",
255 "//ppapi/examples/mouse_lock",
256 "//ppapi/examples/printing",
257 "//ppapi/examples/scaling",
258 "//ppapi/examples/scripting",
259 "//ppapi/examples/stub",
260 "//ppapi/examples/threading",
261 "//ppapi/examples/url_loader",
262 "//ppapi/examples/video_capture",
263 "//ppapi/examples/video_decode",
264 "//ppapi/examples/video_effects",
265 "//ppapi/examples/video_encode",
266 "//printing:printing_unittests",
sherouk53f0f1a2015-08-03 15:59:35267 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
268 "//third_party/codesighs",
pkotwicz558d5252015-10-19 21:09:55269 "//third_party/pdfium/samples:pdfium_test",
kjellanderb1ab7b82016-11-01 08:34:21270 "//third_party/webrtc/tools:frame_analyzer",
charliea00055282016-01-26 00:15:15271 "//tools/battor_agent",
charliea5daef2bb2016-01-29 00:13:25272 "//tools/battor_agent:battor_agent_unittests",
pkotwicz558d5252015-10-19 21:09:55273 "//tools/gn",
dpranke244f973d62015-11-20 05:38:10274 "//tools/gn:gn_unittests",
pkotwicz558d5252015-10-19 21:09:55275 "//tools/perf/clear_system_cache",
276 "//ui/accessibility:accessibility_unittests",
pkotwicz558d5252015-10-19 21:09:55277 ]
278 }
279
280 if (!is_ios) {
281 # TODO(GYP): Figure out which of these should actually build on iOS,
282 # and whether there should be other targets that are iOS-only and missing.
283 deps += [
284 "//cc:cc_unittests",
stipc6de0f492016-06-01 20:05:03285 "//chrome/test:telemetry_perf_unittests",
pkotwicz558d5252015-10-19 21:09:55286 "//chrome/test:unit_tests",
287 "//components:components_browsertests",
288 "//content/shell:content_shell",
289 "//content/test:content_browsertests",
290 "//content/test:content_perftests",
291 "//content/test:content_unittests",
292 "//device:device_unittests",
293 "//gpu:gpu_unittests",
markdittmerd88b8352016-04-08 15:28:45294 "//gpu/ipc/service:gpu_ipc_service_unittests",
pkotwicz558d5252015-10-19 21:09:55295 "//ipc:ipc_tests",
pkotwicz558d5252015-10-19 21:09:55296 "//media:media_unittests",
mcasasd2f53ea2016-06-24 19:24:27297 "//media/capture:capture_unittests",
miu45b848fe2015-11-26 01:23:29298 "//media/cast:cast_unittests",
pkotwicz558d5252015-10-19 21:09:55299 "//media/midi:midi_unittests",
300 "//mojo",
pkotwicz558d5252015-10-19 21:09:55301 "//mojo/common:mojo_common_unittests",
rockotc637caf9b2016-02-10 09:57:08302 "//mojo/edk/system:mojo_system_unittests",
303 "//mojo/edk/test:mojo_public_bindings_unittests",
rockotc637caf9b2016-02-10 09:57:08304 "//mojo/edk/test:mojo_public_system_unittests",
pkotwicz558d5252015-10-19 21:09:55305 "//net:net_perftests",
rockot734fb662016-10-15 16:41:30306 "//services/service_manager/public/cpp",
pwnall008c0272016-10-14 16:54:04307 "//storage//browser:storage_unittests",
Dirk Pranke49802732015-12-10 01:36:41308 "//third_party/WebKit/Source/platform:blink_platform_unittests",
brettw4a6700a2016-09-01 01:24:01309 "//third_party/WebKit/Source/platform/heap:blink_heap_unittests",
dpranke244f973d62015-11-20 05:38:10310 "//third_party/WebKit/Source/web:webkit_unit_tests",
311 "//third_party/WebKit/Source/wtf:wtf_unittests",
brettwc5fcdd02016-10-12 07:25:12312 "//third_party/angle/src/tests:angle_end2end_tests",
313 "//third_party/angle/src/tests:angle_unittests",
nednguyenc42bf912016-01-27 01:39:28314 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35315 "//third_party/smhasher:pmurhash",
316 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35317 "//ui/display:display_unittests",
318 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35319 "//ui/gl:gl_unittests",
320 "//ui/touch_selection:ui_touch_selection_unittests",
markdittmer67b71ea2016-03-03 22:40:03321 "//url/ipc:url_ipc_unittests",
sherouk53f0f1a2015-08-03 15:59:35322 ]
sdefresne998e8582015-10-07 13:36:45323 } else {
sdefresne88abe362016-06-01 10:40:11324 deps += [ "//ios:all" ]
sherouk53f0f1a2015-08-03 15:59:35325 }
dprankee2ef3822015-02-24 21:42:18326
scottmg34fb7e52014-12-03 23:27:24327 deps += root_extra_deps
[email protected]fce5c3fe2014-04-10 21:13:05328
tfarina4aa9edc2015-10-26 22:14:02329 if (enable_extensions) {
jamescookfbbf9112016-06-14 16:24:49330 deps += [ "//extensions/shell:app_shell_unittests" ]
rockot2f1326e2015-02-23 23:53:51331 }
332
dprankefd1813272015-04-13 23:56:00333 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55334 deps += [ "//chrome/browser/media/router" ]
dprankefd1813272015-04-13 23:56:00335 }
336
garykac3eddb5b2015-04-17 23:16:38337 if (enable_remoting) {
338 deps += [ "//remoting:remoting_all" ]
dprankece5eb832015-04-01 20:21:05339 }
340
dprankee2ef3822015-02-24 21:42:18341 if (toolkit_views) {
ellyjones41c21fe2016-06-09 17:10:19342 deps += [
343 "//ui/views:views_unittests",
344 "//ui/views/examples:views_examples_exe",
345 "//ui/views/examples:views_examples_with_content_exe",
346 ]
James Robinson060f2e32014-09-10 22:31:37347 }
348
dprankee2ef3822015-02-24 21:42:18349 if (use_aura) {
mswda0133e62016-02-16 20:50:02350 deps += [
skycf094f672016-09-01 19:40:12351 "//ash:ash_content_unittests",
jamescookfbbf9112016-06-14 16:24:49352 "//ash:ash_shell_with_content",
353 "//ash:ash_unittests",
tapted87ca2d62016-05-19 20:48:49354 "//ui/app_list:app_list_unittests",
355 "//ui/app_list/presenter:app_list_presenter_unittests",
mswda0133e62016-02-16 20:50:02356 "//ui/aura:aura_unittests",
mswda0133e62016-02-16 20:50:02357 "//ui/aura:demo",
358 "//ui/wm:wm_unittests",
359 ]
dprankee2ef3822015-02-24 21:42:18360 }
361
thomasanderson98f58ce72016-11-01 20:38:58362 if (is_linux && !is_chromeos && !is_chromecast && !use_ozone) {
363 # TODO(thomasanderson): Remove this once we build using
364 # GTK3 by default. (crbug.com/132847, crbug.com/79722)
365 deps += [ "//chrome/browser/ui/libgtkui:libgtk3ui" ]
366 }
367
dprankee2ef3822015-02-24 21:42:18368 if (use_ozone) {
kylechar5c9a1fb62016-10-21 13:17:25369 deps += [
370 "//ui/ozone",
371 "//ui/ozone:ozone_unittests",
372 "//ui/ozone/gl:ozone_gl_unittests",
373 ]
[email protected]a306aaa2014-05-24 13:21:50374 }
375
tandrii2939f78b52016-11-16 16:33:31376 if (use_x11) {
dprankefd1813272015-04-13 23:56:00377 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22378 }
379
tmoniuszkoe5578b922015-04-14 09:38:03380 if (enable_configuration_policy) {
381 deps += [ "//components/policy:policy_templates" ]
382 }
383
oth2a6531922016-07-13 10:06:14384 if (v8_use_external_startup_data) {
385 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
386 }
387
brettw66e3feab2015-07-20 23:52:22388 if (is_win) {
brettwf986f9572015-10-07 17:18:15389 deps += [
390 "//chrome/installer/gcapi",
391 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
392 ]
brettw66e3feab2015-07-20 23:52:22393 }
394
[email protected]5a8d5162014-04-12 01:19:16395 if (is_android) {
[email protected]26046b52014-07-16 00:11:03396 deps += [
pkotwicze2dae8b2015-11-03 20:12:55397 "//base:base_junit_tests",
dpranke244f973d62015-11-20 05:38:10398 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38399 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02400 "//build/android/rezip",
pkotwicz2dd67962016-05-10 00:21:08401 "//chrome/android/webapk/shell_apk:webapk",
pkotwicze2dae8b2015-11-03 20:12:55402 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
403 "//components/policy/android:components_policy_junit_tests",
404 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45405 "//content/shell/android:content_shell_apk",
markdittmer6e70beb82016-05-02 05:40:47406 "//media/gpu:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55407 "//net/android:net_junit_tests",
jbudorick5ef42902016-04-07 04:17:11408 "//testing/android/junit:junit_unit_tests",
wnwen41f70b92016-06-22 14:48:56409 "//third_party/android_async_task:android_async_task_java",
agrieve40ba6862015-07-15 02:09:05410 "//third_party/errorprone:chromium_errorprone",
pkotwicz8adff4e2015-12-17 21:55:45411 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10412 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49413 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34414 "//tools/android:push_apps_to_background",
jbudorickdfc01f62016-06-01 15:42:12415 "//tools/android/audio_focus_grabber:audio_focus_grabber_apk",
416 "//tools/android/customtabs_benchmark:customtabs_benchmark_apk",
dgn28050da2015-10-19 10:16:43417 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
pkotwicz077093762015-12-21 16:47:15418 "//tools/cygprofile:cygprofile_unittests",
newt9e226032016-01-26 01:30:15419 "//ui/android:ui_junit_tests",
dprankee2ef3822015-02-24 21:42:18420 ]
421 deps -= [
rockot9c67e5f2015-03-12 20:01:21422 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18423 "//url:url_unittests",
[email protected]26046b52014-07-16 00:11:03424 ]
425
pkotwicz92e2e2312015-12-15 22:29:46426 if (!is_component_build) {
427 deps += [
agrievee23386b2016-01-05 04:47:58428 "//components/cronet/android:cronet_package",
jbudorickdfc01f62016-06-01 15:42:12429 "//components/cronet/android:cronet_perf_test_apk",
pkotwicz92e2e2312015-12-15 22:29:46430 "//components/cronet/android:cronet_sample_apk",
431 "//components/cronet/android:cronet_sample_test_apk",
432 "//components/cronet/android:cronet_test_apk",
433 "//components/cronet/android:cronet_test_instrumentation_apk",
434 "//components/cronet/android:cronet_unittests",
435 ]
436 }
437
pkotwicz061c5a42015-09-30 02:16:54438 if (!is_chromecast) {
439 deps += [
michaelbaicbcc7e62015-11-12 04:29:53440 "//android_webview",
agrieveb08e2f5b2015-12-29 01:17:30441 "//android_webview/test",
mikecasecb1b5062016-07-01 20:53:44442 "//android_webview/tools/automated_ui_tests:webview_ui_test_app",
mikecase49971fc2016-03-21 21:18:05443 "//android_webview/tools/system_webview_shell",
pkotwicze2dae8b2015-11-03 20:12:55444 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54445 "//chrome/android:chrome_public_apk",
smaierd50624e2016-08-05 14:21:10446 "//chrome/android:chrome_public_test_apk",
447 "//chrome/android:chrome_sync_shell_test_apk",
pkotwicz061c5a42015-09-30 02:16:54448 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b42015-12-28 20:23:11449 "//content/shell/android:content_shell_test_apk",
pkotwicz0a2255e2015-10-06 16:29:05450 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54451 ]
452 }
453
pkotwicz06a4b4b42015-10-29 23:11:11454 if (target_cpu != "x64") {
jbudorickdfc01f62016-06-01 15:42:12455 deps += [
456 "//content/shell/android:chromium_linker_test_apk",
457 "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)",
458 ]
pkotwicz06a4b4b42015-10-29 23:11:11459 }
460
cjhopmanca675d3e2014-10-24 03:50:45461 if (has_chrome_android_internal) {
brettwf9427f92016-05-05 23:18:55462 deps += [ "//clank" ]
cjhopmanca675d3e2014-10-24 03:50:45463 }
dprankedb5527d72015-03-08 04:22:47464 }
465
brettwf9427f92016-05-05 23:18:55466 if (is_linux || is_android) {
dprankefd1813272015-04-13 23:56:00467 deps += [
pkotwicza4d233b22015-11-02 18:20:38468 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00469 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38470 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00471 "//breakpad:minidump-2-core",
472 ]
473 }
474
dpranke6293d252015-04-14 19:12:00475 if (is_chromeos) {
476 deps += [
477 "//chromeos:chromeos_unittests",
yoshiki8e2ddbb2016-03-10 07:11:22478 "//ui/arc:ui_arc_unittests",
dpranke6293d252015-04-14 19:12:00479 "//ui/chromeos:ui_chromeos_unittests",
480 ]
481 }
482
dprankefd1813272015-04-13 23:56:00483 if (is_chromeos || is_mac || is_win) {
484 deps += [
485 "//rlz:rlz_id",
486 "//rlz:rlz_lib",
487 "//rlz:rlz_unittests",
488 ]
489 }
490
dprankedb5527d72015-03-08 04:22:47491 if (is_linux) {
492 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06493 deps += [
dpranke2bc89212015-11-18 00:24:43494 "//chrome:manpage",
495 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47496 "//net:disk_cache_memory_test",
dprankedb5527d72015-03-08 04:22:47497 "//net:quic_client",
498 "//net:quic_server",
499 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18500 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06501 ]
dnicoara8c6aa8e2015-03-11 23:20:32502
mbjorgea12e5a52016-05-31 22:15:17503 if (use_dbus) {
504 deps += [
505 "//dbus:dbus_test_server",
506 "//dbus:dbus_unittests",
507 ]
508 }
509
dnicoara8c6aa8e2015-03-11 23:20:32510 if (is_chromeos || use_ash) {
511 deps += [ "//components/session_manager/core" ]
512 }
dpranke2bc89212015-11-18 00:24:43513
514 if (is_chrome_branded && is_official_build) {
515 # TODO(dpranke): add the linux_dump_symbols flag?
516 deps += [ "//chrome:linux_symbols" ]
517 }
dprankedb5527d72015-03-08 04:22:47518 }
519
sherouke1859f92015-08-05 10:19:10520 if (is_ios || is_win || (is_linux && !is_chromeos)) {
521 deps += [
522 "//base:base_i18n_perftests",
523 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58524 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10525 ]
526 }
527
sugoia7e3afc2016-11-23 22:05:24528 if (is_win || is_mac) {
sugoiabe91892016-09-20 12:53:51529 deps += [ "//third_party/swiftshader" ]
530 }
531
thakis507c15c2016-06-01 00:26:01532 # TODO(GYP): Figure out which of these should (and can) build
533 # for chromeos/ios.
534 if (!is_chromeos && !is_ios) {
tfarina9e7cf702015-02-23 21:13:44535 deps += [
dprankedb5527d72015-03-08 04:22:47536 "//base:build_utf8_validator_tables",
dpranke244f973d62015-11-20 05:38:10537 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47538 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00539 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47540 "//components:components_perftests",
Max Boguefef332d2016-07-28 22:09:09541 "//components/sync:run_sync_testserver",
dprankedb5527d72015-03-08 04:22:47542 "//device:device_unittests",
543 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47544 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47545 "//google_apis/gcm:mcs_probe",
dprankefd1813272015-04-13 23:56:00546 "//gpu:gl_tests",
dpranke244f973d62015-11-20 05:38:10547 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47548 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47549 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00550 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47551 "//third_party/codesighs:maptsvdifftool",
dprankefd1813272015-04-13 23:56:00552 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47553 "//ui/compositor:compositor_unittests",
554 ]
555
agrieve473155b42015-12-28 20:23:11556 if (!is_android) {
557 deps += [
558 "//chrome/test:load_library_perf_tests",
559 "//chrome/test:sync_performance_tests",
560 "//chrome/test/chromedriver:chromedriver",
561 "//chrome/test/chromedriver:chromedriver_tests",
562 "//courgette:courgette",
563 "//courgette:courgette_fuzz",
564 "//courgette:courgette_minimal_tool",
565 "//courgette:courgette_unittests",
stevenjb7b6fd642016-05-18 18:15:30566 "//media/cast:generate_barcode_video",
567 "//media/cast:generate_timecode_audio",
agrieve473155b42015-12-28 20:23:11568 "//net:crash_cache",
569 "//net:crl_set_dump",
570 "//net:dns_fuzz_stub",
571 "//net:gdig",
572 "//net:get_server_time",
573 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
574 "//net:run_testserver",
575 "//net:stress_cache",
576 "//net:tld_cleanup",
577 "//ppapi:pepper_hash_for_uma",
578 "//ppapi:ppapi_perftests",
agrieve473155b42015-12-28 20:23:11579 "//third_party/leveldatabase:env_chromium_unittests",
580 "//third_party/libaddressinput:libaddressinput_unittests",
581 ]
582 }
dpranke7e19b472015-11-13 00:49:33583
jamescookfbbf9112016-06-14 16:24:49584 if (enable_extensions) {
585 deps += [ "//extensions/shell:app_shell" ]
586 }
587
dprankedb5527d72015-03-08 04:22:47588 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13589 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43590
591 if (is_linux) {
592 # TODO(dpranke): Figure out what platforms should actually have this.
milko.leporis3de038d2016-08-18 09:59:37593 deps += [ "//components/nacl/loader:nacl_helper" ]
594
595 if (enable_nacl_nonsfi) {
596 deps += [
597 "//components/nacl/loader:helper_nonsfi",
598 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
599 ]
600 }
dpranke2bc89212015-11-18 00:24:43601 }
dprankedb5527d72015-03-08 04:22:47602 }
603
xhwangfa2d9d472015-12-18 23:31:18604 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10605 deps += [ "//media:ffmpeg_regression_tests" ]
606 }
dprankefd1813272015-04-13 23:56:00607 }
608
agrieve473155b42015-12-28 20:23:11609 if (is_android || (is_linux && !is_chromeos)) {
dprankefd1813272015-04-13 23:56:00610 deps += [
agrieve473155b42015-12-28 20:23:11611 "//breakpad:dump_syms($host_toolchain)",
612 "//breakpad:microdump_stackwalk($host_toolchain)",
613 "//breakpad:minidump_dump($host_toolchain)",
614 "//breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00615 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00616 "//content/public/app:browser",
617 "//content/public/app:child",
rockotc637caf9b2016-02-10 09:57:08618 "//mojo/edk/test:mojo_public_system_perftests",
rockot734fb662016-10-15 16:41:30619 "//services/service_manager/public/cpp",
dprankefd1813272015-04-13 23:56:00620 "//testing/gmock:gmock_main",
dpranke244f973d62015-11-20 05:38:10621 "//third_party/codesighs:nm2tsv",
dprankefd1813272015-04-13 23:56:00622 ]
623
agrieve473155b42015-12-28 20:23:11624 if (!is_android) {
625 deps += [
agrieve473155b42015-12-28 20:23:11626 "//chrome/test:chrome_app_unittests",
brettwf9427f92016-05-05 23:18:55627 "//gpu/khronos_glcts_support:khronos_glcts_test",
agrieve473155b42015-12-28 20:23:11628 "//media/cast:cast_benchmarks",
629 "//media/cast:tap_proxy",
630 "//skia:filter_fuzz_stub",
631 "//skia:image_operations_bench",
agrieve473155b42015-12-28 20:23:11632 "//third_party/sqlite:sqlite_shell",
633 "//ui/keyboard:keyboard_unittests",
634 "//ui/message_center:message_center_unittests",
635 "//ui/snapshot:snapshot_unittests",
agrieve473155b42015-12-28 20:23:11636 ]
dprankefd1813272015-04-13 23:56:00637
agrieve473155b42015-12-28 20:23:11638 if (!is_debug && !is_component_build) {
639 deps += [ "//chrome/tools/service_discovery_sniffer" ]
640 }
yutakbfb4d1672016-06-13 07:42:59641
642 if (is_clang) {
643 deps += [ "//build/sanitizers:copy_llvm_symbolizer" ]
644 }
dprankefd1813272015-04-13 23:56:00645 }
646
dprankedb5527d72015-03-08 04:22:47647 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44648 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59649 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44650 }
dprankedb5527d72015-03-08 04:22:47651 }
652 }
653
654 if (is_mac) {
655 deps += [
656 "//breakpad:crash_inspector",
657 "//breakpad:dump_syms",
miguelg765f2212016-10-06 09:02:26658
659 # XPC service is in developement and guarded against the
660 # enable_xpc_notifications, in the meantime however we still
661 # need compile coverage in the bots.
662 "//chrome/browser/ui/cocoa/notifications:alert_notification_xpc_service",
tfarina9e7cf702015-02-23 21:13:44663 "//third_party/apple_sample_code",
664 "//third_party/molokocacao",
665 ]
dpranke43760592014-11-08 02:59:57666 deps -= [
brettw011138d2015-10-21 03:05:38667 # Mojo in GN contains some things which are never compiled in GYP on Mac,
668 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10669 "//mojo",
dprankecf8465db72014-11-10 23:51:22670 ]
dprankefd1813272015-04-13 23:56:00671 }
672
673 if (is_win) {
674 deps += [
675 "//base:pe_image_test",
anantaf2e54a92016-05-28 00:39:16676 "//chrome/install_static:install_static_unittests",
grt734e87b2015-07-06 19:36:43677 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00678 "//chrome_elf:chrome_elf_unittests",
679 "//chrome_elf:dll_hash_main",
dprankefd1813272015-04-13 23:56:00680 "//components/wifi:wifi_test",
681 "//net:quic_client",
682 "//net:quic_server",
683 "//sandbox/win:pocdll",
684 "//sandbox/win:sandbox_poc",
685 "//sandbox/win:sbox_integration_tests",
686 "//sandbox/win:sbox_unittests",
687 "//sandbox/win:sbox_validation_tests",
688 "//testing/gtest:gtest_main",
689 "//third_party/codesighs:msmap2tsv",
690 "//third_party/pdfium/samples:pdfium_diff",
dprankefd1813272015-04-13 23:56:00691 ]
dprankee2ef3822015-02-24 21:42:18692 deps -= [
693 "//crypto:crypto_unittests", # TODO(GYP)
694 "//net:net_unittests", # TODO(GYP)
695 ]
fdorayfb048bff2016-04-28 22:07:36696
697 if (!(is_component_build && is_debug && target_cpu == "x86")) {
698 deps +=
699 [ "//chrome/installer/mini_installer:next_version_mini_installer" ]
700 }
sherouk53f0f1a2015-08-03 15:59:35701 } else if (!is_android && !is_ios) {
miu45b848fe2015-11-26 01:23:29702 deps += [ "//breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34703 }
rsesek985bd812016-04-26 21:06:15704
slance9d62f2015-11-04 01:15:01705 if (is_chromecast) {
706 deps += [ "//chromecast:cast_shell" ]
707 }
miu45b848fe2015-11-26 01:23:29708
rsesek985bd812016-04-26 21:06:15709 if (is_mac || is_win) {
710 deps += [
711 "//third_party/crashpad/crashpad/handler:crashpad_handler",
712 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
713 ]
714 }
715
hbos17a7b4a22015-12-07 10:49:45716 if (use_openh264) {
717 deps += [
718 "//third_party/openh264:common",
719 "//third_party/openh264:encoder",
720 "//third_party/openh264:processing",
721 ]
722 }
[email protected]f0e7ff882013-12-26 21:23:09723}
brettw533c50422015-02-26 17:49:16724
dpranked62d8512015-03-02 03:06:03725group("gn_only") {
dprankedb5527d72015-03-08 04:22:47726 testonly = true
727
dpranke2a294622015-08-07 05:23:01728 deps = []
729
amistry4dcd7c42015-12-16 04:53:10730 if (!is_ios) {
xhwangf69024d12016-06-16 17:52:29731 deps += [
732 "//media/mojo:media_mojo_unittests",
733 "//mojo/common:mojo_common_perftests",
chfremerdb24ccb2016-08-16 17:55:16734 "//services/video_capture:video_capture_unittests",
xhwangf69024d12016-06-16 17:52:29735 ]
amistry4dcd7c42015-12-16 04:53:10736 }
737
scheib35dc9202016-04-26 22:35:43738 if (!is_android && !is_ios) {
739 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
740 }
741
dpranke244f973d62015-11-20 05:38:10742 if (!is_android && !is_ios && !is_chromeos) {
xjz9da998022016-10-26 01:22:11743 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
isherman0f89b43eb2015-04-11 00:02:45744 }
745
ben8f4e95ad2015-12-01 18:35:58746 if (is_win || is_linux) {
sky70471b22016-01-14 16:20:54747 deps += [
748 "//mash:all",
bena5d1cd42016-04-29 22:59:53749 "//media/mojo/services:media_mojo_shell_unittests",
skyfcde3a42016-02-09 20:27:44750 "//mojo",
benee648f62016-05-12 23:04:50751 "//services/navigation",
jonross63b021f2016-11-02 00:56:21752 "//services/preferences:tests",
ben6b0453d12016-07-02 04:27:19753 "//services/ui/demo",
kylechar5c9a1fb62016-10-21 13:17:25754 "//services/ui/demo:mus_demo_unittests",
755 "//services/ui/public/interfaces:ui_struct_traits_unittests",
ben6b0453d12016-07-02 04:27:19756 "//services/ui/ws:tests",
qyearsley88bc4802016-05-17 18:02:34757 "//ui/views/mus:views_mus_interactive_ui_tests",
bena5d1cd42016-04-29 22:59:53758 "//ui/views/mus:views_mus_unittests",
sky70471b22016-01-14 16:20:54759 ]
kylechar5c9a1fb62016-10-21 13:17:25760
kylechar9ee25182016-11-06 03:50:30761 if (use_ozone && is_chromeos) {
kylechar5c9a1fb62016-10-21 13:17:25762 deps += [ "//services/ui/display:display_service_unittests" ]
763 }
sky97b65592015-11-02 20:08:25764 }
765
stevenjb7b6fd642016-05-18 18:15:30766 if (is_linux && !is_chromeos && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47767 # TODO(GYP): Figure out if any of these should be in gn_all
768 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45769 deps += [
dprankedb5527d72015-03-08 04:22:47770 ":gn_mojo_targets",
771 "//chrome/browser/resources:extension_resource_demo",
772 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47773 "//chrome/tools/convert_dict",
774 "//components/constrained_window:unit_tests",
erg4652931e2016-04-27 22:15:40775 "//components/filesystem:filesystem_service_unittests",
ergf1f689f2016-03-22 00:51:20776 "//components/leveldb:leveldb_service_unittests",
dprankedb5527d72015-03-08 04:22:47777 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45778 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47779 "//components/rappor:unit_tests",
780 "//components/sessions:unit_tests",
781 "//media/blink:media_blink_unittests",
stevenjb7b6fd642016-05-18 18:15:30782 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47783 "//storage/browser:dump_file_system",
784 "//third_party/angle:libANGLE",
785 "//third_party/angle:libEGL",
786 "//third_party/angle:libGLESv2",
dprankedb5527d72015-03-08 04:22:47787 "//third_party/leveldatabase:leveldb_arena_test",
788 "//third_party/leveldatabase:leveldb_bloom_test",
dprankedb5527d72015-03-08 04:22:47789 "//third_party/leveldatabase:leveldb_cache_test",
dprankedb5527d72015-03-08 04:22:47790 "//third_party/leveldatabase:leveldb_corruption_test",
dpranke244f973d62015-11-20 05:38:10791 "//third_party/leveldatabase:leveldb_crc32c_test",
792 "//third_party/leveldatabase:leveldb_db_bench",
793 "//third_party/leveldatabase:leveldb_db_test",
dprankedb5527d72015-03-08 04:22:47794 "//third_party/leveldatabase:leveldb_dbformat_test",
dpranke244f973d62015-11-20 05:38:10795 "//third_party/leveldatabase:leveldb_env_test",
796 "//third_party/leveldatabase:leveldb_filename_test",
797 "//third_party/leveldatabase:leveldb_filter_block_test",
798 "//third_party/leveldatabase:leveldb_log_test",
799 "//third_party/leveldatabase:leveldb_skiplist_test",
800 "//third_party/leveldatabase:leveldb_table_test",
801 "//third_party/leveldatabase:leveldb_version_edit_test",
802 "//third_party/leveldatabase:leveldb_write_batch_test",
dprankedb5527d72015-03-08 04:22:47803 "//third_party/libjpeg_turbo:simd",
dprankedb5527d72015-03-08 04:22:47804 "//third_party/opus:opus_compare",
805 "//third_party/opus:opus_demo",
dpranke244f973d62015-11-20 05:38:10806 "//third_party/opus:test_opus_api",
dprankedb5527d72015-03-08 04:22:47807 "//third_party/opus:test_opus_decode",
808 "//third_party/opus:test_opus_encode",
dprankedb5527d72015-03-08 04:22:47809 "//third_party/opus:test_opus_padding",
dpranke244f973d62015-11-20 05:38:10810 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47811 "//third_party/webrtc/system_wrappers:field_trial_default",
812 "//third_party/webrtc/system_wrappers:metrics_default",
813 "//ui/display/types",
814 "//ui/shell_dialogs:shell_dialogs_unittests",
dprankedb5527d72015-03-08 04:22:47815 ]
dprankeb0713542015-07-31 21:07:21816
ossy.szegedd584dd72016-11-21 11:36:18817 if (enable_nacl) {
818 deps += [ "//native_client/src/trusted/debug_stub:gdb_rsp_unittest" ]
819 }
820
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16821 if (target_cpu == "x86" || target_cpu == "x64") {
agrieve473155b42015-12-28 20:23:11822 if (!is_android) {
823 deps += [ "//chrome/test:load_library_perf_tests" ]
824 }
mcgrathr916aafa2015-09-15 00:06:53825 deps += [
mcgrathr916aafa2015-09-15 00:06:53826 "//native_client/src/trusted/platform_qualify:vcpuid",
dpranke244f973d62015-11-20 05:38:10827 "//third_party/libjpeg_turbo:simd_asm",
mcgrathr916aafa2015-09-15 00:06:53828 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16829 }
dpranke807f602b2015-03-17 23:20:56830 if (is_linux && current_toolchain == host_toolchain) {
jochen11513aa02016-05-11 09:59:51831 deps += [ "//v8:v8_shell" ]
dpranke807f602b2015-03-17 23:20:56832 }
dprankedb5527d72015-03-08 04:22:47833 }
dprankeb0713542015-07-31 21:07:21834
spang324dc57a2016-04-06 14:54:08835 if (use_ozone) {
836 deps += [ "//ui/ozone/demo" ]
837 }
838
aizatskyaf496112016-04-15 19:26:32839 if ((is_linux && !is_chromeos && !is_chromecast) || (is_win && use_drfuzz) ||
840 (use_libfuzzer && is_mac)) {
841 deps += [
842 "//testing/libfuzzer/fuzzers",
843 "//testing/libfuzzer/tests:libfuzzer_tests",
aizatsky3f560172016-06-03 23:26:06844 "//third_party/icu/fuzzers",
aizatskyaf496112016-04-15 19:26:32845 ]
miu16396172016-09-28 00:05:56846
847 # TODO(miu): Remove this dependency once the build configuration in
848 # chrome/browser/BUILD.gn is migrated to chrome/browser/media/BUILD.gn.
849 # This dependency here only exists to allow GN to discover the
850 # fuzzer_test target there.
851 deps += [ "//chrome/browser/media:cast_remoting_connector_fuzzer" ]
aizatskyaf496112016-04-15 19:26:32852 }
853
sbc92b4d572016-02-18 03:28:23854 if (enable_nacl) {
855 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
856 }
857
agrieve473155b42015-12-28 20:23:11858 if (is_android) {
zpeng00a360e2016-11-21 23:05:02859 deps += [ "//build/android/gyp/test:hello_world" ]
nyquistb5f050b2015-09-10 05:10:35860 }
861
skyostilfe116162016-02-26 20:53:33862 if (is_linux && use_ozone) {
863 deps += [
864 "//headless",
865 "//headless:headless_tests",
866 ]
867 }
868
agrieve473155b42015-12-28 20:23:11869 if (!is_chromecast && (is_android || is_linux || is_chromeos)) {
870 deps += [
871 "//blimp",
872 "//blimp:blimp_tests",
873 ]
dprankeb0713542015-07-31 21:07:21874 }
dprankedb5527d72015-03-08 04:22:47875}
876
877group("gn_mojo_targets") {
878 testonly = true
879 if (is_linux && !is_chromeos) {
880 # TODO(GYP): Figure out if any of these should be in gn_all
881 # and figure out how cross-platform they are
882 deps = [
amistryd4aa70d2016-06-23 07:52:37883 "//ipc:ipc_tests",
msw1bb9c6c2015-05-06 21:35:44884 "//mojo:tests",
rockot2a0f4fb32016-11-11 18:44:19885 "//services:service_unittests",
dprankedb5527d72015-03-08 04:22:47886 ]
dprankedb5527d72015-03-08 04:22:47887 }
888}
889
890group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03891 deps = [
dprankeb6128d02015-05-01 16:40:30892 "//build/config/sanitizers:options_sources",
dprankedb5527d72015-03-08 04:22:47893 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
894 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dpranked62d8512015-03-02 03:06:03895 ]
dpranked2fb5222015-09-10 22:39:05896
897 if (!is_ios) {
898 deps += [
dpranked2fb5222015-09-10 22:39:05899 "//v8:postmortem-metadata",
dpranke244f973d62015-11-20 05:38:10900 "//v8:v8_snapshot",
dpranked2fb5222015-09-10 22:39:05901 ]
902 }
dpranked62d8512015-03-02 03:06:03903}
904
tfarinacb2638b2015-05-12 03:24:15905if (!is_ios) {
906 # This group includes all of the targets needed to build and test Blink,
907 # including running the layout tests (see below).
908 group("blink_tests") {
909 testonly = true
910
911 deps = [
tansell88df42592016-11-15 07:22:59912 ":webkit_layout_tests",
tfarinacb2638b2015-05-12 03:24:15913 "//third_party/WebKit/public:all_blink",
tansell88df42592016-11-15 07:22:59914 ]
915 }
916
917 # Layout tests runner
918 # third_party/WebKit/Tools/Scripts/run-webkit-tests
919 group("run_webkit_tests") {
920 testonly = true
921 deps = [
922 ":webkit_layout_tests",
923 ]
924 }
925
926 # https://www.chromium.org/developers/testing/webkit-layout-tests
927 group("webkit_layout_tests") {
928 testonly = true
929
930 data_deps = [
931 "//content/shell:content_shell",
agrieve993374cf2016-04-13 00:05:39932 "//tools/imagediff",
tfarinacb2638b2015-05-12 03:24:15933 ]
934
tfarinacb2638b2015-05-12 03:24:15935 if (is_android) {
tansell88df42592016-11-15 07:22:59936 data_deps += [
agrieve62ab00282016-04-05 02:03:45937 "//breakpad:breakpad_unittests",
agrieve993374cf2016-04-13 00:05:39938 "//breakpad:dump_syms",
939 "//breakpad:microdump_stackwalk",
940 "//breakpad:minidump_dump",
941 "//breakpad:minidump_stackwalk",
942 "//breakpad:symupload",
jbudoricke7bcf092016-09-28 18:24:14943 "//tools/android/forwarder2",
ojan94989c72015-07-17 21:56:42944 ]
tfarinacb2638b2015-05-12 03:24:15945 }
946
947 if (is_win) {
tansell88df42592016-11-15 07:22:59948 data_deps += [ "//content/shell:content_shell_crash_service" ]
tfarinacb2638b2015-05-12 03:24:15949 }
950
951 if (!is_win && !is_android) {
tansell88df42592016-11-15 07:22:59952 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15953 }
954
955 if (is_mac) {
tansell88df42592016-11-15 07:22:59956 data_deps += [ "//breakpad:dump_syms($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15957 }
958
959 if (is_linux) {
tansell88df42592016-11-15 07:22:59960 data_deps += [ "//breakpad:dump_syms($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15961 }
qyearsley165a17a82016-08-01 17:58:50962
963 data = [
tansell88df42592016-11-15 07:22:59964 "//testing/scripts/common.py",
965 "//testing/xvfb.py",
966 "//testing/scripts/run_telemetry_as_googletest.py",
qyearsley165a17a82016-08-01 17:58:50967 "//third_party/WebKit/LayoutTests/",
968 "//third_party/WebKit/Tools/Scripts/",
tansell88df42592016-11-15 07:22:59969 "$root_build_dir/resources/inspector/",
qyearsley165a17a82016-08-01 17:58:50970 ]
tfarinacb2638b2015-05-12 03:24:15971 }
972}
973
dpranke6abd8652015-08-28 03:21:11974# Add a dummy target for compatibility w/ GYP
975group("chromium_swarm_tests") {
976}
977
dpranke2302dfa2015-09-29 02:21:52978group("chromium_builder_perf") {
979 testonly = true
980
thakisca8a42882016-06-10 17:59:30981 if (!is_ios && !is_android && !is_chromecast) {
malets6b7062402016-09-15 08:14:26982 data_deps = [
dpranke2302dfa2015-09-29 02:21:52983 "//cc:cc_perftests",
dpranke2302dfa2015-09-29 02:21:52984 "//chrome/test:load_library_perf_tests",
eyaiche1605ca2016-09-14 14:34:05985 "//chrome/test:telemetry_perf_tests",
kraynovc0797582016-10-25 16:45:06986 "//components/tracing:tracing_perftests",
dpranke2302dfa2015-09-29 02:21:52987 "//gpu:gpu_perftests",
988 "//media:media_perftests",
kbr1e58e782016-05-27 17:21:19989 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
dpranke2302dfa2015-09-29 02:21:52990 ]
991
992 if (!is_chromeos) {
malets6b7062402016-09-15 08:14:26993 data_deps += [ "//chrome/test:performance_browser_tests" ]
dpranke2302dfa2015-09-29 02:21:52994 }
995 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:04996 if (is_official_build) {
997 # In GN builds, this is controlled by the 'linux_dump_symbols'
998 # flag, which defaults to 1 for official builds. For now,
999 # we skip the separate flag and just key off of is_official_build.
malets6b7062402016-09-15 08:14:261000 data_deps += [ "//chrome:linux_symbols" ]
dpranke9aed5d582015-11-22 23:22:041001 }
dpranke2302dfa2015-09-29 02:21:521002
kraynovc0797582016-10-25 16:45:061003 data_deps += [ "//tools/perf/clear_system_cache" ]
dpranke2302dfa2015-09-29 02:21:521004 }
1005
1006 if (is_win) {
malets6b7062402016-09-15 08:14:261007 data_deps += [
hansa3d3aa4d2016-05-04 22:12:521008 "//chrome/installer/mini_installer:mini_installer",
eyaichd3e023c12016-11-14 22:41:011009 "//chrome/test:angle_perftests",
dpranke2302dfa2015-09-29 02:21:521010 ]
dpranke2302dfa2015-09-29 02:21:521011 } else {
malets6b7062402016-09-15 08:14:261012 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:521013 }
1014 }
1015}
agrieve017b91f2016-02-29 20:15:061016
thakis3f7d4fc2016-06-10 18:47:501017if (!is_ios && !is_android && !is_chromecast) {
1018 group("chromium_builder_asan") {
1019 testonly = true
1020
1021 deps = [
1022 "//chrome:chrome",
1023 "//content/shell:content_shell",
1024 "//v8:d8",
1025 ]
1026 if (!is_win) {
1027 deps += [
1028 "//net:dns_fuzz_stub",
1029 "//net:hpack_fuzz_wrapper",
1030 "//skia:filter_fuzz_stub",
1031 ]
1032 }
1033 if (enable_ipc_fuzzer && !is_component_build) {
1034 deps += [ "//tools/ipc_fuzzer:ipc_fuzzer_all" ]
1035 }
1036 if (!is_chromeos) {
1037 deps += [
1038 "//third_party/pdfium/samples:pdfium_test",
dpranke8a2de902016-07-14 20:08:371039 "//v8:v8_shell($v8_snapshot_toolchain)",
thakis3f7d4fc2016-06-10 18:47:501040 ]
1041 }
1042 if (is_clang) {
1043 deps += [ "//build/sanitizers:copy_llvm_symbolizer" ]
1044 }
1045 if (is_win && symbol_level == 2 && target_cpu == "x86" && is_syzyasan) {
1046 deps += [
1047 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
sebmarchanda2df3392016-07-13 15:34:591048 "//content/shell:content_shell_syzyasan",
thakis3f7d4fc2016-06-10 18:47:501049 ]
thakis3f7d4fc2016-06-10 18:47:501050 }
1051 }
1052}
1053
brettw6df3e8c42016-04-14 21:07:131054# For compatibility with GYP. The linux_chromium_chromeos_rel_ng and
1055# linux_chromium_chromeos_compile_rel_ng bots reference this target as
1056# something to build, but all targets for those bots to compile are set
1057# up differently.
1058# TODO bug 601920: Remove reference to aura_builder on bot config and delete
1059# this group.
1060group("aura_builder") {
1061}
1062
agrieve95ba4442016-04-25 15:47:131063if (is_android) {
1064 group("optimize_gn_gen") {
1065 deps = [
1066 # These run expensive scripts in non-default toolchains. Generally, host
1067 # toolchain targets are loaded in the later part of the run, and the
1068 # result is they push out the end of generation. By preloading these, the
1069 # scripts can be parallelized with the rest of the load.
1070 "//build/config/linux(//build/toolchain/linux:clang_x64)",
1071 "//build/config/posix(//build/toolchain/linux:clang_x64)",
1072
1073 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot
1074 # generation.
1075 "//build/config/linux(//build/toolchain/linux:clang_x86)",
1076 "//build/config/posix(//build/toolchain/linux:clang_x86)",
1077 ]
1078 }
1079}
1080
agrieve017b91f2016-02-29 20:15:061081# Because of the source assignment filter, many targets end up over-filtering
1082# their sources if the output directory contains a platform name. Assert that
1083# this doesn't happen. http://crbug.com/548283
1084template("assert_valid_out_dir") {
1085 # List copied from //build/config/BUILDCONFIG.gn.
1086 set_sources_assignment_filter([
1087 "*\bandroid/*",
1088 "*\bchromeos/*",
1089 "*\bcocoa/*",
1090 "*\bios/*",
1091 "*\blinux/*",
1092 "*\bmac/*",
1093 "*\bposix/*",
1094 "*\bwin/*",
1095 ])
1096 assert(target_name != "") # Mark as used.
1097 sources = invoker.actual_sources
1098 assert(
1099 sources == invoker.actual_sources,
1100 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
1101}
1102
1103assert_valid_out_dir("_unused") {
1104 actual_sources = [ "$root_build_dir/foo" ]
1105}