blob: f5275fa0b16e03965d4fe9aa7958e9cf417daa61 [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")
hbos17a7b4a22015-12-07 10:49:4517import("//third_party/openh264/openh264_args.gni")
thakis3f7d4fc2016-06-10 18:47:5018import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
machenbachd65ec5c2016-07-22 09:05:2319import("//v8/gni/v8.gni")
dpranke8a2de902016-07-14 20:08:3720import("//v8/snapshot_toolchain.gni")
dprankee2ef3822015-02-24 21:42:1821
cjhopmanca675d3e2014-10-24 03:50:4522if (is_android) {
23 import("//build/config/android/config.gni")
24}
[email protected]378b4f02014-06-10 15:58:4525
brettwb84b29472014-10-22 22:58:4526declare_args() {
27 # A list of extra dependencies to add to the root target. This allows a
28 # checkout to add additional targets without explicitly changing any checked-
29 # in files.
30 root_extra_deps = []
31}
32
brucedawsonc8d6d652016-09-02 19:43:1833if (is_official_build) {
34 # An official (maximally optimized!) component (optimized for build times)
35 # build doesn't make sense and usually doesn't work.
36 assert(!is_component_build)
37}
38
dprankeef9c5e582015-11-15 23:22:0839# This file defines the following five main targets:
dpranked62d8512015-03-02 03:06:0340#
dprankeddc174902015-04-29 01:38:3541# "both_gn_and_gyp" should list every root target (target that nothing else
42# depends on) built by GN that is also built in the GYP build.
dpranked62d8512015-03-02 03:06:0343#
dprankeddc174902015-04-29 01:38:3544# "gn_all" should (transitively) cause everything to be built; if you run
45# 'ninja gn_all' and then 'ninja all', the second build should do no work.
46#
dprankeef9c5e582015-11-15 23:22:0847# "gn_only" should list every root target that is *not* intended to be built in
48# a GYP build. Because GN has different rules for deciding what an 'all' build
49# is, this may end up including targets that are actually defined in a GYP
50# build but not dependencies of GYP's "all" (and so not actually built).
dprankeddc174902015-04-29 01:38:3551#
dprankeb6128d02015-05-01 16:40:3052# "gn_visibility": targets that are normally not visible to top-level targets,
dprankeef9c5e582015-11-15 23:22:0853# but are built anyway by "all". Since we don't want any such targets, we have
54# this placeholder to make sure hidden targets that aren't otherwise depended
55# on yet are accounted for.
56#
57# "All" is an alias for "gn_all". It exists for bot compatibility w/ GYP for
58# the iOS bots and the official builders, but should not be generally used
59# during the GYP->GN migration. We cannot guarantee that GN's "All" builds the
60# same set of targets as GYP's "All" does, because GYP's "All" supports
61# wildcards.
62#
63# Lastly, none of these targets are guaranteed to be the same as what ninja
64# will build with "all". For more on how "all" works and the differences in how
65# GYP and GN determine "all", see crbug.com/503241.
dprankeb6128d02015-05-01 16:40:3066#
brettwf9427f92016-05-05 23:18:5567# TODO(GYP_GONE): crbug.com/481694. Make sure that the above is true and there
68# are scripts run on the bots that enforce this. Once the GYP migration is
69# over, we can collapse all of these targets as desired.
dprankeff30e3d2015-02-24 06:52:3970
dprankee2ef3822015-02-24 21:42:1871group("gn_all") {
72 testonly = true
73
74 deps = [
dprankeddc174902015-04-29 01:38:3575 ":both_gn_and_gyp",
76 ":gn_only",
dprankeb6128d02015-05-01 16:40:3077 ":gn_visibility",
dprankeddc174902015-04-29 01:38:3578 ]
machenbach640e53da2016-06-06 09:19:0879
80 if (!is_ios) {
jmadilla42eba2a2016-06-07 18:58:2981 deps += [ "//v8:gn_all" ]
machenbach640e53da2016-06-06 09:19:0882 }
dprankeddc174902015-04-29 01:38:3583}
84
brettwf9427f92016-05-05 23:18:5585# TODO(GYP_GONE): This target exists for compatibility with GYP, specifically
dprankeef9c5e582015-11-15 23:22:0886# for the iOS bots and the official builders.
87group("All") {
88 testonly = true
89
90 deps = [
91 ":gn_all",
92 ]
93}
94
brettwf9427f92016-05-05 23:18:5595# TODO(GYP_GONE): This target exists for compatibility with GYP for the
dprankec7bbafa2016-06-17 03:02:0596# builders that specify targets in the recipes directly.
97# Ideally it should not exist, and the builders should be specifying
98# more specific targets (or 'All') via the source-side
99# //testing/buildbot/*.json files. We should simply delete this target
100# and update any recipes that are using it.
Dirk Prankef00b78b2016-04-18 23:59:20101group("chromium_builder_tests") {
102 testonly = true
dprankec7bbafa2016-06-17 03:02:05103 deps = []
Dirk Prankef00b78b2016-04-18 23:59:20104}
105
dpranke1d5b70692016-06-20 21:09:04106# TODO(GYP_GONE): Figure out if we really need this target or if there's
107# some better way to specify things.
108if (is_win) {
109 group("chrome_official_builder_no_unittests") {
110 deps = [
111 "//chrome/installer/gcapi",
112 "//chrome/installer/mini_installer",
zmin6211e7d62016-06-23 01:19:29113 "//components/policy:pack_policy_templates",
dpranke1d5b70692016-06-20 21:09:04114 "//courgette",
sebmarchand8541a4d2016-07-20 23:35:29115 "//courgette:copy_courgette_binaries",
dpranke1d5b70692016-06-20 21:09:04116 "//remoting/webapp",
117 ]
dpranke6311f0fd2016-06-29 23:41:46118
etienneb364deb72016-07-30 03:43:42119 if (target_cpu == "x86") {
120 if (is_clang) {
121 deps += [ "//courgette(//build/toolchain/win:clang_x64)" ]
122 } else {
123 deps += [ "//courgette(//build/toolchain/win:x64)" ]
124 }
dpranke6311f0fd2016-06-29 23:41:46125 if (is_chrome_branded) {
126 deps += [ "//remoting/host:remoting_host_installation" ]
127 }
dpranke1d5b70692016-06-20 21:09:04128 }
129 }
dpranke33e626e2016-06-23 04:41:32130
131 group("chrome_official_builder") {
132 testonly = true
133
134 deps = [
135 ":chrome_official_builder_no_unittests",
136 "//base:base_unittests",
137 "//chrome/test:browser_tests",
138 "//chrome/test:sync_integration_tests",
139 "//ipc:ipc_tests",
140 "//media:media_unittests",
141 "//media/midi:midi_unittests",
142 "//net:net_unittests",
143 "//printing:printing_unittests",
144 "//sql:sql_unittests",
dpranke33e626e2016-06-23 04:41:32145 "//ui/base:ui_base_unittests",
146 "//ui/gfx:gfx_unittests",
147 "//ui/touch_selection:ui_touch_selection_unittests",
148 "//ui/views:views_unittests",
149 "//url:url_unittests",
150 ]
151 }
dprankebad56d4b2016-06-26 18:06:30152
sebmarchand6c0a80ee2016-09-28 19:05:29153 # TODO(sebmarchand): Remove this once we stop supporting Syzygy (M54+).
dprankebad56d4b2016-06-26 18:06:30154 group("All_syzygy") {
155 if (is_syzyasan || syzygy_optimize) {
156 deps = [
157 "//chrome/installer/mini_installer:mini_installer",
158 "//chrome/installer/mini_installer:mini_installer_syzygy",
159 ]
160 }
161 }
sebmarchand6c0a80ee2016-09-28 19:05:29162
163 if (is_syzyasan) {
164 group("chrome_official_syzyasan_builder") {
165 deps = [
166 ":All_syzygy",
167 ":chrome_official_builder_no_unittests",
168 ]
169 }
170 }
dpranke1d5b70692016-06-20 21:09:04171}
172
dprankef92633b2016-04-28 04:33:34173if (is_chromeos) {
174 group("chromiumos_preflight") {
175 testonly = true
176 deps = [
177 "//breakpad:minidump_stackwalk($host_toolchain)",
178 "//chrome",
179 "//chrome/test/chromedriver",
dprankef92633b2016-04-28 04:33:34180 "//media:media_unittests",
markdittmer6e70beb82016-05-02 05:40:47181 "//media/gpu:video_decode_accelerator_unittest",
182 "//media/gpu:video_encode_accelerator_unittest",
dprankef92633b2016-04-28 04:33:34183 "//ppapi/examples/video_decode",
184 "//sandbox/linux:chrome_sandbox",
185 "//sandbox/linux:sandbox_linux_unittests",
186
stevenjbd570b1f2016-04-29 22:57:36187 # Blocked on https://github.com/catapult-project/catapult/issues/2297
dprankef92633b2016-04-28 04:33:34188 #"//third_party/catapult/telemetry:bitmaptools",
dprankef92633b2016-04-28 04:33:34189 "//tools/perf/clear_system_cache",
190 ]
191 }
192}
193
dprankeddc174902015-04-29 01:38:35194# The "both_gn_and_gyp" target should reflect every target that is built
195# in both the GN and GYP builds, and ideally it should match the
196# "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line.
dprankeddc174902015-04-29 01:38:35197group("both_gn_and_gyp") {
198 testonly = true
dprankeddc174902015-04-29 01:38:35199 deps = [
dprankee2ef3822015-02-24 21:42:18200 "//base:base_unittests",
brettwa874dcc2015-08-28 23:59:18201 "//chrome/installer",
sheroukdc35ba272015-09-22 14:09:37202 "//components:components_unittests",
sheroukce1c7d72015-08-24 15:21:59203 "//net:net_unittests",
sherouk2866d662015-08-24 16:29:44204 "//skia:skia_unittests",
brettwa874dcc2015-08-28 23:59:18205 "//sql:sql_unittests",
ochangcc11d0e2016-04-26 19:58:26206 "//tools/ipc_fuzzer:ipc_fuzzer_all",
sherouk4fb74d42015-08-24 15:58:41207 "//ui/base:ui_base_unittests",
sherouk84a45ff2015-09-01 13:31:39208 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:41209 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:18210 ]
dpranke2a294622015-08-07 05:23:01211
sdefresne21832bf92016-03-30 22:01:02212 if (!is_android && !is_chromecast) {
213 deps += [
214 "//crypto:crypto_unittests",
215 "//google_apis/gcm:gcm_unit_tests",
216 ]
217 }
218
slance9d62f2015-11-04 01:15:01219 if (!is_ios && !is_android && !is_chromecast) {
sherouk53f0f1a2015-08-03 15:59:35220 deps += [
sherouk53f0f1a2015-08-03 15:59:35221 "//chrome",
222 "//chrome/test:browser_tests",
223 "//chrome/test:interactive_ui_tests",
224 "//chrome/test:sync_integration_tests",
sherouk53f0f1a2015-08-03 15:59:35225 "//chrome/test/chromedriver:chromedriver_unittests",
Max Boguefef332d2016-07-28 22:09:09226 "//components/sync/tools:sync_client",
227 "//components/sync/tools:sync_listen_notifications",
jamescookfbbf9112016-06-14 16:24:49228 "//extensions:extensions_browsertests",
229 "//extensions:extensions_unittests",
dprankedbdd9d82015-08-12 21:18:18230 "//gpu/gles2_conform_support:gles2_conform_test",
stevenjb604316362016-05-06 22:10:26231 "//gpu/khronos_glcts_support:khronos_glcts_test",
sherouk53f0f1a2015-08-03 15:59:35232 "//jingle:jingle_unittests",
sherouk53f0f1a2015-08-03 15:59:35233 "//net:hpack_example_generator",
234 "//net:hpack_fuzz_mutator",
235 "//net:hpack_fuzz_wrapper",
sherouk53f0f1a2015-08-03 15:59:35236 "//ppapi:ppapi_unittests",
237 "//ppapi/examples/2d",
238 "//ppapi/examples/audio",
239 "//ppapi/examples/audio_input",
240 "//ppapi/examples/compositor",
241 "//ppapi/examples/crxfs",
242 "//ppapi/examples/enumerate_devices",
243 "//ppapi/examples/file_chooser",
244 "//ppapi/examples/flash_topmost",
245 "//ppapi/examples/font",
246 "//ppapi/examples/gamepad",
247 "//ppapi/examples/gles2",
248 "//ppapi/examples/gles2_spinning_cube",
249 "//ppapi/examples/ime",
250 "//ppapi/examples/input",
251 "//ppapi/examples/media_stream_audio",
252 "//ppapi/examples/media_stream_video",
253 "//ppapi/examples/mouse_cursor",
254 "//ppapi/examples/mouse_lock",
255 "//ppapi/examples/printing",
256 "//ppapi/examples/scaling",
257 "//ppapi/examples/scripting",
258 "//ppapi/examples/stub",
259 "//ppapi/examples/threading",
260 "//ppapi/examples/url_loader",
261 "//ppapi/examples/video_capture",
262 "//ppapi/examples/video_decode",
263 "//ppapi/examples/video_effects",
264 "//ppapi/examples/video_encode",
265 "//printing:printing_unittests",
sherouk53f0f1a2015-08-03 15:59:35266 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
267 "//third_party/codesighs",
pkotwicz558d5252015-10-19 21:09:55268 "//third_party/pdfium/samples:pdfium_test",
charliea00055282016-01-26 00:15:15269 "//tools/battor_agent",
charliea5daef2bb2016-01-29 00:13:25270 "//tools/battor_agent:battor_agent_unittests",
pkotwicz558d5252015-10-19 21:09:55271 "//tools/gn",
dpranke244f973d62015-11-20 05:38:10272 "//tools/gn:gn_unittests",
pkotwicz558d5252015-10-19 21:09:55273 "//tools/perf/clear_system_cache",
274 "//ui/accessibility:accessibility_unittests",
pkotwicz558d5252015-10-19 21:09:55275 ]
276 }
277
278 if (!is_ios) {
279 # TODO(GYP): Figure out which of these should actually build on iOS,
280 # and whether there should be other targets that are iOS-only and missing.
281 deps += [
282 "//cc:cc_unittests",
stipc6de0f492016-06-01 20:05:03283 "//chrome/test:telemetry_perf_unittests",
pkotwicz558d5252015-10-19 21:09:55284 "//chrome/test:unit_tests",
285 "//components:components_browsertests",
286 "//content/shell:content_shell",
287 "//content/test:content_browsertests",
288 "//content/test:content_perftests",
289 "//content/test:content_unittests",
290 "//device:device_unittests",
291 "//gpu:gpu_unittests",
markdittmerd88b8352016-04-08 15:28:45292 "//gpu/ipc/service:gpu_ipc_service_unittests",
pkotwicz558d5252015-10-19 21:09:55293 "//ipc:ipc_tests",
pkotwicz558d5252015-10-19 21:09:55294 "//media:media_unittests",
mcasasd2f53ea2016-06-24 19:24:27295 "//media/capture:capture_unittests",
miu45b848fe2015-11-26 01:23:29296 "//media/cast:cast_unittests",
pkotwicz558d5252015-10-19 21:09:55297 "//media/midi:midi_unittests",
298 "//mojo",
pkotwicz558d5252015-10-19 21:09:55299 "//mojo/common:mojo_common_unittests",
rockotc637caf9b2016-02-10 09:57:08300 "//mojo/edk/system:mojo_system_unittests",
301 "//mojo/edk/test:mojo_public_bindings_unittests",
rockotc637caf9b2016-02-10 09:57:08302 "//mojo/edk/test:mojo_public_system_unittests",
pkotwicz558d5252015-10-19 21:09:55303 "//net:net_perftests",
benf709a3092016-04-12 22:38:22304 "//services/shell/public/cpp",
Dirk Pranke49802732015-12-10 01:36:41305 "//third_party/WebKit/Source/platform:blink_platform_unittests",
brettw4a6700a2016-09-01 01:24:01306 "//third_party/WebKit/Source/platform/heap:blink_heap_unittests",
dpranke244f973d62015-11-20 05:38:10307 "//third_party/WebKit/Source/web:webkit_unit_tests",
308 "//third_party/WebKit/Source/wtf:wtf_unittests",
nednguyenc42bf912016-01-27 01:39:28309 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35310 "//third_party/smhasher:pmurhash",
311 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35312 "//ui/display:display_unittests",
313 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35314 "//ui/gl:gl_unittests",
315 "//ui/touch_selection:ui_touch_selection_unittests",
markdittmer67b71ea2016-03-03 22:40:03316 "//url/ipc:url_ipc_unittests",
sherouk53f0f1a2015-08-03 15:59:35317 ]
sdefresne998e8582015-10-07 13:36:45318 } else {
sdefresne88abe362016-06-01 10:40:11319 deps += [ "//ios:all" ]
sherouk53f0f1a2015-08-03 15:59:35320 }
dprankee2ef3822015-02-24 21:42:18321
scottmg34fb7e52014-12-03 23:27:24322 deps += root_extra_deps
[email protected]fce5c3fe2014-04-10 21:13:05323
tfarina4aa9edc2015-10-26 22:14:02324 if (enable_extensions) {
jamescookfbbf9112016-06-14 16:24:49325 deps += [ "//extensions/shell:app_shell_unittests" ]
rockot2f1326e2015-02-23 23:53:51326 }
327
dprankefd1813272015-04-13 23:56:00328 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55329 deps += [ "//chrome/browser/media/router" ]
dprankefd1813272015-04-13 23:56:00330 }
331
garykac3eddb5b2015-04-17 23:16:38332 if (enable_remoting) {
333 deps += [ "//remoting:remoting_all" ]
dprankece5eb832015-04-01 20:21:05334 }
335
dprankee2ef3822015-02-24 21:42:18336 if (toolkit_views) {
ellyjones41c21fe2016-06-09 17:10:19337 deps += [
338 "//ui/views:views_unittests",
339 "//ui/views/examples:views_examples_exe",
340 "//ui/views/examples:views_examples_with_content_exe",
341 ]
James Robinson060f2e32014-09-10 22:31:37342 }
343
dprankee2ef3822015-02-24 21:42:18344 if (use_aura) {
mswda0133e62016-02-16 20:50:02345 deps += [
skycf094f672016-09-01 19:40:12346 "//ash:ash_content_unittests",
jamescookfbbf9112016-06-14 16:24:49347 "//ash:ash_shell_with_content",
348 "//ash:ash_unittests",
tapted87ca2d62016-05-19 20:48:49349 "//ui/app_list:app_list_unittests",
350 "//ui/app_list/presenter:app_list_presenter_unittests",
mswda0133e62016-02-16 20:50:02351 "//ui/aura:aura_unittests",
mswda0133e62016-02-16 20:50:02352 "//ui/aura:demo",
353 "//ui/wm:wm_unittests",
354 ]
dprankee2ef3822015-02-24 21:42:18355 }
356
357 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47358 deps += [ "//ui/ozone" ]
[email protected]a306aaa2014-05-24 13:21:50359 }
360
dprankefd1813272015-04-13 23:56:00361 if (use_x11) {
362 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22363 }
364
tmoniuszkoe5578b922015-04-14 09:38:03365 if (enable_configuration_policy) {
366 deps += [ "//components/policy:policy_templates" ]
367 }
368
oth2a6531922016-07-13 10:06:14369 if (v8_use_external_startup_data) {
370 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
371 }
372
brettw66e3feab2015-07-20 23:52:22373 if (is_win) {
brettwf986f9572015-10-07 17:18:15374 deps += [
375 "//chrome/installer/gcapi",
376 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
377 ]
brettw66e3feab2015-07-20 23:52:22378 }
379
[email protected]5a8d5162014-04-12 01:19:16380 if (is_android) {
[email protected]26046b52014-07-16 00:11:03381 deps += [
pkotwicze2dae8b2015-11-03 20:12:55382 "//base:base_junit_tests",
dpranke244f973d62015-11-20 05:38:10383 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38384 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02385 "//build/android/rezip",
pkotwicz2dd67962016-05-10 00:21:08386 "//chrome/android/webapk/shell_apk:webapk",
pkotwicze2dae8b2015-11-03 20:12:55387 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
388 "//components/policy/android:components_policy_junit_tests",
389 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45390 "//content/shell/android:content_shell_apk",
markdittmer6e70beb82016-05-02 05:40:47391 "//media/gpu:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55392 "//net/android:net_junit_tests",
jbudorick5ef42902016-04-07 04:17:11393 "//testing/android/junit:junit_unit_tests",
wnwen41f70b92016-06-22 14:48:56394 "//third_party/android_async_task:android_async_task_java",
agrieve40ba6862015-07-15 02:09:05395 "//third_party/errorprone:chromium_errorprone",
pkotwicz8adff4e2015-12-17 21:55:45396 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10397 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49398 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34399 "//tools/android:push_apps_to_background",
jbudorickdfc01f62016-06-01 15:42:12400 "//tools/android/audio_focus_grabber:audio_focus_grabber_apk",
401 "//tools/android/customtabs_benchmark:customtabs_benchmark_apk",
dgn28050da2015-10-19 10:16:43402 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
pkotwicz077093762015-12-21 16:47:15403 "//tools/cygprofile:cygprofile_unittests",
newt9e226032016-01-26 01:30:15404 "//ui/android:ui_junit_tests",
dprankee2ef3822015-02-24 21:42:18405 ]
406 deps -= [
rockot9c67e5f2015-03-12 20:01:21407 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18408 "//url:url_unittests",
[email protected]26046b52014-07-16 00:11:03409 ]
410
pkotwicz92e2e2312015-12-15 22:29:46411 if (!is_component_build) {
412 deps += [
agrievee23386b2016-01-05 04:47:58413 "//components/cronet/android:cronet_package",
jbudorickdfc01f62016-06-01 15:42:12414 "//components/cronet/android:cronet_perf_test_apk",
pkotwicz92e2e2312015-12-15 22:29:46415 "//components/cronet/android:cronet_sample_apk",
416 "//components/cronet/android:cronet_sample_test_apk",
417 "//components/cronet/android:cronet_test_apk",
418 "//components/cronet/android:cronet_test_instrumentation_apk",
419 "//components/cronet/android:cronet_unittests",
420 ]
421 }
422
pkotwicz061c5a42015-09-30 02:16:54423 if (!is_chromecast) {
424 deps += [
michaelbaicbcc7e62015-11-12 04:29:53425 "//android_webview",
agrieveb08e2f5b2015-12-29 01:17:30426 "//android_webview/test",
mikecasecb1b5062016-07-01 20:53:44427 "//android_webview/tools/automated_ui_tests:webview_ui_test_app",
mikecase49971fc2016-03-21 21:18:05428 "//android_webview/tools/system_webview_shell",
pkotwicze2dae8b2015-11-03 20:12:55429 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54430 "//chrome/android:chrome_public_apk",
smaierd50624e2016-08-05 14:21:10431 "//chrome/android:chrome_public_test_apk",
432 "//chrome/android:chrome_sync_shell_test_apk",
pkotwicz061c5a42015-09-30 02:16:54433 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b42015-12-28 20:23:11434 "//content/shell/android:content_shell_test_apk",
pkotwicz0a2255e2015-10-06 16:29:05435 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54436 ]
437 }
438
pkotwicz06a4b4b42015-10-29 23:11:11439 if (target_cpu != "x64") {
jbudorickdfc01f62016-06-01 15:42:12440 deps += [
441 "//content/shell/android:chromium_linker_test_apk",
442 "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)",
443 ]
pkotwicz06a4b4b42015-10-29 23:11:11444 }
445
cjhopmanca675d3e2014-10-24 03:50:45446 if (has_chrome_android_internal) {
brettwf9427f92016-05-05 23:18:55447 deps += [ "//clank" ]
cjhopmanca675d3e2014-10-24 03:50:45448 }
dprankedb5527d72015-03-08 04:22:47449 }
450
brettwf9427f92016-05-05 23:18:55451 if (is_linux || is_android) {
dprankefd1813272015-04-13 23:56:00452 deps += [
pkotwicza4d233b22015-11-02 18:20:38453 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00454 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38455 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00456 "//breakpad:minidump-2-core",
457 ]
458 }
459
dpranke6293d252015-04-14 19:12:00460 if (is_chromeos) {
461 deps += [
462 "//chromeos:chromeos_unittests",
yoshiki8e2ddbb2016-03-10 07:11:22463 "//ui/arc:ui_arc_unittests",
dpranke6293d252015-04-14 19:12:00464 "//ui/chromeos:ui_chromeos_unittests",
465 ]
466 }
467
dprankefd1813272015-04-13 23:56:00468 if (is_chromeos || is_mac || is_win) {
469 deps += [
470 "//rlz:rlz_id",
471 "//rlz:rlz_lib",
472 "//rlz:rlz_unittests",
473 ]
474 }
475
dprankedb5527d72015-03-08 04:22:47476 if (is_linux) {
477 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06478 deps += [
dpranke2bc89212015-11-18 00:24:43479 "//chrome:manpage",
480 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47481 "//net:disk_cache_memory_test",
dprankedb5527d72015-03-08 04:22:47482 "//net:quic_client",
483 "//net:quic_server",
484 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18485 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06486 ]
dnicoara8c6aa8e2015-03-11 23:20:32487
mbjorgea12e5a52016-05-31 22:15:17488 if (use_dbus) {
489 deps += [
490 "//dbus:dbus_test_server",
491 "//dbus:dbus_unittests",
492 ]
493 }
494
dnicoara8c6aa8e2015-03-11 23:20:32495 if (is_chromeos || use_ash) {
496 deps += [ "//components/session_manager/core" ]
497 }
dpranke2bc89212015-11-18 00:24:43498
499 if (is_chrome_branded && is_official_build) {
500 # TODO(dpranke): add the linux_dump_symbols flag?
501 deps += [ "//chrome:linux_symbols" ]
502 }
dprankedb5527d72015-03-08 04:22:47503 }
504
sherouke1859f92015-08-05 10:19:10505 if (is_ios || is_win || (is_linux && !is_chromeos)) {
506 deps += [
507 "//base:base_i18n_perftests",
508 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58509 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10510 ]
511 }
512
sugoiabe91892016-09-20 12:53:51513 if (is_win) {
514 deps += [ "//third_party/swiftshader" ]
515 }
516
thakis507c15c2016-06-01 00:26:01517 # TODO(GYP): Figure out which of these should (and can) build
518 # for chromeos/ios.
519 if (!is_chromeos && !is_ios) {
tfarina9e7cf702015-02-23 21:13:44520 deps += [
dprankedb5527d72015-03-08 04:22:47521 "//base:build_utf8_validator_tables",
dpranke244f973d62015-11-20 05:38:10522 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47523 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00524 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47525 "//components:components_perftests",
Max Boguefef332d2016-07-28 22:09:09526 "//components/sync:run_sync_testserver",
dprankedb5527d72015-03-08 04:22:47527 "//device:device_unittests",
528 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47529 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47530 "//google_apis/gcm:mcs_probe",
dprankefd1813272015-04-13 23:56:00531 "//gpu:gl_tests",
dpranke244f973d62015-11-20 05:38:10532 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47533 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47534 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00535 "//net:dump_cache",
ynovikove3d872f32016-06-09 20:35:05536 "//third_party/angle/src/tests:angle_end2end_tests",
ynovikov25dc7aad2016-05-27 23:09:54537 "//third_party/angle/src/tests:angle_unittests",
dprankedb5527d72015-03-08 04:22:47538 "//third_party/codesighs:maptsvdifftool",
dprankefd1813272015-04-13 23:56:00539 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47540 "//ui/compositor:compositor_unittests",
541 ]
542
agrieve473155b42015-12-28 20:23:11543 if (!is_android) {
544 deps += [
545 "//chrome/test:load_library_perf_tests",
546 "//chrome/test:sync_performance_tests",
547 "//chrome/test/chromedriver:chromedriver",
548 "//chrome/test/chromedriver:chromedriver_tests",
549 "//courgette:courgette",
550 "//courgette:courgette_fuzz",
551 "//courgette:courgette_minimal_tool",
552 "//courgette:courgette_unittests",
stevenjb7b6fd642016-05-18 18:15:30553 "//media/cast:generate_barcode_video",
554 "//media/cast:generate_timecode_audio",
agrieve473155b42015-12-28 20:23:11555 "//net:crash_cache",
556 "//net:crl_set_dump",
557 "//net:dns_fuzz_stub",
558 "//net:gdig",
559 "//net:get_server_time",
560 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
561 "//net:run_testserver",
562 "//net:stress_cache",
563 "//net:tld_cleanup",
564 "//ppapi:pepper_hash_for_uma",
565 "//ppapi:ppapi_perftests",
agrieve473155b42015-12-28 20:23:11566 "//third_party/leveldatabase:env_chromium_unittests",
567 "//third_party/libaddressinput:libaddressinput_unittests",
568 ]
569 }
dpranke7e19b472015-11-13 00:49:33570
jamescookfbbf9112016-06-14 16:24:49571 if (enable_extensions) {
572 deps += [ "//extensions/shell:app_shell" ]
573 }
574
dprankedb5527d72015-03-08 04:22:47575 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13576 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43577
578 if (is_linux) {
579 # TODO(dpranke): Figure out what platforms should actually have this.
milko.leporis3de038d2016-08-18 09:59:37580 deps += [ "//components/nacl/loader:nacl_helper" ]
581
582 if (enable_nacl_nonsfi) {
583 deps += [
584 "//components/nacl/loader:helper_nonsfi",
585 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
586 ]
587 }
dpranke2bc89212015-11-18 00:24:43588 }
dprankedb5527d72015-03-08 04:22:47589 }
590
xhwangfa2d9d472015-12-18 23:31:18591 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10592 deps += [ "//media:ffmpeg_regression_tests" ]
593 }
dprankefd1813272015-04-13 23:56:00594 }
595
agrieve473155b42015-12-28 20:23:11596 if (is_android || (is_linux && !is_chromeos)) {
dprankefd1813272015-04-13 23:56:00597 deps += [
agrieve473155b42015-12-28 20:23:11598 "//breakpad:dump_syms($host_toolchain)",
599 "//breakpad:microdump_stackwalk($host_toolchain)",
600 "//breakpad:minidump_dump($host_toolchain)",
601 "//breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00602 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00603 "//content/public/app:browser",
604 "//content/public/app:child",
rockotc637caf9b2016-02-10 09:57:08605 "//mojo/edk/test:mojo_public_system_perftests",
benf709a3092016-04-12 22:38:22606 "//services/shell/public/cpp",
dprankefd1813272015-04-13 23:56:00607 "//testing/gmock:gmock_main",
dpranke244f973d62015-11-20 05:38:10608 "//third_party/codesighs:nm2tsv",
dprankefd1813272015-04-13 23:56:00609 ]
610
agrieve473155b42015-12-28 20:23:11611 if (!is_android) {
612 deps += [
agrieve473155b42015-12-28 20:23:11613 "//chrome/test:chrome_app_unittests",
brettwf9427f92016-05-05 23:18:55614 "//gpu/khronos_glcts_support:khronos_glcts_test",
agrieve473155b42015-12-28 20:23:11615 "//media/cast:cast_benchmarks",
616 "//media/cast:tap_proxy",
617 "//skia:filter_fuzz_stub",
618 "//skia:image_operations_bench",
agrieve473155b42015-12-28 20:23:11619 "//third_party/sqlite:sqlite_shell",
620 "//ui/keyboard:keyboard_unittests",
621 "//ui/message_center:message_center_unittests",
622 "//ui/snapshot:snapshot_unittests",
agrieve473155b42015-12-28 20:23:11623 ]
dprankefd1813272015-04-13 23:56:00624
agrieve473155b42015-12-28 20:23:11625 if (!is_debug && !is_component_build) {
626 deps += [ "//chrome/tools/service_discovery_sniffer" ]
627 }
yutakbfb4d1672016-06-13 07:42:59628
629 if (is_clang) {
630 deps += [ "//build/sanitizers:copy_llvm_symbolizer" ]
631 }
dprankefd1813272015-04-13 23:56:00632 }
633
taptedd13e0cd2016-05-13 08:26:56634 if (enable_app_list) {
dprankefd1813272015-04-13 23:56:00635 deps += [ "//ui/app_list:app_list_demo" ]
636 }
dprankedb5527d72015-03-08 04:22:47637
638 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44639 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59640 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44641 }
dprankedb5527d72015-03-08 04:22:47642 }
643 }
644
645 if (is_mac) {
646 deps += [
647 "//breakpad:crash_inspector",
648 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44649 "//third_party/apple_sample_code",
650 "//third_party/molokocacao",
651 ]
dpranke43760592014-11-08 02:59:57652 deps -= [
brettw011138d2015-10-21 03:05:38653 # Mojo in GN contains some things which are never compiled in GYP on Mac,
654 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10655 "//mojo",
dprankecf8465db72014-11-10 23:51:22656 ]
dprankefd1813272015-04-13 23:56:00657 }
658
659 if (is_win) {
660 deps += [
661 "//base:pe_image_test",
anantaf2e54a92016-05-28 00:39:16662 "//chrome/install_static:install_static_unittests",
grt734e87b2015-07-06 19:36:43663 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00664 "//chrome_elf:chrome_elf_unittests",
665 "//chrome_elf:dll_hash_main",
dprankefd1813272015-04-13 23:56:00666 "//components/wifi:wifi_test",
667 "//net:quic_client",
668 "//net:quic_server",
669 "//sandbox/win:pocdll",
670 "//sandbox/win:sandbox_poc",
671 "//sandbox/win:sbox_integration_tests",
672 "//sandbox/win:sbox_unittests",
673 "//sandbox/win:sbox_validation_tests",
674 "//testing/gtest:gtest_main",
675 "//third_party/codesighs:msmap2tsv",
676 "//third_party/pdfium/samples:pdfium_diff",
dprankefd1813272015-04-13 23:56:00677 ]
dprankee2ef3822015-02-24 21:42:18678 deps -= [
679 "//crypto:crypto_unittests", # TODO(GYP)
680 "//net:net_unittests", # TODO(GYP)
681 ]
fdorayfb048bff2016-04-28 22:07:36682
683 if (!(is_component_build && is_debug && target_cpu == "x86")) {
684 deps +=
685 [ "//chrome/installer/mini_installer:next_version_mini_installer" ]
686 }
sherouk53f0f1a2015-08-03 15:59:35687 } else if (!is_android && !is_ios) {
miu45b848fe2015-11-26 01:23:29688 deps += [ "//breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34689 }
rsesek985bd812016-04-26 21:06:15690
slance9d62f2015-11-04 01:15:01691 if (is_chromecast) {
692 deps += [ "//chromecast:cast_shell" ]
693 }
miu45b848fe2015-11-26 01:23:29694
rsesek985bd812016-04-26 21:06:15695 if (is_mac || is_win) {
696 deps += [
697 "//third_party/crashpad/crashpad/handler:crashpad_handler",
698 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
699 ]
700 }
701
hbos17a7b4a22015-12-07 10:49:45702 if (use_openh264) {
703 deps += [
704 "//third_party/openh264:common",
705 "//third_party/openh264:encoder",
706 "//third_party/openh264:processing",
707 ]
708 }
[email protected]f0e7ff882013-12-26 21:23:09709}
brettw533c50422015-02-26 17:49:16710
dpranked62d8512015-03-02 03:06:03711group("gn_only") {
dprankedb5527d72015-03-08 04:22:47712 testonly = true
713
dpranke2a294622015-08-07 05:23:01714 deps = []
715
amistry4dcd7c42015-12-16 04:53:10716 if (!is_ios) {
xhwangf69024d12016-06-16 17:52:29717 deps += [
718 "//media/mojo:media_mojo_unittests",
719 "//mojo/common:mojo_common_perftests",
chfremerdb24ccb2016-08-16 17:55:16720 "//services/video_capture:video_capture_unittests",
xhwangf69024d12016-06-16 17:52:29721 ]
amistry4dcd7c42015-12-16 04:53:10722 }
723
scheib35dc9202016-04-26 22:35:43724 if (!is_android && !is_ios) {
725 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
726 }
727
dpranke244f973d62015-11-20 05:38:10728 if (!is_android && !is_ios && !is_chromeos) {
isherman0f89b43eb2015-04-11 00:02:45729 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
730 }
731
ben8f4e95ad2015-12-01 18:35:58732 if (is_win || is_linux) {
sky70471b22016-01-14 16:20:54733 deps += [
734 "//mash:all",
bena5d1cd42016-04-29 22:59:53735 "//media/mojo/services:media_mojo_shell_unittests",
skyfcde3a42016-02-09 20:27:44736 "//mojo",
benee648f62016-05-12 23:04:50737 "//services/navigation",
ben6b0453d12016-07-02 04:27:19738 "//services/ui/demo",
739 "//services/ui/ws:tests",
qyearsley88bc4802016-05-17 18:02:34740 "//ui/views/mus:views_mus_interactive_ui_tests",
bena5d1cd42016-04-29 22:59:53741 "//ui/views/mus:views_mus_unittests",
sky70471b22016-01-14 16:20:54742 ]
sky97b65592015-11-02 20:08:25743 }
744
stevenjb7b6fd642016-05-18 18:15:30745 if (is_linux && !is_chromeos && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47746 # TODO(GYP): Figure out if any of these should be in gn_all
747 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45748 deps += [
dprankedb5527d72015-03-08 04:22:47749 ":gn_mojo_targets",
750 "//chrome/browser/resources:extension_resource_demo",
751 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47752 "//chrome/tools/convert_dict",
753 "//components/constrained_window:unit_tests",
erg4652931e2016-04-27 22:15:40754 "//components/filesystem:filesystem_service_unittests",
ergf1f689f2016-03-22 00:51:20755 "//components/leveldb:leveldb_service_unittests",
dprankedb5527d72015-03-08 04:22:47756 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45757 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47758 "//components/rappor:unit_tests",
759 "//components/sessions:unit_tests",
760 "//media/blink:media_blink_unittests",
stevenjb7b6fd642016-05-18 18:15:30761 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47762 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
763 "//storage/browser:dump_file_system",
764 "//third_party/angle:libANGLE",
765 "//third_party/angle:libEGL",
766 "//third_party/angle:libGLESv2",
dprankedb5527d72015-03-08 04:22:47767 "//third_party/leveldatabase:leveldb_arena_test",
768 "//third_party/leveldatabase:leveldb_bloom_test",
dprankedb5527d72015-03-08 04:22:47769 "//third_party/leveldatabase:leveldb_cache_test",
dprankedb5527d72015-03-08 04:22:47770 "//third_party/leveldatabase:leveldb_corruption_test",
dpranke244f973d62015-11-20 05:38:10771 "//third_party/leveldatabase:leveldb_crc32c_test",
772 "//third_party/leveldatabase:leveldb_db_bench",
773 "//third_party/leveldatabase:leveldb_db_test",
dprankedb5527d72015-03-08 04:22:47774 "//third_party/leveldatabase:leveldb_dbformat_test",
dpranke244f973d62015-11-20 05:38:10775 "//third_party/leveldatabase:leveldb_env_test",
776 "//third_party/leveldatabase:leveldb_filename_test",
777 "//third_party/leveldatabase:leveldb_filter_block_test",
778 "//third_party/leveldatabase:leveldb_log_test",
779 "//third_party/leveldatabase:leveldb_skiplist_test",
780 "//third_party/leveldatabase:leveldb_table_test",
781 "//third_party/leveldatabase:leveldb_version_edit_test",
782 "//third_party/leveldatabase:leveldb_write_batch_test",
dprankedb5527d72015-03-08 04:22:47783 "//third_party/libjpeg_turbo:simd",
dpranke244f973d62015-11-20 05:38:10784 "//third_party/libsrtp:rdbx_driver",
dprankedb5527d72015-03-08 04:22:47785 "//third_party/libsrtp:replay_driver",
786 "//third_party/libsrtp:roc_driver",
787 "//third_party/libsrtp:rtpw",
dprankedb5527d72015-03-08 04:22:47788 "//third_party/libsrtp:srtp_driver",
789 "//third_party/libsrtp:srtp_driver",
dpranke244f973d62015-11-20 05:38:10790 "//third_party/libsrtp:srtp_test_aes_calc",
dprankedb5527d72015-03-08 04:22:47791 "//third_party/libsrtp:srtp_test_cipher_driver",
792 "//third_party/libsrtp:srtp_test_datatypes_driver",
dprankedb5527d72015-03-08 04:22:47793 "//third_party/libsrtp:srtp_test_env",
dpranke244f973d62015-11-20 05:38:10794 "//third_party/libsrtp:srtp_test_kernel_driver",
dprankedb5527d72015-03-08 04:22:47795 "//third_party/libsrtp:srtp_test_rand_gen",
796 "//third_party/libsrtp:srtp_test_sha1_driver",
797 "//third_party/libsrtp:srtp_test_stat_driver",
798 "//third_party/opus:opus_compare",
799 "//third_party/opus:opus_demo",
dpranke244f973d62015-11-20 05:38:10800 "//third_party/opus:test_opus_api",
dprankedb5527d72015-03-08 04:22:47801 "//third_party/opus:test_opus_decode",
802 "//third_party/opus:test_opus_encode",
dprankedb5527d72015-03-08 04:22:47803 "//third_party/opus:test_opus_padding",
dpranke244f973d62015-11-20 05:38:10804 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47805 "//third_party/webrtc/system_wrappers:field_trial_default",
806 "//third_party/webrtc/system_wrappers:metrics_default",
807 "//ui/display/types",
808 "//ui/shell_dialogs:shell_dialogs_unittests",
dprankedb5527d72015-03-08 04:22:47809 ]
dprankeb0713542015-07-31 21:07:21810
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16811 if (target_cpu == "x86" || target_cpu == "x64") {
agrieve473155b42015-12-28 20:23:11812 if (!is_android) {
813 deps += [ "//chrome/test:load_library_perf_tests" ]
814 }
mcgrathr916aafa2015-09-15 00:06:53815 deps += [
mcgrathr916aafa2015-09-15 00:06:53816 "//native_client/src/trusted/platform_qualify:vcpuid",
dpranke244f973d62015-11-20 05:38:10817 "//third_party/libjpeg_turbo:simd_asm",
mcgrathr916aafa2015-09-15 00:06:53818 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16819 }
dpranke807f602b2015-03-17 23:20:56820 if (is_linux && current_toolchain == host_toolchain) {
jochen11513aa02016-05-11 09:59:51821 deps += [ "//v8:v8_shell" ]
dpranke807f602b2015-03-17 23:20:56822 }
dprankedb5527d72015-03-08 04:22:47823 }
dprankeb0713542015-07-31 21:07:21824
spang324dc57a2016-04-06 14:54:08825 if (use_ozone) {
826 deps += [ "//ui/ozone/demo" ]
827 }
828
aizatskyaf496112016-04-15 19:26:32829 if ((is_linux && !is_chromeos && !is_chromecast) || (is_win && use_drfuzz) ||
830 (use_libfuzzer && is_mac)) {
831 deps += [
832 "//testing/libfuzzer/fuzzers",
833 "//testing/libfuzzer/tests:libfuzzer_tests",
aizatsky3f560172016-06-03 23:26:06834 "//third_party/icu/fuzzers",
aizatskyaf496112016-04-15 19:26:32835 ]
miu16396172016-09-28 00:05:56836
837 # TODO(miu): Remove this dependency once the build configuration in
838 # chrome/browser/BUILD.gn is migrated to chrome/browser/media/BUILD.gn.
839 # This dependency here only exists to allow GN to discover the
840 # fuzzer_test target there.
841 deps += [ "//chrome/browser/media:cast_remoting_connector_fuzzer" ]
aizatskyaf496112016-04-15 19:26:32842 }
843
sbc92b4d572016-02-18 03:28:23844 if (enable_nacl) {
845 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
846 }
847
agrieve473155b42015-12-28 20:23:11848 if (is_android) {
849 deps += [
850 "//build/android/gyp/test:hello_world",
851 "//build/android/incremental_install:bootstrap_java",
852 ]
nyquistb5f050b2015-09-10 05:10:35853 }
854
skyostilfe116162016-02-26 20:53:33855 if (is_linux && use_ozone) {
856 deps += [
857 "//headless",
858 "//headless:headless_tests",
859 ]
860 }
861
agrieve473155b42015-12-28 20:23:11862 if (!is_chromecast && (is_android || is_linux || is_chromeos)) {
863 deps += [
864 "//blimp",
865 "//blimp:blimp_tests",
866 ]
dprankeb0713542015-07-31 21:07:21867 }
dprankedb5527d72015-03-08 04:22:47868}
869
870group("gn_mojo_targets") {
871 testonly = true
872 if (is_linux && !is_chromeos) {
873 # TODO(GYP): Figure out if any of these should be in gn_all
874 # and figure out how cross-platform they are
875 deps = [
amistryd4aa70d2016-06-23 07:52:37876 "//ipc:ipc_tests",
msw1bb9c6c2015-05-06 21:35:44877 "//mojo:tests",
dprankedb5527d72015-03-08 04:22:47878 ]
dprankedb5527d72015-03-08 04:22:47879 }
880}
881
882group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03883 deps = [
dprankeb6128d02015-05-01 16:40:30884 "//build/config/sanitizers:options_sources",
dprankedb5527d72015-03-08 04:22:47885 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
886 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dpranked62d8512015-03-02 03:06:03887 ]
dpranked2fb5222015-09-10 22:39:05888
889 if (!is_ios) {
890 deps += [
dpranked2fb5222015-09-10 22:39:05891 "//v8:postmortem-metadata",
dpranke244f973d62015-11-20 05:38:10892 "//v8:v8_snapshot",
dpranked2fb5222015-09-10 22:39:05893 ]
894 }
dpranked62d8512015-03-02 03:06:03895}
896
tfarinacb2638b2015-05-12 03:24:15897if (!is_ios) {
898 # This group includes all of the targets needed to build and test Blink,
899 # including running the layout tests (see below).
900 group("blink_tests") {
901 testonly = true
902
903 deps = [
agrieve993374cf2016-04-13 00:05:39904 "//content/shell:content_shell",
tfarinacb2638b2015-05-12 03:24:15905 "//third_party/WebKit/public:all_blink",
agrieve993374cf2016-04-13 00:05:39906 "//tools/imagediff",
tfarinacb2638b2015-05-12 03:24:15907 ]
908
909 # NOTE: The following deps are needed to run the layout tests
910 # (run-webkit-tests) but there is no GN target for the layout tests,
911 # so we need to specify the dependencies here instead.
912 if (is_android) {
913 deps += [
agrieve62ab00282016-04-05 02:03:45914 "//breakpad:breakpad_unittests",
agrieve993374cf2016-04-13 00:05:39915 "//breakpad:dump_syms",
916 "//breakpad:microdump_stackwalk",
917 "//breakpad:minidump_dump",
918 "//breakpad:minidump_stackwalk",
919 "//breakpad:symupload",
jbudoricke7bcf092016-09-28 18:24:14920 "//tools/android/forwarder2",
ojan94989c72015-07-17 21:56:42921 ]
tfarinacb2638b2015-05-12 03:24:15922 }
923
924 if (is_win) {
925 deps += [
jochen73e711c2015-06-03 10:01:46926 "//components/test_runner:layout_test_helper",
brettw0d3b1df2015-12-03 00:10:01927 "//content/shell:content_shell_crash_service",
tfarinacb2638b2015-05-12 03:24:15928 ]
929 }
930
931 if (!is_win && !is_android) {
Gordana.Cmiljanovicf243e9a2015-05-26 22:14:47932 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15933 }
934
935 if (is_mac) {
ccameron41495f252016-09-02 02:37:32936 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15937 }
938
939 if (is_linux) {
940 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
941 }
qyearsley165a17a82016-08-01 17:58:50942
943 data = [
944 "//third_party/WebKit/LayoutTests/",
945 "//third_party/WebKit/Tools/Scripts/",
946 ]
tfarinacb2638b2015-05-12 03:24:15947 }
948}
949
dpranke6abd8652015-08-28 03:21:11950# Add a dummy target for compatibility w/ GYP
951group("chromium_swarm_tests") {
952}
953
dpranke2302dfa2015-09-29 02:21:52954group("chromium_builder_perf") {
955 testonly = true
956
thakisca8a42882016-06-10 17:59:30957 if (!is_ios && !is_android && !is_chromecast) {
malets6b7062402016-09-15 08:14:26958 data_deps = [
dpranke2302dfa2015-09-29 02:21:52959 "//cc:cc_perftests",
dpranke2302dfa2015-09-29 02:21:52960 "//chrome/test:load_library_perf_tests",
eyaiche1605ca2016-09-14 14:34:05961 "//chrome/test:telemetry_perf_tests",
dpranke2302dfa2015-09-29 02:21:52962 "//gpu:gpu_perftests",
963 "//media:media_perftests",
kbr1e58e782016-05-27 17:21:19964 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
dpranke2302dfa2015-09-29 02:21:52965 ]
966
967 if (!is_chromeos) {
malets6b7062402016-09-15 08:14:26968 data_deps += [ "//chrome/test:performance_browser_tests" ]
dpranke2302dfa2015-09-29 02:21:52969 }
970 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:04971 if (is_official_build) {
972 # In GN builds, this is controlled by the 'linux_dump_symbols'
973 # flag, which defaults to 1 for official builds. For now,
974 # we skip the separate flag and just key off of is_official_build.
malets6b7062402016-09-15 08:14:26975 data_deps += [ "//chrome:linux_symbols" ]
dpranke9aed5d582015-11-22 23:22:04976 }
dpranke2302dfa2015-09-29 02:21:52977
978 if (!is_chromeos) {
malets6b7062402016-09-15 08:14:26979 data_deps += [ "//tools/perf/clear_system_cache" ]
dpranke2302dfa2015-09-29 02:21:52980 }
981 }
982
983 if (is_win) {
malets6b7062402016-09-15 08:14:26984 data_deps += [
hansa3d3aa4d2016-05-04 22:12:52985 "//chrome/installer/mini_installer:mini_installer",
jmadilla42eba2a2016-06-07 18:58:29986 "//third_party/angle/src/tests:angle_perftests",
dpranke2302dfa2015-09-29 02:21:52987 ]
dpranke2302dfa2015-09-29 02:21:52988 } else {
malets6b7062402016-09-15 08:14:26989 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52990 }
991 }
992}
agrieve017b91f2016-02-29 20:15:06993
thakis3f7d4fc2016-06-10 18:47:50994if (!is_ios && !is_android && !is_chromecast) {
995 group("chromium_builder_asan") {
996 testonly = true
997
998 deps = [
999 "//chrome:chrome",
1000 "//content/shell:content_shell",
1001 "//v8:d8",
1002 ]
1003 if (!is_win) {
1004 deps += [
1005 "//net:dns_fuzz_stub",
1006 "//net:hpack_fuzz_wrapper",
1007 "//skia:filter_fuzz_stub",
1008 ]
1009 }
1010 if (enable_ipc_fuzzer && !is_component_build) {
1011 deps += [ "//tools/ipc_fuzzer:ipc_fuzzer_all" ]
1012 }
1013 if (!is_chromeos) {
1014 deps += [
1015 "//third_party/pdfium/samples:pdfium_test",
dpranke8a2de902016-07-14 20:08:371016 "//v8:v8_shell($v8_snapshot_toolchain)",
thakis3f7d4fc2016-06-10 18:47:501017 ]
1018 }
1019 if (is_clang) {
1020 deps += [ "//build/sanitizers:copy_llvm_symbolizer" ]
1021 }
1022 if (is_win && symbol_level == 2 && target_cpu == "x86" && is_syzyasan) {
1023 deps += [
1024 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
sebmarchanda2df3392016-07-13 15:34:591025 "//content/shell:content_shell_syzyasan",
thakis3f7d4fc2016-06-10 18:47:501026 ]
thakis3f7d4fc2016-06-10 18:47:501027 }
1028 }
1029}
1030
brettw6df3e8c42016-04-14 21:07:131031# For compatibility with GYP. The linux_chromium_chromeos_rel_ng and
1032# linux_chromium_chromeos_compile_rel_ng bots reference this target as
1033# something to build, but all targets for those bots to compile are set
1034# up differently.
1035# TODO bug 601920: Remove reference to aura_builder on bot config and delete
1036# this group.
1037group("aura_builder") {
1038}
1039
agrieve95ba4442016-04-25 15:47:131040if (is_android) {
1041 group("optimize_gn_gen") {
1042 deps = [
1043 # These run expensive scripts in non-default toolchains. Generally, host
1044 # toolchain targets are loaded in the later part of the run, and the
1045 # result is they push out the end of generation. By preloading these, the
1046 # scripts can be parallelized with the rest of the load.
1047 "//build/config/linux(//build/toolchain/linux:clang_x64)",
1048 "//build/config/posix(//build/toolchain/linux:clang_x64)",
1049
1050 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot
1051 # generation.
1052 "//build/config/linux(//build/toolchain/linux:clang_x86)",
1053 "//build/config/posix(//build/toolchain/linux:clang_x86)",
1054 ]
1055 }
1056}
1057
agrieve017b91f2016-02-29 20:15:061058# Because of the source assignment filter, many targets end up over-filtering
1059# their sources if the output directory contains a platform name. Assert that
1060# this doesn't happen. http://crbug.com/548283
1061template("assert_valid_out_dir") {
1062 # List copied from //build/config/BUILDCONFIG.gn.
1063 set_sources_assignment_filter([
1064 "*\bandroid/*",
1065 "*\bchromeos/*",
1066 "*\bcocoa/*",
1067 "*\bios/*",
1068 "*\blinux/*",
1069 "*\bmac/*",
1070 "*\bposix/*",
1071 "*\bwin/*",
1072 ])
1073 assert(target_name != "") # Mark as used.
1074 sources = invoker.actual_sources
1075 assert(
1076 sources == invoker.actual_sources,
1077 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
1078}
1079
1080assert_valid_out_dir("_unused") {
1081 actual_sources = [ "$root_build_dir/foo" ]
1082}
dpranke3f55a4d2016-08-03 00:21:191083
1084if (is_win) {
1085 group("chromium_builder_lkgr_drmemory_win") {
1086 testonly = true
1087
1088 deps = [
1089 "//components/test_runner:layout_test_helper",
1090 "//content/shell:content_shell",
1091 "//content/shell:content_shell_crash_service",
1092 ]
1093 }
1094
1095 group("chromium_builder_dbg_drmemory_win") {
1096 testonly = true
1097
1098 deps = [
1099 "//base:base_unittests",
1100 "//cc:cc_unittests",
1101 "//cc/blink:cc_blink_unittests",
1102 "//chrome/installer/setup:setup_unittests",
1103 "//chrome/installer/util:installer_util_unittests",
1104 "//chrome/test:browser_tests",
tommyclicb7b52a2016-09-16 18:15:511105 "//chrome/test:chrome_app_unittests",
dpranke3f55a4d2016-08-03 00:21:191106 "//chrome/test:unit_tests",
1107 "//chrome/test/chromedriver:chromedriver_unittests",
1108 "//chrome_elf:chrome_elf_unittests",
1109 "//components:components_unittests",
1110 "//components/test_runner:layout_test_helper",
1111 "//content/shell:content_shell_crash_service",
dpranke9b8bb5422016-08-03 23:38:551112 "//content/test:content_browsertests",
dpranke3f55a4d2016-08-03 00:21:191113 "//content/test:content_unittests",
1114 "//courgette:courgette_unittests",
dpranke9b8bb5422016-08-03 23:38:551115 "//crypto:crypto_unittests",
dpranke3f55a4d2016-08-03 00:21:191116 "//device:device_unittests",
1117 "//extensions:extensions_browsertests",
1118 "//extensions:extensions_unittests",
1119 "//gin:gin_shell",
1120 "//gin:gin_unittests",
1121 "//google_apis:google_apis_unittests",
1122 "//google_apis/gcm:gcm_unit_tests",
1123 "//gpu:gpu_unittests",
1124 "//ipc:ipc_tests",
1125 "//jingle:jingle_unittests",
1126 "//media:media_unittests",
1127 "//media/capture:capture_unittests",
dpranke9b8bb5422016-08-03 23:38:551128 "//media/cast:cast_unittests",
dpranke3f55a4d2016-08-03 00:21:191129 "//media/midi:midi_unittests",
1130 "//mojo",
1131 "//net:net_unittests",
1132 "//printing:printing_unittests",
1133 "//remoting:remoting_unittests",
1134 "//skia:skia_unittests",
1135 "//sql:sql_unittests",
dpranke3f55a4d2016-08-03 00:21:191136 "//third_party/WebKit/Source/platform:blink_platform_unittests",
brettw4a6700a2016-09-01 01:24:011137 "//third_party/WebKit/Source/platform/heap:blink_heap_unittests",
dpranke3f55a4d2016-08-03 00:21:191138 "//third_party/angle/src/tests:angle_unittests",
1139 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
1140 "//third_party/leveldatabase:env_chromium_unittests",
1141 "//third_party/libaddressinput:libaddressinput_unittests",
1142 "//third_party/libphonenumber:libphonenumber_unittests",
1143 "//ui/accessibility:accessibility_unittests",
1144 "//ui/aura:aura_unittests",
1145 "//ui/compositor:compositor_unittests",
1146 "//ui/display:display_unittests",
1147 "//ui/events:events_unittests",
1148 "//ui/gfx:gfx_unittests",
1149 "//ui/gl:gl_unittests",
1150 "//ui/keyboard:keyboard_unittests",
1151 "//ui/touch_selection:ui_touch_selection_unittests",
1152 "//url:url_unittests",
1153 ]
1154 }
1155}