[go: nahoru, domu]

blob: f39930e0d0d2b2775ac7724381b163fae9d83663 [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")
brettw00899e62016-11-12 02:10:1715import("//extensions/features/features.gni")
mostynb2196a462015-08-20 17:22:1016import("//media/media_options.gni")
brettw2b112cd2016-10-12 19:35:3617import("//remoting/remoting_enable.gni")
hbos17a7b4a22015-12-07 10:49:4518import("//third_party/openh264/openh264_args.gni")
thakis3f7d4fc2016-06-10 18:47:5019import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
kylechar50abf5a2016-11-29 16:03:0720import("//ui/ozone/ozone.gni")
machenbachd65ec5c2016-07-22 09:05:2321import("//v8/gni/v8.gni")
dpranke8a2de902016-07-14 20:08:3722import("//v8/snapshot_toolchain.gni")
dprankee2ef3822015-02-24 21:42:1823
cjhopmanca675d3e2014-10-24 03:50:4524if (is_android) {
25 import("//build/config/android/config.gni")
26}
tfarina@chromium.org378b4f02014-06-10 15:58:4527
brettwb84b2942014-10-22 22:58:4528declare_args() {
29 # A list of extra dependencies to add to the root target. This allows a
30 # checkout to add additional targets without explicitly changing any checked-
31 # in files.
32 root_extra_deps = []
33}
34
brucedawsonc8d6d652016-09-02 19:43:1835if (is_official_build) {
36 # An official (maximally optimized!) component (optimized for build times)
37 # build doesn't make sense and usually doesn't work.
38 assert(!is_component_build)
39}
40
dprankeef9c5e582015-11-15 23:22:0841# This file defines the following five main targets:
dpranked62d8512015-03-02 03:06:0342#
dprankeddc174902015-04-29 01:38:3543# "both_gn_and_gyp" should list every root target (target that nothing else
44# depends on) built by GN that is also built in the GYP build.
dpranked62d8512015-03-02 03:06:0345#
dprankeddc174902015-04-29 01:38:3546# "gn_all" should (transitively) cause everything to be built; if you run
47# 'ninja gn_all' and then 'ninja all', the second build should do no work.
48#
dprankeef9c5e582015-11-15 23:22:0849# "gn_only" should list every root target that is *not* intended to be built in
50# a GYP build. Because GN has different rules for deciding what an 'all' build
51# is, this may end up including targets that are actually defined in a GYP
52# build but not dependencies of GYP's "all" (and so not actually built).
dprankeddc174902015-04-29 01:38:3553#
dprankeb6128d02015-05-01 16:40:3054# "gn_visibility": targets that are normally not visible to top-level targets,
dprankeef9c5e582015-11-15 23:22:0855# but are built anyway by "all". Since we don't want any such targets, we have
56# this placeholder to make sure hidden targets that aren't otherwise depended
57# on yet are accounted for.
58#
59# "All" is an alias for "gn_all". It exists for bot compatibility w/ GYP for
60# the iOS bots and the official builders, but should not be generally used
61# during the GYP->GN migration. We cannot guarantee that GN's "All" builds the
62# same set of targets as GYP's "All" does, because GYP's "All" supports
63# wildcards.
64#
65# Lastly, none of these targets are guaranteed to be the same as what ninja
66# will build with "all". For more on how "all" works and the differences in how
67# GYP and GN determine "all", see crbug.com/503241.
dprankeb6128d02015-05-01 16:40:3068#
brettwf9427f92016-05-05 23:18:5569# TODO(GYP_GONE): crbug.com/481694. Make sure that the above is true and there
70# are scripts run on the bots that enforce this. Once the GYP migration is
71# over, we can collapse all of these targets as desired.
dprankeff30e3d2015-02-24 06:52:3972
dprankee2ef3822015-02-24 21:42:1873group("gn_all") {
dprankeddc174902015-04-29 01:38:3574 testonly = true
75
76 deps = [
77 ":both_gn_and_gyp",
78 ":gn_only",
dprankeb6128d02015-05-01 16:40:3079 ":gn_visibility",
dprankeddc174902015-04-29 01:38:3580 ]
machenbach640e53da2016-06-06 09:19:0881
82 if (!is_ios) {
jmadilla42eba2a2016-06-07 18:58:2983 deps += [ "//v8:gn_all" ]
machenbach640e53da2016-06-06 09:19:0884 }
dprankeddc174902015-04-29 01:38:3585}
86
brettwf9427f92016-05-05 23:18:5587# TODO(GYP_GONE): This target exists for compatibility with GYP, specifically
dprankeef9c5e582015-11-15 23:22:0888# for the iOS bots and the official builders.
89group("All") {
90 testonly = true
91
92 deps = [
93 ":gn_all",
94 ]
95}
96
brettwf9427f92016-05-05 23:18:5597# TODO(GYP_GONE): This target exists for compatibility with GYP for the
dprankec7bbafa2016-06-17 03:02:0598# builders that specify targets in the recipes directly.
99# Ideally it should not exist, and the builders should be specifying
100# more specific targets (or 'All') via the source-side
101# //testing/buildbot/*.json files. We should simply delete this target
102# and update any recipes that are using it.
Dirk Prankef00b78b2016-04-18 23:59:20103group("chromium_builder_tests") {
104 testonly = true
dprankec7bbafa2016-06-17 03:02:05105 deps = []
Dirk Prankef00b78b2016-04-18 23:59:20106}
107
dpranke1d5b70692016-06-20 21:09:04108# TODO(GYP_GONE): Figure out if we really need this target or if there's
109# some better way to specify things.
110if (is_win) {
111 group("chrome_official_builder_no_unittests") {
112 deps = [
pastarmovj828a5c92016-12-21 12:49:54113 "//base/win:eventlog_provider",
dpranke1d5b70692016-06-20 21:09:04114 "//chrome/installer/gcapi",
115 "//chrome/installer/mini_installer",
pastarmovjae3050e2016-12-08 15:13:00116 "//cloud_print",
pastarmovje536476b2016-12-20 14:31:56117 "//cloud_print/virtual_driver/win/port_monitor:copy_gcp_portmon_binaries",
zmin6211e7d62016-06-23 01:19:29118 "//components/policy:pack_policy_templates",
dpranke1d5b70692016-06-20 21:09:04119 "//courgette",
sebmarchand8541a4d2016-07-20 23:35:29120 "//courgette:copy_courgette_binaries",
dpranke1d5b70692016-06-20 21:09:04121 "//remoting/webapp",
122 ]
dpranke6311f0fd2016-06-29 23:41:46123
etienneb364deb72016-07-30 03:43:42124 if (target_cpu == "x86") {
125 if (is_clang) {
126 deps += [ "//courgette(//build/toolchain/win:clang_x64)" ]
127 } else {
128 deps += [ "//courgette(//build/toolchain/win:x64)" ]
129 }
zijieheab5f1ccc2016-10-13 22:57:16130 }
131 if (is_chrome_branded) {
132 deps += [ "//remoting/host:remoting_host_installation" ]
dpranke1d5b70692016-06-20 21:09:04133 }
134 }
dpranke33e626e2016-06-23 04:41:32135
136 group("chrome_official_builder") {
137 testonly = true
138
139 deps = [
140 ":chrome_official_builder_no_unittests",
141 "//base:base_unittests",
142 "//chrome/test:browser_tests",
143 "//chrome/test:sync_integration_tests",
144 "//ipc:ipc_tests",
145 "//media:media_unittests",
146 "//media/midi:midi_unittests",
147 "//net:net_unittests",
148 "//printing:printing_unittests",
149 "//sql:sql_unittests",
dpranke33e626e2016-06-23 04:41:32150 "//ui/base:ui_base_unittests",
151 "//ui/gfx:gfx_unittests",
152 "//ui/touch_selection:ui_touch_selection_unittests",
153 "//ui/views:views_unittests",
154 "//url:url_unittests",
155 ]
156 }
dprankebad56d4b2016-06-26 18:06:30157
158 group("All_syzygy") {
sebmarchanddc24dfdf2016-10-17 21:01:35159 if (is_syzyasan) {
dprankebad56d4b2016-06-26 18:06:30160 deps = [
161 "//chrome/installer/mini_installer:mini_installer",
162 "//chrome/installer/mini_installer:mini_installer_syzygy",
163 ]
164 }
165 }
sebmarchand6c0a80ee2016-09-28 19:05:29166
167 if (is_syzyasan) {
168 group("chrome_official_syzyasan_builder") {
169 deps = [
170 ":All_syzygy",
171 ":chrome_official_builder_no_unittests",
172 ]
173 }
174 }
dpranke1d5b70692016-06-20 21:09:04175}
176
dprankef92633b2016-04-28 04:33:34177if (is_chromeos) {
178 group("chromiumos_preflight") {
179 testonly = true
180 deps = [
181 "//breakpad:minidump_stackwalk($host_toolchain)",
182 "//chrome",
183 "//chrome/test/chromedriver",
dprankef92633b2016-04-28 04:33:34184 "//media:media_unittests",
markdittmer6e70beb82016-05-02 05:40:47185 "//media/gpu:video_decode_accelerator_unittest",
186 "//media/gpu:video_encode_accelerator_unittest",
dprankef92633b2016-04-28 04:33:34187 "//ppapi/examples/video_decode",
188 "//sandbox/linux:chrome_sandbox",
189 "//sandbox/linux:sandbox_linux_unittests",
190
stevenjbd570b1f2016-04-29 22:57:36191 # Blocked on https://github.com/catapult-project/catapult/issues/2297
dprankef92633b2016-04-28 04:33:34192 #"//third_party/catapult/telemetry:bitmaptools",
dprankef92633b2016-04-28 04:33:34193 "//tools/perf/clear_system_cache",
194 ]
195 }
196}
197
dprankeddc174902015-04-29 01:38:35198# The "both_gn_and_gyp" target should reflect every target that is built
199# in both the GN and GYP builds, and ideally it should match the
200# "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line.
dprankeddc174902015-04-29 01:38:35201group("both_gn_and_gyp") {
dprankee2ef3822015-02-24 21:42:18202 testonly = true
dprankee2ef3822015-02-24 21:42:18203 deps = [
204 "//base:base_unittests",
brettwa874dcc2015-08-28 23:59:18205 "//chrome/installer",
sheroukdc35ba272015-09-22 14:09:37206 "//components:components_unittests",
sheroukce1c7d72015-08-24 15:21:59207 "//net:net_unittests",
sherouk2866d662015-08-24 16:29:44208 "//skia:skia_unittests",
brettwa874dcc2015-08-28 23:59:18209 "//sql:sql_unittests",
ochangcc11d0e2016-04-26 19:58:26210 "//tools/ipc_fuzzer:ipc_fuzzer_all",
sherouk4fb74d42015-08-24 15:58:41211 "//ui/base:ui_base_unittests",
sherouk84a45ff2015-09-01 13:31:39212 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:41213 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:18214 ]
dpranke2a294622015-08-07 05:23:01215
sdefresne21832bf92016-03-30 22:01:02216 if (!is_android && !is_chromecast) {
217 deps += [
218 "//crypto:crypto_unittests",
219 "//google_apis/gcm:gcm_unit_tests",
220 ]
221 }
222
slance9d62f2015-11-04 01:15:01223 if (!is_ios && !is_android && !is_chromecast) {
sherouk53f0f1a2015-08-03 15:59:35224 deps += [
sherouk53f0f1a2015-08-03 15:59:35225 "//chrome",
226 "//chrome/test:browser_tests",
227 "//chrome/test:interactive_ui_tests",
228 "//chrome/test:sync_integration_tests",
sherouk53f0f1a2015-08-03 15:59:35229 "//chrome/test/chromedriver:chromedriver_unittests",
Max Boguefef332d2016-07-28 22:09:09230 "//components/sync/tools:sync_client",
231 "//components/sync/tools:sync_listen_notifications",
jamescookfbbf9112016-06-14 16:24:49232 "//extensions:extensions_browsertests",
233 "//extensions:extensions_unittests",
dprankedbdd9d82015-08-12 21:18:18234 "//gpu/gles2_conform_support:gles2_conform_test",
stevenjb604316362016-05-06 22:10:26235 "//gpu/khronos_glcts_support:khronos_glcts_test",
sherouk53f0f1a2015-08-03 15:59:35236 "//jingle:jingle_unittests",
sherouk53f0f1a2015-08-03 15:59:35237 "//net:hpack_example_generator",
238 "//net:hpack_fuzz_mutator",
239 "//net:hpack_fuzz_wrapper",
sherouk53f0f1a2015-08-03 15:59:35240 "//ppapi:ppapi_unittests",
241 "//ppapi/examples/2d",
242 "//ppapi/examples/audio",
243 "//ppapi/examples/audio_input",
244 "//ppapi/examples/compositor",
245 "//ppapi/examples/crxfs",
246 "//ppapi/examples/enumerate_devices",
247 "//ppapi/examples/file_chooser",
248 "//ppapi/examples/flash_topmost",
249 "//ppapi/examples/font",
250 "//ppapi/examples/gamepad",
251 "//ppapi/examples/gles2",
252 "//ppapi/examples/gles2_spinning_cube",
253 "//ppapi/examples/ime",
254 "//ppapi/examples/input",
255 "//ppapi/examples/media_stream_audio",
256 "//ppapi/examples/media_stream_video",
257 "//ppapi/examples/mouse_cursor",
258 "//ppapi/examples/mouse_lock",
259 "//ppapi/examples/printing",
260 "//ppapi/examples/scaling",
261 "//ppapi/examples/scripting",
262 "//ppapi/examples/stub",
263 "//ppapi/examples/threading",
264 "//ppapi/examples/url_loader",
265 "//ppapi/examples/video_capture",
266 "//ppapi/examples/video_decode",
267 "//ppapi/examples/video_effects",
268 "//ppapi/examples/video_encode",
269 "//printing:printing_unittests",
sherouk53f0f1a2015-08-03 15:59:35270 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
pkotwicz558d5252015-10-19 21:09:55271 "//third_party/pdfium/samples:pdfium_test",
kjellanderb1ab7b82016-11-01 08:34:21272 "//third_party/webrtc/tools:frame_analyzer",
charliea00055282016-01-26 00:15:15273 "//tools/battor_agent",
charliea5daef2bb2016-01-29 00:13:25274 "//tools/battor_agent:battor_agent_unittests",
pkotwicz558d5252015-10-19 21:09:55275 "//tools/gn",
dpranke244f9732015-11-20 05:38:10276 "//tools/gn:gn_unittests",
pkotwicz558d5252015-10-19 21:09:55277 "//tools/perf/clear_system_cache",
278 "//ui/accessibility:accessibility_unittests",
pkotwicz558d5252015-10-19 21:09:55279 ]
280 }
281
282 if (!is_ios) {
283 # TODO(GYP): Figure out which of these should actually build on iOS,
284 # and whether there should be other targets that are iOS-only and missing.
285 deps += [
286 "//cc:cc_unittests",
stipc6de0f492016-06-01 20:05:03287 "//chrome/test:telemetry_perf_unittests",
pkotwicz558d5252015-10-19 21:09:55288 "//chrome/test:unit_tests",
289 "//components:components_browsertests",
brettw3865a712016-12-10 05:59:08290 "//components/policy:policy_templates",
pkotwicz558d5252015-10-19 21:09:55291 "//content/shell:content_shell",
292 "//content/test:content_browsertests",
293 "//content/test:content_perftests",
294 "//content/test:content_unittests",
295 "//device:device_unittests",
296 "//gpu:gpu_unittests",
markdittmerd88b8352016-04-08 15:28:45297 "//gpu/ipc/service:gpu_ipc_service_unittests",
pkotwicz558d5252015-10-19 21:09:55298 "//ipc:ipc_tests",
pkotwicz558d5252015-10-19 21:09:55299 "//media:media_unittests",
mcasasd2f53ea2016-06-24 19:24:27300 "//media/capture:capture_unittests",
miu45b848fe2015-11-26 01:23:29301 "//media/cast:cast_unittests",
pkotwicz558d5252015-10-19 21:09:55302 "//media/midi:midi_unittests",
303 "//mojo",
pkotwicz558d5252015-10-19 21:09:55304 "//mojo/common:mojo_common_unittests",
rockotc637caf9b2016-02-10 09:57:08305 "//mojo/edk/system:mojo_system_unittests",
306 "//mojo/edk/test:mojo_public_bindings_unittests",
rockotc637caf9b2016-02-10 09:57:08307 "//mojo/edk/test:mojo_public_system_unittests",
pkotwicz558d5252015-10-19 21:09:55308 "//net:net_perftests",
rockot734fb662016-10-15 16:41:30309 "//services/service_manager/public/cpp",
pwnall008c0272016-10-14 16:54:04310 "//storage//browser:storage_unittests",
Dirk Pranke49802732015-12-10 01:36:41311 "//third_party/WebKit/Source/platform:blink_platform_unittests",
brettw4a6700a2016-09-01 01:24:01312 "//third_party/WebKit/Source/platform/heap:blink_heap_unittests",
dpranke244f9732015-11-20 05:38:10313 "//third_party/WebKit/Source/web:webkit_unit_tests",
314 "//third_party/WebKit/Source/wtf:wtf_unittests",
brettwc5fcdd02016-10-12 07:25:12315 "//third_party/angle/src/tests:angle_end2end_tests",
316 "//third_party/angle/src/tests:angle_unittests",
ynovikov55e66c22017-02-16 15:45:37317 "//third_party/angle/src/tests:angle_white_box_tests",
nednguyenc42bf912016-01-27 01:39:28318 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35319 "//third_party/smhasher:pmurhash",
320 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35321 "//ui/display:display_unittests",
322 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35323 "//ui/gl:gl_unittests",
324 "//ui/touch_selection:ui_touch_selection_unittests",
markdittmer67b71ea2016-03-03 22:40:03325 "//url/ipc:url_ipc_unittests",
sherouk53f0f1a2015-08-03 15:59:35326 ]
sdefresne998e8582015-10-07 13:36:45327 } else {
sdefresne88abe362016-06-01 10:40:11328 deps += [ "//ios:all" ]
agrieve97dd57d2016-01-05 19:26:27329 }
330
scottmg34fb7e52014-12-03 23:27:24331 deps += root_extra_deps
brettw@chromium.orgfce5c3fe2014-04-10 21:13:05332
tfarina4aa9edc2015-10-26 22:14:02333 if (enable_extensions) {
jamescookfbbf9112016-06-14 16:24:49334 deps += [ "//extensions/shell:app_shell_unittests" ]
dprankefd1813272015-04-13 23:56:00335 }
336
dprankefd1813272015-04-13 23:56:00337 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55338 deps += [ "//chrome/browser/media/router" ]
rockot2f1326e2015-02-23 23:53:51339 }
340
garykac3eddb5b2015-04-17 23:16:38341 if (enable_remoting) {
342 deps += [ "//remoting:remoting_all" ]
James Robinson060f2e32014-09-10 22:31:37343 }
344
dprankee2ef3822015-02-24 21:42:18345 if (toolkit_views) {
ellyjones41c21fe2016-06-09 17:10:19346 deps += [
347 "//ui/views:views_unittests",
348 "//ui/views/examples:views_examples_exe",
349 "//ui/views/examples:views_examples_with_content_exe",
350 ]
brettw@chromium.org6b9028ab2014-07-23 17:15:38351 }
352
jamescook4c02a0b2016-12-02 23:14:42353 if (use_ash) {
mswda0133e62016-02-16 20:50:02354 deps += [
skycf094f672016-09-01 19:40:12355 "//ash:ash_content_unittests",
jamescookfbbf9112016-06-14 16:24:49356 "//ash:ash_shell_with_content",
357 "//ash:ash_unittests",
jamescook4c02a0b2016-12-02 23:14:42358 ]
359 }
360
361 if (use_aura) {
362 deps += [
mswda0133e62016-02-16 20:50:02363 "//ui/aura:aura_unittests",
mswda0133e62016-02-16 20:50:02364 "//ui/aura:demo",
365 "//ui/wm:wm_unittests",
366 ]
dprankee2ef3822015-02-24 21:42:18367 }
368
369 if (use_ozone) {
kylechar5c9a1fb2016-10-21 13:17:25370 deps += [
371 "//ui/ozone",
372 "//ui/ozone:ozone_unittests",
373 "//ui/ozone/gl:ozone_gl_unittests",
374 ]
tfarina@chromium.orga306aaa2014-05-24 13:21:50375 }
376
thomasandersonaf830f3a2016-12-07 04:52:02377 if (use_x11 || ozone_platform_x11) {
378 deps += [ "//tools/xdisplaycheck" ]
tmoniuszkoe5578b922015-04-14 09:38:03379 }
380
brettw66e3feab2015-07-20 23:52:22381 if (is_win) {
brettwf986f952015-10-07 17:18:15382 deps += [
383 "//chrome/installer/gcapi",
384 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
385 ]
brettw66e3feab2015-07-20 23:52:22386 }
387
dpranke@chromium.org5a8d5162014-04-12 01:19:16388 if (is_android) {
cjhopman@chromium.org26046b52014-07-16 00:11:03389 deps += [
pkotwicze2dae8b2015-11-03 20:12:55390 "//base:base_junit_tests",
dpranke244f9732015-11-20 05:38:10391 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38392 "//build/android/gyp/test:hello_world",
pkotwicz2dd67962016-05-10 00:21:08393 "//chrome/android/webapk/shell_apk:webapk",
pkotwicze2dae8b2015-11-03 20:12:55394 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
395 "//components/policy/android:components_policy_junit_tests",
396 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45397 "//content/shell/android:content_shell_apk",
markdittmer6e70beb82016-05-02 05:40:47398 "//media/gpu:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55399 "//net/android:net_junit_tests",
jbudorick5ef42902016-04-07 04:17:11400 "//testing/android/junit:junit_unit_tests",
wnwen41f70b92016-06-22 14:48:56401 "//third_party/android_async_task:android_async_task_java",
agrieve40ba6862015-07-15 02:09:05402 "//third_party/errorprone:chromium_errorprone",
pkotwicz8adff4e2015-12-17 21:55:45403 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10404 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49405 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34406 "//tools/android:push_apps_to_background",
jbudorickdfc01f62016-06-01 15:42:12407 "//tools/android/audio_focus_grabber:audio_focus_grabber_apk",
408 "//tools/android/customtabs_benchmark:customtabs_benchmark_apk",
dgn28050da2015-10-19 10:16:43409 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
pkotwicz077093762015-12-21 16:47:15410 "//tools/cygprofile:cygprofile_unittests",
newt9e226032016-01-26 01:30:15411 "//ui/android:ui_junit_tests",
dprankee2ef3822015-02-24 21:42:18412 ]
413 deps -= [
rockot9c67e5f2015-03-12 20:01:21414 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18415 "//url:url_unittests",
cjhopman@chromium.org26046b52014-07-16 00:11:03416 ]
417
pkotwicz92e2e2312015-12-15 22:29:46418 if (!is_component_build) {
419 deps += [
agrievee23386b2016-01-05 04:47:58420 "//components/cronet/android:cronet_package",
jbudorickdfc01f62016-06-01 15:42:12421 "//components/cronet/android:cronet_perf_test_apk",
pkotwicz92e2e2312015-12-15 22:29:46422 "//components/cronet/android:cronet_sample_apk",
423 "//components/cronet/android:cronet_sample_test_apk",
424 "//components/cronet/android:cronet_test_apk",
425 "//components/cronet/android:cronet_test_instrumentation_apk",
426 "//components/cronet/android:cronet_unittests",
427 ]
428 }
429
pkotwicz061c5a42015-09-30 02:16:54430 if (!is_chromecast) {
431 deps += [
michaelbaicbcc7e62015-11-12 04:29:53432 "//android_webview",
agrieveb08e2f5b2015-12-29 01:17:30433 "//android_webview/test",
mikecasecb1b5062016-07-01 20:53:44434 "//android_webview/tools/automated_ui_tests:webview_ui_test_app",
mikecase49971fc2016-03-21 21:18:05435 "//android_webview/tools/system_webview_shell",
pkotwicze2dae8b2015-11-03 20:12:55436 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54437 "//chrome/android:chrome_public_apk",
smaierd50624e2016-08-05 14:21:10438 "//chrome/android:chrome_public_test_apk",
439 "//chrome/android:chrome_sync_shell_test_apk",
pkotwicz061c5a42015-09-30 02:16:54440 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b2015-12-28 20:23:11441 "//content/shell/android:content_shell_test_apk",
pkotwicz0a2255e2015-10-06 16:29:05442 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54443 ]
444 }
445
pkotwicz06a4b4b42015-10-29 23:11:11446 if (target_cpu != "x64") {
jbudorickdfc01f62016-06-01 15:42:12447 deps += [
448 "//content/shell/android:chromium_linker_test_apk",
449 "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)",
450 ]
pkotwicz06a4b4b42015-10-29 23:11:11451 }
452
cjhopmanca675d3e2014-10-24 03:50:45453 if (has_chrome_android_internal) {
brettwf9427f92016-05-05 23:18:55454 deps += [ "//clank" ]
cjhopmanca675d3e2014-10-24 03:50:45455 }
dprankefd1813272015-04-13 23:56:00456 }
457
brettwf9427f92016-05-05 23:18:55458 if (is_linux || is_android) {
dprankefd1813272015-04-13 23:56:00459 deps += [
pkotwicza4d233b22015-11-02 18:20:38460 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00461 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38462 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00463 "//breakpad:minidump-2-core",
464 ]
465 }
466
dpranke6293d252015-04-14 19:12:00467 if (is_chromeos) {
468 deps += [
469 "//chromeos:chromeos_unittests",
khorimoto4c539952016-12-04 02:37:11470 "//chromeos/components:chromeos_components_unittests",
jamescook4c02a0b2016-12-02 23:14:42471 "//components/session_manager/core",
estade835d5502017-01-04 16:44:06472 "//ui/app_list:app_list_unittests",
473 "//ui/app_list/presenter:app_list_presenter_unittests",
yoshiki8e2ddbb2016-03-10 07:11:22474 "//ui/arc:ui_arc_unittests",
dpranke6293d252015-04-14 19:12:00475 "//ui/chromeos:ui_chromeos_unittests",
476 ]
477 }
478
dprankefd1813272015-04-13 23:56:00479 if (is_chromeos || is_mac || is_win) {
480 deps += [
481 "//rlz:rlz_id",
482 "//rlz:rlz_lib",
483 "//rlz:rlz_unittests",
484 ]
dprankedb5527d72015-03-08 04:22:47485 }
486
487 if (is_linux) {
488 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06489 deps += [
dpranke2bc89212015-11-18 00:24:43490 "//chrome:manpage",
491 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47492 "//net:disk_cache_memory_test",
dprankedb5527d72015-03-08 04:22:47493 "//net:quic_client",
494 "//net:quic_server",
495 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18496 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06497 ]
dnicoara8c6aa8e2015-03-11 23:20:32498
mbjorgea12e5a52016-05-31 22:15:17499 if (use_dbus) {
500 deps += [
501 "//dbus:dbus_test_server",
502 "//dbus:dbus_unittests",
503 ]
dpranke2bc89212015-11-18 00:24:43504 }
505
506 if (is_chrome_branded && is_official_build) {
507 # TODO(dpranke): add the linux_dump_symbols flag?
508 deps += [ "//chrome:linux_symbols" ]
dnicoara8c6aa8e2015-03-11 23:20:32509 }
dprankedb5527d72015-03-08 04:22:47510 }
511
sherouke1859f92015-08-05 10:19:10512 if (is_ios || is_win || (is_linux && !is_chromeos)) {
513 deps += [
514 "//base:base_i18n_perftests",
515 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58516 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10517 ]
518 }
519
sugoia1b7b922016-12-13 12:52:49520 if ((is_win || is_mac || is_linux) &&
521 (target_cpu == "x86" || target_cpu == "x64")) {
sugoiabe91892016-09-20 12:53:51522 deps += [ "//third_party/swiftshader" ]
523 }
524
thakis507c15c2016-06-01 00:26:01525 # TODO(GYP): Figure out which of these should (and can) build
526 # for chromeos/ios.
527 if (!is_chromeos && !is_ios) {
tfarina9e7cf702015-02-23 21:13:44528 deps += [
dprankedb5527d72015-03-08 04:22:47529 "//base:build_utf8_validator_tables",
dpranke244f9732015-11-20 05:38:10530 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47531 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00532 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47533 "//components:components_perftests",
Max Boguefef332d2016-07-28 22:09:09534 "//components/sync:run_sync_testserver",
dprankedb5527d72015-03-08 04:22:47535 "//device:device_unittests",
536 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47537 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47538 "//google_apis/gcm:mcs_probe",
dprankefd1813272015-04-13 23:56:00539 "//gpu:gl_tests",
dpranke244f9732015-11-20 05:38:10540 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47541 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47542 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00543 "//net:dump_cache",
dprankefd1813272015-04-13 23:56:00544 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47545 "//ui/compositor:compositor_unittests",
546 ]
547
agrieve473155b2015-12-28 20:23:11548 if (!is_android) {
549 deps += [
550 "//chrome/test:load_library_perf_tests",
551 "//chrome/test:sync_performance_tests",
552 "//chrome/test/chromedriver:chromedriver",
553 "//chrome/test/chromedriver:chromedriver_tests",
554 "//courgette:courgette",
555 "//courgette:courgette_fuzz",
556 "//courgette:courgette_minimal_tool",
557 "//courgette:courgette_unittests",
stevenjb7b6fd642016-05-18 18:15:30558 "//media/cast:generate_barcode_video",
559 "//media/cast:generate_timecode_audio",
agrieve473155b2015-12-28 20:23:11560 "//net:crash_cache",
561 "//net:crl_set_dump",
562 "//net:dns_fuzz_stub",
563 "//net:gdig",
564 "//net:get_server_time",
565 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
566 "//net:run_testserver",
567 "//net:stress_cache",
568 "//net:tld_cleanup",
569 "//ppapi:pepper_hash_for_uma",
570 "//ppapi:ppapi_perftests",
agrieve473155b2015-12-28 20:23:11571 "//third_party/leveldatabase:env_chromium_unittests",
572 "//third_party/libaddressinput:libaddressinput_unittests",
573 ]
dprankedb5527d72015-03-08 04:22:47574 }
575
jamescookfbbf9112016-06-14 16:24:49576 if (enable_extensions) {
577 deps += [ "//extensions/shell:app_shell" ]
578 }
579
dprankedb5527d72015-03-08 04:22:47580 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13581 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43582
583 if (is_linux) {
584 # TODO(dpranke): Figure out what platforms should actually have this.
milko.leporis3de038d2016-08-18 09:59:37585 deps += [ "//components/nacl/loader:nacl_helper" ]
586
587 if (enable_nacl_nonsfi) {
588 deps += [
589 "//components/nacl/loader:helper_nonsfi",
590 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
591 ]
592 }
dpranke2bc89212015-11-18 00:24:43593 }
dprankedb5527d72015-03-08 04:22:47594 }
595
xhwangfa2d9d472015-12-18 23:31:18596 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10597 deps += [ "//media:ffmpeg_regression_tests" ]
dprankedb5527d72015-03-08 04:22:47598 }
dprankefd1813272015-04-13 23:56:00599 }
600
agrieve473155b2015-12-28 20:23:11601 if (is_android || (is_linux && !is_chromeos)) {
dprankefd1813272015-04-13 23:56:00602 deps += [
agrieve473155b2015-12-28 20:23:11603 "//breakpad:dump_syms($host_toolchain)",
604 "//breakpad:microdump_stackwalk($host_toolchain)",
605 "//breakpad:minidump_dump($host_toolchain)",
606 "//breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00607 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00608 "//content/public/app:browser",
609 "//content/public/app:child",
rockotc637caf9b2016-02-10 09:57:08610 "//mojo/edk/test:mojo_public_system_perftests",
rockot734fb662016-10-15 16:41:30611 "//services/service_manager/public/cpp",
dprankefd1813272015-04-13 23:56:00612 "//testing/gmock:gmock_main",
dprankefd1813272015-04-13 23:56:00613 ]
614
agrieve473155b2015-12-28 20:23:11615 if (!is_android) {
616 deps += [
agrieve473155b2015-12-28 20:23:11617 "//chrome/test:chrome_app_unittests",
brettwf9427f92016-05-05 23:18:55618 "//gpu/khronos_glcts_support:khronos_glcts_test",
agrieve473155b2015-12-28 20:23:11619 "//media/cast:cast_benchmarks",
620 "//media/cast:tap_proxy",
621 "//skia:filter_fuzz_stub",
622 "//skia:image_operations_bench",
agrieve473155b2015-12-28 20:23:11623 "//third_party/sqlite:sqlite_shell",
624 "//ui/keyboard:keyboard_unittests",
625 "//ui/message_center:message_center_unittests",
626 "//ui/snapshot:snapshot_unittests",
agrieve473155b2015-12-28 20:23:11627 ]
dprankefd1813272015-04-13 23:56:00628
agrieve473155b2015-12-28 20:23:11629 if (!is_debug && !is_component_build) {
630 deps += [ "//chrome/tools/service_discovery_sniffer" ]
631 }
dprankefd1813272015-04-13 23:56:00632 }
633
dprankedb5527d72015-03-08 04:22:47634 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44635 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59636 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44637 }
dprankedb5527d72015-03-08 04:22:47638 }
639 }
640
641 if (is_mac) {
642 deps += [
643 "//breakpad:crash_inspector",
644 "//breakpad:dump_syms",
miguelg765f2212016-10-06 09:02:26645
646 # XPC service is in developement and guarded against the
647 # enable_xpc_notifications, in the meantime however we still
648 # need compile coverage in the bots.
649 "//chrome/browser/ui/cocoa/notifications:alert_notification_xpc_service",
tfarina9e7cf702015-02-23 21:13:44650 "//third_party/apple_sample_code",
651 "//third_party/molokocacao",
652 ]
dpranke43760592014-11-08 02:59:57653 deps -= [
brettw011138d2015-10-21 03:05:38654 # Mojo in GN contains some things which are never compiled in GYP on Mac,
655 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10656 "//mojo",
mohsen29fd4052014-12-08 21:06:46657 ]
dprankefd1813272015-04-13 23:56:00658 }
659
660 if (is_win) {
661 deps += [
662 "//base:pe_image_test",
anantaf2e54a92016-05-28 00:39:16663 "//chrome/install_static:install_static_unittests",
grt734e87b2015-07-06 19:36:43664 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00665 "//chrome_elf:chrome_elf_unittests",
666 "//chrome_elf:dll_hash_main",
pastarmovj02d5cc992016-12-05 17:55:24667 "//cloud_print:cloud_print_unittests",
dprankefd1813272015-04-13 23:56:00668 "//components/wifi:wifi_test",
669 "//net:quic_client",
670 "//net:quic_server",
671 "//sandbox/win:pocdll",
672 "//sandbox/win:sandbox_poc",
673 "//sandbox/win:sbox_integration_tests",
674 "//sandbox/win:sbox_unittests",
675 "//sandbox/win:sbox_validation_tests",
676 "//testing/gtest:gtest_main",
dprankefd1813272015-04-13 23:56:00677 "//third_party/pdfium/samples:pdfium_diff",
robliaofd54b5c2017-01-13 00:41:30678 "//tools/win/chromeexts:chromeexts",
dprankefd1813272015-04-13 23:56:00679 ]
dprankee2ef3822015-02-24 21:42:18680 deps -= [
681 "//crypto:crypto_unittests", # TODO(GYP)
682 "//net:net_unittests", # TODO(GYP)
683 ]
fdorayfb048bff2016-04-28 22:07:36684
685 if (!(is_component_build && is_debug && target_cpu == "x86")) {
686 deps +=
687 [ "//chrome/installer/mini_installer:next_version_mini_installer" ]
688 }
sherouk53f0f1a2015-08-03 15:59:35689 } else if (!is_android && !is_ios) {
miu45b848fe2015-11-26 01:23:29690 deps += [ "//breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34691 }
rsesek985bd812016-04-26 21:06:15692
slance9d62f2015-11-04 01:15:01693 if (is_chromecast) {
694 deps += [ "//chromecast:cast_shell" ]
695 }
miu45b848fe2015-11-26 01:23:29696
rsesek985bd812016-04-26 21:06:15697 if (is_mac || is_win) {
698 deps += [
699 "//third_party/crashpad/crashpad/handler:crashpad_handler",
700 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
701 ]
702 }
703
hbos17a7b4a22015-12-07 10:49:45704 if (use_openh264) {
705 deps += [
706 "//third_party/openh264:common",
707 "//third_party/openh264:encoder",
708 "//third_party/openh264:processing",
709 ]
710 }
dpranke18e57432015-02-27 21:46:47711}
712
dpranked62d8512015-03-02 03:06:03713group("gn_only") {
dprankedb5527d72015-03-08 04:22:47714 testonly = true
715
dpranke2a294622015-08-07 05:23:01716 deps = []
717
amistry4dcd7c42015-12-16 04:53:10718 if (!is_ios) {
xhwangf69024d12016-06-16 17:52:29719 deps += [
720 "//media/mojo:media_mojo_unittests",
rockot8cdd37a2017-01-28 02:53:31721 "//services:service_unittests",
xhwangf69024d12016-06-16 17:52:29722 ]
amistry4dcd7c42015-12-16 04:53:10723 }
724
scheib35dc9202016-04-26 22:35:43725 if (!is_android && !is_ios) {
726 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
727 }
728
dpranke244f9732015-11-20 05:38:10729 if (!is_android && !is_ios && !is_chromeos) {
xjz9da998022016-10-26 01:22:11730 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
grt3f0e4ff2016-08-19 07:51:05731 }
732
ben8f4e95ad2015-12-01 18:35:58733 if (is_win || is_linux) {
sky70471b22016-01-14 16:20:54734 deps += [
735 "//mash:all",
xhwang9c958fd2016-12-05 23:17:16736 "//media/mojo/services:media_service_unittests",
skyfcde3a42016-02-09 20:27:44737 "//mojo",
benee648f62016-05-12 23:04:50738 "//services/navigation",
jonross63b021f2016-11-02 00:56:21739 "//services/preferences:tests",
ben6b0453d2016-07-02 04:27:19740 "//services/ui/demo",
kylechar5c9a1fb2016-10-21 13:17:25741 "//services/ui/demo:mus_demo_unittests",
742 "//services/ui/public/interfaces:ui_struct_traits_unittests",
ben6b0453d2016-07-02 04:27:19743 "//services/ui/ws:tests",
qyearsley88bc4802016-05-17 18:02:34744 "//ui/views/mus:views_mus_interactive_ui_tests",
bena5d1cd42016-04-29 22:59:53745 "//ui/views/mus:views_mus_unittests",
sky70471b22016-01-14 16:20:54746 ]
kylechar5c9a1fb2016-10-21 13:17:25747
wez0ee841c2016-12-21 20:36:20748 # crbug.com/676055: media_service_unittests fails to link under Windows
749 # component builds, due to duplicate symbol definitions.
750 if (is_win && is_component_build) {
751 deps -= [ "//media/mojo/services:media_service_unittests" ]
752 }
753
kylechar9ee25182016-11-06 03:50:30754 if (use_ozone && is_chromeos) {
kylechar5c9a1fb2016-10-21 13:17:25755 deps += [ "//services/ui/display:display_service_unittests" ]
756 }
sky97b65592015-11-02 20:08:25757 }
758
stevenjb7b6fd642016-05-18 18:15:30759 if (is_linux && !is_chromeos && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47760 # TODO(GYP): Figure out if any of these should be in gn_all
761 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45762 deps += [
dprankedb5527d72015-03-08 04:22:47763 ":gn_mojo_targets",
dprankedb5527d72015-03-08 04:22:47764 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47765 "//chrome/tools/convert_dict",
766 "//components/constrained_window:unit_tests",
erg4652931e2016-04-27 22:15:40767 "//components/filesystem:filesystem_service_unittests",
ergf1f689f2016-03-22 00:51:20768 "//components/leveldb:leveldb_service_unittests",
dprankedb5527d72015-03-08 04:22:47769 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45770 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47771 "//components/rappor:unit_tests",
772 "//components/sessions:unit_tests",
773 "//media/blink:media_blink_unittests",
stevenjb7b6fd642016-05-18 18:15:30774 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47775 "//storage/browser:dump_file_system",
776 "//third_party/angle:libANGLE",
777 "//third_party/angle:libEGL",
778 "//third_party/angle:libGLESv2",
dprankedb5527d72015-03-08 04:22:47779 "//third_party/leveldatabase:leveldb_arena_test",
780 "//third_party/leveldatabase:leveldb_bloom_test",
dprankedb5527d72015-03-08 04:22:47781 "//third_party/leveldatabase:leveldb_cache_test",
dprankedb5527d72015-03-08 04:22:47782 "//third_party/leveldatabase:leveldb_corruption_test",
dpranke244f9732015-11-20 05:38:10783 "//third_party/leveldatabase:leveldb_crc32c_test",
784 "//third_party/leveldatabase:leveldb_db_bench",
785 "//third_party/leveldatabase:leveldb_db_test",
dprankedb5527d72015-03-08 04:22:47786 "//third_party/leveldatabase:leveldb_dbformat_test",
dpranke244f9732015-11-20 05:38:10787 "//third_party/leveldatabase:leveldb_env_test",
788 "//third_party/leveldatabase:leveldb_filename_test",
789 "//third_party/leveldatabase:leveldb_filter_block_test",
790 "//third_party/leveldatabase:leveldb_log_test",
791 "//third_party/leveldatabase:leveldb_skiplist_test",
792 "//third_party/leveldatabase:leveldb_table_test",
793 "//third_party/leveldatabase:leveldb_version_edit_test",
794 "//third_party/leveldatabase:leveldb_write_batch_test",
dprankedb5527d72015-03-08 04:22:47795 "//third_party/libjpeg_turbo:simd",
dprankedb5527d72015-03-08 04:22:47796 "//third_party/opus:opus_compare",
797 "//third_party/opus:opus_demo",
dpranke244f9732015-11-20 05:38:10798 "//third_party/opus:test_opus_api",
dprankedb5527d72015-03-08 04:22:47799 "//third_party/opus:test_opus_decode",
800 "//third_party/opus:test_opus_encode",
dprankedb5527d72015-03-08 04:22:47801 "//third_party/opus:test_opus_padding",
dpranke244f9732015-11-20 05:38:10802 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47803 "//third_party/webrtc/system_wrappers:field_trial_default",
804 "//third_party/webrtc/system_wrappers:metrics_default",
805 "//ui/display/types",
806 "//ui/shell_dialogs:shell_dialogs_unittests",
dprankedb5527d72015-03-08 04:22:47807 ]
dprankeb0713542015-07-31 21:07:21808
ossy.szegedd584dd72016-11-21 11:36:18809 if (enable_nacl) {
810 deps += [ "//native_client/src/trusted/debug_stub:gdb_rsp_unittest" ]
811 }
812
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16813 if (target_cpu == "x86" || target_cpu == "x64") {
agrieve473155b2015-12-28 20:23:11814 if (!is_android) {
815 deps += [ "//chrome/test:load_library_perf_tests" ]
816 }
mcgrathr916aafa2015-09-15 00:06:53817 deps += [
mcgrathr916aafa2015-09-15 00:06:53818 "//native_client/src/trusted/platform_qualify:vcpuid",
dpranke244f9732015-11-20 05:38:10819 "//third_party/libjpeg_turbo:simd_asm",
mcgrathr916aafa2015-09-15 00:06:53820 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16821 }
dpranke807f6022015-03-17 23:20:56822 if (is_linux && current_toolchain == host_toolchain) {
jochen11513aa02016-05-11 09:59:51823 deps += [ "//v8:v8_shell" ]
dpranke807f6022015-03-17 23:20:56824 }
aizatskye9aba582016-03-25 22:37:16825 }
826
spang324dc57a2016-04-06 14:54:08827 if (use_ozone) {
828 deps += [ "//ui/ozone/demo" ]
829 }
830
aizatskyaf496112016-04-15 19:26:32831 if ((is_linux && !is_chromeos && !is_chromecast) || (is_win && use_drfuzz) ||
832 (use_libfuzzer && is_mac)) {
833 deps += [
834 "//testing/libfuzzer/fuzzers",
835 "//testing/libfuzzer/tests:libfuzzer_tests",
aizatsky3f560172016-06-03 23:26:06836 "//third_party/icu/fuzzers",
aizatskyaf496112016-04-15 19:26:32837 ]
miu16396172016-09-28 00:05:56838
839 # TODO(miu): Remove this dependency once the build configuration in
840 # chrome/browser/BUILD.gn is migrated to chrome/browser/media/BUILD.gn.
841 # This dependency here only exists to allow GN to discover the
842 # fuzzer_test target there.
843 deps += [ "//chrome/browser/media:cast_remoting_connector_fuzzer" ]
aizatskyaf496112016-04-15 19:26:32844 }
845
sbc92b4d572016-02-18 03:28:23846 if (enable_nacl) {
847 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
848 }
849
agrieve473155b2015-12-28 20:23:11850 if (is_android) {
zpeng00a360e2016-11-21 23:05:02851 deps += [ "//build/android/gyp/test:hello_world" ]
nyquistb5f050b2015-09-10 05:10:35852 }
853
skyostilfe116162016-02-26 20:53:33854 if (is_linux && use_ozone) {
855 deps += [
856 "//headless",
857 "//headless:headless_tests",
858 ]
859 }
dprankedb5527d72015-03-08 04:22:47860}
861
862group("gn_mojo_targets") {
863 testonly = true
864 if (is_linux && !is_chromeos) {
865 # TODO(GYP): Figure out if any of these should be in gn_all
866 # and figure out how cross-platform they are
867 deps = [
amistryd4aa70d2016-06-23 07:52:37868 "//ipc:ipc_tests",
msw1bb9c6c2015-05-06 21:35:44869 "//mojo:tests",
rockot2a0f4fb32016-11-11 18:44:19870 "//services:service_unittests",
dprankedb5527d72015-03-08 04:22:47871 ]
dprankedb5527d72015-03-08 04:22:47872 }
873}
874
875group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03876 deps = [
dprankeb6128d02015-05-01 16:40:30877 "//build/config/sanitizers:options_sources",
dprankedb5527d72015-03-08 04:22:47878 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
879 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dpranked62d8512015-03-02 03:06:03880 ]
dpranked2fb5222015-09-10 22:39:05881
882 if (!is_ios) {
883 deps += [
dpranked2fb5222015-09-10 22:39:05884 "//v8:postmortem-metadata",
dpranke244f9732015-11-20 05:38:10885 "//v8:v8_snapshot",
dpranked2fb5222015-09-10 22:39:05886 ]
887 }
dpranked62d8512015-03-02 03:06:03888}
889
tfarinacb2638b2015-05-12 03:24:15890if (!is_ios) {
891 # This group includes all of the targets needed to build and test Blink,
892 # including running the layout tests (see below).
893 group("blink_tests") {
894 testonly = true
895
896 deps = [
tansell88df42592016-11-15 07:22:59897 ":webkit_layout_tests",
tfarinacb2638b2015-05-12 03:24:15898 "//third_party/WebKit/public:all_blink",
tansell88df42592016-11-15 07:22:59899 ]
900 }
901
902 # Layout tests runner
903 # third_party/WebKit/Tools/Scripts/run-webkit-tests
904 group("run_webkit_tests") {
905 testonly = true
906 deps = [
907 ":webkit_layout_tests",
908 ]
909 }
910
911 # https://www.chromium.org/developers/testing/webkit-layout-tests
tansell0e6baaf22017-02-16 09:14:53912
913 # The _exparchive at the end of the name indicates to the isolate recipe
914 # that the isolate should be archived separately using the `exparchive`
915 # command, rather than as part of the normal `batcharchive` command.
916 group("webkit_layout_tests_exparchive") {
917 testonly = true
918 deps = [
919 ":webkit_layout_tests",
920 ]
921 data_deps = [
922 ":webkit_layout_tests",
923 ]
924 }
925
926 # This target contains only a small subset of the layout tests,
927 # and is useful for testing with the regular isolate mechanism.
928 # To run the full layout test suite you need to use
929 # :webkit_layout_tests_exparchive, above, instead.
tansell88df42592016-11-15 07:22:59930 group("webkit_layout_tests") {
931 testonly = true
tansell88df42592016-11-15 07:22:59932 data_deps = [
933 "//content/shell:content_shell",
tansell2bf83ac2017-02-18 04:01:14934 "//third_party/WebKit/public:blink_devtools_frontend_resources_files",
tansellaac85d72017-02-17 05:13:04935 "//third_party/mesa:osmesa",
agrieve993374cf2016-04-13 00:05:39936 "//tools/imagediff",
tfarinacb2638b2015-05-12 03:24:15937 ]
938
tfarinacb2638b2015-05-12 03:24:15939 if (is_android) {
tansell88df42592016-11-15 07:22:59940 data_deps += [
agrieve62ab00282016-04-05 02:03:45941 "//breakpad:breakpad_unittests",
agrieve993374cf2016-04-13 00:05:39942 "//breakpad:dump_syms",
943 "//breakpad:microdump_stackwalk",
944 "//breakpad:minidump_dump",
945 "//breakpad:minidump_stackwalk",
946 "//breakpad:symupload",
jbudoricke7bcf092016-09-28 18:24:14947 "//tools/android/forwarder2",
ojan94989c72015-07-17 21:56:42948 ]
tfarinacb2638b2015-05-12 03:24:15949 }
950
951 if (is_win) {
tansell88df42592016-11-15 07:22:59952 data_deps += [ "//content/shell:content_shell_crash_service" ]
tfarinacb2638b2015-05-12 03:24:15953 }
954
955 if (!is_win && !is_android) {
tansell88df42592016-11-15 07:22:59956 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15957 }
958
959 if (is_mac) {
tansell88df42592016-11-15 07:22:59960 data_deps += [ "//breakpad:dump_syms($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15961 }
962
963 if (is_linux) {
tansell88df42592016-11-15 07:22:59964 data_deps += [ "//breakpad:dump_syms($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15965 }
qyearsley165a17a82016-08-01 17:58:50966
967 data = [
tansell88df42592016-11-15 07:22:59968 "//testing/scripts/common.py",
969 "//testing/xvfb.py",
tansell0e6baaf22017-02-16 09:14:53970 "//testing/scripts/run_isolated_script_test.py",
qyearsley165a17a82016-08-01 17:58:50971 "//third_party/WebKit/LayoutTests/",
tansell2bf83ac2017-02-18 04:01:14972 "//third_party/WebKit/PerformanceTests/",
qyearsley165a17a82016-08-01 17:58:50973 "//third_party/WebKit/Tools/Scripts/",
tansell88df42592016-11-15 07:22:59974 "$root_build_dir/resources/inspector/",
qyearsley165a17a82016-08-01 17:58:50975 ]
tansell0e6baaf22017-02-16 09:14:53976
tansell820f7df2017-02-16 13:59:15977 if (is_win) {
978 data += [ "//third_party/apache-win32/" ]
979 }
980
tansell0e6baaf22017-02-16 09:14:53981 if (is_android) {
982 data += [
983 "//third_party/catapult/",
984 "//build/android/",
985 ]
986 }
tfarinacb2638b2015-05-12 03:24:15987 }
988}
989
dpranke6abd8652015-08-28 03:21:11990# Add a dummy target for compatibility w/ GYP
991group("chromium_swarm_tests") {
992}
993
dpranke2302dfa2015-09-29 02:21:52994group("chromium_builder_perf") {
995 testonly = true
996
thakisca8a4282016-06-10 17:59:30997 if (!is_ios && !is_android && !is_chromecast) {
malets6b7062402016-09-15 08:14:26998 data_deps = [
dpranke2302dfa2015-09-29 02:21:52999 "//cc:cc_perftests",
dpranke2302dfa2015-09-29 02:21:521000 "//chrome/test:load_library_perf_tests",
eyaiche1605ca2016-09-14 14:34:051001 "//chrome/test:telemetry_perf_tests",
kraynovc0797582016-10-25 16:45:061002 "//components/tracing:tracing_perftests",
dpranke2302dfa2015-09-29 02:21:521003 "//gpu:gpu_perftests",
1004 "//media:media_perftests",
kbr1e58e782016-05-27 17:21:191005 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
dpranke2302dfa2015-09-29 02:21:521006 ]
1007
1008 if (!is_chromeos) {
malets6b7062402016-09-15 08:14:261009 data_deps += [ "//chrome/test:performance_browser_tests" ]
dpranke2302dfa2015-09-29 02:21:521010 }
1011 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:041012 if (is_official_build) {
1013 # In GN builds, this is controlled by the 'linux_dump_symbols'
1014 # flag, which defaults to 1 for official builds. For now,
1015 # we skip the separate flag and just key off of is_official_build.
malets6b7062402016-09-15 08:14:261016 data_deps += [ "//chrome:linux_symbols" ]
dpranke9aed5d582015-11-22 23:22:041017 }
dpranke2302dfa2015-09-29 02:21:521018
kraynovc0797582016-10-25 16:45:061019 data_deps += [ "//tools/perf/clear_system_cache" ]
dpranke2302dfa2015-09-29 02:21:521020 }
1021
1022 if (is_win) {
malets6b7062402016-09-15 08:14:261023 data_deps += [
hansa3d3aa4d2016-05-04 22:12:521024 "//chrome/installer/mini_installer:mini_installer",
eyaichd3e023c12016-11-14 22:41:011025 "//chrome/test:angle_perftests",
dpranke2302dfa2015-09-29 02:21:521026 ]
dpranke2302dfa2015-09-29 02:21:521027 } else {
malets6b7062402016-09-15 08:14:261028 data_deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:521029 }
1030 }
1031}
agrieve017b91f2016-02-29 20:15:061032
thakis3f7d4fc2016-06-10 18:47:501033if (!is_ios && !is_android && !is_chromecast) {
1034 group("chromium_builder_asan") {
1035 testonly = true
1036
1037 deps = [
1038 "//chrome:chrome",
1039 "//content/shell:content_shell",
1040 "//v8:d8",
1041 ]
1042 if (!is_win) {
1043 deps += [
1044 "//net:dns_fuzz_stub",
1045 "//net:hpack_fuzz_wrapper",
1046 "//skia:filter_fuzz_stub",
1047 ]
1048 }
1049 if (enable_ipc_fuzzer && !is_component_build) {
1050 deps += [ "//tools/ipc_fuzzer:ipc_fuzzer_all" ]
1051 }
1052 if (!is_chromeos) {
1053 deps += [
1054 "//third_party/pdfium/samples:pdfium_test",
dpranke8a2de902016-07-14 20:08:371055 "//v8:v8_shell($v8_snapshot_toolchain)",
thakis3f7d4fc2016-06-10 18:47:501056 ]
thakis3f7d4fc2016-06-10 18:47:501057 }
1058 if (is_win && symbol_level == 2 && target_cpu == "x86" && is_syzyasan) {
1059 deps += [
1060 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
sebmarchanda2df3392016-07-13 15:34:591061 "//content/shell:content_shell_syzyasan",
thakis3f7d4fc2016-06-10 18:47:501062 ]
thakis3f7d4fc2016-06-10 18:47:501063 }
1064 }
1065}
1066
brettw6df3e8c2016-04-14 21:07:131067# For compatibility with GYP. The linux_chromium_chromeos_rel_ng and
1068# linux_chromium_chromeos_compile_rel_ng bots reference this target as
1069# something to build, but all targets for those bots to compile are set
1070# up differently.
1071# TODO bug 601920: Remove reference to aura_builder on bot config and delete
1072# this group.
1073group("aura_builder") {
1074}
1075
agrieve95ba4442016-04-25 15:47:131076if (is_android) {
1077 group("optimize_gn_gen") {
1078 deps = [
1079 # These run expensive scripts in non-default toolchains. Generally, host
1080 # toolchain targets are loaded in the later part of the run, and the
1081 # result is they push out the end of generation. By preloading these, the
1082 # scripts can be parallelized with the rest of the load.
1083 "//build/config/linux(//build/toolchain/linux:clang_x64)",
1084 "//build/config/posix(//build/toolchain/linux:clang_x64)",
1085
1086 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot
1087 # generation.
1088 "//build/config/linux(//build/toolchain/linux:clang_x86)",
1089 "//build/config/posix(//build/toolchain/linux:clang_x86)",
1090 ]
1091 }
1092}
1093
agrieve017b91f2016-02-29 20:15:061094# Because of the source assignment filter, many targets end up over-filtering
1095# their sources if the output directory contains a platform name. Assert that
1096# this doesn't happen. http://crbug.com/548283
1097template("assert_valid_out_dir") {
1098 # List copied from //build/config/BUILDCONFIG.gn.
1099 set_sources_assignment_filter([
1100 "*\bandroid/*",
1101 "*\bchromeos/*",
1102 "*\bcocoa/*",
1103 "*\bios/*",
1104 "*\blinux/*",
1105 "*\bmac/*",
1106 "*\bposix/*",
1107 "*\bwin/*",
1108 ])
1109 assert(target_name != "") # Mark as used.
1110 sources = invoker.actual_sources
1111 assert(
1112 sources == invoker.actual_sources,
1113 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
1114}
1115
1116assert_valid_out_dir("_unused") {
1117 actual_sources = [ "$root_build_dir/foo" ]
1118}