[go: nahoru, domu]

blob: 1b299dbb20d75a41c905993f4eb18ef293372d0c [file] [log] [blame]
brettw@chromium.orgf0e7ff882013-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")
tfarina@chromium.org378b4f02014-06-10 15:58:4514import("//build/config/ui.gni")
dpranked4da5ab2015-10-13 06:20:3315import("//build_overrides/v8.gni")
brettw00899e62016-11-12 02:10:1716import("//extensions/features/features.gni")
mostynb2196a462015-08-20 17:22:1017import("//media/media_options.gni")
brettw2b112cd2016-10-12 19:35:3618import("//remoting/remoting_enable.gni")
hbos17a7b4a22015-12-07 10:49:4519import("//third_party/openh264/openh264_args.gni")
thakis3f7d4fc2016-06-10 18:47:5020import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
kylechar50abf5a2016-11-29 16:03:0721import("//ui/ozone/ozone.gni")
machenbachd65ec5c2016-07-22 09:05:2322import("//v8/gni/v8.gni")
dpranke8a2de902016-07-14 20:08:3723import("//v8/snapshot_toolchain.gni")
dprankee2ef3822015-02-24 21:42:1824
cjhopmanca675d3e2014-10-24 03:50:4525if (is_android) {
26 import("//build/config/android/config.gni")
27}
tfarina@chromium.org378b4f02014-06-10 15:58:4528
brettwb84b2942014-10-22 22:58:4529declare_args() {
30 # A list of extra dependencies to add to the root target. This allows a
31 # checkout to add additional targets without explicitly changing any checked-
32 # in files.
33 root_extra_deps = []
34}
35
brucedawsonc8d6d652016-09-02 19:43:1836if (is_official_build) {
37 # An official (maximally optimized!) component (optimized for build times)
38 # build doesn't make sense and usually doesn't work.
39 assert(!is_component_build)
40}
41
dprankeef9c5e582015-11-15 23:22:0842# This file defines the following five main targets:
dpranked62d8512015-03-02 03:06:0343#
dprankeddc174902015-04-29 01:38:3544# "both_gn_and_gyp" should list every root target (target that nothing else
45# depends on) built by GN that is also built in the GYP build.
dpranked62d8512015-03-02 03:06:0346#
dprankeddc174902015-04-29 01:38:3547# "gn_all" should (transitively) cause everything to be built; if you run
48# 'ninja gn_all' and then 'ninja all', the second build should do no work.
49#
dprankeef9c5e582015-11-15 23:22:0850# "gn_only" should list every root target that is *not* intended to be built in
51# a GYP build. Because GN has different rules for deciding what an 'all' build
52# is, this may end up including targets that are actually defined in a GYP
53# build but not dependencies of GYP's "all" (and so not actually built).
dprankeddc174902015-04-29 01:38:3554#
dprankeb6128d02015-05-01 16:40:3055# "gn_visibility": targets that are normally not visible to top-level targets,
dprankeef9c5e582015-11-15 23:22:0856# but are built anyway by "all". Since we don't want any such targets, we have
57# this placeholder to make sure hidden targets that aren't otherwise depended
58# on yet are accounted for.
59#
60# "All" is an alias for "gn_all". It exists for bot compatibility w/ GYP for
61# the iOS bots and the official builders, but should not be generally used
62# during the GYP->GN migration. We cannot guarantee that GN's "All" builds the
63# same set of targets as GYP's "All" does, because GYP's "All" supports
64# wildcards.
65#
66# Lastly, none of these targets are guaranteed to be the same as what ninja
67# will build with "all". For more on how "all" works and the differences in how
68# GYP and GN determine "all", see crbug.com/503241.
dprankeb6128d02015-05-01 16:40:3069#
brettwf9427f92016-05-05 23:18:5570# TODO(GYP_GONE): crbug.com/481694. Make sure that the above is true and there
71# are scripts run on the bots that enforce this. Once the GYP migration is
72# over, we can collapse all of these targets as desired.
dprankeff30e3d2015-02-24 06:52:3973
dprankee2ef3822015-02-24 21:42:1874group("gn_all") {
75 testonly = true
76
77 deps = [
dprankeddc174902015-04-29 01:38:3578 ":both_gn_and_gyp",
79 ":gn_only",
dprankeb6128d02015-05-01 16:40:3080 ":gn_visibility",
dprankeddc174902015-04-29 01:38:3581 ]
machenbach640e53da2016-06-06 09:19:0882
83 if (!is_ios) {
jmadilla42eba2a2016-06-07 18:58:2984 deps += [ "//v8:gn_all" ]
machenbach640e53da2016-06-06 09:19:0885 }
dprankeddc174902015-04-29 01:38:3586}
87
brettwf9427f92016-05-05 23:18:5588# TODO(GYP_GONE): This target exists for compatibility with GYP, specifically
dprankeef9c5e582015-11-15 23:22:0889# for the iOS bots and the official builders.
90group("All") {
91 testonly = true
92
93 deps = [
94 ":gn_all",
95 ]
96}
97
brettwf9427f92016-05-05 23:18:5598# TODO(GYP_GONE): This target exists for compatibility with GYP for the
dprankec7bbafa2016-06-17 03:02:0599# builders that specify targets in the recipes directly.
100# Ideally it should not exist, and the builders should be specifying
101# more specific targets (or 'All') via the source-side
102# //testing/buildbot/*.json files. We should simply delete this target
103# and update any recipes that are using it.
Dirk Prankef00b78b2016-04-18 23:59:20104group("chromium_builder_tests") {
105 testonly = true
dprankec7bbafa2016-06-17 03:02:05106 deps = []
Dirk Prankef00b78b2016-04-18 23:59:20107}
108
dpranke1d5b70692016-06-20 21:09:04109# TODO(GYP_GONE): Figure out if we really need this target or if there's
110# some better way to specify things.
111if (is_win) {
112 group("chrome_official_builder_no_unittests") {
113 deps = [
pastarmovj828a5c92016-12-21 12:49:54114 "//base/win:eventlog_provider",
dpranke1d5b70692016-06-20 21:09:04115 "//chrome/installer/gcapi",
116 "//chrome/installer/mini_installer",
pastarmovjae3050e2016-12-08 15:13:00117 "//cloud_print",
pastarmovje536476b2016-12-20 14:31:56118 "//cloud_print/virtual_driver/win/port_monitor:copy_gcp_portmon_binaries",
zmin6211e7d62016-06-23 01:19:29119 "//components/policy:pack_policy_templates",
dpranke1d5b70692016-06-20 21:09:04120 "//courgette",
sebmarchand8541a4d2016-07-20 23:35:29121 "//courgette:copy_courgette_binaries",
dpranke1d5b70692016-06-20 21:09:04122 "//remoting/webapp",
123 ]
dpranke6311f0fd2016-06-29 23:41:46124
etienneb364deb72016-07-30 03:43:42125 if (target_cpu == "x86") {
126 if (is_clang) {
127 deps += [ "//courgette(//build/toolchain/win:clang_x64)" ]
128 } else {
129 deps += [ "//courgette(//build/toolchain/win:x64)" ]
130 }
zijieheab5f1ccc2016-10-13 22:57:16131 }
132 if (is_chrome_branded) {
133 deps += [ "//remoting/host:remoting_host_installation" ]
dpranke1d5b70692016-06-20 21:09:04134 }
135 }
dpranke33e626e2016-06-23 04:41:32136
137 group("chrome_official_builder") {
138 testonly = true
139
140 deps = [
141 ":chrome_official_builder_no_unittests",
142 "//base:base_unittests",
143 "//chrome/test:browser_tests",
144 "//chrome/test:sync_integration_tests",
145 "//ipc:ipc_tests",
146 "//media:media_unittests",
147 "//media/midi:midi_unittests",
148 "//net:net_unittests",
149 "//printing:printing_unittests",
150 "//sql:sql_unittests",
dpranke33e626e2016-06-23 04:41:32151 "//ui/base:ui_base_unittests",
152 "//ui/gfx:gfx_unittests",
153 "//ui/touch_selection:ui_touch_selection_unittests",
154 "//ui/views:views_unittests",
155 "//url:url_unittests",
156 ]
157 }
dprankebad56d4b2016-06-26 18:06:30158
159 group("All_syzygy") {
sebmarchanddc24dfdf2016-10-17 21:01:35160 if (is_syzyasan) {
dprankebad56d4b2016-06-26 18:06:30161 deps = [
162 "//chrome/installer/mini_installer:mini_installer",
163 "//chrome/installer/mini_installer:mini_installer_syzygy",
164 ]
165 }
166 }
sebmarchand6c0a80ee2016-09-28 19:05:29167
168 if (is_syzyasan) {
169 group("chrome_official_syzyasan_builder") {
170 deps = [
171 ":All_syzygy",
172 ":chrome_official_builder_no_unittests",
173 ]
174 }
175 }
dpranke1d5b70692016-06-20 21:09:04176}
177
dprankef92633b2016-04-28 04:33:34178if (is_chromeos) {
179 group("chromiumos_preflight") {
180 testonly = true
181 deps = [
182 "//breakpad:minidump_stackwalk($host_toolchain)",
183 "//chrome",
184 "//chrome/test/chromedriver",
dprankef92633b2016-04-28 04:33:34185 "//media:media_unittests",
markdittmer6e70beb82016-05-02 05:40:47186 "//media/gpu:video_decode_accelerator_unittest",
187 "//media/gpu:video_encode_accelerator_unittest",
dprankef92633b2016-04-28 04:33:34188 "//ppapi/examples/video_decode",
189 "//sandbox/linux:chrome_sandbox",
190 "//sandbox/linux:sandbox_linux_unittests",
191
stevenjbd570b1f2016-04-29 22:57:36192 # Blocked on https://github.com/catapult-project/catapult/issues/2297
dprankef92633b2016-04-28 04:33:34193 #"//third_party/catapult/telemetry:bitmaptools",
dprankef92633b2016-04-28 04:33:34194 "//tools/perf/clear_system_cache",
195 ]
196 }
197}
198
dprankeddc174902015-04-29 01:38:35199# The "both_gn_and_gyp" target should reflect every target that is built
200# in both the GN and GYP builds, and ideally it should match the
201# "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line.
dprankeddc174902015-04-29 01:38:35202group("both_gn_and_gyp") {
203 testonly = true
dprankeddc174902015-04-29 01:38:35204 deps = [
dprankee2ef3822015-02-24 21:42:18205 "//base:base_unittests",
brettwa874dcc2015-08-28 23:59:18206 "//chrome/installer",
sheroukdc35ba272015-09-22 14:09:37207 "//components:components_unittests",
sheroukce1c7d72015-08-24 15:21:59208 "//net:net_unittests",
sherouk2866d662015-08-24 16:29:44209 "//skia:skia_unittests",
brettwa874dcc2015-08-28 23:59:18210 "//sql:sql_unittests",
ochangcc11d0e2016-04-26 19:58:26211 "//tools/ipc_fuzzer:ipc_fuzzer_all",
sherouk4fb74d42015-08-24 15:58:41212 "//ui/base:ui_base_unittests",
sherouk84a45ff2015-09-01 13:31:39213 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:41214 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:18215 ]
dpranke2a294622015-08-07 05:23:01216
sdefresne21832bf92016-03-30 22:01:02217 if (!is_android && !is_chromecast) {
218 deps += [
219 "//crypto:crypto_unittests",
220 "//google_apis/gcm:gcm_unit_tests",
221 ]
222 }
223
slance9d62f2015-11-04 01:15:01224 if (!is_ios && !is_android && !is_chromecast) {
sherouk53f0f1a2015-08-03 15:59:35225 deps += [
sherouk53f0f1a2015-08-03 15:59:35226 "//chrome",
227 "//chrome/test:browser_tests",
228 "//chrome/test:interactive_ui_tests",
229 "//chrome/test:sync_integration_tests",
sherouk53f0f1a2015-08-03 15:59:35230 "//chrome/test/chromedriver:chromedriver_unittests",
Max Boguefef332d2016-07-28 22:09:09231 "//components/sync/tools:sync_client",
232 "//components/sync/tools:sync_listen_notifications",
jamescookfbbf9112016-06-14 16:24:49233 "//extensions:extensions_browsertests",
234 "//extensions:extensions_unittests",
dprankedbdd9d82015-08-12 21:18:18235 "//gpu/gles2_conform_support:gles2_conform_test",
stevenjb604316362016-05-06 22:10:26236 "//gpu/khronos_glcts_support:khronos_glcts_test",
sherouk53f0f1a2015-08-03 15:59:35237 "//jingle:jingle_unittests",
sherouk53f0f1a2015-08-03 15:59:35238 "//net:hpack_example_generator",
239 "//net:hpack_fuzz_mutator",
240 "//net:hpack_fuzz_wrapper",
sherouk53f0f1a2015-08-03 15:59:35241 "//ppapi:ppapi_unittests",
242 "//ppapi/examples/2d",
243 "//ppapi/examples/audio",
244 "//ppapi/examples/audio_input",
245 "//ppapi/examples/compositor",
246 "//ppapi/examples/crxfs",
247 "//ppapi/examples/enumerate_devices",
248 "//ppapi/examples/file_chooser",
249 "//ppapi/examples/flash_topmost",
250 "//ppapi/examples/font",
251 "//ppapi/examples/gamepad",
252 "//ppapi/examples/gles2",
253 "//ppapi/examples/gles2_spinning_cube",
254 "//ppapi/examples/ime",
255 "//ppapi/examples/input",
256 "//ppapi/examples/media_stream_audio",
257 "//ppapi/examples/media_stream_video",
258 "//ppapi/examples/mouse_cursor",
259 "//ppapi/examples/mouse_lock",
260 "//ppapi/examples/printing",
261 "//ppapi/examples/scaling",
262 "//ppapi/examples/scripting",
263 "//ppapi/examples/stub",
264 "//ppapi/examples/threading",
265 "//ppapi/examples/url_loader",
266 "//ppapi/examples/video_capture",
267 "//ppapi/examples/video_decode",
268 "//ppapi/examples/video_effects",
269 "//ppapi/examples/video_encode",
270 "//printing:printing_unittests",
sherouk53f0f1a2015-08-03 15:59:35271 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
272 "//third_party/codesighs",
pkotwicz558d5252015-10-19 21:09:55273 "//third_party/pdfium/samples:pdfium_test",
kjellanderb1ab7b82016-11-01 08:34:21274 "//third_party/webrtc/tools:frame_analyzer",
charliea00055282016-01-26 00:15:15275 "//tools/battor_agent",
charliea5daef2bb2016-01-29 00:13:25276 "//tools/battor_agent:battor_agent_unittests",
pkotwicz558d5252015-10-19 21:09:55277 "//tools/gn",
dpranke244f9732015-11-20 05:38:10278 "//tools/gn:gn_unittests",
pkotwicz558d5252015-10-19 21:09:55279 "//tools/perf/clear_system_cache",
280 "//ui/accessibility:accessibility_unittests",
pkotwicz558d5252015-10-19 21:09:55281 ]
282 }
283
284 if (!is_ios) {
285 # TODO(GYP): Figure out which of these should actually build on iOS,
286 # and whether there should be other targets that are iOS-only and missing.
287 deps += [
288 "//cc:cc_unittests",
stipc6de0f492016-06-01 20:05:03289 "//chrome/test:telemetry_perf_unittests",
pkotwicz558d5252015-10-19 21:09:55290 "//chrome/test:unit_tests",
291 "//components:components_browsertests",
brettw3865a712016-12-10 05:59:08292 "//components/policy:policy_templates",
pkotwicz558d5252015-10-19 21:09:55293 "//content/shell:content_shell",
294 "//content/test:content_browsertests",
295 "//content/test:content_perftests",
296 "//content/test:content_unittests",
297 "//device:device_unittests",
298 "//gpu:gpu_unittests",
markdittmerd88b8352016-04-08 15:28:45299 "//gpu/ipc/service:gpu_ipc_service_unittests",
pkotwicz558d5252015-10-19 21:09:55300 "//ipc:ipc_tests",
pkotwicz558d5252015-10-19 21:09:55301 "//media:media_unittests",
mcasasd2f53ea2016-06-24 19:24:27302 "//media/capture:capture_unittests",
miu45b848fe2015-11-26 01:23:29303 "//media/cast:cast_unittests",
pkotwicz558d5252015-10-19 21:09:55304 "//media/midi:midi_unittests",
305 "//mojo",
pkotwicz558d5252015-10-19 21:09:55306 "//mojo/common:mojo_common_unittests",
rockotc637caf9b2016-02-10 09:57:08307 "//mojo/edk/system:mojo_system_unittests",
308 "//mojo/edk/test:mojo_public_bindings_unittests",
rockotc637caf9b2016-02-10 09:57:08309 "//mojo/edk/test:mojo_public_system_unittests",
pkotwicz558d5252015-10-19 21:09:55310 "//net:net_perftests",
rockot734fb662016-10-15 16:41:30311 "//services/service_manager/public/cpp",
pwnall008c0272016-10-14 16:54:04312 "//storage//browser:storage_unittests",
Dirk Pranke49802732015-12-10 01:36:41313 "//third_party/WebKit/Source/platform:blink_platform_unittests",
brettw4a6700a2016-09-01 01:24:01314 "//third_party/WebKit/Source/platform/heap:blink_heap_unittests",
dpranke244f9732015-11-20 05:38:10315 "//third_party/WebKit/Source/web:webkit_unit_tests",
316 "//third_party/WebKit/Source/wtf:wtf_unittests",
brettwc5fcdd02016-10-12 07:25:12317 "//third_party/angle/src/tests:angle_end2end_tests",
318 "//third_party/angle/src/tests:angle_unittests",
nednguyenc42bf912016-01-27 01:39:28319 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35320 "//third_party/smhasher:pmurhash",
321 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35322 "//ui/display:display_unittests",
323 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35324 "//ui/gl:gl_unittests",
325 "//ui/touch_selection:ui_touch_selection_unittests",
markdittmer67b71ea2016-03-03 22:40:03326 "//url/ipc:url_ipc_unittests",
sherouk53f0f1a2015-08-03 15:59:35327 ]
sdefresne998e8582015-10-07 13:36:45328 } else {
sdefresne88abe362016-06-01 10:40:11329 deps += [ "//ios:all" ]
sherouk53f0f1a2015-08-03 15:59:35330 }
dprankee2ef3822015-02-24 21:42:18331
scottmg34fb7e52014-12-03 23:27:24332 deps += root_extra_deps
brettw@chromium.orgfce5c3fe2014-04-10 21:13:05333
tfarina4aa9edc2015-10-26 22:14:02334 if (enable_extensions) {
jamescookfbbf9112016-06-14 16:24:49335 deps += [ "//extensions/shell:app_shell_unittests" ]
rockot2f1326e2015-02-23 23:53:51336 }
337
dprankefd1813272015-04-13 23:56:00338 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55339 deps += [ "//chrome/browser/media/router" ]
dprankefd1813272015-04-13 23:56:00340 }
341
garykac3eddb5b2015-04-17 23:16:38342 if (enable_remoting) {
343 deps += [ "//remoting:remoting_all" ]
dprankece5eb832015-04-01 20:21:05344 }
345
dprankee2ef3822015-02-24 21:42:18346 if (toolkit_views) {
ellyjones41c21fe2016-06-09 17:10:19347 deps += [
348 "//ui/views:views_unittests",
349 "//ui/views/examples:views_examples_exe",
350 "//ui/views/examples:views_examples_with_content_exe",
351 ]
James Robinson060f2e32014-09-10 22:31:37352 }
353
jamescook4c02a0b2016-12-02 23:14:42354 if (use_ash) {
mswda0133e62016-02-16 20:50:02355 deps += [
skycf094f672016-09-01 19:40:12356 "//ash:ash_content_unittests",
jamescookfbbf9112016-06-14 16:24:49357 "//ash:ash_shell_with_content",
358 "//ash:ash_unittests",
jamescook4c02a0b2016-12-02 23:14:42359 ]
360 }
361
362 if (use_aura) {
363 deps += [
mswda0133e62016-02-16 20:50:02364 "//ui/aura:aura_unittests",
mswda0133e62016-02-16 20:50:02365 "//ui/aura:demo",
366 "//ui/wm:wm_unittests",
367 ]
dprankee2ef3822015-02-24 21:42:18368 }
369
thomasanderson98f58ce72016-11-01 20:38:58370 if (is_linux && !is_chromeos && !is_chromecast && !use_ozone) {
371 # TODO(thomasanderson): Remove this once we build using
372 # GTK3 by default. (crbug.com/132847, crbug.com/79722)
373 deps += [ "//chrome/browser/ui/libgtkui:libgtk3ui" ]
374 }
375
dprankee2ef3822015-02-24 21:42:18376 if (use_ozone) {
kylechar5c9a1fb2016-10-21 13:17:25377 deps += [
378 "//ui/ozone",
379 "//ui/ozone:ozone_unittests",
380 "//ui/ozone/gl:ozone_gl_unittests",
381 ]
tfarina@chromium.orga306aaa2014-05-24 13:21:50382 }
383
thomasandersonaf830f3a2016-12-07 04:52:02384 if (use_x11 || ozone_platform_x11) {
385 deps += [ "//tools/xdisplaycheck" ]
386 }
387
oth2a6531922016-07-13 10:06:14388 if (v8_use_external_startup_data) {
389 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
390 }
391
brettw66e3feab2015-07-20 23:52:22392 if (is_win) {
brettwf986f952015-10-07 17:18:15393 deps += [
394 "//chrome/installer/gcapi",
395 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
396 ]
brettw66e3feab2015-07-20 23:52:22397 }
398
dpranke@chromium.org5a8d5162014-04-12 01:19:16399 if (is_android) {
cjhopman@chromium.org26046b52014-07-16 00:11:03400 deps += [
pkotwicze2dae8b2015-11-03 20:12:55401 "//base:base_junit_tests",
dpranke244f9732015-11-20 05:38:10402 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38403 "//build/android/gyp/test:hello_world",
agrieve8f43f712016-12-22 18:46:45404 "//build/android/rezip",
pkotwicz2dd67962016-05-10 00:21:08405 "//chrome/android/webapk/shell_apk:webapk",
pkotwicze2dae8b2015-11-03 20:12:55406 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
407 "//components/policy/android:components_policy_junit_tests",
408 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45409 "//content/shell/android:content_shell_apk",
markdittmer6e70beb82016-05-02 05:40:47410 "//media/gpu:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55411 "//net/android:net_junit_tests",
jbudorick5ef42902016-04-07 04:17:11412 "//testing/android/junit:junit_unit_tests",
wnwen41f70b92016-06-22 14:48:56413 "//third_party/android_async_task:android_async_task_java",
agrieve40ba6862015-07-15 02:09:05414 "//third_party/errorprone:chromium_errorprone",
pkotwicz8adff4e2015-12-17 21:55:45415 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10416 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49417 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34418 "//tools/android:push_apps_to_background",
jbudorickdfc01f62016-06-01 15:42:12419 "//tools/android/audio_focus_grabber:audio_focus_grabber_apk",
420 "//tools/android/customtabs_benchmark:customtabs_benchmark_apk",
dgn28050da2015-10-19 10:16:43421 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
pkotwicz077093762015-12-21 16:47:15422 "//tools/cygprofile:cygprofile_unittests",
newt9e226032016-01-26 01:30:15423 "//ui/android:ui_junit_tests",
dprankee2ef3822015-02-24 21:42:18424 ]
425 deps -= [
rockot9c67e5f2015-03-12 20:01:21426 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18427 "//url:url_unittests",
cjhopman@chromium.org26046b52014-07-16 00:11:03428 ]
429
pkotwicz92e2e2312015-12-15 22:29:46430 if (!is_component_build) {
431 deps += [
agrievee23386b2016-01-05 04:47:58432 "//components/cronet/android:cronet_package",
jbudorickdfc01f62016-06-01 15:42:12433 "//components/cronet/android:cronet_perf_test_apk",
pkotwicz92e2e2312015-12-15 22:29:46434 "//components/cronet/android:cronet_sample_apk",
435 "//components/cronet/android:cronet_sample_test_apk",
436 "//components/cronet/android:cronet_test_apk",
437 "//components/cronet/android:cronet_test_instrumentation_apk",
438 "//components/cronet/android:cronet_unittests",
439 ]
440 }
441
pkotwicz061c5a42015-09-30 02:16:54442 if (!is_chromecast) {
443 deps += [
michaelbaicbcc7e62015-11-12 04:29:53444 "//android_webview",
agrieveb08e2f5b2015-12-29 01:17:30445 "//android_webview/test",
mikecasecb1b5062016-07-01 20:53:44446 "//android_webview/tools/automated_ui_tests:webview_ui_test_app",
mikecase49971fc2016-03-21 21:18:05447 "//android_webview/tools/system_webview_shell",
pkotwicze2dae8b2015-11-03 20:12:55448 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54449 "//chrome/android:chrome_public_apk",
smaierd50624e2016-08-05 14:21:10450 "//chrome/android:chrome_public_test_apk",
451 "//chrome/android:chrome_sync_shell_test_apk",
pkotwicz061c5a42015-09-30 02:16:54452 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b2015-12-28 20:23:11453 "//content/shell/android:content_shell_test_apk",
pkotwicz0a2255e2015-10-06 16:29:05454 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54455 ]
456 }
457
pkotwicz06a4b4b42015-10-29 23:11:11458 if (target_cpu != "x64") {
jbudorickdfc01f62016-06-01 15:42:12459 deps += [
460 "//content/shell/android:chromium_linker_test_apk",
461 "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)",
462 ]
pkotwicz06a4b4b42015-10-29 23:11:11463 }
464
cjhopmanca675d3e2014-10-24 03:50:45465 if (has_chrome_android_internal) {
brettwf9427f92016-05-05 23:18:55466 deps += [ "//clank" ]
cjhopmanca675d3e2014-10-24 03:50:45467 }
dprankedb5527d72015-03-08 04:22:47468 }
469
brettwf9427f92016-05-05 23:18:55470 if (is_linux || is_android) {
dprankefd1813272015-04-13 23:56:00471 deps += [
pkotwicza4d233b22015-11-02 18:20:38472 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00473 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38474 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00475 "//breakpad:minidump-2-core",
476 ]
477 }
478
dpranke6293d252015-04-14 19:12:00479 if (is_chromeos) {
480 deps += [
481 "//chromeos:chromeos_unittests",
khorimoto4c539952016-12-04 02:37:11482 "//chromeos/components:chromeos_components_unittests",
jamescook4c02a0b2016-12-02 23:14:42483 "//components/session_manager/core",
estade835d5502017-01-04 16:44:06484 "//ui/app_list:app_list_unittests",
485 "//ui/app_list/presenter:app_list_presenter_unittests",
yoshiki8e2ddbb2016-03-10 07:11:22486 "//ui/arc:ui_arc_unittests",
dpranke6293d252015-04-14 19:12:00487 "//ui/chromeos:ui_chromeos_unittests",
488 ]
489 }
490
dprankefd1813272015-04-13 23:56:00491 if (is_chromeos || is_mac || is_win) {
492 deps += [
493 "//rlz:rlz_id",
494 "//rlz:rlz_lib",
495 "//rlz:rlz_unittests",
496 ]
497 }
498
dprankedb5527d72015-03-08 04:22:47499 if (is_linux) {
500 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06501 deps += [
dpranke2bc89212015-11-18 00:24:43502 "//chrome:manpage",
503 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47504 "//net:disk_cache_memory_test",
dprankedb5527d72015-03-08 04:22:47505 "//net:quic_client",
506 "//net:quic_server",
507 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18508 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06509 ]
dnicoara8c6aa8e2015-03-11 23:20:32510
mbjorgea12e5a52016-05-31 22:15:17511 if (use_dbus) {
512 deps += [
513 "//dbus:dbus_test_server",
514 "//dbus:dbus_unittests",
515 ]
516 }
517
dpranke2bc89212015-11-18 00:24:43518 if (is_chrome_branded && is_official_build) {
519 # TODO(dpranke): add the linux_dump_symbols flag?
520 deps += [ "//chrome:linux_symbols" ]
521 }
dprankedb5527d72015-03-08 04:22:47522 }
523
sherouke1859f92015-08-05 10:19:10524 if (is_ios || is_win || (is_linux && !is_chromeos)) {
525 deps += [
526 "//base:base_i18n_perftests",
527 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58528 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10529 ]
530 }
531
sugoia1b7b922016-12-13 12:52:49532 if ((is_win || is_mac || is_linux) &&
533 (target_cpu == "x86" || target_cpu == "x64")) {
sugoiabe91892016-09-20 12:53:51534 deps += [ "//third_party/swiftshader" ]
535 }
536
thakis507c15c2016-06-01 00:26:01537 # TODO(GYP): Figure out which of these should (and can) build
538 # for chromeos/ios.
539 if (!is_chromeos && !is_ios) {
tfarina9e7cf702015-02-23 21:13:44540 deps += [
dprankedb5527d72015-03-08 04:22:47541 "//base:build_utf8_validator_tables",
dpranke244f9732015-11-20 05:38:10542 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47543 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00544 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47545 "//components:components_perftests",
Max Boguefef332d2016-07-28 22:09:09546 "//components/sync:run_sync_testserver",
dprankedb5527d72015-03-08 04:22:47547 "//device:device_unittests",
548 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47549 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47550 "//google_apis/gcm:mcs_probe",
dprankefd1813272015-04-13 23:56:00551 "//gpu:gl_tests",
dpranke244f9732015-11-20 05:38:10552 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47553 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47554 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00555 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47556 "//third_party/codesighs:maptsvdifftool",
dprankefd1813272015-04-13 23:56:00557 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47558 "//ui/compositor:compositor_unittests",
559 ]
560
agrieve473155b2015-12-28 20:23:11561 if (!is_android) {
562 deps += [
563 "//chrome/test:load_library_perf_tests",
564 "//chrome/test:sync_performance_tests",
565 "//chrome/test/chromedriver:chromedriver",
566 "//chrome/test/chromedriver:chromedriver_tests",
567 "//courgette:courgette",
568 "//courgette:courgette_fuzz",
569 "//courgette:courgette_minimal_tool",
570 "//courgette:courgette_unittests",
stevenjb7b6fd642016-05-18 18:15:30571 "//media/cast:generate_barcode_video",
572 "//media/cast:generate_timecode_audio",
agrieve473155b2015-12-28 20:23:11573 "//net:crash_cache",
574 "//net:crl_set_dump",
575 "//net:dns_fuzz_stub",
576 "//net:gdig",
577 "//net:get_server_time",
578 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
579 "//net:run_testserver",
580 "//net:stress_cache",
581 "//net:tld_cleanup",
582 "//ppapi:pepper_hash_for_uma",
583 "//ppapi:ppapi_perftests",
agrieve473155b2015-12-28 20:23:11584 "//third_party/leveldatabase:env_chromium_unittests",
585 "//third_party/libaddressinput:libaddressinput_unittests",
586 ]
587 }
dpranke7e19b472015-11-13 00:49:33588
jamescookfbbf9112016-06-14 16:24:49589 if (enable_extensions) {
590 deps += [ "//extensions/shell:app_shell" ]
591 }
592
dprankedb5527d72015-03-08 04:22:47593 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13594 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43595
596 if (is_linux) {
597 # TODO(dpranke): Figure out what platforms should actually have this.
milko.leporis3de038d2016-08-18 09:59:37598 deps += [ "//components/nacl/loader:nacl_helper" ]
599
600 if (enable_nacl_nonsfi) {
601 deps += [
602 "//components/nacl/loader:helper_nonsfi",
603 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
604 ]
605 }
dpranke2bc89212015-11-18 00:24:43606 }
dprankedb5527d72015-03-08 04:22:47607 }
608
xhwangfa2d9d472015-12-18 23:31:18609 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10610 deps += [ "//media:ffmpeg_regression_tests" ]
611 }
dprankefd1813272015-04-13 23:56:00612 }
613
agrieve473155b2015-12-28 20:23:11614 if (is_android || (is_linux && !is_chromeos)) {
dprankefd1813272015-04-13 23:56:00615 deps += [
agrieve473155b2015-12-28 20:23:11616 "//breakpad:dump_syms($host_toolchain)",
617 "//breakpad:microdump_stackwalk($host_toolchain)",
618 "//breakpad:minidump_dump($host_toolchain)",
619 "//breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00620 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00621 "//content/public/app:browser",
622 "//content/public/app:child",
rockotc637caf9b2016-02-10 09:57:08623 "//mojo/edk/test:mojo_public_system_perftests",
rockot734fb662016-10-15 16:41:30624 "//services/service_manager/public/cpp",
dprankefd1813272015-04-13 23:56:00625 "//testing/gmock:gmock_main",
dpranke244f9732015-11-20 05:38:10626 "//third_party/codesighs:nm2tsv",
dprankefd1813272015-04-13 23:56:00627 ]
628
agrieve473155b2015-12-28 20:23:11629 if (!is_android) {
630 deps += [
agrieve473155b2015-12-28 20:23:11631 "//chrome/test:chrome_app_unittests",
brettwf9427f92016-05-05 23:18:55632 "//gpu/khronos_glcts_support:khronos_glcts_test",
agrieve473155b2015-12-28 20:23:11633 "//media/cast:cast_benchmarks",
634 "//media/cast:tap_proxy",
635 "//skia:filter_fuzz_stub",
636 "//skia:image_operations_bench",
agrieve473155b2015-12-28 20:23:11637 "//third_party/sqlite:sqlite_shell",
638 "//ui/keyboard:keyboard_unittests",
639 "//ui/message_center:message_center_unittests",
640 "//ui/snapshot:snapshot_unittests",
agrieve473155b2015-12-28 20:23:11641 ]
dprankefd1813272015-04-13 23:56:00642
agrieve473155b2015-12-28 20:23:11643 if (!is_debug && !is_component_build) {
644 deps += [ "//chrome/tools/service_discovery_sniffer" ]
645 }
dprankefd1813272015-04-13 23:56:00646 }
647
dprankedb5527d72015-03-08 04:22:47648 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44649 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59650 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44651 }
dprankedb5527d72015-03-08 04:22:47652 }
653 }
654
655 if (is_mac) {
656 deps += [
657 "//breakpad:crash_inspector",
658 "//breakpad:dump_syms",
miguelg765f2212016-10-06 09:02:26659
660 # XPC service is in developement and guarded against the
661 # enable_xpc_notifications, in the meantime however we still
662 # need compile coverage in the bots.
663 "//chrome/browser/ui/cocoa/notifications:alert_notification_xpc_service",
tfarina9e7cf702015-02-23 21:13:44664 "//third_party/apple_sample_code",
665 "//third_party/molokocacao",
666 ]
dpranke43760592014-11-08 02:59:57667 deps -= [
brettw011138d2015-10-21 03:05:38668 # Mojo in GN contains some things which are never compiled in GYP on Mac,
669 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10670 "//mojo",
dprankecf8465db72014-11-10 23:51:22671 ]
dprankefd1813272015-04-13 23:56:00672 }
673
674 if (is_win) {
675 deps += [
676 "//base:pe_image_test",
anantaf2e54a92016-05-28 00:39:16677 "//chrome/install_static:install_static_unittests",
grt734e87b2015-07-06 19:36:43678 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00679 "//chrome_elf:chrome_elf_unittests",
680 "//chrome_elf:dll_hash_main",
pastarmovj02d5cc992016-12-05 17:55:24681 "//cloud_print:cloud_print_unittests",
dprankefd1813272015-04-13 23:56:00682 "//components/wifi:wifi_test",
683 "//net:quic_client",
684 "//net:quic_server",
685 "//sandbox/win:pocdll",
686 "//sandbox/win:sandbox_poc",
687 "//sandbox/win:sbox_integration_tests",
688 "//sandbox/win:sbox_unittests",
689 "//sandbox/win:sbox_validation_tests",
690 "//testing/gtest:gtest_main",
691 "//third_party/codesighs:msmap2tsv",
692 "//third_party/pdfium/samples:pdfium_diff",
dprankefd1813272015-04-13 23:56:00693 ]
dprankee2ef3822015-02-24 21:42:18694 deps -= [
695 "//crypto:crypto_unittests", # TODO(GYP)
696 "//net:net_unittests", # TODO(GYP)
697 ]
fdorayfb048bff2016-04-28 22:07:36698
699 if (!(is_component_build && is_debug && target_cpu == "x86")) {
700 deps +=
701 [ "//chrome/installer/mini_installer:next_version_mini_installer" ]
702 }
sherouk53f0f1a2015-08-03 15:59:35703 } else if (!is_android && !is_ios) {
miu45b848fe2015-11-26 01:23:29704 deps += [ "//breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34705 }
rsesek985bd812016-04-26 21:06:15706
slance9d62f2015-11-04 01:15:01707 if (is_chromecast) {
708 deps += [ "//chromecast:cast_shell" ]
709 }
miu45b848fe2015-11-26 01:23:29710
rsesek985bd812016-04-26 21:06:15711 if (is_mac || is_win) {
712 deps += [
713 "//third_party/crashpad/crashpad/handler:crashpad_handler",
714 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
715 ]
716 }
717
hbos17a7b4a22015-12-07 10:49:45718 if (use_openh264) {
719 deps += [
720 "//third_party/openh264:common",
721 "//third_party/openh264:encoder",
722 "//third_party/openh264:processing",
723 ]
724 }
brettw@chromium.orgf0e7ff882013-12-26 21:23:09725}
brettw533c50422015-02-26 17:49:16726
dpranked62d8512015-03-02 03:06:03727group("gn_only") {
dprankedb5527d72015-03-08 04:22:47728 testonly = true
729
dpranke2a294622015-08-07 05:23:01730 deps = []
731
amistry4dcd7c42015-12-16 04:53:10732 if (!is_ios) {
xhwangf69024d12016-06-16 17:52:29733 deps += [
734 "//media/mojo:media_mojo_unittests",
735 "//mojo/common:mojo_common_perftests",
chfremerdb24ccb2016-08-16 17:55:16736 "//services/video_capture:video_capture_unittests",
xhwangf69024d12016-06-16 17:52:29737 ]
amistry4dcd7c42015-12-16 04:53:10738 }
739
scheib35dc9202016-04-26 22:35:43740 if (!is_android && !is_ios) {
741 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
742 }
743
dpranke244f9732015-11-20 05:38:10744 if (!is_android && !is_ios && !is_chromeos) {
xjz9da998022016-10-26 01:22:11745 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
isherman0f89b43eb2015-04-11 00:02:45746 }
747
ben8f4e95ad2015-12-01 18:35:58748 if (is_win || is_linux) {
sky70471b22016-01-14 16:20:54749 deps += [
750 "//mash:all",
xhwang9c958fd2016-12-05 23:17:16751 "//media/mojo/services:media_service_unittests",
skyfcde3a42016-02-09 20:27:44752 "//mojo",
benee648f62016-05-12 23:04:50753 "//services/navigation",
jonross63b021f2016-11-02 00:56:21754 "//services/preferences:tests",
ben6b0453d2016-07-02 04:27:19755 "//services/ui/demo",
kylechar5c9a1fb2016-10-21 13:17:25756 "//services/ui/demo:mus_demo_unittests",
757 "//services/ui/public/interfaces:ui_struct_traits_unittests",
ben6b0453d2016-07-02 04:27:19758 "//services/ui/ws:tests",
qyearsley88bc4802016-05-17 18:02:34759 "//ui/views/mus:views_mus_interactive_ui_tests",
bena5d1cd42016-04-29 22:59:53760 "//ui/views/mus:views_mus_unittests",
sky70471b22016-01-14 16:20:54761 ]
kylechar5c9a1fb2016-10-21 13:17:25762
wez0ee841c2016-12-21 20:36:20763 # crbug.com/676055: media_service_unittests fails to link under Windows
764 # component builds, due to duplicate symbol definitions.
765 if (is_win && is_component_build) {
766 deps -= [ "//media/mojo/services:media_service_unittests" ]
767 }
768
kylechar9ee25182016-11-06 03:50:30769 if (use_ozone && is_chromeos) {
kylechar5c9a1fb2016-10-21 13:17:25770 deps += [ "//services/ui/display:display_service_unittests" ]
771 }
sky97b65592015-11-02 20:08:25772 }
773
stevenjb7b6fd642016-05-18 18:15:30774 if (is_linux && !is_chromeos && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47775 # TODO(GYP): Figure out if any of these should be in gn_all
776 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45777 deps += [
dprankedb5527d72015-03-08 04:22:47778 ":gn_mojo_targets",
dprankedb5527d72015-03-08 04:22:47779 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47780 "//chrome/tools/convert_dict",
781 "//components/constrained_window:unit_tests",
erg4652931e2016-04-27 22:15:40782 "//components/filesystem:filesystem_service_unittests",
ergf1f689f2016-03-22 00:51:20783 "//components/leveldb:leveldb_service_unittests",
dprankedb5527d72015-03-08 04:22:47784 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45785 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47786 "//components/rappor:unit_tests",
787 "//components/sessions:unit_tests",
788 "//media/blink:media_blink_unittests",
stevenjb7b6fd642016-05-18 18:15:30789 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47790 "//storage/browser:dump_file_system",
791 "//third_party/angle:libANGLE",
792 "//third_party/angle:libEGL",
793 "//third_party/angle:libGLESv2",
dprankedb5527d72015-03-08 04:22:47794 "//third_party/leveldatabase:leveldb_arena_test",
795 "//third_party/leveldatabase:leveldb_bloom_test",
dprankedb5527d72015-03-08 04:22:47796 "//third_party/leveldatabase:leveldb_cache_test",
dprankedb5527d72015-03-08 04:22:47797 "//third_party/leveldatabase:leveldb_corruption_test",
dpranke244f9732015-11-20 05:38:10798 "//third_party/leveldatabase:leveldb_crc32c_test",
799 "//third_party/leveldatabase:leveldb_db_bench",
800 "//third_party/leveldatabase:leveldb_db_test",
dprankedb5527d72015-03-08 04:22:47801 "//third_party/leveldatabase:leveldb_dbformat_test",
dpranke244f9732015-11-20 05:38:10802 "//third_party/leveldatabase:leveldb_env_test",
803 "//third_party/leveldatabase:leveldb_filename_test",
804 "//third_party/leveldatabase:leveldb_filter_block_test",
805 "//third_party/leveldatabase:leveldb_log_test",
806 "//third_party/leveldatabase:leveldb_skiplist_test",
807 "//third_party/leveldatabase:leveldb_table_test",
808 "//third_party/leveldatabase:leveldb_version_edit_test",
809 "//third_party/leveldatabase:leveldb_write_batch_test",
dprankedb5527d72015-03-08 04:22:47810 "//third_party/libjpeg_turbo:simd",
dprankedb5527d72015-03-08 04:22:47811 "//third_party/opus:opus_compare",
812 "//third_party/opus:opus_demo",
dpranke244f9732015-11-20 05:38:10813 "//third_party/opus:test_opus_api",
dprankedb5527d72015-03-08 04:22:47814 "//third_party/opus:test_opus_decode",
815 "//third_party/opus:test_opus_encode",
dprankedb5527d72015-03-08 04:22:47816 "//third_party/opus:test_opus_padding",
dpranke244f9732015-11-20 05:38:10817 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47818 "//third_party/webrtc/system_wrappers:field_trial_default",
819 "//third_party/webrtc/system_wrappers:metrics_default",
820 "//ui/display/types",
821 "//ui/shell_dialogs:shell_dialogs_unittests",
dprankedb5527d72015-03-08 04:22:47822 ]
dprankeb0713542015-07-31 21:07:21823
ossy.szegedd584dd72016-11-21 11:36:18824 if (enable_nacl) {
825 deps += [ "//native_client/src/trusted/debug_stub:gdb_rsp_unittest" ]
826 }
827
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16828 if (target_cpu == "x86" || target_cpu == "x64") {
agrieve473155b2015-12-28 20:23:11829 if (!is_android) {
830 deps += [ "//chrome/test:load_library_perf_tests" ]
831 }
mcgrathr916aafa2015-09-15 00:06:53832 deps += [
mcgrathr916aafa2015-09-15 00:06:53833 "//native_client/src/trusted/platform_qualify:vcpuid",
dpranke244f9732015-11-20 05:38:10834 "//third_party/libjpeg_turbo:simd_asm",
mcgrathr916aafa2015-09-15 00:06:53835 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16836 }
dpranke807f6022015-03-17 23:20:56837 if (is_linux && current_toolchain == host_toolchain) {
jochen11513aa02016-05-11 09:59:51838 deps += [ "//v8:v8_shell" ]
dpranke807f6022015-03-17 23:20:56839 }
dprankedb5527d72015-03-08 04:22:47840 }
dprankeb0713542015-07-31 21:07:21841
spang324dc57a2016-04-06 14:54:08842 if (use_ozone) {
843 deps += [ "//ui/ozone/demo" ]
844 }
845
aizatskyaf496112016-04-15 19:26:32846 if ((is_linux && !is_chromeos && !is_chromecast) || (is_win && use_drfuzz) ||
847 (use_libfuzzer && is_mac)) {
848 deps += [
849 "//testing/libfuzzer/fuzzers",
850 "//testing/libfuzzer/tests:libfuzzer_tests",
aizatsky3f560172016-06-03 23:26:06851 "//third_party/icu/fuzzers",
aizatskyaf496112016-04-15 19:26:32852 ]
miu16396172016-09-28 00:05:56853
854 # TODO(miu): Remove this dependency once the build configuration in
855 # chrome/browser/BUILD.gn is migrated to chrome/browser/media/BUILD.gn.
856 # This dependency here only exists to allow GN to discover the
857 # fuzzer_test target there.
858 deps += [ "//chrome/browser/media:cast_remoting_connector_fuzzer" ]
aizatskyaf496112016-04-15 19:26:32859 }
860
sbc92b4d572016-02-18 03:28:23861 if (enable_nacl) {
862 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
863 }
864
agrieve473155b2015-12-28 20:23:11865 if (is_android) {
zpeng00a360e2016-11-21 23:05:02866 deps += [ "//build/android/gyp/test:hello_world" ]
nyquistb5f050b2015-09-10 05:10:35867 }
868
skyostilfe116162016-02-26 20:53:33869 if (is_linux && use_ozone) {
870 deps += [
871 "//headless",
872 "//headless:headless_tests",
873 ]
874 }
875
agrieve473155b2015-12-28 20:23:11876 if (!is_chromecast && (is_android || is_linux || is_chromeos)) {
877 deps += [
878 "//blimp",
879 "//blimp:blimp_tests",
880 ]
dprankeb0713542015-07-31 21:07:21881 }
dprankedb5527d72015-03-08 04:22:47882}
883
884group("gn_mojo_targets") {
885 testonly = true
886 if (is_linux && !is_chromeos) {
887 # TODO(GYP): Figure out if any of these should be in gn_all
888 # and figure out how cross-platform they are
889 deps = [
amistryd4aa70d2016-06-23 07:52:37890 "//ipc:ipc_tests",
msw1bb9c6c2015-05-06 21:35:44891 "//mojo:tests",
rockot2a0f4fb32016-11-11 18:44:19892 "//services:service_unittests",
dprankedb5527d72015-03-08 04:22:47893 ]
dprankedb5527d72015-03-08 04:22:47894 }
895}
896
897group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03898 deps = [
dprankeb6128d02015-05-01 16:40:30899 "//build/config/sanitizers:options_sources",
dprankedb5527d72015-03-08 04:22:47900 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
901 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dpranked62d8512015-03-02 03:06:03902 ]
dpranked2fb5222015-09-10 22:39:05903
904 if (!is_ios) {
905 deps += [
dpranked2fb5222015-09-10 22:39:05906 "//v8:postmortem-metadata",
dpranke244f9732015-11-20 05:38:10907 "//v8:v8_snapshot",
dpranked2fb5222015-09-10 22:39:05908 ]
909 }
dpranked62d8512015-03-02 03:06:03910}
911
tfarinacb2638b2015-05-12 03:24:15912if (!is_ios) {
913 # This group includes all of the targets needed to build and test Blink,
914 # including running the layout tests (see below).
915 group("blink_tests") {
916 testonly = true
917
918 deps = [
tansell88df42592016-11-15 07:22:59919 ":webkit_layout_tests",
tfarinacb2638b2015-05-12 03:24:15920 "//third_party/WebKit/public:all_blink",
tansell88df42592016-11-15 07:22:59921 ]
922 }
923
924 # Layout tests runner
925 # third_party/WebKit/Tools/Scripts/run-webkit-tests
926 group("run_webkit_tests") {
927 testonly = true
928 deps = [
929 ":webkit_layout_tests",
930 ]
931 }
932
933 # https://www.chromium.org/developers/testing/webkit-layout-tests
934 group("webkit_layout_tests") {
935 testonly = true
936
937 data_deps = [
938 "//content/shell:content_shell",
agrieve993374cf2016-04-13 00:05:39939 "//tools/imagediff",
tfarinacb2638b2015-05-12 03:24:15940 ]
941
tfarinacb2638b2015-05-12 03:24:15942 if (is_android) {
tansell88df42592016-11-15 07:22:59943 data_deps += [
agrieve62ab00282016-04-05 02:03:45944 "//breakpad:breakpad_unittests",
agrieve993374cf2016-04-13 00:05:39945 "//breakpad:dump_syms",
946 "//breakpad:microdump_stackwalk",
947 "//breakpad:minidump_dump",
948 "//breakpad:minidump_stackwalk",
949 "//breakpad:symupload",
jbudoricke7bcf092016-09-28 18:24:14950 "//tools/android/forwarder2",
ojan94989c72015-07-17 21:56:42951 ]
tfarinacb2638b2015-05-12 03:24:15952 }
953
954 if (is_win) {
tansell88df42592016-11-15 07:22:59955 data_deps += [ "//content/shell:content_shell_crash_service" ]
tfarinacb2638b2015-05-12 03:24:15956 }
957
958 if (!is_win && !is_android) {
tansell88df42592016-11-15 07:22:59959 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15960 }
961
962 if (is_mac) {
tansell88df42592016-11-15 07:22:59963 data_deps += [ "//breakpad:dump_syms($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15964 }
965
966 if (is_linux) {
tansell88df42592016-11-15 07:22:59967 data_deps += [ "//breakpad:dump_syms($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15968 }
qyearsley165a17a82016-08-01 17:58:50969
970 data = [
tansell88df42592016-11-15 07:22:59971 "//testing/scripts/common.py",
972 "//testing/xvfb.py",
973 "//testing/scripts/run_telemetry_as_googletest.py",
qyearsley165a17a82016-08-01 17:58:50974 "//third_party/WebKit/LayoutTests/",
975 "//third_party/WebKit/Tools/Scripts/",
tansell88df42592016-11-15 07:22:59976 "$root_build_dir/resources/inspector/",
qyearsley165a17a82016-08-01 17:58:50977 ]
tfarinacb2638b2015-05-12 03:24:15978 }
979}
980
dpranke6abd8652015-08-28 03:21:11981# Add a dummy target for compatibility w/ GYP
982group("chromium_swarm_tests") {
983}
984
dpranke2302dfa2015-09-29 02:21:52985group("chromium_builder_perf") {
986 testonly = true
987
thakisca8a4282016-06-10 17:59:30988 if (!is_ios && !is_android && !is_chromecast) {
malets6b7062402016-09-15 08:14:26989 data_deps = [
dpranke2302dfa2015-09-29 02:21:52990 "//cc:cc_perftests",
dpranke2302dfa2015-09-29 02:21:52991 "//chrome/test:load_library_perf_tests",
eyaiche1605ca2016-09-14 14:34:05992 "//chrome/test:telemetry_perf_tests",
kraynovc0797582016-10-25 16:45:06993 "//components/tracing:tracing_perftests",
dpranke2302dfa2015-09-29 02:21:52994 "//gpu:gpu_perftests",
995 "//media:media_perftests",
kbr1e58e782016-05-27 17:21:19996 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
dpranke2302dfa2015-09-29 02:21:52997 ]
998
999 if (!is_chromeos) {
malets6b7062402016-09-15 08:14:261000 data_deps += [ "//chrome/test:performance_browser_tests" ]
dpranke2302dfa2015-09-29 02:21:521001 }
1002 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:041003 if (is_official_build) {
1004 # In GN builds, this is controlled by the 'linux_dump_symbols'
1005 # flag, which defaults to 1 for official builds. For now,
1006 # we skip the separate flag and just key off of is_official_build.
malets6b7062402016-09-15 08:14:261007 data_deps += [ "//chrome:linux_symbols" ]
dpranke9aed5d582015-11-22 23:22:041008 }
dpranke2302dfa2015-09-29 02:21:521009
kraynovc0797582016-10-25 16:45:061010 data_deps += [ "//tools/perf/clear_system_cache" ]
dpranke2302dfa2015-09-29 02:21:521011 }
1012
1013 if (is_win) {
malets6b7062402016-09-15 08:14:261014 data_deps += [
hansa3d3aa4d2016-05-04 22:12:521015 "//chrome/installer/mini_installer:mini_installer",
eyaichd3e023c12016-11-14 22:41:011016 "//chrome/test:angle_perftests",
dpranke2302dfa2015-09-29 02:21:521017 ]
dpranke2302dfa2015-09-29 02:21:521018 } else {
malets6b7062402016-09-15 08:14:261019 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:521020 }
1021 }
1022}
agrieve017b91f2016-02-29 20:15:061023
thakis3f7d4fc2016-06-10 18:47:501024if (!is_ios && !is_android && !is_chromecast) {
1025 group("chromium_builder_asan") {
1026 testonly = true
1027
1028 deps = [
1029 "//chrome:chrome",
1030 "//content/shell:content_shell",
1031 "//v8:d8",
1032 ]
1033 if (!is_win) {
1034 deps += [
1035 "//net:dns_fuzz_stub",
1036 "//net:hpack_fuzz_wrapper",
1037 "//skia:filter_fuzz_stub",
1038 ]
1039 }
1040 if (enable_ipc_fuzzer && !is_component_build) {
1041 deps += [ "//tools/ipc_fuzzer:ipc_fuzzer_all" ]
1042 }
1043 if (!is_chromeos) {
1044 deps += [
1045 "//third_party/pdfium/samples:pdfium_test",
dpranke8a2de902016-07-14 20:08:371046 "//v8:v8_shell($v8_snapshot_toolchain)",
thakis3f7d4fc2016-06-10 18:47:501047 ]
1048 }
thakis3f7d4fc2016-06-10 18:47:501049 if (is_win && symbol_level == 2 && target_cpu == "x86" && is_syzyasan) {
1050 deps += [
1051 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
sebmarchanda2df3392016-07-13 15:34:591052 "//content/shell:content_shell_syzyasan",
thakis3f7d4fc2016-06-10 18:47:501053 ]
thakis3f7d4fc2016-06-10 18:47:501054 }
1055 }
1056}
1057
brettw6df3e8c2016-04-14 21:07:131058# For compatibility with GYP. The linux_chromium_chromeos_rel_ng and
1059# linux_chromium_chromeos_compile_rel_ng bots reference this target as
1060# something to build, but all targets for those bots to compile are set
1061# up differently.
1062# TODO bug 601920: Remove reference to aura_builder on bot config and delete
1063# this group.
1064group("aura_builder") {
1065}
1066
agrieve95ba4442016-04-25 15:47:131067if (is_android) {
1068 group("optimize_gn_gen") {
1069 deps = [
1070 # These run expensive scripts in non-default toolchains. Generally, host
1071 # toolchain targets are loaded in the later part of the run, and the
1072 # result is they push out the end of generation. By preloading these, the
1073 # scripts can be parallelized with the rest of the load.
1074 "//build/config/linux(//build/toolchain/linux:clang_x64)",
1075 "//build/config/posix(//build/toolchain/linux:clang_x64)",
1076
1077 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot
1078 # generation.
1079 "//build/config/linux(//build/toolchain/linux:clang_x86)",
1080 "//build/config/posix(//build/toolchain/linux:clang_x86)",
1081 ]
1082 }
1083}
1084
agrieve017b91f2016-02-29 20:15:061085# Because of the source assignment filter, many targets end up over-filtering
1086# their sources if the output directory contains a platform name. Assert that
1087# this doesn't happen. http://crbug.com/548283
1088template("assert_valid_out_dir") {
1089 # List copied from //build/config/BUILDCONFIG.gn.
1090 set_sources_assignment_filter([
1091 "*\bandroid/*",
1092 "*\bchromeos/*",
1093 "*\bcocoa/*",
1094 "*\bios/*",
1095 "*\blinux/*",
1096 "*\bmac/*",
1097 "*\bposix/*",
1098 "*\bwin/*",
1099 ])
1100 assert(target_name != "") # Mark as used.
1101 sources = invoker.actual_sources
1102 assert(
1103 sources == invoker.actual_sources,
1104 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
1105}
1106
1107assert_valid_out_dir("_unused") {
1108 actual_sources = [ "$root_build_dir/foo" ]
1109}