blob: dd4aa36f3de06c61aefab19f2ba8760ddea15d63 [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")
mostynb2196a462015-08-20 17:22:1016import("//media/media_options.gni")
brettw2b112cd2016-10-12 19:35:3617import("//remoting/remoting_enable.gni")
hbos17a7b4a22015-12-07 10:49:4518import("//third_party/openh264/openh264_args.gni")
thakis3f7d4fc2016-06-10 18:47:5019import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
machenbachd65ec5c2016-07-22 09:05:2320import("//v8/gni/v8.gni")
dpranke8a2de902016-07-14 20:08:3721import("//v8/snapshot_toolchain.gni")
dprankee2ef3822015-02-24 21:42:1822
cjhopmanca675d3e2014-10-24 03:50:4523if (is_android) {
24 import("//build/config/android/config.gni")
25}
[email protected]378b4f02014-06-10 15:58:4526
brettwb84b29472014-10-22 22:58:4527declare_args() {
28 # A list of extra dependencies to add to the root target. This allows a
29 # checkout to add additional targets without explicitly changing any checked-
30 # in files.
31 root_extra_deps = []
32}
33
brucedawsonc8d6d652016-09-02 19:43:1834if (is_official_build) {
35 # An official (maximally optimized!) component (optimized for build times)
36 # build doesn't make sense and usually doesn't work.
37 assert(!is_component_build)
38}
39
dprankeef9c5e582015-11-15 23:22:0840# This file defines the following five main targets:
dpranked62d8512015-03-02 03:06:0341#
dprankeddc174902015-04-29 01:38:3542# "both_gn_and_gyp" should list every root target (target that nothing else
43# depends on) built by GN that is also built in the GYP build.
dpranked62d8512015-03-02 03:06:0344#
dprankeddc174902015-04-29 01:38:3545# "gn_all" should (transitively) cause everything to be built; if you run
46# 'ninja gn_all' and then 'ninja all', the second build should do no work.
47#
dprankeef9c5e582015-11-15 23:22:0848# "gn_only" should list every root target that is *not* intended to be built in
49# a GYP build. Because GN has different rules for deciding what an 'all' build
50# is, this may end up including targets that are actually defined in a GYP
51# build but not dependencies of GYP's "all" (and so not actually built).
dprankeddc174902015-04-29 01:38:3552#
dprankeb6128d02015-05-01 16:40:3053# "gn_visibility": targets that are normally not visible to top-level targets,
dprankeef9c5e582015-11-15 23:22:0854# but are built anyway by "all". Since we don't want any such targets, we have
55# this placeholder to make sure hidden targets that aren't otherwise depended
56# on yet are accounted for.
57#
58# "All" is an alias for "gn_all". It exists for bot compatibility w/ GYP for
59# the iOS bots and the official builders, but should not be generally used
60# during the GYP->GN migration. We cannot guarantee that GN's "All" builds the
61# same set of targets as GYP's "All" does, because GYP's "All" supports
62# wildcards.
63#
64# Lastly, none of these targets are guaranteed to be the same as what ninja
65# will build with "all". For more on how "all" works and the differences in how
66# GYP and GN determine "all", see crbug.com/503241.
dprankeb6128d02015-05-01 16:40:3067#
brettwf9427f92016-05-05 23:18:5568# TODO(GYP_GONE): crbug.com/481694. Make sure that the above is true and there
69# are scripts run on the bots that enforce this. Once the GYP migration is
70# over, we can collapse all of these targets as desired.
dprankeff30e3d2015-02-24 06:52:3971
dprankee2ef3822015-02-24 21:42:1872group("gn_all") {
73 testonly = true
74
75 deps = [
dprankeddc174902015-04-29 01:38:3576 ":both_gn_and_gyp",
77 ":gn_only",
dprankeb6128d02015-05-01 16:40:3078 ":gn_visibility",
dprankeddc174902015-04-29 01:38:3579 ]
machenbach640e53da2016-06-06 09:19:0880
81 if (!is_ios) {
jmadilla42eba2a2016-06-07 18:58:2982 deps += [ "//v8:gn_all" ]
machenbach640e53da2016-06-06 09:19:0883 }
dprankeddc174902015-04-29 01:38:3584}
85
brettwf9427f92016-05-05 23:18:5586# TODO(GYP_GONE): This target exists for compatibility with GYP, specifically
dprankeef9c5e582015-11-15 23:22:0887# for the iOS bots and the official builders.
88group("All") {
89 testonly = true
90
91 deps = [
92 ":gn_all",
93 ]
94}
95
brettwf9427f92016-05-05 23:18:5596# TODO(GYP_GONE): This target exists for compatibility with GYP for the
dprankec7bbafa2016-06-17 03:02:0597# builders that specify targets in the recipes directly.
98# Ideally it should not exist, and the builders should be specifying
99# more specific targets (or 'All') via the source-side
100# //testing/buildbot/*.json files. We should simply delete this target
101# and update any recipes that are using it.
Dirk Prankef00b78b2016-04-18 23:59:20102group("chromium_builder_tests") {
103 testonly = true
dprankec7bbafa2016-06-17 03:02:05104 deps = []
Dirk Prankef00b78b2016-04-18 23:59:20105}
106
dpranke1d5b70692016-06-20 21:09:04107# TODO(GYP_GONE): Figure out if we really need this target or if there's
108# some better way to specify things.
109if (is_win) {
110 group("chrome_official_builder_no_unittests") {
111 deps = [
112 "//chrome/installer/gcapi",
113 "//chrome/installer/mini_installer",
zmin6211e7d62016-06-23 01:19:29114 "//components/policy:pack_policy_templates",
dpranke1d5b70692016-06-20 21:09:04115 "//courgette",
sebmarchand8541a4d2016-07-20 23:35:29116 "//courgette:copy_courgette_binaries",
dpranke1d5b70692016-06-20 21:09:04117 "//remoting/webapp",
118 ]
dpranke6311f0fd2016-06-29 23:41:46119
etienneb364deb72016-07-30 03:43:42120 if (target_cpu == "x86") {
121 if (is_clang) {
122 deps += [ "//courgette(//build/toolchain/win:clang_x64)" ]
123 } else {
124 deps += [ "//courgette(//build/toolchain/win:x64)" ]
125 }
zijieheab5f1ccc2016-10-13 22:57:16126 }
127 if (is_chrome_branded) {
128 deps += [ "//remoting/host:remoting_host_installation" ]
dpranke1d5b70692016-06-20 21:09:04129 }
130 }
dpranke33e626e2016-06-23 04:41:32131
132 group("chrome_official_builder") {
133 testonly = true
134
135 deps = [
136 ":chrome_official_builder_no_unittests",
137 "//base:base_unittests",
138 "//chrome/test:browser_tests",
139 "//chrome/test:sync_integration_tests",
140 "//ipc:ipc_tests",
141 "//media:media_unittests",
142 "//media/midi:midi_unittests",
143 "//net:net_unittests",
144 "//printing:printing_unittests",
145 "//sql:sql_unittests",
dpranke33e626e2016-06-23 04:41:32146 "//ui/base:ui_base_unittests",
147 "//ui/gfx:gfx_unittests",
148 "//ui/touch_selection:ui_touch_selection_unittests",
149 "//ui/views:views_unittests",
150 "//url:url_unittests",
151 ]
152 }
dprankebad56d4b2016-06-26 18:06:30153
sebmarchand6c0a80ee2016-09-28 19:05:29154 # TODO(sebmarchand): Remove this once we stop supporting Syzygy (M54+).
dprankebad56d4b2016-06-26 18:06:30155 group("All_syzygy") {
156 if (is_syzyasan || syzygy_optimize) {
157 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",
brettwa874dccb2015-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",
brettwa874dccb2015-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",
charliea00055282016-01-26 00:15:15270 "//tools/battor_agent",
charliea5daef2bb2016-01-29 00:13:25271 "//tools/battor_agent:battor_agent_unittests",
pkotwicz558d5252015-10-19 21:09:55272 "//tools/gn",
dpranke244f973d62015-11-20 05:38:10273 "//tools/gn:gn_unittests",
pkotwicz558d5252015-10-19 21:09:55274 "//tools/perf/clear_system_cache",
275 "//ui/accessibility:accessibility_unittests",
pkotwicz558d5252015-10-19 21:09:55276 ]
277 }
278
279 if (!is_ios) {
280 # TODO(GYP): Figure out which of these should actually build on iOS,
281 # and whether there should be other targets that are iOS-only and missing.
282 deps += [
283 "//cc:cc_unittests",
stipc6de0f492016-06-01 20:05:03284 "//chrome/test:telemetry_perf_unittests",
pkotwicz558d5252015-10-19 21:09:55285 "//chrome/test:unit_tests",
286 "//components:components_browsertests",
287 "//content/shell:content_shell",
288 "//content/test:content_browsertests",
289 "//content/test:content_perftests",
290 "//content/test:content_unittests",
291 "//device:device_unittests",
292 "//gpu:gpu_unittests",
markdittmerd88b8352016-04-08 15:28:45293 "//gpu/ipc/service:gpu_ipc_service_unittests",
pkotwicz558d5252015-10-19 21:09:55294 "//ipc:ipc_tests",
pkotwicz558d5252015-10-19 21:09:55295 "//media:media_unittests",
mcasasd2f53ea2016-06-24 19:24:27296 "//media/capture:capture_unittests",
miu45b848fe2015-11-26 01:23:29297 "//media/cast:cast_unittests",
pkotwicz558d5252015-10-19 21:09:55298 "//media/midi:midi_unittests",
299 "//mojo",
pkotwicz558d5252015-10-19 21:09:55300 "//mojo/common:mojo_common_unittests",
rockotc637caf9b2016-02-10 09:57:08301 "//mojo/edk/system:mojo_system_unittests",
302 "//mojo/edk/test:mojo_public_bindings_unittests",
rockotc637caf9b2016-02-10 09:57:08303 "//mojo/edk/test:mojo_public_system_unittests",
pkotwicz558d5252015-10-19 21:09:55304 "//net:net_perftests",
rockot734fb662016-10-15 16:41:30305 "//services/service_manager/public/cpp",
pwnall008c0272016-10-14 16:54:04306 "//storage//browser:storage_unittests",
Dirk Pranke49802732015-12-10 01:36:41307 "//third_party/WebKit/Source/platform:blink_platform_unittests",
brettw4a6700a2016-09-01 01:24:01308 "//third_party/WebKit/Source/platform/heap:blink_heap_unittests",
dpranke244f973d62015-11-20 05:38:10309 "//third_party/WebKit/Source/web:webkit_unit_tests",
310 "//third_party/WebKit/Source/wtf:wtf_unittests",
brettwc5fcdd02016-10-12 07:25:12311 "//third_party/angle/src/tests:angle_end2end_tests",
312 "//third_party/angle/src/tests:angle_unittests",
nednguyenc42bf912016-01-27 01:39:28313 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35314 "//third_party/smhasher:pmurhash",
315 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35316 "//ui/display:display_unittests",
317 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35318 "//ui/gl:gl_unittests",
319 "//ui/touch_selection:ui_touch_selection_unittests",
markdittmer67b71ea2016-03-03 22:40:03320 "//url/ipc:url_ipc_unittests",
sherouk53f0f1a2015-08-03 15:59:35321 ]
sdefresne998e8582015-10-07 13:36:45322 } else {
sdefresne88abe362016-06-01 10:40:11323 deps += [ "//ios:all" ]
sherouk53f0f1a2015-08-03 15:59:35324 }
dprankee2ef3822015-02-24 21:42:18325
scottmg34fb7e52014-12-03 23:27:24326 deps += root_extra_deps
[email protected]fce5c3fe2014-04-10 21:13:05327
tfarina4aa9edc2015-10-26 22:14:02328 if (enable_extensions) {
jamescookfbbf9112016-06-14 16:24:49329 deps += [ "//extensions/shell:app_shell_unittests" ]
rockot2f1326e2015-02-23 23:53:51330 }
331
dprankefd1813272015-04-13 23:56:00332 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55333 deps += [ "//chrome/browser/media/router" ]
dprankefd1813272015-04-13 23:56:00334 }
335
garykac3eddb5b2015-04-17 23:16:38336 if (enable_remoting) {
337 deps += [ "//remoting:remoting_all" ]
dprankece5eb832015-04-01 20:21:05338 }
339
dprankee2ef3822015-02-24 21:42:18340 if (toolkit_views) {
ellyjones41c21fe2016-06-09 17:10:19341 deps += [
342 "//ui/views:views_unittests",
343 "//ui/views/examples:views_examples_exe",
344 "//ui/views/examples:views_examples_with_content_exe",
345 ]
James Robinson060f2e32014-09-10 22:31:37346 }
347
dprankee2ef3822015-02-24 21:42:18348 if (use_aura) {
mswda0133e62016-02-16 20:50:02349 deps += [
skycf094f672016-09-01 19:40:12350 "//ash:ash_content_unittests",
jamescookfbbf9112016-06-14 16:24:49351 "//ash:ash_shell_with_content",
352 "//ash:ash_unittests",
tapted87ca2d62016-05-19 20:48:49353 "//ui/app_list:app_list_unittests",
354 "//ui/app_list/presenter:app_list_presenter_unittests",
mswda0133e62016-02-16 20:50:02355 "//ui/aura:aura_unittests",
mswda0133e62016-02-16 20:50:02356 "//ui/aura:demo",
357 "//ui/wm:wm_unittests",
358 ]
dprankee2ef3822015-02-24 21:42:18359 }
360
361 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47362 deps += [ "//ui/ozone" ]
[email protected]a306aaa2014-05-24 13:21:50363 }
364
dprankefd1813272015-04-13 23:56:00365 if (use_x11) {
366 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22367 }
368
tmoniuszkoe5578b922015-04-14 09:38:03369 if (enable_configuration_policy) {
370 deps += [ "//components/policy:policy_templates" ]
371 }
372
oth2a6531922016-07-13 10:06:14373 if (v8_use_external_startup_data) {
374 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
375 }
376
brettw66e3feab2015-07-20 23:52:22377 if (is_win) {
brettwf986f9572015-10-07 17:18:15378 deps += [
379 "//chrome/installer/gcapi",
380 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
381 ]
brettw66e3feab2015-07-20 23:52:22382 }
383
[email protected]5a8d5162014-04-12 01:19:16384 if (is_android) {
[email protected]26046b52014-07-16 00:11:03385 deps += [
pkotwicze2dae8b2015-11-03 20:12:55386 "//base:base_junit_tests",
dpranke244f973d62015-11-20 05:38:10387 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38388 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02389 "//build/android/rezip",
pkotwicz2dd67962016-05-10 00:21:08390 "//chrome/android/webapk/shell_apk:webapk",
pkotwicze2dae8b2015-11-03 20:12:55391 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
392 "//components/policy/android:components_policy_junit_tests",
393 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45394 "//content/shell/android:content_shell_apk",
markdittmer6e70beb82016-05-02 05:40:47395 "//media/gpu:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55396 "//net/android:net_junit_tests",
jbudorick5ef42902016-04-07 04:17:11397 "//testing/android/junit:junit_unit_tests",
wnwen41f70b92016-06-22 14:48:56398 "//third_party/android_async_task:android_async_task_java",
agrieve40ba6862015-07-15 02:09:05399 "//third_party/errorprone:chromium_errorprone",
pkotwicz8adff4e2015-12-17 21:55:45400 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10401 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49402 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34403 "//tools/android:push_apps_to_background",
jbudorickdfc01f62016-06-01 15:42:12404 "//tools/android/audio_focus_grabber:audio_focus_grabber_apk",
405 "//tools/android/customtabs_benchmark:customtabs_benchmark_apk",
dgn28050da2015-10-19 10:16:43406 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
pkotwicz077093762015-12-21 16:47:15407 "//tools/cygprofile:cygprofile_unittests",
newt9e226032016-01-26 01:30:15408 "//ui/android:ui_junit_tests",
dprankee2ef3822015-02-24 21:42:18409 ]
410 deps -= [
rockot9c67e5f2015-03-12 20:01:21411 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18412 "//url:url_unittests",
[email protected]26046b52014-07-16 00:11:03413 ]
414
pkotwicz92e2e2312015-12-15 22:29:46415 if (!is_component_build) {
416 deps += [
agrievee23386b2016-01-05 04:47:58417 "//components/cronet/android:cronet_package",
jbudorickdfc01f62016-06-01 15:42:12418 "//components/cronet/android:cronet_perf_test_apk",
pkotwicz92e2e2312015-12-15 22:29:46419 "//components/cronet/android:cronet_sample_apk",
420 "//components/cronet/android:cronet_sample_test_apk",
421 "//components/cronet/android:cronet_test_apk",
422 "//components/cronet/android:cronet_test_instrumentation_apk",
423 "//components/cronet/android:cronet_unittests",
424 ]
425 }
426
pkotwicz061c5a42015-09-30 02:16:54427 if (!is_chromecast) {
428 deps += [
michaelbaicbcc7e62015-11-12 04:29:53429 "//android_webview",
agrieveb08e2f5b2015-12-29 01:17:30430 "//android_webview/test",
mikecasecb1b5062016-07-01 20:53:44431 "//android_webview/tools/automated_ui_tests:webview_ui_test_app",
mikecase49971fc2016-03-21 21:18:05432 "//android_webview/tools/system_webview_shell",
pkotwicze2dae8b2015-11-03 20:12:55433 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54434 "//chrome/android:chrome_public_apk",
smaierd50624e2016-08-05 14:21:10435 "//chrome/android:chrome_public_test_apk",
436 "//chrome/android:chrome_sync_shell_test_apk",
pkotwicz061c5a42015-09-30 02:16:54437 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b42015-12-28 20:23:11438 "//content/shell/android:content_shell_test_apk",
pkotwicz0a2255e2015-10-06 16:29:05439 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54440 ]
441 }
442
pkotwicz06a4b4b42015-10-29 23:11:11443 if (target_cpu != "x64") {
jbudorickdfc01f62016-06-01 15:42:12444 deps += [
445 "//content/shell/android:chromium_linker_test_apk",
446 "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)",
447 ]
pkotwicz06a4b4b42015-10-29 23:11:11448 }
449
cjhopmanca675d3e2014-10-24 03:50:45450 if (has_chrome_android_internal) {
brettwf9427f92016-05-05 23:18:55451 deps += [ "//clank" ]
cjhopmanca675d3e2014-10-24 03:50:45452 }
dprankedb5527d72015-03-08 04:22:47453 }
454
brettwf9427f92016-05-05 23:18:55455 if (is_linux || is_android) {
dprankefd1813272015-04-13 23:56:00456 deps += [
pkotwicza4d233b22015-11-02 18:20:38457 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00458 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38459 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00460 "//breakpad:minidump-2-core",
461 ]
462 }
463
dpranke6293d252015-04-14 19:12:00464 if (is_chromeos) {
465 deps += [
466 "//chromeos:chromeos_unittests",
yoshiki8e2ddbb2016-03-10 07:11:22467 "//ui/arc:ui_arc_unittests",
dpranke6293d252015-04-14 19:12:00468 "//ui/chromeos:ui_chromeos_unittests",
469 ]
470 }
471
dprankefd1813272015-04-13 23:56:00472 if (is_chromeos || is_mac || is_win) {
473 deps += [
474 "//rlz:rlz_id",
475 "//rlz:rlz_lib",
476 "//rlz:rlz_unittests",
477 ]
478 }
479
dprankedb5527d72015-03-08 04:22:47480 if (is_linux) {
481 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06482 deps += [
dpranke2bc89212015-11-18 00:24:43483 "//chrome:manpage",
484 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47485 "//net:disk_cache_memory_test",
dprankedb5527d72015-03-08 04:22:47486 "//net:quic_client",
487 "//net:quic_server",
488 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18489 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06490 ]
dnicoara8c6aa8e2015-03-11 23:20:32491
mbjorgea12e5a52016-05-31 22:15:17492 if (use_dbus) {
493 deps += [
494 "//dbus:dbus_test_server",
495 "//dbus:dbus_unittests",
496 ]
497 }
498
dnicoara8c6aa8e2015-03-11 23:20:32499 if (is_chromeos || use_ash) {
500 deps += [ "//components/session_manager/core" ]
501 }
dpranke2bc89212015-11-18 00:24:43502
503 if (is_chrome_branded && is_official_build) {
504 # TODO(dpranke): add the linux_dump_symbols flag?
505 deps += [ "//chrome:linux_symbols" ]
506 }
dprankedb5527d72015-03-08 04:22:47507 }
508
sherouke1859f92015-08-05 10:19:10509 if (is_ios || is_win || (is_linux && !is_chromeos)) {
510 deps += [
511 "//base:base_i18n_perftests",
512 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58513 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10514 ]
515 }
516
sugoiabe918902016-09-20 12:53:51517 if (is_win) {
518 deps += [ "//third_party/swiftshader" ]
519 }
520
thakis507c15c2016-06-01 00:26:01521 # TODO(GYP): Figure out which of these should (and can) build
522 # for chromeos/ios.
523 if (!is_chromeos && !is_ios) {
tfarina9e7cf702015-02-23 21:13:44524 deps += [
dprankedb5527d72015-03-08 04:22:47525 "//base:build_utf8_validator_tables",
dpranke244f973d62015-11-20 05:38:10526 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47527 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00528 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47529 "//components:components_perftests",
Max Boguefef332d2016-07-28 22:09:09530 "//components/sync:run_sync_testserver",
dprankedb5527d72015-03-08 04:22:47531 "//device:device_unittests",
532 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47533 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47534 "//google_apis/gcm:mcs_probe",
dprankefd1813272015-04-13 23:56:00535 "//gpu:gl_tests",
dpranke244f973d62015-11-20 05:38:10536 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47537 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47538 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00539 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47540 "//third_party/codesighs:maptsvdifftool",
dprankefd1813272015-04-13 23:56:00541 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47542 "//ui/compositor:compositor_unittests",
543 ]
544
agrieve473155b42015-12-28 20:23:11545 if (!is_android) {
546 deps += [
547 "//chrome/test:load_library_perf_tests",
548 "//chrome/test:sync_performance_tests",
549 "//chrome/test/chromedriver:chromedriver",
550 "//chrome/test/chromedriver:chromedriver_tests",
551 "//courgette:courgette",
552 "//courgette:courgette_fuzz",
553 "//courgette:courgette_minimal_tool",
554 "//courgette:courgette_unittests",
stevenjb7b6fd642016-05-18 18:15:30555 "//media/cast:generate_barcode_video",
556 "//media/cast:generate_timecode_audio",
agrieve473155b42015-12-28 20:23:11557 "//net:crash_cache",
558 "//net:crl_set_dump",
559 "//net:dns_fuzz_stub",
560 "//net:gdig",
561 "//net:get_server_time",
562 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
563 "//net:run_testserver",
564 "//net:stress_cache",
565 "//net:tld_cleanup",
566 "//ppapi:pepper_hash_for_uma",
567 "//ppapi:ppapi_perftests",
agrieve473155b42015-12-28 20:23:11568 "//third_party/leveldatabase:env_chromium_unittests",
569 "//third_party/libaddressinput:libaddressinput_unittests",
570 ]
571 }
dpranke7e19b472015-11-13 00:49:33572
jamescookfbbf9112016-06-14 16:24:49573 if (enable_extensions) {
574 deps += [ "//extensions/shell:app_shell" ]
575 }
576
dprankedb5527d72015-03-08 04:22:47577 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13578 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43579
580 if (is_linux) {
581 # TODO(dpranke): Figure out what platforms should actually have this.
milko.leporis3de038d2016-08-18 09:59:37582 deps += [ "//components/nacl/loader:nacl_helper" ]
583
584 if (enable_nacl_nonsfi) {
585 deps += [
586 "//components/nacl/loader:helper_nonsfi",
587 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
588 ]
589 }
dpranke2bc89212015-11-18 00:24:43590 }
dprankedb5527d72015-03-08 04:22:47591 }
592
xhwangfa2d9d472015-12-18 23:31:18593 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10594 deps += [ "//media:ffmpeg_regression_tests" ]
595 }
dprankefd1813272015-04-13 23:56:00596 }
597
agrieve473155b42015-12-28 20:23:11598 if (is_android || (is_linux && !is_chromeos)) {
dprankefd1813272015-04-13 23:56:00599 deps += [
agrieve473155b42015-12-28 20:23:11600 "//breakpad:dump_syms($host_toolchain)",
601 "//breakpad:microdump_stackwalk($host_toolchain)",
602 "//breakpad:minidump_dump($host_toolchain)",
603 "//breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00604 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00605 "//content/public/app:browser",
606 "//content/public/app:child",
rockotc637caf9b2016-02-10 09:57:08607 "//mojo/edk/test:mojo_public_system_perftests",
rockot734fb662016-10-15 16:41:30608 "//services/service_manager/public/cpp",
dprankefd1813272015-04-13 23:56:00609 "//testing/gmock:gmock_main",
dpranke244f973d62015-11-20 05:38:10610 "//third_party/codesighs:nm2tsv",
dprankefd1813272015-04-13 23:56:00611 ]
612
agrieve473155b42015-12-28 20:23:11613 if (!is_android) {
614 deps += [
agrieve473155b42015-12-28 20:23:11615 "//chrome/test:chrome_app_unittests",
brettwf9427f92016-05-05 23:18:55616 "//gpu/khronos_glcts_support:khronos_glcts_test",
agrieve473155b42015-12-28 20:23:11617 "//media/cast:cast_benchmarks",
618 "//media/cast:tap_proxy",
619 "//skia:filter_fuzz_stub",
620 "//skia:image_operations_bench",
agrieve473155b42015-12-28 20:23:11621 "//third_party/sqlite:sqlite_shell",
622 "//ui/keyboard:keyboard_unittests",
623 "//ui/message_center:message_center_unittests",
624 "//ui/snapshot:snapshot_unittests",
agrieve473155b42015-12-28 20:23:11625 ]
dprankefd1813272015-04-13 23:56:00626
agrieve473155b42015-12-28 20:23:11627 if (!is_debug && !is_component_build) {
628 deps += [ "//chrome/tools/service_discovery_sniffer" ]
629 }
yutakbfb4d1672016-06-13 07:42:59630
631 if (is_clang) {
632 deps += [ "//build/sanitizers:copy_llvm_symbolizer" ]
633 }
dprankefd1813272015-04-13 23:56:00634 }
635
dprankedb5527d72015-03-08 04:22:47636 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44637 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59638 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44639 }
dprankedb5527d72015-03-08 04:22:47640 }
641 }
642
643 if (is_mac) {
644 deps += [
645 "//breakpad:crash_inspector",
646 "//breakpad:dump_syms",
miguelg765f2212016-10-06 09:02:26647
648 # XPC service is in developement and guarded against the
649 # enable_xpc_notifications, in the meantime however we still
650 # need compile coverage in the bots.
651 "//chrome/browser/ui/cocoa/notifications:alert_notification_xpc_service",
tfarina9e7cf702015-02-23 21:13:44652 "//third_party/apple_sample_code",
653 "//third_party/molokocacao",
654 ]
dpranke43760592014-11-08 02:59:57655 deps -= [
brettw011138d2015-10-21 03:05:38656 # Mojo in GN contains some things which are never compiled in GYP on Mac,
657 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10658 "//mojo",
dprankecf8465db72014-11-10 23:51:22659 ]
dprankefd1813272015-04-13 23:56:00660 }
661
662 if (is_win) {
663 deps += [
664 "//base:pe_image_test",
anantaf2e54a92016-05-28 00:39:16665 "//chrome/install_static:install_static_unittests",
grt734e87b2015-07-06 19:36:43666 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00667 "//chrome_elf:chrome_elf_unittests",
668 "//chrome_elf:dll_hash_main",
dprankefd1813272015-04-13 23:56:00669 "//components/wifi:wifi_test",
670 "//net:quic_client",
671 "//net:quic_server",
672 "//sandbox/win:pocdll",
673 "//sandbox/win:sandbox_poc",
674 "//sandbox/win:sbox_integration_tests",
675 "//sandbox/win:sbox_unittests",
676 "//sandbox/win:sbox_validation_tests",
677 "//testing/gtest:gtest_main",
678 "//third_party/codesighs:msmap2tsv",
679 "//third_party/pdfium/samples:pdfium_diff",
dprankefd1813272015-04-13 23:56:00680 ]
dprankee2ef3822015-02-24 21:42:18681 deps -= [
682 "//crypto:crypto_unittests", # TODO(GYP)
683 "//net:net_unittests", # TODO(GYP)
684 ]
fdorayfb048bff2016-04-28 22:07:36685
686 if (!(is_component_build && is_debug && target_cpu == "x86")) {
687 deps +=
688 [ "//chrome/installer/mini_installer:next_version_mini_installer" ]
689 }
sherouk53f0f1a2015-08-03 15:59:35690 } else if (!is_android && !is_ios) {
miu45b848fe2015-11-26 01:23:29691 deps += [ "//breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34692 }
rsesek985bd812016-04-26 21:06:15693
slance9d62f2015-11-04 01:15:01694 if (is_chromecast) {
695 deps += [ "//chromecast:cast_shell" ]
696 }
miu45b848fe2015-11-26 01:23:29697
rsesek985bd812016-04-26 21:06:15698 if (is_mac || is_win) {
699 deps += [
700 "//third_party/crashpad/crashpad/handler:crashpad_handler",
701 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
702 ]
703 }
704
hbos17a7b4a22015-12-07 10:49:45705 if (use_openh264) {
706 deps += [
707 "//third_party/openh264:common",
708 "//third_party/openh264:encoder",
709 "//third_party/openh264:processing",
710 ]
711 }
[email protected]f0e7ff882013-12-26 21:23:09712}
brettw533c50422015-02-26 17:49:16713
dpranked62d8512015-03-02 03:06:03714group("gn_only") {
dprankedb5527d72015-03-08 04:22:47715 testonly = true
716
dpranke2a294622015-08-07 05:23:01717 deps = []
718
amistry4dcd7c42015-12-16 04:53:10719 if (!is_ios) {
xhwangf69024d12016-06-16 17:52:29720 deps += [
721 "//media/mojo:media_mojo_unittests",
722 "//mojo/common:mojo_common_perftests",
chfremerdb24ccb2016-08-16 17:55:16723 "//services/video_capture:video_capture_unittests",
xhwangf69024d12016-06-16 17:52:29724 ]
amistry4dcd7c42015-12-16 04:53:10725 }
726
scheib35dc9202016-04-26 22:35:43727 if (!is_android && !is_ios) {
728 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
729 }
730
dpranke244f973d62015-11-20 05:38:10731 if (!is_android && !is_ios && !is_chromeos) {
xjzbf38f84e2016-10-05 23:12:16732 deps += [
733 "//components/proximity_auth:proximity_auth_unittests",
734 "//media/remoting:media_remoting_unittests",
735 ]
isherman0f89b43eb2015-04-11 00:02:45736 }
737
ben8f4e95ad2015-12-01 18:35:58738 if (is_win || is_linux) {
sky70471b22016-01-14 16:20:54739 deps += [
740 "//mash:all",
bena5d1cd42016-04-29 22:59:53741 "//media/mojo/services:media_mojo_shell_unittests",
skyfcde3a42016-02-09 20:27:44742 "//mojo",
benee648f62016-05-12 23:04:50743 "//services/navigation",
ben6b0453d12016-07-02 04:27:19744 "//services/ui/demo",
745 "//services/ui/ws:tests",
qyearsley88bc4802016-05-17 18:02:34746 "//ui/views/mus:views_mus_interactive_ui_tests",
bena5d1cd42016-04-29 22:59:53747 "//ui/views/mus:views_mus_unittests",
sky70471b22016-01-14 16:20:54748 ]
sky97b65592015-11-02 20:08:25749 }
750
stevenjb7b6fd642016-05-18 18:15:30751 if (is_linux && !is_chromeos && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47752 # TODO(GYP): Figure out if any of these should be in gn_all
753 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45754 deps += [
dprankedb5527d72015-03-08 04:22:47755 ":gn_mojo_targets",
756 "//chrome/browser/resources:extension_resource_demo",
757 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47758 "//chrome/tools/convert_dict",
759 "//components/constrained_window:unit_tests",
erg4652931e2016-04-27 22:15:40760 "//components/filesystem:filesystem_service_unittests",
ergf1f689f2016-03-22 00:51:20761 "//components/leveldb:leveldb_service_unittests",
dprankedb5527d72015-03-08 04:22:47762 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45763 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47764 "//components/rappor:unit_tests",
765 "//components/sessions:unit_tests",
766 "//media/blink:media_blink_unittests",
stevenjb7b6fd642016-05-18 18:15:30767 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47768 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
769 "//storage/browser:dump_file_system",
770 "//third_party/angle:libANGLE",
771 "//third_party/angle:libEGL",
772 "//third_party/angle:libGLESv2",
dprankedb5527d72015-03-08 04:22:47773 "//third_party/leveldatabase:leveldb_arena_test",
774 "//third_party/leveldatabase:leveldb_bloom_test",
dprankedb5527d72015-03-08 04:22:47775 "//third_party/leveldatabase:leveldb_cache_test",
dprankedb5527d72015-03-08 04:22:47776 "//third_party/leveldatabase:leveldb_corruption_test",
dpranke244f973d62015-11-20 05:38:10777 "//third_party/leveldatabase:leveldb_crc32c_test",
778 "//third_party/leveldatabase:leveldb_db_bench",
779 "//third_party/leveldatabase:leveldb_db_test",
dprankedb5527d72015-03-08 04:22:47780 "//third_party/leveldatabase:leveldb_dbformat_test",
dpranke244f973d62015-11-20 05:38:10781 "//third_party/leveldatabase:leveldb_env_test",
782 "//third_party/leveldatabase:leveldb_filename_test",
783 "//third_party/leveldatabase:leveldb_filter_block_test",
784 "//third_party/leveldatabase:leveldb_log_test",
785 "//third_party/leveldatabase:leveldb_skiplist_test",
786 "//third_party/leveldatabase:leveldb_table_test",
787 "//third_party/leveldatabase:leveldb_version_edit_test",
788 "//third_party/leveldatabase:leveldb_write_batch_test",
dprankedb5527d72015-03-08 04:22:47789 "//third_party/libjpeg_turbo:simd",
tnagel8d42c0402016-10-13 12:22:28790 "//third_party/libsrtp:rdbx_driver",
791 "//third_party/libsrtp:replay_driver",
792 "//third_party/libsrtp:roc_driver",
793 "//third_party/libsrtp:rtpw",
794 "//third_party/libsrtp:srtp_driver",
795 "//third_party/libsrtp:srtp_driver",
796 "//third_party/libsrtp:srtp_test_aes_calc",
797 "//third_party/libsrtp:srtp_test_cipher_driver",
798 "//third_party/libsrtp:srtp_test_datatypes_driver",
799 "//third_party/libsrtp:srtp_test_env",
800 "//third_party/libsrtp:srtp_test_kernel_driver",
801 "//third_party/libsrtp:srtp_test_rand_gen",
802 "//third_party/libsrtp:srtp_test_sha1_driver",
803 "//third_party/libsrtp:srtp_test_stat_driver",
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
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16817 if (target_cpu == "x86" || target_cpu == "x64") {
agrieve473155b42015-12-28 20:23:11818 if (!is_android) {
819 deps += [ "//chrome/test:load_library_perf_tests" ]
820 }
mcgrathr916aafa2015-09-15 00:06:53821 deps += [
mcgrathr916aafa2015-09-15 00:06:53822 "//native_client/src/trusted/platform_qualify:vcpuid",
dpranke244f973d62015-11-20 05:38:10823 "//third_party/libjpeg_turbo:simd_asm",
mcgrathr916aafa2015-09-15 00:06:53824 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16825 }
dpranke807f602b2015-03-17 23:20:56826 if (is_linux && current_toolchain == host_toolchain) {
jochen11513aa02016-05-11 09:59:51827 deps += [ "//v8:v8_shell" ]
dpranke807f602b2015-03-17 23:20:56828 }
dprankedb5527d72015-03-08 04:22:47829 }
dprankeb0713542015-07-31 21:07:21830
spang324dc57a2016-04-06 14:54:08831 if (use_ozone) {
832 deps += [ "//ui/ozone/demo" ]
833 }
834
aizatskyaf496112016-04-15 19:26:32835 if ((is_linux && !is_chromeos && !is_chromecast) || (is_win && use_drfuzz) ||
836 (use_libfuzzer && is_mac)) {
837 deps += [
838 "//testing/libfuzzer/fuzzers",
839 "//testing/libfuzzer/tests:libfuzzer_tests",
aizatsky3f560172016-06-03 23:26:06840 "//third_party/icu/fuzzers",
aizatskyaf496112016-04-15 19:26:32841 ]
miu16396172016-09-28 00:05:56842
843 # TODO(miu): Remove this dependency once the build configuration in
844 # chrome/browser/BUILD.gn is migrated to chrome/browser/media/BUILD.gn.
845 # This dependency here only exists to allow GN to discover the
846 # fuzzer_test target there.
847 deps += [ "//chrome/browser/media:cast_remoting_connector_fuzzer" ]
aizatskyaf496112016-04-15 19:26:32848 }
849
sbc92b4d572016-02-18 03:28:23850 if (enable_nacl) {
851 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
852 }
853
agrieve473155b42015-12-28 20:23:11854 if (is_android) {
855 deps += [
856 "//build/android/gyp/test:hello_world",
857 "//build/android/incremental_install:bootstrap_java",
858 ]
nyquistb5f050b2015-09-10 05:10:35859 }
860
skyostilfe116162016-02-26 20:53:33861 if (is_linux && use_ozone) {
862 deps += [
863 "//headless",
864 "//headless:headless_tests",
865 ]
866 }
867
agrieve473155b42015-12-28 20:23:11868 if (!is_chromecast && (is_android || is_linux || is_chromeos)) {
869 deps += [
870 "//blimp",
871 "//blimp:blimp_tests",
872 ]
dprankeb0713542015-07-31 21:07:21873 }
dprankedb5527d72015-03-08 04:22:47874}
875
876group("gn_mojo_targets") {
877 testonly = true
878 if (is_linux && !is_chromeos) {
879 # TODO(GYP): Figure out if any of these should be in gn_all
880 # and figure out how cross-platform they are
881 deps = [
amistryd4aa70d2016-06-23 07:52:37882 "//ipc:ipc_tests",
msw1bb9c6c2015-05-06 21:35:44883 "//mojo:tests",
dprankedb5527d72015-03-08 04:22:47884 ]
dprankedb5527d72015-03-08 04:22:47885 }
886}
887
888group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03889 deps = [
dprankeb6128d02015-05-01 16:40:30890 "//build/config/sanitizers:options_sources",
dprankedb5527d72015-03-08 04:22:47891 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
892 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dpranked62d8512015-03-02 03:06:03893 ]
dpranked2fb5222015-09-10 22:39:05894
895 if (!is_ios) {
896 deps += [
dpranked2fb5222015-09-10 22:39:05897 "//v8:postmortem-metadata",
dpranke244f973d62015-11-20 05:38:10898 "//v8:v8_snapshot",
dpranked2fb5222015-09-10 22:39:05899 ]
900 }
dpranked62d8512015-03-02 03:06:03901}
902
tfarinacb2638b2015-05-12 03:24:15903if (!is_ios) {
904 # This group includes all of the targets needed to build and test Blink,
905 # including running the layout tests (see below).
906 group("blink_tests") {
907 testonly = true
908
909 deps = [
agrieve993374cf2016-04-13 00:05:39910 "//content/shell:content_shell",
tfarinacb2638b2015-05-12 03:24:15911 "//third_party/WebKit/public:all_blink",
agrieve993374cf2016-04-13 00:05:39912 "//tools/imagediff",
tfarinacb2638b2015-05-12 03:24:15913 ]
914
915 # NOTE: The following deps are needed to run the layout tests
916 # (run-webkit-tests) but there is no GN target for the layout tests,
917 # so we need to specify the dependencies here instead.
918 if (is_android) {
919 deps += [
agrieve62ab00282016-04-05 02:03:45920 "//breakpad:breakpad_unittests",
agrieve993374cf2016-04-13 00:05:39921 "//breakpad:dump_syms",
922 "//breakpad:microdump_stackwalk",
923 "//breakpad:minidump_dump",
924 "//breakpad:minidump_stackwalk",
925 "//breakpad:symupload",
jbudoricke7bcf092016-09-28 18:24:14926 "//tools/android/forwarder2",
ojan94989c72015-07-17 21:56:42927 ]
tfarinacb2638b2015-05-12 03:24:15928 }
929
930 if (is_win) {
931 deps += [
jochen73e711c2015-06-03 10:01:46932 "//components/test_runner:layout_test_helper",
brettw0d3b1df2015-12-03 00:10:01933 "//content/shell:content_shell_crash_service",
tfarinacb2638b2015-05-12 03:24:15934 ]
935 }
936
937 if (!is_win && !is_android) {
Gordana.Cmiljanovicf243e9a2015-05-26 22:14:47938 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15939 }
940
941 if (is_mac) {
ccameron41495f252016-09-02 02:37:32942 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15943 }
944
945 if (is_linux) {
946 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
947 }
qyearsley165a17a82016-08-01 17:58:50948
949 data = [
950 "//third_party/WebKit/LayoutTests/",
951 "//third_party/WebKit/Tools/Scripts/",
952 ]
tfarinacb2638b2015-05-12 03:24:15953 }
954}
955
dpranke6abd8652015-08-28 03:21:11956# Add a dummy target for compatibility w/ GYP
957group("chromium_swarm_tests") {
958}
959
dpranke2302dfa2015-09-29 02:21:52960group("chromium_builder_perf") {
961 testonly = true
962
thakisca8a42882016-06-10 17:59:30963 if (!is_ios && !is_android && !is_chromecast) {
malets6b7062402016-09-15 08:14:26964 data_deps = [
dpranke2302dfa2015-09-29 02:21:52965 "//cc:cc_perftests",
dpranke2302dfa2015-09-29 02:21:52966 "//chrome/test:load_library_perf_tests",
eyaiche1605ca2016-09-14 14:34:05967 "//chrome/test:telemetry_perf_tests",
dpranke2302dfa2015-09-29 02:21:52968 "//gpu:gpu_perftests",
969 "//media:media_perftests",
kbr1e58e782016-05-27 17:21:19970 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
dpranke2302dfa2015-09-29 02:21:52971 ]
972
973 if (!is_chromeos) {
malets6b7062402016-09-15 08:14:26974 data_deps += [ "//chrome/test:performance_browser_tests" ]
dpranke2302dfa2015-09-29 02:21:52975 }
976 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:04977 if (is_official_build) {
978 # In GN builds, this is controlled by the 'linux_dump_symbols'
979 # flag, which defaults to 1 for official builds. For now,
980 # we skip the separate flag and just key off of is_official_build.
malets6b7062402016-09-15 08:14:26981 data_deps += [ "//chrome:linux_symbols" ]
dpranke9aed5d582015-11-22 23:22:04982 }
dpranke2302dfa2015-09-29 02:21:52983
984 if (!is_chromeos) {
malets6b7062402016-09-15 08:14:26985 data_deps += [ "//tools/perf/clear_system_cache" ]
dpranke2302dfa2015-09-29 02:21:52986 }
987 }
988
989 if (is_win) {
malets6b7062402016-09-15 08:14:26990 data_deps += [
hansa3d3aa4d2016-05-04 22:12:52991 "//chrome/installer/mini_installer:mini_installer",
jmadilla42eba2a2016-06-07 18:58:29992 "//third_party/angle/src/tests:angle_perftests",
dpranke2302dfa2015-09-29 02:21:52993 ]
dpranke2302dfa2015-09-29 02:21:52994 } else {
malets6b7062402016-09-15 08:14:26995 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52996 }
997 }
998}
agrieve017b91f2016-02-29 20:15:06999
thakis3f7d4fc2016-06-10 18:47:501000if (!is_ios && !is_android && !is_chromecast) {
1001 group("chromium_builder_asan") {
1002 testonly = true
1003
1004 deps = [
1005 "//chrome:chrome",
1006 "//content/shell:content_shell",
1007 "//v8:d8",
1008 ]
1009 if (!is_win) {
1010 deps += [
1011 "//net:dns_fuzz_stub",
1012 "//net:hpack_fuzz_wrapper",
1013 "//skia:filter_fuzz_stub",
1014 ]
1015 }
1016 if (enable_ipc_fuzzer && !is_component_build) {
1017 deps += [ "//tools/ipc_fuzzer:ipc_fuzzer_all" ]
1018 }
1019 if (!is_chromeos) {
1020 deps += [
1021 "//third_party/pdfium/samples:pdfium_test",
dpranke8a2de902016-07-14 20:08:371022 "//v8:v8_shell($v8_snapshot_toolchain)",
thakis3f7d4fc2016-06-10 18:47:501023 ]
1024 }
1025 if (is_clang) {
1026 deps += [ "//build/sanitizers:copy_llvm_symbolizer" ]
1027 }
1028 if (is_win && symbol_level == 2 && target_cpu == "x86" && is_syzyasan) {
1029 deps += [
1030 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
sebmarchanda2df3392016-07-13 15:34:591031 "//content/shell:content_shell_syzyasan",
thakis3f7d4fc2016-06-10 18:47:501032 ]
thakis3f7d4fc2016-06-10 18:47:501033 }
1034 }
1035}
1036
brettw6df3e8c42016-04-14 21:07:131037# For compatibility with GYP. The linux_chromium_chromeos_rel_ng and
1038# linux_chromium_chromeos_compile_rel_ng bots reference this target as
1039# something to build, but all targets for those bots to compile are set
1040# up differently.
1041# TODO bug 601920: Remove reference to aura_builder on bot config and delete
1042# this group.
1043group("aura_builder") {
1044}
1045
agrieve95ba4442016-04-25 15:47:131046if (is_android) {
1047 group("optimize_gn_gen") {
1048 deps = [
1049 # These run expensive scripts in non-default toolchains. Generally, host
1050 # toolchain targets are loaded in the later part of the run, and the
1051 # result is they push out the end of generation. By preloading these, the
1052 # scripts can be parallelized with the rest of the load.
1053 "//build/config/linux(//build/toolchain/linux:clang_x64)",
1054 "//build/config/posix(//build/toolchain/linux:clang_x64)",
1055
1056 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot
1057 # generation.
1058 "//build/config/linux(//build/toolchain/linux:clang_x86)",
1059 "//build/config/posix(//build/toolchain/linux:clang_x86)",
1060 ]
1061 }
1062}
1063
agrieve017b91f2016-02-29 20:15:061064# Because of the source assignment filter, many targets end up over-filtering
1065# their sources if the output directory contains a platform name. Assert that
1066# this doesn't happen. http://crbug.com/548283
1067template("assert_valid_out_dir") {
1068 # List copied from //build/config/BUILDCONFIG.gn.
1069 set_sources_assignment_filter([
1070 "*\bandroid/*",
1071 "*\bchromeos/*",
1072 "*\bcocoa/*",
1073 "*\bios/*",
1074 "*\blinux/*",
1075 "*\bmac/*",
1076 "*\bposix/*",
1077 "*\bwin/*",
1078 ])
1079 assert(target_name != "") # Mark as used.
1080 sources = invoker.actual_sources
1081 assert(
1082 sources == invoker.actual_sources,
1083 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
1084}
1085
1086assert_valid_out_dir("_unused") {
1087 actual_sources = [ "$root_build_dir/foo" ]
1088}
dpranke3f55a4d2016-08-03 00:21:191089
1090if (is_win) {
1091 group("chromium_builder_lkgr_drmemory_win") {
1092 testonly = true
1093
1094 deps = [
1095 "//components/test_runner:layout_test_helper",
1096 "//content/shell:content_shell",
1097 "//content/shell:content_shell_crash_service",
1098 ]
1099 }
1100
1101 group("chromium_builder_dbg_drmemory_win") {
1102 testonly = true
1103
1104 deps = [
1105 "//base:base_unittests",
1106 "//cc:cc_unittests",
1107 "//cc/blink:cc_blink_unittests",
1108 "//chrome/installer/setup:setup_unittests",
1109 "//chrome/installer/util:installer_util_unittests",
1110 "//chrome/test:browser_tests",
tommyclicb7b52a2016-09-16 18:15:511111 "//chrome/test:chrome_app_unittests",
dpranke3f55a4d2016-08-03 00:21:191112 "//chrome/test:unit_tests",
1113 "//chrome/test/chromedriver:chromedriver_unittests",
1114 "//chrome_elf:chrome_elf_unittests",
1115 "//components:components_unittests",
1116 "//components/test_runner:layout_test_helper",
1117 "//content/shell:content_shell_crash_service",
dpranke9b8bb5422016-08-03 23:38:551118 "//content/test:content_browsertests",
dpranke3f55a4d2016-08-03 00:21:191119 "//content/test:content_unittests",
1120 "//courgette:courgette_unittests",
dpranke9b8bb5422016-08-03 23:38:551121 "//crypto:crypto_unittests",
dpranke3f55a4d2016-08-03 00:21:191122 "//device:device_unittests",
1123 "//extensions:extensions_browsertests",
1124 "//extensions:extensions_unittests",
1125 "//gin:gin_shell",
1126 "//gin:gin_unittests",
1127 "//google_apis:google_apis_unittests",
1128 "//google_apis/gcm:gcm_unit_tests",
1129 "//gpu:gpu_unittests",
1130 "//ipc:ipc_tests",
1131 "//jingle:jingle_unittests",
1132 "//media:media_unittests",
1133 "//media/capture:capture_unittests",
dpranke9b8bb5422016-08-03 23:38:551134 "//media/cast:cast_unittests",
dpranke3f55a4d2016-08-03 00:21:191135 "//media/midi:midi_unittests",
1136 "//mojo",
1137 "//net:net_unittests",
1138 "//printing:printing_unittests",
1139 "//remoting:remoting_unittests",
1140 "//skia:skia_unittests",
1141 "//sql:sql_unittests",
pwnall008c0272016-10-14 16:54:041142 "//storage//browser:storage_unittests",
dpranke3f55a4d2016-08-03 00:21:191143 "//third_party/WebKit/Source/platform:blink_platform_unittests",
brettw4a6700a2016-09-01 01:24:011144 "//third_party/WebKit/Source/platform/heap:blink_heap_unittests",
dpranke3f55a4d2016-08-03 00:21:191145 "//third_party/angle/src/tests:angle_unittests",
1146 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
1147 "//third_party/leveldatabase:env_chromium_unittests",
1148 "//third_party/libaddressinput:libaddressinput_unittests",
1149 "//third_party/libphonenumber:libphonenumber_unittests",
1150 "//ui/accessibility:accessibility_unittests",
1151 "//ui/aura:aura_unittests",
1152 "//ui/compositor:compositor_unittests",
1153 "//ui/display:display_unittests",
1154 "//ui/events:events_unittests",
1155 "//ui/gfx:gfx_unittests",
1156 "//ui/gl:gl_unittests",
1157 "//ui/keyboard:keyboard_unittests",
1158 "//ui/touch_selection:ui_touch_selection_unittests",
1159 "//url:url_unittests",
1160 ]
1161 }
1162}