blob: e2f1bbd61887f7926e5ec355c4ed05006e06f3ff [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") {
grt3f0e4ff2016-08-19 07:51:05120 deps += [ "//chrome/tools/disable_outdated_build_detector" ]
etienneb364deb72016-07-30 03:43:42121 if (is_clang) {
122 deps += [ "//courgette(//build/toolchain/win:clang_x64)" ]
123 } else {
124 deps += [ "//courgette(//build/toolchain/win:x64)" ]
125 }
dpranke6311f0fd2016-06-29 23:41:46126 if (is_chrome_branded) {
127 deps += [ "//remoting/host:remoting_host_installation" ]
128 }
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
154 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 }
dpranke1d5b70692016-06-20 21:09:04162}
163
dprankef92633b2016-04-28 04:33:34164if (is_chromeos) {
165 group("chromiumos_preflight") {
166 testonly = true
167 deps = [
168 "//breakpad:minidump_stackwalk($host_toolchain)",
169 "//chrome",
170 "//chrome/test/chromedriver",
dprankef92633b2016-04-28 04:33:34171 "//media:media_unittests",
markdittmer6e70beb82016-05-02 05:40:47172 "//media/gpu:video_decode_accelerator_unittest",
173 "//media/gpu:video_encode_accelerator_unittest",
dprankef92633b2016-04-28 04:33:34174 "//ppapi/examples/video_decode",
175 "//sandbox/linux:chrome_sandbox",
176 "//sandbox/linux:sandbox_linux_unittests",
177
stevenjbd570b1f2016-04-29 22:57:36178 # Blocked on https://github.com/catapult-project/catapult/issues/2297
dprankef92633b2016-04-28 04:33:34179 #"//third_party/catapult/telemetry:bitmaptools",
dprankef92633b2016-04-28 04:33:34180 "//tools/perf/clear_system_cache",
181 ]
182 }
183}
184
dprankeddc174902015-04-29 01:38:35185# The "both_gn_and_gyp" target should reflect every target that is built
186# in both the GN and GYP builds, and ideally it should match the
187# "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line.
dprankeddc174902015-04-29 01:38:35188group("both_gn_and_gyp") {
189 testonly = true
dprankeddc174902015-04-29 01:38:35190 deps = [
dprankee2ef3822015-02-24 21:42:18191 "//base:base_unittests",
brettwa874dcc2015-08-28 23:59:18192 "//chrome/installer",
sheroukdc35ba272015-09-22 14:09:37193 "//components:components_unittests",
sheroukce1c7d72015-08-24 15:21:59194 "//net:net_unittests",
sherouk2866d662015-08-24 16:29:44195 "//skia:skia_unittests",
brettwa874dcc2015-08-28 23:59:18196 "//sql:sql_unittests",
ochangcc11d0e2016-04-26 19:58:26197 "//tools/ipc_fuzzer:ipc_fuzzer_all",
sherouk4fb74d42015-08-24 15:58:41198 "//ui/base:ui_base_unittests",
sherouk84a45ff2015-09-01 13:31:39199 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:41200 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:18201 ]
dpranke2a294622015-08-07 05:23:01202
sdefresne21832bf92016-03-30 22:01:02203 if (!is_android && !is_chromecast) {
204 deps += [
205 "//crypto:crypto_unittests",
206 "//google_apis/gcm:gcm_unit_tests",
207 ]
208 }
209
slance9d62f2015-11-04 01:15:01210 if (!is_ios && !is_android && !is_chromecast) {
sherouk53f0f1a2015-08-03 15:59:35211 deps += [
sherouk53f0f1a2015-08-03 15:59:35212 "//chrome",
213 "//chrome/test:browser_tests",
214 "//chrome/test:interactive_ui_tests",
215 "//chrome/test:sync_integration_tests",
sherouk53f0f1a2015-08-03 15:59:35216 "//chrome/test/chromedriver:chromedriver_unittests",
Max Boguefef332d2016-07-28 22:09:09217 "//components/sync/tools:sync_client",
218 "//components/sync/tools:sync_listen_notifications",
jamescookfbbf9112016-06-14 16:24:49219 "//extensions:extensions_browsertests",
220 "//extensions:extensions_unittests",
dprankedbdd9d82015-08-12 21:18:18221 "//gpu/gles2_conform_support:gles2_conform_test",
stevenjb604316362016-05-06 22:10:26222 "//gpu/khronos_glcts_support:khronos_glcts_test",
sherouk53f0f1a2015-08-03 15:59:35223 "//jingle:jingle_unittests",
sherouk53f0f1a2015-08-03 15:59:35224 "//net:hpack_example_generator",
225 "//net:hpack_fuzz_mutator",
226 "//net:hpack_fuzz_wrapper",
sherouk53f0f1a2015-08-03 15:59:35227 "//ppapi:ppapi_unittests",
228 "//ppapi/examples/2d",
229 "//ppapi/examples/audio",
230 "//ppapi/examples/audio_input",
231 "//ppapi/examples/compositor",
232 "//ppapi/examples/crxfs",
233 "//ppapi/examples/enumerate_devices",
234 "//ppapi/examples/file_chooser",
235 "//ppapi/examples/flash_topmost",
236 "//ppapi/examples/font",
237 "//ppapi/examples/gamepad",
238 "//ppapi/examples/gles2",
239 "//ppapi/examples/gles2_spinning_cube",
240 "//ppapi/examples/ime",
241 "//ppapi/examples/input",
242 "//ppapi/examples/media_stream_audio",
243 "//ppapi/examples/media_stream_video",
244 "//ppapi/examples/mouse_cursor",
245 "//ppapi/examples/mouse_lock",
246 "//ppapi/examples/printing",
247 "//ppapi/examples/scaling",
248 "//ppapi/examples/scripting",
249 "//ppapi/examples/stub",
250 "//ppapi/examples/threading",
251 "//ppapi/examples/url_loader",
252 "//ppapi/examples/video_capture",
253 "//ppapi/examples/video_decode",
254 "//ppapi/examples/video_effects",
255 "//ppapi/examples/video_encode",
256 "//printing:printing_unittests",
sherouk53f0f1a2015-08-03 15:59:35257 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
258 "//third_party/codesighs",
pkotwicz558d5252015-10-19 21:09:55259 "//third_party/pdfium/samples:pdfium_test",
charliea00055282016-01-26 00:15:15260 "//tools/battor_agent",
charliea5daef2bb2016-01-29 00:13:25261 "//tools/battor_agent:battor_agent_unittests",
pkotwicz558d5252015-10-19 21:09:55262 "//tools/gn",
dpranke244f973d62015-11-20 05:38:10263 "//tools/gn:gn_unittests",
pkotwicz558d5252015-10-19 21:09:55264 "//tools/perf/clear_system_cache",
265 "//ui/accessibility:accessibility_unittests",
pkotwicz558d5252015-10-19 21:09:55266 ]
267 }
268
269 if (!is_ios) {
270 # TODO(GYP): Figure out which of these should actually build on iOS,
271 # and whether there should be other targets that are iOS-only and missing.
272 deps += [
273 "//cc:cc_unittests",
stipc6de0f492016-06-01 20:05:03274 "//chrome/test:telemetry_perf_unittests",
pkotwicz558d5252015-10-19 21:09:55275 "//chrome/test:unit_tests",
276 "//components:components_browsertests",
277 "//content/shell:content_shell",
278 "//content/test:content_browsertests",
279 "//content/test:content_perftests",
280 "//content/test:content_unittests",
281 "//device:device_unittests",
282 "//gpu:gpu_unittests",
markdittmerd88b8352016-04-08 15:28:45283 "//gpu/ipc/service:gpu_ipc_service_unittests",
pkotwicz558d5252015-10-19 21:09:55284 "//ipc:ipc_tests",
pkotwicz558d5252015-10-19 21:09:55285 "//media:media_unittests",
mcasasd2f53ea2016-06-24 19:24:27286 "//media/capture:capture_unittests",
miu45b848fe2015-11-26 01:23:29287 "//media/cast:cast_unittests",
pkotwicz558d5252015-10-19 21:09:55288 "//media/midi:midi_unittests",
289 "//mojo",
pkotwicz558d5252015-10-19 21:09:55290 "//mojo/common:mojo_common_unittests",
rockotc637caf9b2016-02-10 09:57:08291 "//mojo/edk/system:mojo_system_unittests",
292 "//mojo/edk/test:mojo_public_bindings_unittests",
rockotc637caf9b2016-02-10 09:57:08293 "//mojo/edk/test:mojo_public_system_unittests",
pkotwicz558d5252015-10-19 21:09:55294 "//net:net_perftests",
benf709a3092016-04-12 22:38:22295 "//services/shell/public/cpp",
Dirk Pranke49802732015-12-10 01:36:41296 "//third_party/WebKit/Source/platform:blink_platform_unittests",
brettw4a6700a2016-09-01 01:24:01297 "//third_party/WebKit/Source/platform/heap:blink_heap_unittests",
dpranke244f973d62015-11-20 05:38:10298 "//third_party/WebKit/Source/web:webkit_unit_tests",
299 "//third_party/WebKit/Source/wtf:wtf_unittests",
nednguyenc42bf912016-01-27 01:39:28300 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35301 "//third_party/smhasher:pmurhash",
302 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35303 "//ui/display:display_unittests",
304 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35305 "//ui/gl:gl_unittests",
306 "//ui/touch_selection:ui_touch_selection_unittests",
markdittmer67b71ea2016-03-03 22:40:03307 "//url/ipc:url_ipc_unittests",
sherouk53f0f1a2015-08-03 15:59:35308 ]
sdefresne998e8582015-10-07 13:36:45309 } else {
sdefresne88abe362016-06-01 10:40:11310 deps += [ "//ios:all" ]
sherouk53f0f1a2015-08-03 15:59:35311 }
dprankee2ef3822015-02-24 21:42:18312
scottmg34fb7e52014-12-03 23:27:24313 deps += root_extra_deps
[email protected]fce5c3fe2014-04-10 21:13:05314
tfarina4aa9edc2015-10-26 22:14:02315 if (enable_extensions) {
jamescookfbbf9112016-06-14 16:24:49316 deps += [ "//extensions/shell:app_shell_unittests" ]
rockot2f1326e2015-02-23 23:53:51317 }
318
dprankefd1813272015-04-13 23:56:00319 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55320 deps += [ "//chrome/browser/media/router" ]
dprankefd1813272015-04-13 23:56:00321 }
322
garykac3eddb5b2015-04-17 23:16:38323 if (enable_remoting) {
324 deps += [ "//remoting:remoting_all" ]
dprankece5eb832015-04-01 20:21:05325 }
326
dprankee2ef3822015-02-24 21:42:18327 if (toolkit_views) {
ellyjones41c21fe2016-06-09 17:10:19328 deps += [
329 "//ui/views:views_unittests",
330 "//ui/views/examples:views_examples_exe",
331 "//ui/views/examples:views_examples_with_content_exe",
332 ]
James Robinson060f2e32014-09-10 22:31:37333 }
334
dprankee2ef3822015-02-24 21:42:18335 if (use_aura) {
mswda0133e62016-02-16 20:50:02336 deps += [
skycf094f672016-09-01 19:40:12337 "//ash:ash_content_unittests",
jamescookfbbf9112016-06-14 16:24:49338 "//ash:ash_shell_with_content",
339 "//ash:ash_unittests",
tapted87ca2d62016-05-19 20:48:49340 "//ui/app_list:app_list_unittests",
341 "//ui/app_list/presenter:app_list_presenter_unittests",
mswda0133e62016-02-16 20:50:02342 "//ui/aura:aura_unittests",
mswda0133e62016-02-16 20:50:02343 "//ui/aura:demo",
344 "//ui/wm:wm_unittests",
345 ]
dprankee2ef3822015-02-24 21:42:18346 }
347
348 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47349 deps += [ "//ui/ozone" ]
[email protected]a306aaa2014-05-24 13:21:50350 }
351
dprankefd1813272015-04-13 23:56:00352 if (use_x11) {
353 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22354 }
355
tmoniuszkoe5578b922015-04-14 09:38:03356 if (enable_configuration_policy) {
357 deps += [ "//components/policy:policy_templates" ]
358 }
359
oth2a6531922016-07-13 10:06:14360 if (v8_use_external_startup_data) {
361 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
362 }
363
brettw66e3feab2015-07-20 23:52:22364 if (is_win) {
brettwf986f9572015-10-07 17:18:15365 deps += [
366 "//chrome/installer/gcapi",
367 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
368 ]
brettw66e3feab2015-07-20 23:52:22369 }
370
[email protected]5a8d5162014-04-12 01:19:16371 if (is_android) {
[email protected]26046b52014-07-16 00:11:03372 deps += [
pkotwicze2dae8b2015-11-03 20:12:55373 "//base:base_junit_tests",
dpranke244f973d62015-11-20 05:38:10374 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38375 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02376 "//build/android/rezip",
pkotwicz2dd67962016-05-10 00:21:08377 "//chrome/android/webapk/shell_apk:webapk",
pkotwicze2dae8b2015-11-03 20:12:55378 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
379 "//components/policy/android:components_policy_junit_tests",
380 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45381 "//content/shell/android:content_shell_apk",
markdittmer6e70beb82016-05-02 05:40:47382 "//media/gpu:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55383 "//net/android:net_junit_tests",
jbudorick5ef42902016-04-07 04:17:11384 "//testing/android/junit:junit_unit_tests",
wnwen41f70b92016-06-22 14:48:56385 "//third_party/android_async_task:android_async_task_java",
agrieve40ba6862015-07-15 02:09:05386 "//third_party/errorprone:chromium_errorprone",
pkotwicz8adff4e2015-12-17 21:55:45387 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10388 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49389 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34390 "//tools/android:push_apps_to_background",
jbudorickdfc01f62016-06-01 15:42:12391 "//tools/android/audio_focus_grabber:audio_focus_grabber_apk",
392 "//tools/android/customtabs_benchmark:customtabs_benchmark_apk",
dgn28050da2015-10-19 10:16:43393 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
pkotwicz077093762015-12-21 16:47:15394 "//tools/cygprofile:cygprofile_unittests",
newt9e226032016-01-26 01:30:15395 "//ui/android:ui_junit_tests",
dprankee2ef3822015-02-24 21:42:18396 ]
397 deps -= [
rockot9c67e5f2015-03-12 20:01:21398 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18399 "//url:url_unittests",
[email protected]26046b52014-07-16 00:11:03400 ]
401
pkotwicz92e2e2312015-12-15 22:29:46402 if (!is_component_build) {
403 deps += [
agrievee23386b2016-01-05 04:47:58404 "//components/cronet/android:cronet_package",
jbudorickdfc01f62016-06-01 15:42:12405 "//components/cronet/android:cronet_perf_test_apk",
pkotwicz92e2e2312015-12-15 22:29:46406 "//components/cronet/android:cronet_sample_apk",
407 "//components/cronet/android:cronet_sample_test_apk",
408 "//components/cronet/android:cronet_test_apk",
409 "//components/cronet/android:cronet_test_instrumentation_apk",
410 "//components/cronet/android:cronet_unittests",
411 ]
412 }
413
pkotwicz061c5a42015-09-30 02:16:54414 if (!is_chromecast) {
415 deps += [
michaelbaicbcc7e62015-11-12 04:29:53416 "//android_webview",
agrieveb08e2f5b2015-12-29 01:17:30417 "//android_webview/test",
mikecasecb1b5062016-07-01 20:53:44418 "//android_webview/tools/automated_ui_tests:webview_ui_test_app",
mikecase49971fc2016-03-21 21:18:05419 "//android_webview/tools/system_webview_shell",
pkotwicze2dae8b2015-11-03 20:12:55420 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54421 "//chrome/android:chrome_public_apk",
smaierd50624e2016-08-05 14:21:10422 "//chrome/android:chrome_public_test_apk",
423 "//chrome/android:chrome_sync_shell_test_apk",
pkotwicz061c5a42015-09-30 02:16:54424 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b42015-12-28 20:23:11425 "//content/shell/android:content_shell_test_apk",
pkotwicz0a2255e2015-10-06 16:29:05426 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54427 ]
428 }
429
pkotwicz06a4b4b42015-10-29 23:11:11430 if (target_cpu != "x64") {
jbudorickdfc01f62016-06-01 15:42:12431 deps += [
432 "//content/shell/android:chromium_linker_test_apk",
433 "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)",
434 ]
pkotwicz06a4b4b42015-10-29 23:11:11435 }
436
cjhopmanca675d3e2014-10-24 03:50:45437 if (has_chrome_android_internal) {
brettwf9427f92016-05-05 23:18:55438 deps += [ "//clank" ]
cjhopmanca675d3e2014-10-24 03:50:45439 }
dprankedb5527d72015-03-08 04:22:47440 }
441
brettwf9427f92016-05-05 23:18:55442 if (is_linux || is_android) {
dprankefd1813272015-04-13 23:56:00443 deps += [
pkotwicza4d233b22015-11-02 18:20:38444 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00445 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38446 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00447 "//breakpad:minidump-2-core",
448 ]
449 }
450
dpranke6293d252015-04-14 19:12:00451 if (is_chromeos) {
452 deps += [
453 "//chromeos:chromeos_unittests",
yoshiki8e2ddbb2016-03-10 07:11:22454 "//ui/arc:ui_arc_unittests",
dpranke6293d252015-04-14 19:12:00455 "//ui/chromeos:ui_chromeos_unittests",
456 ]
457 }
458
dprankefd1813272015-04-13 23:56:00459 if (is_chromeos || is_mac || is_win) {
460 deps += [
461 "//rlz:rlz_id",
462 "//rlz:rlz_lib",
463 "//rlz:rlz_unittests",
464 ]
465 }
466
dprankedb5527d72015-03-08 04:22:47467 if (is_linux) {
468 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06469 deps += [
dpranke2bc89212015-11-18 00:24:43470 "//chrome:manpage",
471 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47472 "//net:disk_cache_memory_test",
dprankedb5527d72015-03-08 04:22:47473 "//net:quic_client",
474 "//net:quic_server",
475 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18476 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06477 ]
dnicoara8c6aa8e2015-03-11 23:20:32478
mbjorgea12e5a52016-05-31 22:15:17479 if (use_dbus) {
480 deps += [
481 "//dbus:dbus_test_server",
482 "//dbus:dbus_unittests",
483 ]
484 }
485
dnicoara8c6aa8e2015-03-11 23:20:32486 if (is_chromeos || use_ash) {
487 deps += [ "//components/session_manager/core" ]
488 }
dpranke2bc89212015-11-18 00:24:43489
490 if (is_chrome_branded && is_official_build) {
491 # TODO(dpranke): add the linux_dump_symbols flag?
492 deps += [ "//chrome:linux_symbols" ]
493 }
dprankedb5527d72015-03-08 04:22:47494 }
495
sherouke1859f92015-08-05 10:19:10496 if (is_ios || is_win || (is_linux && !is_chromeos)) {
497 deps += [
498 "//base:base_i18n_perftests",
499 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58500 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10501 ]
502 }
503
thakis507c15c2016-06-01 00:26:01504 # TODO(GYP): Figure out which of these should (and can) build
505 # for chromeos/ios.
506 if (!is_chromeos && !is_ios) {
tfarina9e7cf702015-02-23 21:13:44507 deps += [
dprankedb5527d72015-03-08 04:22:47508 "//base:build_utf8_validator_tables",
dpranke244f973d62015-11-20 05:38:10509 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47510 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00511 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47512 "//components:components_perftests",
Max Boguefef332d2016-07-28 22:09:09513 "//components/sync:run_sync_testserver",
dprankedb5527d72015-03-08 04:22:47514 "//device:device_unittests",
515 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47516 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47517 "//google_apis/gcm:mcs_probe",
dprankefd1813272015-04-13 23:56:00518 "//gpu:gl_tests",
dpranke244f973d62015-11-20 05:38:10519 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47520 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47521 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00522 "//net:dump_cache",
ynovikove3d872f32016-06-09 20:35:05523 "//third_party/angle/src/tests:angle_end2end_tests",
ynovikov25dc7aad2016-05-27 23:09:54524 "//third_party/angle/src/tests:angle_unittests",
dprankedb5527d72015-03-08 04:22:47525 "//third_party/codesighs:maptsvdifftool",
dprankefd1813272015-04-13 23:56:00526 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47527 "//ui/compositor:compositor_unittests",
528 ]
529
agrieve473155b42015-12-28 20:23:11530 if (!is_android) {
531 deps += [
532 "//chrome/test:load_library_perf_tests",
533 "//chrome/test:sync_performance_tests",
534 "//chrome/test/chromedriver:chromedriver",
535 "//chrome/test/chromedriver:chromedriver_tests",
536 "//courgette:courgette",
537 "//courgette:courgette_fuzz",
538 "//courgette:courgette_minimal_tool",
539 "//courgette:courgette_unittests",
stevenjb7b6fd642016-05-18 18:15:30540 "//media/cast:generate_barcode_video",
541 "//media/cast:generate_timecode_audio",
agrieve473155b42015-12-28 20:23:11542 "//net:crash_cache",
543 "//net:crl_set_dump",
544 "//net:dns_fuzz_stub",
545 "//net:gdig",
546 "//net:get_server_time",
547 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
548 "//net:run_testserver",
549 "//net:stress_cache",
550 "//net:tld_cleanup",
551 "//ppapi:pepper_hash_for_uma",
552 "//ppapi:ppapi_perftests",
agrieve473155b42015-12-28 20:23:11553 "//third_party/leveldatabase:env_chromium_unittests",
554 "//third_party/libaddressinput:libaddressinput_unittests",
555 ]
556 }
dpranke7e19b472015-11-13 00:49:33557
jamescookfbbf9112016-06-14 16:24:49558 if (enable_extensions) {
559 deps += [ "//extensions/shell:app_shell" ]
560 }
561
dprankedb5527d72015-03-08 04:22:47562 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13563 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43564
565 if (is_linux) {
566 # TODO(dpranke): Figure out what platforms should actually have this.
milko.leporis3de038d2016-08-18 09:59:37567 deps += [ "//components/nacl/loader:nacl_helper" ]
568
569 if (enable_nacl_nonsfi) {
570 deps += [
571 "//components/nacl/loader:helper_nonsfi",
572 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
573 ]
574 }
dpranke2bc89212015-11-18 00:24:43575 }
dprankedb5527d72015-03-08 04:22:47576 }
577
xhwangfa2d9d472015-12-18 23:31:18578 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10579 deps += [ "//media:ffmpeg_regression_tests" ]
580 }
dprankefd1813272015-04-13 23:56:00581 }
582
agrieve473155b42015-12-28 20:23:11583 if (is_android || (is_linux && !is_chromeos)) {
dprankefd1813272015-04-13 23:56:00584 deps += [
agrieve473155b42015-12-28 20:23:11585 "//breakpad:dump_syms($host_toolchain)",
586 "//breakpad:microdump_stackwalk($host_toolchain)",
587 "//breakpad:minidump_dump($host_toolchain)",
588 "//breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00589 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00590 "//content/public/app:browser",
591 "//content/public/app:child",
rockotc637caf9b2016-02-10 09:57:08592 "//mojo/edk/test:mojo_public_system_perftests",
benf709a3092016-04-12 22:38:22593 "//services/shell/public/cpp",
dprankefd1813272015-04-13 23:56:00594 "//testing/gmock:gmock_main",
dpranke244f973d62015-11-20 05:38:10595 "//third_party/codesighs:nm2tsv",
dprankefd1813272015-04-13 23:56:00596 ]
597
agrieve473155b42015-12-28 20:23:11598 if (!is_android) {
599 deps += [
agrieve473155b42015-12-28 20:23:11600 "//chrome/test:chrome_app_unittests",
brettwf9427f92016-05-05 23:18:55601 "//gpu/khronos_glcts_support:khronos_glcts_test",
agrieve473155b42015-12-28 20:23:11602 "//media/cast:cast_benchmarks",
603 "//media/cast:tap_proxy",
604 "//skia:filter_fuzz_stub",
605 "//skia:image_operations_bench",
agrieve473155b42015-12-28 20:23:11606 "//third_party/sqlite:sqlite_shell",
607 "//ui/keyboard:keyboard_unittests",
608 "//ui/message_center:message_center_unittests",
609 "//ui/snapshot:snapshot_unittests",
agrieve473155b42015-12-28 20:23:11610 ]
dprankefd1813272015-04-13 23:56:00611
agrieve473155b42015-12-28 20:23:11612 if (!is_debug && !is_component_build) {
613 deps += [ "//chrome/tools/service_discovery_sniffer" ]
614 }
yutakbfb4d1672016-06-13 07:42:59615
616 if (is_clang) {
617 deps += [ "//build/sanitizers:copy_llvm_symbolizer" ]
618 }
dprankefd1813272015-04-13 23:56:00619 }
620
taptedd13e0cd2016-05-13 08:26:56621 if (enable_app_list) {
dprankefd1813272015-04-13 23:56:00622 deps += [ "//ui/app_list:app_list_demo" ]
623 }
dprankedb5527d72015-03-08 04:22:47624
625 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44626 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59627 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44628 }
dprankedb5527d72015-03-08 04:22:47629 }
630 }
631
632 if (is_mac) {
633 deps += [
634 "//breakpad:crash_inspector",
635 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44636 "//third_party/apple_sample_code",
637 "//third_party/molokocacao",
638 ]
dpranke43760592014-11-08 02:59:57639 deps -= [
brettw011138d2015-10-21 03:05:38640 # Mojo in GN contains some things which are never compiled in GYP on Mac,
641 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10642 "//mojo",
dprankecf8465db72014-11-10 23:51:22643 ]
dprankefd1813272015-04-13 23:56:00644 }
645
646 if (is_win) {
647 deps += [
648 "//base:pe_image_test",
anantaf2e54a92016-05-28 00:39:16649 "//chrome/install_static:install_static_unittests",
grt734e87b2015-07-06 19:36:43650 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00651 "//chrome_elf:chrome_elf_unittests",
652 "//chrome_elf:dll_hash_main",
dprankefd1813272015-04-13 23:56:00653 "//components/wifi:wifi_test",
654 "//net:quic_client",
655 "//net:quic_server",
656 "//sandbox/win:pocdll",
657 "//sandbox/win:sandbox_poc",
658 "//sandbox/win:sbox_integration_tests",
659 "//sandbox/win:sbox_unittests",
660 "//sandbox/win:sbox_validation_tests",
661 "//testing/gtest:gtest_main",
662 "//third_party/codesighs:msmap2tsv",
663 "//third_party/pdfium/samples:pdfium_diff",
dprankefd1813272015-04-13 23:56:00664 ]
dprankee2ef3822015-02-24 21:42:18665 deps -= [
666 "//crypto:crypto_unittests", # TODO(GYP)
667 "//net:net_unittests", # TODO(GYP)
668 ]
fdorayfb048bff2016-04-28 22:07:36669
670 if (!(is_component_build && is_debug && target_cpu == "x86")) {
671 deps +=
672 [ "//chrome/installer/mini_installer:next_version_mini_installer" ]
673 }
sherouk53f0f1a2015-08-03 15:59:35674 } else if (!is_android && !is_ios) {
miu45b848fe2015-11-26 01:23:29675 deps += [ "//breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34676 }
rsesek985bd812016-04-26 21:06:15677
slance9d62f2015-11-04 01:15:01678 if (is_chromecast) {
679 deps += [ "//chromecast:cast_shell" ]
680 }
miu45b848fe2015-11-26 01:23:29681
rsesek985bd812016-04-26 21:06:15682 if (is_mac || is_win) {
683 deps += [
684 "//third_party/crashpad/crashpad/handler:crashpad_handler",
685 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
686 ]
687 }
688
hbos17a7b4a22015-12-07 10:49:45689 if (use_openh264) {
690 deps += [
691 "//third_party/openh264:common",
692 "//third_party/openh264:encoder",
693 "//third_party/openh264:processing",
694 ]
695 }
[email protected]f0e7ff882013-12-26 21:23:09696}
brettw533c50422015-02-26 17:49:16697
dpranked62d8512015-03-02 03:06:03698group("gn_only") {
dprankedb5527d72015-03-08 04:22:47699 testonly = true
700
dpranke2a294622015-08-07 05:23:01701 deps = []
702
amistry4dcd7c42015-12-16 04:53:10703 if (!is_ios) {
xhwangf69024d12016-06-16 17:52:29704 deps += [
705 "//media/mojo:media_mojo_unittests",
706 "//mojo/common:mojo_common_perftests",
chfremerdb24ccb2016-08-16 17:55:16707 "//services/video_capture:video_capture_unittests",
xhwangf69024d12016-06-16 17:52:29708 ]
amistry4dcd7c42015-12-16 04:53:10709 }
710
scheib35dc9202016-04-26 22:35:43711 if (!is_android && !is_ios) {
712 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
713 }
714
dpranke244f973d62015-11-20 05:38:10715 if (!is_android && !is_ios && !is_chromeos) {
isherman0f89b43eb2015-04-11 00:02:45716 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
717 }
718
grt3f0e4ff2016-08-19 07:51:05719 if (is_win && target_cpu == "x86") {
720 deps += [ "//chrome/tools/disable_outdated_build_detector" ]
721 }
722
ben8f4e95ad2015-12-01 18:35:58723 if (is_win || is_linux) {
sky70471b22016-01-14 16:20:54724 deps += [
725 "//mash:all",
bena5d1cd42016-04-29 22:59:53726 "//media/mojo/services:media_mojo_shell_unittests",
skyfcde3a42016-02-09 20:27:44727 "//mojo",
benee648f62016-05-12 23:04:50728 "//services/navigation",
ben6b0453d12016-07-02 04:27:19729 "//services/ui/demo",
730 "//services/ui/ws:tests",
qyearsley88bc4802016-05-17 18:02:34731 "//ui/views/mus:views_mus_interactive_ui_tests",
bena5d1cd42016-04-29 22:59:53732 "//ui/views/mus:views_mus_unittests",
sky70471b22016-01-14 16:20:54733 ]
sky97b65592015-11-02 20:08:25734 }
735
stevenjb7b6fd642016-05-18 18:15:30736 if (is_linux && !is_chromeos && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47737 # TODO(GYP): Figure out if any of these should be in gn_all
738 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45739 deps += [
dprankedb5527d72015-03-08 04:22:47740 ":gn_mojo_targets",
741 "//chrome/browser/resources:extension_resource_demo",
742 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47743 "//chrome/tools/convert_dict",
744 "//components/constrained_window:unit_tests",
erg4652931e2016-04-27 22:15:40745 "//components/filesystem:filesystem_service_unittests",
ergf1f689f2016-03-22 00:51:20746 "//components/leveldb:leveldb_service_unittests",
dprankedb5527d72015-03-08 04:22:47747 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45748 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47749 "//components/rappor:unit_tests",
750 "//components/sessions:unit_tests",
751 "//media/blink:media_blink_unittests",
stevenjb7b6fd642016-05-18 18:15:30752 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47753 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
754 "//storage/browser:dump_file_system",
755 "//third_party/angle:libANGLE",
756 "//third_party/angle:libEGL",
757 "//third_party/angle:libGLESv2",
dprankedb5527d72015-03-08 04:22:47758 "//third_party/leveldatabase:leveldb_arena_test",
759 "//third_party/leveldatabase:leveldb_bloom_test",
dprankedb5527d72015-03-08 04:22:47760 "//third_party/leveldatabase:leveldb_cache_test",
dprankedb5527d72015-03-08 04:22:47761 "//third_party/leveldatabase:leveldb_corruption_test",
dpranke244f973d62015-11-20 05:38:10762 "//third_party/leveldatabase:leveldb_crc32c_test",
763 "//third_party/leveldatabase:leveldb_db_bench",
764 "//third_party/leveldatabase:leveldb_db_test",
dprankedb5527d72015-03-08 04:22:47765 "//third_party/leveldatabase:leveldb_dbformat_test",
dpranke244f973d62015-11-20 05:38:10766 "//third_party/leveldatabase:leveldb_env_test",
767 "//third_party/leveldatabase:leveldb_filename_test",
768 "//third_party/leveldatabase:leveldb_filter_block_test",
769 "//third_party/leveldatabase:leveldb_log_test",
770 "//third_party/leveldatabase:leveldb_skiplist_test",
771 "//third_party/leveldatabase:leveldb_table_test",
772 "//third_party/leveldatabase:leveldb_version_edit_test",
773 "//third_party/leveldatabase:leveldb_write_batch_test",
dprankedb5527d72015-03-08 04:22:47774 "//third_party/libjpeg_turbo:simd",
dpranke244f973d62015-11-20 05:38:10775 "//third_party/libsrtp:rdbx_driver",
dprankedb5527d72015-03-08 04:22:47776 "//third_party/libsrtp:replay_driver",
777 "//third_party/libsrtp:roc_driver",
778 "//third_party/libsrtp:rtpw",
dprankedb5527d72015-03-08 04:22:47779 "//third_party/libsrtp:srtp_driver",
780 "//third_party/libsrtp:srtp_driver",
dpranke244f973d62015-11-20 05:38:10781 "//third_party/libsrtp:srtp_test_aes_calc",
dprankedb5527d72015-03-08 04:22:47782 "//third_party/libsrtp:srtp_test_cipher_driver",
783 "//third_party/libsrtp:srtp_test_datatypes_driver",
dprankedb5527d72015-03-08 04:22:47784 "//third_party/libsrtp:srtp_test_env",
dpranke244f973d62015-11-20 05:38:10785 "//third_party/libsrtp:srtp_test_kernel_driver",
dprankedb5527d72015-03-08 04:22:47786 "//third_party/libsrtp:srtp_test_rand_gen",
787 "//third_party/libsrtp:srtp_test_sha1_driver",
788 "//third_party/libsrtp:srtp_test_stat_driver",
789 "//third_party/opus:opus_compare",
790 "//third_party/opus:opus_demo",
dpranke244f973d62015-11-20 05:38:10791 "//third_party/opus:test_opus_api",
dprankedb5527d72015-03-08 04:22:47792 "//third_party/opus:test_opus_decode",
793 "//third_party/opus:test_opus_encode",
dprankedb5527d72015-03-08 04:22:47794 "//third_party/opus:test_opus_padding",
dpranke244f973d62015-11-20 05:38:10795 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47796 "//third_party/webrtc/system_wrappers:field_trial_default",
797 "//third_party/webrtc/system_wrappers:metrics_default",
798 "//ui/display/types",
799 "//ui/shell_dialogs:shell_dialogs_unittests",
dprankedb5527d72015-03-08 04:22:47800 ]
dprankeb0713542015-07-31 21:07:21801
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16802 if (target_cpu == "x86" || target_cpu == "x64") {
agrieve473155b42015-12-28 20:23:11803 if (!is_android) {
804 deps += [ "//chrome/test:load_library_perf_tests" ]
805 }
mcgrathr916aafa2015-09-15 00:06:53806 deps += [
mcgrathr916aafa2015-09-15 00:06:53807 "//native_client/src/trusted/platform_qualify:vcpuid",
dpranke244f973d62015-11-20 05:38:10808 "//third_party/libjpeg_turbo:simd_asm",
mcgrathr916aafa2015-09-15 00:06:53809 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16810 }
dpranke807f602b2015-03-17 23:20:56811 if (is_linux && current_toolchain == host_toolchain) {
jochen11513aa02016-05-11 09:59:51812 deps += [ "//v8:v8_shell" ]
dpranke807f602b2015-03-17 23:20:56813 }
dprankedb5527d72015-03-08 04:22:47814 }
dprankeb0713542015-07-31 21:07:21815
spang324dc57a2016-04-06 14:54:08816 if (use_ozone) {
817 deps += [ "//ui/ozone/demo" ]
818 }
819
aizatskyaf496112016-04-15 19:26:32820 if ((is_linux && !is_chromeos && !is_chromecast) || (is_win && use_drfuzz) ||
821 (use_libfuzzer && is_mac)) {
822 deps += [
823 "//testing/libfuzzer/fuzzers",
824 "//testing/libfuzzer/tests:libfuzzer_tests",
aizatsky3f560172016-06-03 23:26:06825 "//third_party/icu/fuzzers",
aizatskyaf496112016-04-15 19:26:32826 ]
827 }
828
sbc92b4d572016-02-18 03:28:23829 if (enable_nacl) {
830 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
831 }
832
agrieve473155b42015-12-28 20:23:11833 if (is_android) {
834 deps += [
835 "//build/android/gyp/test:hello_world",
836 "//build/android/incremental_install:bootstrap_java",
837 ]
nyquistb5f050b2015-09-10 05:10:35838 }
839
skyostilfe116162016-02-26 20:53:33840 if (is_linux && use_ozone) {
841 deps += [
842 "//headless",
843 "//headless:headless_tests",
844 ]
845 }
846
agrieve473155b42015-12-28 20:23:11847 if (!is_chromecast && (is_android || is_linux || is_chromeos)) {
848 deps += [
849 "//blimp",
850 "//blimp:blimp_tests",
851 ]
dprankeb0713542015-07-31 21:07:21852 }
dprankedb5527d72015-03-08 04:22:47853}
854
855group("gn_mojo_targets") {
856 testonly = true
857 if (is_linux && !is_chromeos) {
858 # TODO(GYP): Figure out if any of these should be in gn_all
859 # and figure out how cross-platform they are
860 deps = [
amistryd4aa70d2016-06-23 07:52:37861 "//ipc:ipc_tests",
msw1bb9c6c2015-05-06 21:35:44862 "//mojo:tests",
dprankedb5527d72015-03-08 04:22:47863 ]
dprankedb5527d72015-03-08 04:22:47864 }
865}
866
867group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03868 deps = [
dprankeb6128d02015-05-01 16:40:30869 "//build/config/sanitizers:options_sources",
dprankedb5527d72015-03-08 04:22:47870 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
871 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dpranked62d8512015-03-02 03:06:03872 ]
dpranked2fb5222015-09-10 22:39:05873
874 if (!is_ios) {
875 deps += [
dpranked2fb5222015-09-10 22:39:05876 "//v8:postmortem-metadata",
dpranke244f973d62015-11-20 05:38:10877 "//v8:v8_snapshot",
dpranked2fb5222015-09-10 22:39:05878 ]
879 }
dpranked62d8512015-03-02 03:06:03880}
881
tfarinacb2638b2015-05-12 03:24:15882if (!is_ios) {
883 # This group includes all of the targets needed to build and test Blink,
884 # including running the layout tests (see below).
885 group("blink_tests") {
886 testonly = true
887
888 deps = [
agrieve993374cf2016-04-13 00:05:39889 "//content/shell:content_shell",
tfarinacb2638b2015-05-12 03:24:15890 "//third_party/WebKit/public:all_blink",
agrieve993374cf2016-04-13 00:05:39891 "//tools/imagediff",
tfarinacb2638b2015-05-12 03:24:15892 ]
893
894 # NOTE: The following deps are needed to run the layout tests
895 # (run-webkit-tests) but there is no GN target for the layout tests,
896 # so we need to specify the dependencies here instead.
897 if (is_android) {
898 deps += [
agrieve62ab00282016-04-05 02:03:45899 "//breakpad:breakpad_unittests",
agrieve993374cf2016-04-13 00:05:39900 "//breakpad:dump_syms",
901 "//breakpad:microdump_stackwalk",
902 "//breakpad:minidump_dump",
903 "//breakpad:minidump_stackwalk",
904 "//breakpad:symupload",
905 "//tools/android/forwarder",
ojan94989c72015-07-17 21:56:42906 ]
tfarinacb2638b2015-05-12 03:24:15907 }
908
909 if (is_win) {
910 deps += [
jochen73e711c2015-06-03 10:01:46911 "//components/test_runner:layout_test_helper",
brettw0d3b1df2015-12-03 00:10:01912 "//content/shell:content_shell_crash_service",
tfarinacb2638b2015-05-12 03:24:15913 ]
914 }
915
916 if (!is_win && !is_android) {
Gordana.Cmiljanovicf243e9a2015-05-26 22:14:47917 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15918 }
919
920 if (is_mac) {
ccameron41495f252016-09-02 02:37:32921 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15922 }
923
924 if (is_linux) {
925 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
926 }
qyearsley165a17a82016-08-01 17:58:50927
928 data = [
929 "//third_party/WebKit/LayoutTests/",
930 "//third_party/WebKit/Tools/Scripts/",
931 ]
tfarinacb2638b2015-05-12 03:24:15932 }
933}
934
dpranke6abd8652015-08-28 03:21:11935# Add a dummy target for compatibility w/ GYP
936group("chromium_swarm_tests") {
937}
938
dpranke2302dfa2015-09-29 02:21:52939group("chromium_builder_perf") {
940 testonly = true
941
thakisca8a42882016-06-10 17:59:30942 if (!is_ios && !is_android && !is_chromecast) {
dpranke2302dfa2015-09-29 02:21:52943 deps = [
944 "//cc:cc_perftests",
dpranke2302dfa2015-09-29 02:21:52945 "//chrome/test:load_library_perf_tests",
dpranke2302dfa2015-09-29 02:21:52946 "//gpu:gpu_perftests",
947 "//media:media_perftests",
kbr1e58e782016-05-27 17:21:19948 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
dpranke2302dfa2015-09-29 02:21:52949 ]
950
951 if (!is_chromeos) {
952 deps += [ "//chrome/test:performance_browser_tests" ]
953 }
954 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:04955 if (is_official_build) {
956 # In GN builds, this is controlled by the 'linux_dump_symbols'
957 # flag, which defaults to 1 for official builds. For now,
958 # we skip the separate flag and just key off of is_official_build.
959 deps += [ "//chrome:linux_symbols" ]
960 }
dpranke2302dfa2015-09-29 02:21:52961
962 if (!is_chromeos) {
963 deps += [ "//tools/perf/clear_system_cache" ]
964 }
965 }
966
967 if (is_win) {
968 deps += [
hansa3d3aa4d2016-05-04 22:12:52969 "//chrome/installer/mini_installer:mini_installer",
jmadilla42eba2a2016-06-07 18:58:29970 "//third_party/angle/src/tests:angle_perftests",
dpranke2302dfa2015-09-29 02:21:52971 ]
dpranke2302dfa2015-09-29 02:21:52972 } else {
dprankeec10b3932015-10-02 17:58:23973 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52974 }
975 }
976}
agrieve017b91f2016-02-29 20:15:06977
thakis3f7d4fc2016-06-10 18:47:50978if (!is_ios && !is_android && !is_chromecast) {
979 group("chromium_builder_asan") {
980 testonly = true
981
982 deps = [
983 "//chrome:chrome",
984 "//content/shell:content_shell",
985 "//v8:d8",
986 ]
987 if (!is_win) {
988 deps += [
989 "//net:dns_fuzz_stub",
990 "//net:hpack_fuzz_wrapper",
991 "//skia:filter_fuzz_stub",
992 ]
993 }
994 if (enable_ipc_fuzzer && !is_component_build) {
995 deps += [ "//tools/ipc_fuzzer:ipc_fuzzer_all" ]
996 }
997 if (!is_chromeos) {
998 deps += [
999 "//third_party/pdfium/samples:pdfium_test",
dpranke8a2de902016-07-14 20:08:371000 "//v8:v8_shell($v8_snapshot_toolchain)",
thakis3f7d4fc2016-06-10 18:47:501001 ]
1002 }
1003 if (is_clang) {
1004 deps += [ "//build/sanitizers:copy_llvm_symbolizer" ]
1005 }
1006 if (is_win && symbol_level == 2 && target_cpu == "x86" && is_syzyasan) {
1007 deps += [
1008 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
sebmarchanda2df3392016-07-13 15:34:591009 "//content/shell:content_shell_syzyasan",
thakis3f7d4fc2016-06-10 18:47:501010 ]
thakis3f7d4fc2016-06-10 18:47:501011 }
1012 }
1013}
1014
brettw6df3e8c42016-04-14 21:07:131015# For compatibility with GYP. The linux_chromium_chromeos_rel_ng and
1016# linux_chromium_chromeos_compile_rel_ng bots reference this target as
1017# something to build, but all targets for those bots to compile are set
1018# up differently.
1019# TODO bug 601920: Remove reference to aura_builder on bot config and delete
1020# this group.
1021group("aura_builder") {
1022}
1023
agrieve95ba4442016-04-25 15:47:131024if (is_android) {
1025 group("optimize_gn_gen") {
1026 deps = [
1027 # These run expensive scripts in non-default toolchains. Generally, host
1028 # toolchain targets are loaded in the later part of the run, and the
1029 # result is they push out the end of generation. By preloading these, the
1030 # scripts can be parallelized with the rest of the load.
1031 "//build/config/linux(//build/toolchain/linux:clang_x64)",
1032 "//build/config/posix(//build/toolchain/linux:clang_x64)",
1033
1034 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot
1035 # generation.
1036 "//build/config/linux(//build/toolchain/linux:clang_x86)",
1037 "//build/config/posix(//build/toolchain/linux:clang_x86)",
1038 ]
1039 }
1040}
1041
agrieve017b91f2016-02-29 20:15:061042# Because of the source assignment filter, many targets end up over-filtering
1043# their sources if the output directory contains a platform name. Assert that
1044# this doesn't happen. http://crbug.com/548283
1045template("assert_valid_out_dir") {
1046 # List copied from //build/config/BUILDCONFIG.gn.
1047 set_sources_assignment_filter([
1048 "*\bandroid/*",
1049 "*\bchromeos/*",
1050 "*\bcocoa/*",
1051 "*\bios/*",
1052 "*\blinux/*",
1053 "*\bmac/*",
1054 "*\bposix/*",
1055 "*\bwin/*",
1056 ])
1057 assert(target_name != "") # Mark as used.
1058 sources = invoker.actual_sources
1059 assert(
1060 sources == invoker.actual_sources,
1061 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
1062}
1063
1064assert_valid_out_dir("_unused") {
1065 actual_sources = [ "$root_build_dir/foo" ]
1066}
dpranke3f55a4d2016-08-03 00:21:191067
1068if (is_win) {
1069 group("chromium_builder_lkgr_drmemory_win") {
1070 testonly = true
1071
1072 deps = [
1073 "//components/test_runner:layout_test_helper",
1074 "//content/shell:content_shell",
1075 "//content/shell:content_shell_crash_service",
1076 ]
1077 }
1078
1079 group("chromium_builder_dbg_drmemory_win") {
1080 testonly = true
1081
1082 deps = [
1083 "//base:base_unittests",
1084 "//cc:cc_unittests",
1085 "//cc/blink:cc_blink_unittests",
1086 "//chrome/installer/setup:setup_unittests",
1087 "//chrome/installer/util:installer_util_unittests",
1088 "//chrome/test:browser_tests",
glider48586ee2016-08-26 07:59:561089
1090 # https://crbug.com/640185
1091 # "//chrome/test:chrome_app_unittests",
dpranke3f55a4d2016-08-03 00:21:191092 "//chrome/test:unit_tests",
1093 "//chrome/test/chromedriver:chromedriver_unittests",
1094 "//chrome_elf:chrome_elf_unittests",
1095 "//components:components_unittests",
1096 "//components/test_runner:layout_test_helper",
1097 "//content/shell:content_shell_crash_service",
dpranke9b8bb5422016-08-03 23:38:551098 "//content/test:content_browsertests",
dpranke3f55a4d2016-08-03 00:21:191099 "//content/test:content_unittests",
1100 "//courgette:courgette_unittests",
dpranke9b8bb5422016-08-03 23:38:551101 "//crypto:crypto_unittests",
dpranke3f55a4d2016-08-03 00:21:191102 "//device:device_unittests",
1103 "//extensions:extensions_browsertests",
1104 "//extensions:extensions_unittests",
1105 "//gin:gin_shell",
1106 "//gin:gin_unittests",
1107 "//google_apis:google_apis_unittests",
1108 "//google_apis/gcm:gcm_unit_tests",
1109 "//gpu:gpu_unittests",
1110 "//ipc:ipc_tests",
1111 "//jingle:jingle_unittests",
1112 "//media:media_unittests",
1113 "//media/capture:capture_unittests",
dpranke9b8bb5422016-08-03 23:38:551114 "//media/cast:cast_unittests",
dpranke3f55a4d2016-08-03 00:21:191115 "//media/midi:midi_unittests",
1116 "//mojo",
1117 "//net:net_unittests",
1118 "//printing:printing_unittests",
1119 "//remoting:remoting_unittests",
1120 "//skia:skia_unittests",
1121 "//sql:sql_unittests",
dpranke3f55a4d2016-08-03 00:21:191122 "//third_party/WebKit/Source/platform:blink_platform_unittests",
brettw4a6700a2016-09-01 01:24:011123 "//third_party/WebKit/Source/platform/heap:blink_heap_unittests",
dpranke3f55a4d2016-08-03 00:21:191124 "//third_party/angle/src/tests:angle_unittests",
1125 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
1126 "//third_party/leveldatabase:env_chromium_unittests",
1127 "//third_party/libaddressinput:libaddressinput_unittests",
1128 "//third_party/libphonenumber:libphonenumber_unittests",
1129 "//ui/accessibility:accessibility_unittests",
1130 "//ui/aura:aura_unittests",
1131 "//ui/compositor:compositor_unittests",
1132 "//ui/display:display_unittests",
1133 "//ui/events:events_unittests",
1134 "//ui/gfx:gfx_unittests",
1135 "//ui/gl:gl_unittests",
1136 "//ui/keyboard:keyboard_unittests",
1137 "//ui/touch_selection:ui_touch_selection_unittests",
1138 "//url:url_unittests",
1139 ]
1140 }
1141}