[go: nahoru, domu]

blob: 9ab0ee09c991158c0ea3b96a23b897cbd182430f [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")
mostynb2196a462015-08-20 17:22:1016import("//media/media_options.gni")
hbos17a7b4a22015-12-07 10:49:4517import("//third_party/openh264/openh264_args.gni")
thakis3f7d4fc2016-06-10 18:47:5018import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
machenbachd65ec5c2016-07-22 09:05:2319import("//v8/gni/v8.gni")
dpranke8a2de902016-07-14 20:08:3720import("//v8/snapshot_toolchain.gni")
dprankee2ef3822015-02-24 21:42:1821
cjhopmanca675d3e2014-10-24 03:50:4522if (is_android) {
23 import("//build/config/android/config.gni")
24}
tfarina@chromium.org378b4f02014-06-10 15:58:4525
brettwb84b2942014-10-22 22:58:4526declare_args() {
27 # A list of extra dependencies to add to the root target. This allows a
28 # checkout to add additional targets without explicitly changing any checked-
29 # in files.
30 root_extra_deps = []
31}
32
dprankeef9c5e582015-11-15 23:22:0833# This file defines the following five main targets:
dpranked62d8512015-03-02 03:06:0334#
dprankeddc174902015-04-29 01:38:3535# "both_gn_and_gyp" should list every root target (target that nothing else
36# depends on) built by GN that is also built in the GYP build.
dpranked62d8512015-03-02 03:06:0337#
dprankeddc174902015-04-29 01:38:3538# "gn_all" should (transitively) cause everything to be built; if you run
39# 'ninja gn_all' and then 'ninja all', the second build should do no work.
40#
dprankeef9c5e582015-11-15 23:22:0841# "gn_only" should list every root target that is *not* intended to be built in
42# a GYP build. Because GN has different rules for deciding what an 'all' build
43# is, this may end up including targets that are actually defined in a GYP
44# build but not dependencies of GYP's "all" (and so not actually built).
dprankeddc174902015-04-29 01:38:3545#
dprankeb6128d02015-05-01 16:40:3046# "gn_visibility": targets that are normally not visible to top-level targets,
dprankeef9c5e582015-11-15 23:22:0847# but are built anyway by "all". Since we don't want any such targets, we have
48# this placeholder to make sure hidden targets that aren't otherwise depended
49# on yet are accounted for.
50#
51# "All" is an alias for "gn_all". It exists for bot compatibility w/ GYP for
52# the iOS bots and the official builders, but should not be generally used
53# during the GYP->GN migration. We cannot guarantee that GN's "All" builds the
54# same set of targets as GYP's "All" does, because GYP's "All" supports
55# wildcards.
56#
57# Lastly, none of these targets are guaranteed to be the same as what ninja
58# will build with "all". For more on how "all" works and the differences in how
59# GYP and GN determine "all", see crbug.com/503241.
dprankeb6128d02015-05-01 16:40:3060#
brettwf9427f92016-05-05 23:18:5561# TODO(GYP_GONE): crbug.com/481694. Make sure that the above is true and there
62# are scripts run on the bots that enforce this. Once the GYP migration is
63# over, we can collapse all of these targets as desired.
dprankeff30e3d2015-02-24 06:52:3964
dprankee2ef3822015-02-24 21:42:1865group("gn_all") {
dprankeddc174902015-04-29 01:38:3566 testonly = true
67
68 deps = [
69 ":both_gn_and_gyp",
70 ":gn_only",
dprankeb6128d02015-05-01 16:40:3071 ":gn_visibility",
dprankeddc174902015-04-29 01:38:3572 ]
machenbach640e53da2016-06-06 09:19:0873
74 if (!is_ios) {
jmadilla42eba2a2016-06-07 18:58:2975 deps += [ "//v8:gn_all" ]
machenbach640e53da2016-06-06 09:19:0876 }
dprankeddc174902015-04-29 01:38:3577}
78
brettwf9427f92016-05-05 23:18:5579# TODO(GYP_GONE): This target exists for compatibility with GYP, specifically
dprankeef9c5e582015-11-15 23:22:0880# for the iOS bots and the official builders.
81group("All") {
82 testonly = true
83
84 deps = [
85 ":gn_all",
86 ]
87}
88
brettwf9427f92016-05-05 23:18:5589# TODO(GYP_GONE): This target exists for compatibility with GYP for the
dprankec7bbafa2016-06-17 03:02:0590# builders that specify targets in the recipes directly.
91# Ideally it should not exist, and the builders should be specifying
92# more specific targets (or 'All') via the source-side
93# //testing/buildbot/*.json files. We should simply delete this target
94# and update any recipes that are using it.
Dirk Prankef00b78b2016-04-18 23:59:2095group("chromium_builder_tests") {
96 testonly = true
dprankec7bbafa2016-06-17 03:02:0597 deps = []
Dirk Prankef00b78b2016-04-18 23:59:2098}
99
dpranke1d5b70692016-06-20 21:09:04100# TODO(GYP_GONE): Figure out if we really need this target or if there's
101# some better way to specify things.
102if (is_win) {
103 group("chrome_official_builder_no_unittests") {
104 deps = [
105 "//chrome/installer/gcapi",
106 "//chrome/installer/mini_installer",
zmin6211e7d62016-06-23 01:19:29107 "//components/policy:pack_policy_templates",
dpranke1d5b70692016-06-20 21:09:04108 "//courgette",
sebmarchand8541a4d2016-07-20 23:35:29109 "//courgette:copy_courgette_binaries",
dpranke1d5b70692016-06-20 21:09:04110 "//remoting/webapp",
111 ]
dpranke6311f0fd2016-06-29 23:41:46112
etienneb364deb72016-07-30 03:43:42113 if (target_cpu == "x86") {
grt3f0e4ff2016-08-19 07:51:05114 deps += [ "//chrome/tools/disable_outdated_build_detector" ]
etienneb364deb72016-07-30 03:43:42115 if (is_clang) {
116 deps += [ "//courgette(//build/toolchain/win:clang_x64)" ]
117 } else {
118 deps += [ "//courgette(//build/toolchain/win:x64)" ]
119 }
dpranke6311f0fd2016-06-29 23:41:46120 if (is_chrome_branded) {
121 deps += [ "//remoting/host:remoting_host_installation" ]
122 }
dpranke1d5b70692016-06-20 21:09:04123 }
124 }
dpranke33e626e2016-06-23 04:41:32125
126 group("chrome_official_builder") {
127 testonly = true
128
129 deps = [
130 ":chrome_official_builder_no_unittests",
131 "//base:base_unittests",
132 "//chrome/test:browser_tests",
133 "//chrome/test:sync_integration_tests",
134 "//ipc:ipc_tests",
135 "//media:media_unittests",
136 "//media/midi:midi_unittests",
137 "//net:net_unittests",
138 "//printing:printing_unittests",
139 "//sql:sql_unittests",
dpranke33e626e2016-06-23 04:41:32140 "//ui/base:ui_base_unittests",
141 "//ui/gfx:gfx_unittests",
142 "//ui/touch_selection:ui_touch_selection_unittests",
143 "//ui/views:views_unittests",
144 "//url:url_unittests",
145 ]
146 }
dprankebad56d4b2016-06-26 18:06:30147
148 group("All_syzygy") {
149 if (is_syzyasan || syzygy_optimize) {
150 deps = [
151 "//chrome/installer/mini_installer:mini_installer",
152 "//chrome/installer/mini_installer:mini_installer_syzygy",
153 ]
154 }
155 }
dpranke1d5b70692016-06-20 21:09:04156}
157
dprankef92633b2016-04-28 04:33:34158if (is_chromeos) {
159 group("chromiumos_preflight") {
160 testonly = true
161 deps = [
162 "//breakpad:minidump_stackwalk($host_toolchain)",
163 "//chrome",
164 "//chrome/test/chromedriver",
dprankef92633b2016-04-28 04:33:34165 "//media:media_unittests",
markdittmer6e70beb82016-05-02 05:40:47166 "//media/gpu:video_decode_accelerator_unittest",
167 "//media/gpu:video_encode_accelerator_unittest",
dprankef92633b2016-04-28 04:33:34168 "//ppapi/examples/video_decode",
169 "//sandbox/linux:chrome_sandbox",
170 "//sandbox/linux:sandbox_linux_unittests",
171
stevenjbd570b1f2016-04-29 22:57:36172 # Blocked on https://github.com/catapult-project/catapult/issues/2297
dprankef92633b2016-04-28 04:33:34173 #"//third_party/catapult/telemetry:bitmaptools",
dprankef92633b2016-04-28 04:33:34174 "//tools/perf/clear_system_cache",
175 ]
176 }
177}
178
dprankeddc174902015-04-29 01:38:35179# The "both_gn_and_gyp" target should reflect every target that is built
180# in both the GN and GYP builds, and ideally it should match the
181# "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line.
dprankeddc174902015-04-29 01:38:35182group("both_gn_and_gyp") {
dprankee2ef3822015-02-24 21:42:18183 testonly = true
dprankee2ef3822015-02-24 21:42:18184 deps = [
185 "//base:base_unittests",
brettwa874dcc2015-08-28 23:59:18186 "//chrome/installer",
sheroukdc35ba272015-09-22 14:09:37187 "//components:components_unittests",
sheroukce1c7d72015-08-24 15:21:59188 "//net:net_unittests",
sherouk2866d662015-08-24 16:29:44189 "//skia:skia_unittests",
brettwa874dcc2015-08-28 23:59:18190 "//sql:sql_unittests",
ochangcc11d0e2016-04-26 19:58:26191 "//tools/ipc_fuzzer:ipc_fuzzer_all",
sherouk4fb74d42015-08-24 15:58:41192 "//ui/base:ui_base_unittests",
sherouk84a45ff2015-09-01 13:31:39193 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:41194 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:18195 ]
dpranke2a294622015-08-07 05:23:01196
sdefresne21832bf92016-03-30 22:01:02197 if (!is_android && !is_chromecast) {
198 deps += [
199 "//crypto:crypto_unittests",
200 "//google_apis/gcm:gcm_unit_tests",
201 ]
202 }
203
slance9d62f2015-11-04 01:15:01204 if (!is_ios && !is_android && !is_chromecast) {
sherouk53f0f1a2015-08-03 15:59:35205 deps += [
sherouk53f0f1a2015-08-03 15:59:35206 "//chrome",
207 "//chrome/test:browser_tests",
208 "//chrome/test:interactive_ui_tests",
209 "//chrome/test:sync_integration_tests",
sherouk53f0f1a2015-08-03 15:59:35210 "//chrome/test/chromedriver:chromedriver_unittests",
Max Boguefef332d2016-07-28 22:09:09211 "//components/sync/tools:sync_client",
212 "//components/sync/tools:sync_listen_notifications",
jamescookfbbf9112016-06-14 16:24:49213 "//extensions:extensions_browsertests",
214 "//extensions:extensions_unittests",
dprankedbdd9d82015-08-12 21:18:18215 "//gpu/gles2_conform_support:gles2_conform_test",
stevenjb604316362016-05-06 22:10:26216 "//gpu/khronos_glcts_support:khronos_glcts_test",
sherouk53f0f1a2015-08-03 15:59:35217 "//jingle:jingle_unittests",
sherouk53f0f1a2015-08-03 15:59:35218 "//net:hpack_example_generator",
219 "//net:hpack_fuzz_mutator",
220 "//net:hpack_fuzz_wrapper",
sherouk53f0f1a2015-08-03 15:59:35221 "//ppapi:ppapi_unittests",
222 "//ppapi/examples/2d",
223 "//ppapi/examples/audio",
224 "//ppapi/examples/audio_input",
225 "//ppapi/examples/compositor",
226 "//ppapi/examples/crxfs",
227 "//ppapi/examples/enumerate_devices",
228 "//ppapi/examples/file_chooser",
229 "//ppapi/examples/flash_topmost",
230 "//ppapi/examples/font",
231 "//ppapi/examples/gamepad",
232 "//ppapi/examples/gles2",
233 "//ppapi/examples/gles2_spinning_cube",
234 "//ppapi/examples/ime",
235 "//ppapi/examples/input",
236 "//ppapi/examples/media_stream_audio",
237 "//ppapi/examples/media_stream_video",
238 "//ppapi/examples/mouse_cursor",
239 "//ppapi/examples/mouse_lock",
240 "//ppapi/examples/printing",
241 "//ppapi/examples/scaling",
242 "//ppapi/examples/scripting",
243 "//ppapi/examples/stub",
244 "//ppapi/examples/threading",
245 "//ppapi/examples/url_loader",
246 "//ppapi/examples/video_capture",
247 "//ppapi/examples/video_decode",
248 "//ppapi/examples/video_effects",
249 "//ppapi/examples/video_encode",
250 "//printing:printing_unittests",
sherouk53f0f1a2015-08-03 15:59:35251 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
252 "//third_party/codesighs",
pkotwicz558d5252015-10-19 21:09:55253 "//third_party/pdfium/samples:pdfium_test",
charliea00055282016-01-26 00:15:15254 "//tools/battor_agent",
charliea5daef2bb2016-01-29 00:13:25255 "//tools/battor_agent:battor_agent_unittests",
pkotwicz558d5252015-10-19 21:09:55256 "//tools/gn",
dpranke244f9732015-11-20 05:38:10257 "//tools/gn:gn_unittests",
pkotwicz558d5252015-10-19 21:09:55258 "//tools/perf/clear_system_cache",
259 "//ui/accessibility:accessibility_unittests",
pkotwicz558d5252015-10-19 21:09:55260 ]
261 }
262
263 if (!is_ios) {
264 # TODO(GYP): Figure out which of these should actually build on iOS,
265 # and whether there should be other targets that are iOS-only and missing.
266 deps += [
267 "//cc:cc_unittests",
stipc6de0f492016-06-01 20:05:03268 "//chrome/test:telemetry_perf_unittests",
pkotwicz558d5252015-10-19 21:09:55269 "//chrome/test:unit_tests",
270 "//components:components_browsertests",
271 "//content/shell:content_shell",
272 "//content/test:content_browsertests",
273 "//content/test:content_perftests",
274 "//content/test:content_unittests",
275 "//device:device_unittests",
276 "//gpu:gpu_unittests",
markdittmerd88b8352016-04-08 15:28:45277 "//gpu/ipc/service:gpu_ipc_service_unittests",
pkotwicz558d5252015-10-19 21:09:55278 "//ipc:ipc_tests",
pkotwicz558d5252015-10-19 21:09:55279 "//media:media_unittests",
mcasasd2f53ea2016-06-24 19:24:27280 "//media/capture:capture_unittests",
miu45b848fe2015-11-26 01:23:29281 "//media/cast:cast_unittests",
pkotwicz558d5252015-10-19 21:09:55282 "//media/midi:midi_unittests",
283 "//mojo",
pkotwicz558d5252015-10-19 21:09:55284 "//mojo/common:mojo_common_unittests",
rockotc637caf9b2016-02-10 09:57:08285 "//mojo/edk/system:mojo_system_unittests",
286 "//mojo/edk/test:mojo_public_bindings_unittests",
rockotc637caf9b2016-02-10 09:57:08287 "//mojo/edk/test:mojo_public_system_unittests",
pkotwicz558d5252015-10-19 21:09:55288 "//net:net_perftests",
benf709a3092016-04-12 22:38:22289 "//services/shell/public/cpp",
Dirk Pranke49802732015-12-10 01:36:41290 "//third_party/WebKit/Source/platform:blink_platform_unittests",
brettw4a6700a2016-09-01 01:24:01291 "//third_party/WebKit/Source/platform/heap:blink_heap_unittests",
dpranke244f9732015-11-20 05:38:10292 "//third_party/WebKit/Source/web:webkit_unit_tests",
293 "//third_party/WebKit/Source/wtf:wtf_unittests",
nednguyenc42bf912016-01-27 01:39:28294 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35295 "//third_party/smhasher:pmurhash",
296 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35297 "//ui/display:display_unittests",
298 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35299 "//ui/gl:gl_unittests",
300 "//ui/touch_selection:ui_touch_selection_unittests",
markdittmer67b71ea2016-03-03 22:40:03301 "//url/ipc:url_ipc_unittests",
sherouk53f0f1a2015-08-03 15:59:35302 ]
sdefresne998e8582015-10-07 13:36:45303 } else {
sdefresne88abe362016-06-01 10:40:11304 deps += [ "//ios:all" ]
agrieve97dd57d2016-01-05 19:26:27305 }
306
scottmg34fb7e52014-12-03 23:27:24307 deps += root_extra_deps
brettw@chromium.orgfce5c3fe2014-04-10 21:13:05308
tfarina4aa9edc2015-10-26 22:14:02309 if (enable_extensions) {
jamescookfbbf9112016-06-14 16:24:49310 deps += [ "//extensions/shell:app_shell_unittests" ]
dprankefd1813272015-04-13 23:56:00311 }
312
dprankefd1813272015-04-13 23:56:00313 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55314 deps += [ "//chrome/browser/media/router" ]
rockot2f1326e2015-02-23 23:53:51315 }
316
garykac3eddb5b2015-04-17 23:16:38317 if (enable_remoting) {
318 deps += [ "//remoting:remoting_all" ]
James Robinson060f2e32014-09-10 22:31:37319 }
320
dprankee2ef3822015-02-24 21:42:18321 if (toolkit_views) {
ellyjones41c21fe2016-06-09 17:10:19322 deps += [
323 "//ui/views:views_unittests",
324 "//ui/views/examples:views_examples_exe",
325 "//ui/views/examples:views_examples_with_content_exe",
326 ]
brettw@chromium.org6b9028ab2014-07-23 17:15:38327 }
328
dprankee2ef3822015-02-24 21:42:18329 if (use_aura) {
mswda0133e62016-02-16 20:50:02330 deps += [
jamescookfbbf9112016-06-14 16:24:49331 "//ash:ash_shell_with_content",
332 "//ash:ash_unittests",
tapted87ca2d62016-05-19 20:48:49333 "//ui/app_list:app_list_unittests",
334 "//ui/app_list/presenter:app_list_presenter_unittests",
mswda0133e62016-02-16 20:50:02335 "//ui/aura:aura_unittests",
mswda0133e62016-02-16 20:50:02336 "//ui/aura:demo",
337 "//ui/wm:wm_unittests",
338 ]
dprankee2ef3822015-02-24 21:42:18339 }
340
341 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47342 deps += [ "//ui/ozone" ]
tfarina@chromium.orga306aaa2014-05-24 13:21:50343 }
344
dprankefd1813272015-04-13 23:56:00345 if (use_x11) {
346 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22347 }
348
tmoniuszkoe5578b922015-04-14 09:38:03349 if (enable_configuration_policy) {
350 deps += [ "//components/policy:policy_templates" ]
351 }
352
oth2a6531922016-07-13 10:06:14353 if (v8_use_external_startup_data) {
354 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
355 }
356
brettw66e3feab2015-07-20 23:52:22357 if (is_win) {
brettwf986f952015-10-07 17:18:15358 deps += [
359 "//chrome/installer/gcapi",
360 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
361 ]
brettw66e3feab2015-07-20 23:52:22362 }
363
dpranke@chromium.org5a8d5162014-04-12 01:19:16364 if (is_android) {
cjhopman@chromium.org26046b52014-07-16 00:11:03365 deps += [
pkotwicze2dae8b2015-11-03 20:12:55366 "//base:base_junit_tests",
dpranke244f9732015-11-20 05:38:10367 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38368 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02369 "//build/android/rezip",
pkotwicz2dd67962016-05-10 00:21:08370 "//chrome/android/webapk/shell_apk:webapk",
pkotwicze2dae8b2015-11-03 20:12:55371 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
372 "//components/policy/android:components_policy_junit_tests",
373 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45374 "//content/shell/android:content_shell_apk",
markdittmer6e70beb82016-05-02 05:40:47375 "//media/gpu:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55376 "//net/android:net_junit_tests",
jbudorick5ef42902016-04-07 04:17:11377 "//testing/android/junit:junit_unit_tests",
wnwen41f70b92016-06-22 14:48:56378 "//third_party/android_async_task:android_async_task_java",
agrieve40ba6862015-07-15 02:09:05379 "//third_party/errorprone:chromium_errorprone",
pkotwicz8adff4e2015-12-17 21:55:45380 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10381 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49382 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34383 "//tools/android:push_apps_to_background",
jbudorickdfc01f62016-06-01 15:42:12384 "//tools/android/audio_focus_grabber:audio_focus_grabber_apk",
385 "//tools/android/customtabs_benchmark:customtabs_benchmark_apk",
dgn28050da2015-10-19 10:16:43386 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
pkotwicz077093762015-12-21 16:47:15387 "//tools/cygprofile:cygprofile_unittests",
newt9e226032016-01-26 01:30:15388 "//ui/android:ui_junit_tests",
dprankee2ef3822015-02-24 21:42:18389 ]
390 deps -= [
rockot9c67e5f2015-03-12 20:01:21391 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18392 "//url:url_unittests",
cjhopman@chromium.org26046b52014-07-16 00:11:03393 ]
394
pkotwicz92e2e2312015-12-15 22:29:46395 if (!is_component_build) {
396 deps += [
agrievee23386b2016-01-05 04:47:58397 "//components/cronet/android:cronet_package",
jbudorickdfc01f62016-06-01 15:42:12398 "//components/cronet/android:cronet_perf_test_apk",
pkotwicz92e2e2312015-12-15 22:29:46399 "//components/cronet/android:cronet_sample_apk",
400 "//components/cronet/android:cronet_sample_test_apk",
401 "//components/cronet/android:cronet_test_apk",
402 "//components/cronet/android:cronet_test_instrumentation_apk",
403 "//components/cronet/android:cronet_unittests",
404 ]
405 }
406
pkotwicz061c5a42015-09-30 02:16:54407 if (!is_chromecast) {
408 deps += [
michaelbaicbcc7e62015-11-12 04:29:53409 "//android_webview",
agrieveb08e2f5b2015-12-29 01:17:30410 "//android_webview/test",
mikecasecb1b5062016-07-01 20:53:44411 "//android_webview/tools/automated_ui_tests:webview_ui_test_app",
mikecase49971fc2016-03-21 21:18:05412 "//android_webview/tools/system_webview_shell",
pkotwicze2dae8b2015-11-03 20:12:55413 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54414 "//chrome/android:chrome_public_apk",
smaierd50624e2016-08-05 14:21:10415 "//chrome/android:chrome_public_test_apk",
416 "//chrome/android:chrome_sync_shell_test_apk",
pkotwicz061c5a42015-09-30 02:16:54417 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b2015-12-28 20:23:11418 "//content/shell/android:content_shell_test_apk",
pkotwicz0a2255e2015-10-06 16:29:05419 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54420 ]
421 }
422
pkotwicz06a4b4b42015-10-29 23:11:11423 if (target_cpu != "x64") {
jbudorickdfc01f62016-06-01 15:42:12424 deps += [
425 "//content/shell/android:chromium_linker_test_apk",
426 "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)",
427 ]
pkotwicz06a4b4b42015-10-29 23:11:11428 }
429
cjhopmanca675d3e2014-10-24 03:50:45430 if (has_chrome_android_internal) {
brettwf9427f92016-05-05 23:18:55431 deps += [ "//clank" ]
cjhopmanca675d3e2014-10-24 03:50:45432 }
dprankefd1813272015-04-13 23:56:00433 }
434
brettwf9427f92016-05-05 23:18:55435 if (is_linux || is_android) {
dprankefd1813272015-04-13 23:56:00436 deps += [
pkotwicza4d233b22015-11-02 18:20:38437 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00438 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38439 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00440 "//breakpad:minidump-2-core",
441 ]
442 }
443
dpranke6293d252015-04-14 19:12:00444 if (is_chromeos) {
445 deps += [
446 "//chromeos:chromeos_unittests",
yoshiki8e2ddbb2016-03-10 07:11:22447 "//ui/arc:ui_arc_unittests",
dpranke6293d252015-04-14 19:12:00448 "//ui/chromeos:ui_chromeos_unittests",
449 ]
450 }
451
dprankefd1813272015-04-13 23:56:00452 if (is_chromeos || is_mac || is_win) {
453 deps += [
454 "//rlz:rlz_id",
455 "//rlz:rlz_lib",
456 "//rlz:rlz_unittests",
457 ]
dprankedb5527d72015-03-08 04:22:47458 }
459
460 if (is_linux) {
461 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06462 deps += [
dpranke2bc89212015-11-18 00:24:43463 "//chrome:manpage",
464 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47465 "//net:disk_cache_memory_test",
dprankedb5527d72015-03-08 04:22:47466 "//net:quic_client",
467 "//net:quic_server",
468 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18469 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06470 ]
dnicoara8c6aa8e2015-03-11 23:20:32471
mbjorgea12e5a52016-05-31 22:15:17472 if (use_dbus) {
473 deps += [
474 "//dbus:dbus_test_server",
475 "//dbus:dbus_unittests",
476 ]
477 }
478
dnicoara8c6aa8e2015-03-11 23:20:32479 if (is_chromeos || use_ash) {
480 deps += [ "//components/session_manager/core" ]
dpranke2bc89212015-11-18 00:24:43481 }
482
483 if (is_chrome_branded && is_official_build) {
484 # TODO(dpranke): add the linux_dump_symbols flag?
485 deps += [ "//chrome:linux_symbols" ]
dnicoara8c6aa8e2015-03-11 23:20:32486 }
dprankedb5527d72015-03-08 04:22:47487 }
488
sherouke1859f92015-08-05 10:19:10489 if (is_ios || is_win || (is_linux && !is_chromeos)) {
490 deps += [
491 "//base:base_i18n_perftests",
492 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58493 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10494 ]
495 }
496
thakis507c15c2016-06-01 00:26:01497 # TODO(GYP): Figure out which of these should (and can) build
498 # for chromeos/ios.
499 if (!is_chromeos && !is_ios) {
tfarina9e7cf702015-02-23 21:13:44500 deps += [
dprankedb5527d72015-03-08 04:22:47501 "//base:build_utf8_validator_tables",
dpranke244f9732015-11-20 05:38:10502 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47503 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00504 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47505 "//components:components_perftests",
Max Boguefef332d2016-07-28 22:09:09506 "//components/sync:run_sync_testserver",
dprankedb5527d72015-03-08 04:22:47507 "//device:device_unittests",
508 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47509 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47510 "//google_apis/gcm:mcs_probe",
dprankefd1813272015-04-13 23:56:00511 "//gpu:gl_tests",
dpranke244f9732015-11-20 05:38:10512 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47513 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47514 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00515 "//net:dump_cache",
ynovikove3d872f32016-06-09 20:35:05516 "//third_party/angle/src/tests:angle_end2end_tests",
ynovikov25dc7aad2016-05-27 23:09:54517 "//third_party/angle/src/tests:angle_unittests",
dprankedb5527d72015-03-08 04:22:47518 "//third_party/codesighs:maptsvdifftool",
dprankefd1813272015-04-13 23:56:00519 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47520 "//ui/compositor:compositor_unittests",
521 ]
522
agrieve473155b2015-12-28 20:23:11523 if (!is_android) {
524 deps += [
525 "//chrome/test:load_library_perf_tests",
526 "//chrome/test:sync_performance_tests",
527 "//chrome/test/chromedriver:chromedriver",
528 "//chrome/test/chromedriver:chromedriver_tests",
529 "//courgette:courgette",
530 "//courgette:courgette_fuzz",
531 "//courgette:courgette_minimal_tool",
532 "//courgette:courgette_unittests",
stevenjb7b6fd642016-05-18 18:15:30533 "//media/cast:generate_barcode_video",
534 "//media/cast:generate_timecode_audio",
agrieve473155b2015-12-28 20:23:11535 "//net:crash_cache",
536 "//net:crl_set_dump",
537 "//net:dns_fuzz_stub",
538 "//net:gdig",
539 "//net:get_server_time",
540 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
541 "//net:run_testserver",
542 "//net:stress_cache",
543 "//net:tld_cleanup",
544 "//ppapi:pepper_hash_for_uma",
545 "//ppapi:ppapi_perftests",
agrieve473155b2015-12-28 20:23:11546 "//third_party/leveldatabase:env_chromium_unittests",
547 "//third_party/libaddressinput:libaddressinput_unittests",
548 ]
dprankedb5527d72015-03-08 04:22:47549 }
550
jamescookfbbf9112016-06-14 16:24:49551 if (enable_extensions) {
552 deps += [ "//extensions/shell:app_shell" ]
553 }
554
dprankedb5527d72015-03-08 04:22:47555 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13556 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43557
558 if (is_linux) {
559 # TODO(dpranke): Figure out what platforms should actually have this.
milko.leporis3de038d2016-08-18 09:59:37560 deps += [ "//components/nacl/loader:nacl_helper" ]
561
562 if (enable_nacl_nonsfi) {
563 deps += [
564 "//components/nacl/loader:helper_nonsfi",
565 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
566 ]
567 }
dpranke2bc89212015-11-18 00:24:43568 }
dprankedb5527d72015-03-08 04:22:47569 }
570
xhwangfa2d9d472015-12-18 23:31:18571 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10572 deps += [ "//media:ffmpeg_regression_tests" ]
dprankedb5527d72015-03-08 04:22:47573 }
dprankefd1813272015-04-13 23:56:00574 }
575
agrieve473155b2015-12-28 20:23:11576 if (is_android || (is_linux && !is_chromeos)) {
dprankefd1813272015-04-13 23:56:00577 deps += [
agrieve473155b2015-12-28 20:23:11578 "//breakpad:dump_syms($host_toolchain)",
579 "//breakpad:microdump_stackwalk($host_toolchain)",
580 "//breakpad:minidump_dump($host_toolchain)",
581 "//breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00582 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00583 "//content/public/app:browser",
584 "//content/public/app:child",
rockotc637caf9b2016-02-10 09:57:08585 "//mojo/edk/test:mojo_public_system_perftests",
benf709a3092016-04-12 22:38:22586 "//services/shell/public/cpp",
dprankefd1813272015-04-13 23:56:00587 "//testing/gmock:gmock_main",
dpranke244f9732015-11-20 05:38:10588 "//third_party/codesighs:nm2tsv",
dprankefd1813272015-04-13 23:56:00589 ]
590
agrieve473155b2015-12-28 20:23:11591 if (!is_android) {
592 deps += [
agrieve473155b2015-12-28 20:23:11593 "//chrome/test:chrome_app_unittests",
brettwf9427f92016-05-05 23:18:55594 "//gpu/khronos_glcts_support:khronos_glcts_test",
agrieve473155b2015-12-28 20:23:11595 "//media/cast:cast_benchmarks",
596 "//media/cast:tap_proxy",
597 "//skia:filter_fuzz_stub",
598 "//skia:image_operations_bench",
agrieve473155b2015-12-28 20:23:11599 "//third_party/sqlite:sqlite_shell",
600 "//ui/keyboard:keyboard_unittests",
601 "//ui/message_center:message_center_unittests",
602 "//ui/snapshot:snapshot_unittests",
agrieve473155b2015-12-28 20:23:11603 ]
dprankefd1813272015-04-13 23:56:00604
agrieve473155b2015-12-28 20:23:11605 if (!is_debug && !is_component_build) {
606 deps += [ "//chrome/tools/service_discovery_sniffer" ]
607 }
yutakbfb4d1672016-06-13 07:42:59608
609 if (is_clang) {
610 deps += [ "//build/sanitizers:copy_llvm_symbolizer" ]
611 }
dprankefd1813272015-04-13 23:56:00612 }
613
taptedd13e0cd2016-05-13 08:26:56614 if (enable_app_list) {
dprankefd1813272015-04-13 23:56:00615 deps += [ "//ui/app_list:app_list_demo" ]
616 }
dprankedb5527d72015-03-08 04:22:47617
618 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44619 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59620 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44621 }
dprankedb5527d72015-03-08 04:22:47622 }
623 }
624
625 if (is_mac) {
626 deps += [
627 "//breakpad:crash_inspector",
628 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44629 "//third_party/apple_sample_code",
630 "//third_party/molokocacao",
631 ]
dpranke43760592014-11-08 02:59:57632 deps -= [
brettw011138d2015-10-21 03:05:38633 # Mojo in GN contains some things which are never compiled in GYP on Mac,
634 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10635 "//mojo",
mohsen29fd4052014-12-08 21:06:46636 ]
dprankefd1813272015-04-13 23:56:00637 }
638
639 if (is_win) {
640 deps += [
641 "//base:pe_image_test",
anantaf2e54a92016-05-28 00:39:16642 "//chrome/install_static:install_static_unittests",
grt734e87b2015-07-06 19:36:43643 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00644 "//chrome_elf:chrome_elf_unittests",
645 "//chrome_elf:dll_hash_main",
dprankefd1813272015-04-13 23:56:00646 "//components/wifi:wifi_test",
647 "//net:quic_client",
648 "//net:quic_server",
649 "//sandbox/win:pocdll",
650 "//sandbox/win:sandbox_poc",
651 "//sandbox/win:sbox_integration_tests",
652 "//sandbox/win:sbox_unittests",
653 "//sandbox/win:sbox_validation_tests",
654 "//testing/gtest:gtest_main",
655 "//third_party/codesighs:msmap2tsv",
656 "//third_party/pdfium/samples:pdfium_diff",
dprankefd1813272015-04-13 23:56:00657 ]
dprankee2ef3822015-02-24 21:42:18658 deps -= [
659 "//crypto:crypto_unittests", # TODO(GYP)
660 "//net:net_unittests", # TODO(GYP)
661 ]
fdorayfb048bff2016-04-28 22:07:36662
663 if (!(is_component_build && is_debug && target_cpu == "x86")) {
664 deps +=
665 [ "//chrome/installer/mini_installer:next_version_mini_installer" ]
666 }
sherouk53f0f1a2015-08-03 15:59:35667 } else if (!is_android && !is_ios) {
miu45b848fe2015-11-26 01:23:29668 deps += [ "//breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34669 }
rsesek985bd812016-04-26 21:06:15670
slance9d62f2015-11-04 01:15:01671 if (is_chromecast) {
672 deps += [ "//chromecast:cast_shell" ]
673 }
miu45b848fe2015-11-26 01:23:29674
rsesek985bd812016-04-26 21:06:15675 if (is_mac || is_win) {
676 deps += [
677 "//third_party/crashpad/crashpad/handler:crashpad_handler",
678 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
679 ]
680 }
681
hbos17a7b4a22015-12-07 10:49:45682 if (use_openh264) {
683 deps += [
684 "//third_party/openh264:common",
685 "//third_party/openh264:encoder",
686 "//third_party/openh264:processing",
687 ]
688 }
dpranke18e57432015-02-27 21:46:47689}
690
dpranked62d8512015-03-02 03:06:03691group("gn_only") {
dprankedb5527d72015-03-08 04:22:47692 testonly = true
693
dpranke2a294622015-08-07 05:23:01694 deps = []
695
amistry4dcd7c42015-12-16 04:53:10696 if (!is_ios) {
xhwangf69024d12016-06-16 17:52:29697 deps += [
698 "//media/mojo:media_mojo_unittests",
699 "//mojo/common:mojo_common_perftests",
chfremerdb24ccb2016-08-16 17:55:16700 "//services/video_capture:video_capture_unittests",
xhwangf69024d12016-06-16 17:52:29701 ]
amistry4dcd7c42015-12-16 04:53:10702 }
703
scheib35dc9202016-04-26 22:35:43704 if (!is_android && !is_ios) {
705 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
706 }
707
dpranke244f9732015-11-20 05:38:10708 if (!is_android && !is_ios && !is_chromeos) {
isherman0f89b43eb2015-04-11 00:02:45709 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
710 }
711
grt3f0e4ff2016-08-19 07:51:05712 if (is_win && target_cpu == "x86") {
713 deps += [ "//chrome/tools/disable_outdated_build_detector" ]
714 }
715
ben8f4e95ad2015-12-01 18:35:58716 if (is_win || is_linux) {
sky70471b22016-01-14 16:20:54717 deps += [
718 "//mash:all",
bena5d1cd42016-04-29 22:59:53719 "//media/mojo/services:media_mojo_shell_unittests",
skyfcde3a42016-02-09 20:27:44720 "//mojo",
benee648f62016-05-12 23:04:50721 "//services/navigation",
ben6b0453d2016-07-02 04:27:19722 "//services/ui/demo",
723 "//services/ui/ws:tests",
qyearsley88bc4802016-05-17 18:02:34724 "//ui/views/mus:views_mus_interactive_ui_tests",
bena5d1cd42016-04-29 22:59:53725 "//ui/views/mus:views_mus_unittests",
sky70471b22016-01-14 16:20:54726 ]
sky97b65592015-11-02 20:08:25727 }
728
stevenjb7b6fd642016-05-18 18:15:30729 if (is_linux && !is_chromeos && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47730 # TODO(GYP): Figure out if any of these should be in gn_all
731 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45732 deps += [
dprankedb5527d72015-03-08 04:22:47733 ":gn_mojo_targets",
734 "//chrome/browser/resources:extension_resource_demo",
735 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47736 "//chrome/tools/convert_dict",
737 "//components/constrained_window:unit_tests",
erg4652931e2016-04-27 22:15:40738 "//components/filesystem:filesystem_service_unittests",
ergf1f689f2016-03-22 00:51:20739 "//components/leveldb:leveldb_service_unittests",
dprankedb5527d72015-03-08 04:22:47740 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45741 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47742 "//components/rappor:unit_tests",
743 "//components/sessions:unit_tests",
744 "//media/blink:media_blink_unittests",
stevenjb7b6fd642016-05-18 18:15:30745 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47746 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
747 "//storage/browser:dump_file_system",
748 "//third_party/angle:libANGLE",
749 "//third_party/angle:libEGL",
750 "//third_party/angle:libGLESv2",
dprankedb5527d72015-03-08 04:22:47751 "//third_party/leveldatabase:leveldb_arena_test",
752 "//third_party/leveldatabase:leveldb_bloom_test",
dprankedb5527d72015-03-08 04:22:47753 "//third_party/leveldatabase:leveldb_cache_test",
dprankedb5527d72015-03-08 04:22:47754 "//third_party/leveldatabase:leveldb_corruption_test",
dpranke244f9732015-11-20 05:38:10755 "//third_party/leveldatabase:leveldb_crc32c_test",
756 "//third_party/leveldatabase:leveldb_db_bench",
757 "//third_party/leveldatabase:leveldb_db_test",
dprankedb5527d72015-03-08 04:22:47758 "//third_party/leveldatabase:leveldb_dbformat_test",
dpranke244f9732015-11-20 05:38:10759 "//third_party/leveldatabase:leveldb_env_test",
760 "//third_party/leveldatabase:leveldb_filename_test",
761 "//third_party/leveldatabase:leveldb_filter_block_test",
762 "//third_party/leveldatabase:leveldb_log_test",
763 "//third_party/leveldatabase:leveldb_skiplist_test",
764 "//third_party/leveldatabase:leveldb_table_test",
765 "//third_party/leveldatabase:leveldb_version_edit_test",
766 "//third_party/leveldatabase:leveldb_write_batch_test",
dprankedb5527d72015-03-08 04:22:47767 "//third_party/libjpeg_turbo:simd",
dpranke244f9732015-11-20 05:38:10768 "//third_party/libsrtp:rdbx_driver",
dprankedb5527d72015-03-08 04:22:47769 "//third_party/libsrtp:replay_driver",
770 "//third_party/libsrtp:roc_driver",
771 "//third_party/libsrtp:rtpw",
dprankedb5527d72015-03-08 04:22:47772 "//third_party/libsrtp:srtp_driver",
773 "//third_party/libsrtp:srtp_driver",
dpranke244f9732015-11-20 05:38:10774 "//third_party/libsrtp:srtp_test_aes_calc",
dprankedb5527d72015-03-08 04:22:47775 "//third_party/libsrtp:srtp_test_cipher_driver",
776 "//third_party/libsrtp:srtp_test_datatypes_driver",
dprankedb5527d72015-03-08 04:22:47777 "//third_party/libsrtp:srtp_test_env",
dpranke244f9732015-11-20 05:38:10778 "//third_party/libsrtp:srtp_test_kernel_driver",
dprankedb5527d72015-03-08 04:22:47779 "//third_party/libsrtp:srtp_test_rand_gen",
780 "//third_party/libsrtp:srtp_test_sha1_driver",
781 "//third_party/libsrtp:srtp_test_stat_driver",
782 "//third_party/opus:opus_compare",
783 "//third_party/opus:opus_demo",
dpranke244f9732015-11-20 05:38:10784 "//third_party/opus:test_opus_api",
dprankedb5527d72015-03-08 04:22:47785 "//third_party/opus:test_opus_decode",
786 "//third_party/opus:test_opus_encode",
dprankedb5527d72015-03-08 04:22:47787 "//third_party/opus:test_opus_padding",
dpranke244f9732015-11-20 05:38:10788 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47789 "//third_party/webrtc/system_wrappers:field_trial_default",
790 "//third_party/webrtc/system_wrappers:metrics_default",
791 "//ui/display/types",
792 "//ui/shell_dialogs:shell_dialogs_unittests",
dprankedb5527d72015-03-08 04:22:47793 ]
dprankeb0713542015-07-31 21:07:21794
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16795 if (target_cpu == "x86" || target_cpu == "x64") {
agrieve473155b2015-12-28 20:23:11796 if (!is_android) {
797 deps += [ "//chrome/test:load_library_perf_tests" ]
798 }
mcgrathr916aafa2015-09-15 00:06:53799 deps += [
mcgrathr916aafa2015-09-15 00:06:53800 "//native_client/src/trusted/platform_qualify:vcpuid",
dpranke244f9732015-11-20 05:38:10801 "//third_party/libjpeg_turbo:simd_asm",
mcgrathr916aafa2015-09-15 00:06:53802 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16803 }
dpranke807f6022015-03-17 23:20:56804 if (is_linux && current_toolchain == host_toolchain) {
jochen11513aa02016-05-11 09:59:51805 deps += [ "//v8:v8_shell" ]
dpranke807f6022015-03-17 23:20:56806 }
aizatskye9aba582016-03-25 22:37:16807 }
808
spang324dc57a2016-04-06 14:54:08809 if (use_ozone) {
810 deps += [ "//ui/ozone/demo" ]
811 }
812
aizatskyaf496112016-04-15 19:26:32813 if ((is_linux && !is_chromeos && !is_chromecast) || (is_win && use_drfuzz) ||
814 (use_libfuzzer && is_mac)) {
815 deps += [
816 "//testing/libfuzzer/fuzzers",
817 "//testing/libfuzzer/tests:libfuzzer_tests",
aizatsky3f560172016-06-03 23:26:06818 "//third_party/icu/fuzzers",
aizatskyaf496112016-04-15 19:26:32819 ]
820 }
821
sbc92b4d572016-02-18 03:28:23822 if (enable_nacl) {
823 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
824 }
825
agrieve473155b2015-12-28 20:23:11826 if (is_android) {
827 deps += [
828 "//build/android/gyp/test:hello_world",
829 "//build/android/incremental_install:bootstrap_java",
830 ]
nyquistb5f050b2015-09-10 05:10:35831 }
832
skyostilfe116162016-02-26 20:53:33833 if (is_linux && use_ozone) {
834 deps += [
835 "//headless",
836 "//headless:headless_tests",
837 ]
838 }
839
agrieve473155b2015-12-28 20:23:11840 if (!is_chromecast && (is_android || is_linux || is_chromeos)) {
841 deps += [
842 "//blimp",
843 "//blimp:blimp_tests",
aizatskyddefc992015-11-20 08:42:03844 ]
aizatskyfc46a9f2015-10-09 21:20:08845 }
dprankedb5527d72015-03-08 04:22:47846}
847
848group("gn_mojo_targets") {
849 testonly = true
850 if (is_linux && !is_chromeos) {
851 # TODO(GYP): Figure out if any of these should be in gn_all
852 # and figure out how cross-platform they are
853 deps = [
amistryd4aa70d2016-06-23 07:52:37854 "//ipc:ipc_tests",
msw1bb9c6c2015-05-06 21:35:44855 "//mojo:tests",
dprankedb5527d72015-03-08 04:22:47856 ]
dprankedb5527d72015-03-08 04:22:47857 }
858}
859
860group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03861 deps = [
dprankeb6128d02015-05-01 16:40:30862 "//build/config/sanitizers:options_sources",
dprankedb5527d72015-03-08 04:22:47863 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
864 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dpranked62d8512015-03-02 03:06:03865 ]
dpranked2fb5222015-09-10 22:39:05866
867 if (!is_ios) {
868 deps += [
dpranked2fb5222015-09-10 22:39:05869 "//v8:postmortem-metadata",
dpranke244f9732015-11-20 05:38:10870 "//v8:v8_snapshot",
dpranked2fb5222015-09-10 22:39:05871 ]
872 }
dpranked62d8512015-03-02 03:06:03873}
874
tfarinacb2638b2015-05-12 03:24:15875if (!is_ios) {
876 # This group includes all of the targets needed to build and test Blink,
877 # including running the layout tests (see below).
878 group("blink_tests") {
879 testonly = true
880
881 deps = [
agrieve993374cf2016-04-13 00:05:39882 "//content/shell:content_shell",
tfarinacb2638b2015-05-12 03:24:15883 "//third_party/WebKit/public:all_blink",
agrieve993374cf2016-04-13 00:05:39884 "//tools/imagediff",
tfarinacb2638b2015-05-12 03:24:15885 ]
886
887 # NOTE: The following deps are needed to run the layout tests
888 # (run-webkit-tests) but there is no GN target for the layout tests,
889 # so we need to specify the dependencies here instead.
890 if (is_android) {
891 deps += [
agrieve62ab00282016-04-05 02:03:45892 "//breakpad:breakpad_unittests",
agrieve993374cf2016-04-13 00:05:39893 "//breakpad:dump_syms",
894 "//breakpad:microdump_stackwalk",
895 "//breakpad:minidump_dump",
896 "//breakpad:minidump_stackwalk",
897 "//breakpad:symupload",
898 "//tools/android/forwarder",
ojan94989c72015-07-17 21:56:42899 ]
tfarinacb2638b2015-05-12 03:24:15900 }
901
902 if (is_win) {
903 deps += [
jochen73e711c2015-06-03 10:01:46904 "//components/test_runner:layout_test_helper",
brettw0d3b1df2015-12-03 00:10:01905 "//content/shell:content_shell_crash_service",
tfarinacb2638b2015-05-12 03:24:15906 ]
907 }
908
909 if (!is_win && !is_android) {
Gordana.Cmiljanovicf243e9a2015-05-26 22:14:47910 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15911 }
912
913 if (is_mac) {
914 deps += [
915 "//breakpad:dump_syms($host_toolchain)",
jochen73e711c2015-06-03 10:01:46916 "//components/test_runner:layout_test_helper",
tfarinacb2638b2015-05-12 03:24:15917 ]
918 }
919
920 if (is_linux) {
921 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
922 }
qyearsley165a17a82016-08-01 17:58:50923
924 data = [
925 "//third_party/WebKit/LayoutTests/",
926 "//third_party/WebKit/Tools/Scripts/",
927 ]
tfarinacb2638b2015-05-12 03:24:15928 }
929}
930
dpranke6abd8652015-08-28 03:21:11931# Add a dummy target for compatibility w/ GYP
932group("chromium_swarm_tests") {
933}
934
dpranke2302dfa2015-09-29 02:21:52935group("chromium_builder_perf") {
936 testonly = true
937
thakisca8a4282016-06-10 17:59:30938 if (!is_ios && !is_android && !is_chromecast) {
dpranke2302dfa2015-09-29 02:21:52939 deps = [
940 "//cc:cc_perftests",
dpranke2302dfa2015-09-29 02:21:52941 "//chrome/test:load_library_perf_tests",
dpranke2302dfa2015-09-29 02:21:52942 "//gpu:gpu_perftests",
943 "//media:media_perftests",
kbr1e58e782016-05-27 17:21:19944 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
dpranke2302dfa2015-09-29 02:21:52945 ]
946
947 if (!is_chromeos) {
948 deps += [ "//chrome/test:performance_browser_tests" ]
949 }
950 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:04951 if (is_official_build) {
952 # In GN builds, this is controlled by the 'linux_dump_symbols'
953 # flag, which defaults to 1 for official builds. For now,
954 # we skip the separate flag and just key off of is_official_build.
955 deps += [ "//chrome:linux_symbols" ]
956 }
dpranke2302dfa2015-09-29 02:21:52957
958 if (!is_chromeos) {
959 deps += [ "//tools/perf/clear_system_cache" ]
960 }
961 }
962
963 if (is_win) {
964 deps += [
hansa3d3aa4d2016-05-04 22:12:52965 "//chrome/installer/mini_installer:mini_installer",
jmadilla42eba2a2016-06-07 18:58:29966 "//third_party/angle/src/tests:angle_perftests",
dpranke2302dfa2015-09-29 02:21:52967 ]
dpranke2302dfa2015-09-29 02:21:52968 } else {
dprankeec10b3932015-10-02 17:58:23969 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52970 }
971 }
972}
agrieve017b91f2016-02-29 20:15:06973
thakis3f7d4fc2016-06-10 18:47:50974if (!is_ios && !is_android && !is_chromecast) {
975 group("chromium_builder_asan") {
976 testonly = true
977
978 deps = [
979 "//chrome:chrome",
980 "//content/shell:content_shell",
981 "//v8:d8",
982 ]
983 if (!is_win) {
984 deps += [
985 "//net:dns_fuzz_stub",
986 "//net:hpack_fuzz_wrapper",
987 "//skia:filter_fuzz_stub",
988 ]
989 }
990 if (enable_ipc_fuzzer && !is_component_build) {
991 deps += [ "//tools/ipc_fuzzer:ipc_fuzzer_all" ]
992 }
993 if (!is_chromeos) {
994 deps += [
995 "//third_party/pdfium/samples:pdfium_test",
dpranke8a2de902016-07-14 20:08:37996 "//v8:v8_shell($v8_snapshot_toolchain)",
thakis3f7d4fc2016-06-10 18:47:50997 ]
998 }
999 if (is_clang) {
1000 deps += [ "//build/sanitizers:copy_llvm_symbolizer" ]
1001 }
1002 if (is_win && symbol_level == 2 && target_cpu == "x86" && is_syzyasan) {
1003 deps += [
1004 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
sebmarchanda2df3392016-07-13 15:34:591005 "//content/shell:content_shell_syzyasan",
thakis3f7d4fc2016-06-10 18:47:501006 ]
thakis3f7d4fc2016-06-10 18:47:501007 }
1008 }
1009}
1010
brettw6df3e8c2016-04-14 21:07:131011# For compatibility with GYP. The linux_chromium_chromeos_rel_ng and
1012# linux_chromium_chromeos_compile_rel_ng bots reference this target as
1013# something to build, but all targets for those bots to compile are set
1014# up differently.
1015# TODO bug 601920: Remove reference to aura_builder on bot config and delete
1016# this group.
1017group("aura_builder") {
1018}
1019
agrieve95ba4442016-04-25 15:47:131020if (is_android) {
1021 group("optimize_gn_gen") {
1022 deps = [
1023 # These run expensive scripts in non-default toolchains. Generally, host
1024 # toolchain targets are loaded in the later part of the run, and the
1025 # result is they push out the end of generation. By preloading these, the
1026 # scripts can be parallelized with the rest of the load.
1027 "//build/config/linux(//build/toolchain/linux:clang_x64)",
1028 "//build/config/posix(//build/toolchain/linux:clang_x64)",
1029
1030 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot
1031 # generation.
1032 "//build/config/linux(//build/toolchain/linux:clang_x86)",
1033 "//build/config/posix(//build/toolchain/linux:clang_x86)",
1034 ]
1035 }
1036}
1037
agrieve017b91f2016-02-29 20:15:061038# Because of the source assignment filter, many targets end up over-filtering
1039# their sources if the output directory contains a platform name. Assert that
1040# this doesn't happen. http://crbug.com/548283
1041template("assert_valid_out_dir") {
1042 # List copied from //build/config/BUILDCONFIG.gn.
1043 set_sources_assignment_filter([
1044 "*\bandroid/*",
1045 "*\bchromeos/*",
1046 "*\bcocoa/*",
1047 "*\bios/*",
1048 "*\blinux/*",
1049 "*\bmac/*",
1050 "*\bposix/*",
1051 "*\bwin/*",
1052 ])
1053 assert(target_name != "") # Mark as used.
1054 sources = invoker.actual_sources
1055 assert(
1056 sources == invoker.actual_sources,
1057 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
1058}
1059
1060assert_valid_out_dir("_unused") {
1061 actual_sources = [ "$root_build_dir/foo" ]
1062}
dpranke3f55a4d2016-08-03 00:21:191063
1064if (is_win) {
1065 group("chromium_builder_lkgr_drmemory_win") {
1066 testonly = true
1067
1068 deps = [
1069 "//components/test_runner:layout_test_helper",
1070 "//content/shell:content_shell",
1071 "//content/shell:content_shell_crash_service",
1072 ]
1073 }
1074
1075 group("chromium_builder_dbg_drmemory_win") {
1076 testonly = true
1077
1078 deps = [
1079 "//base:base_unittests",
1080 "//cc:cc_unittests",
1081 "//cc/blink:cc_blink_unittests",
1082 "//chrome/installer/setup:setup_unittests",
1083 "//chrome/installer/util:installer_util_unittests",
1084 "//chrome/test:browser_tests",
glider48586ee2016-08-26 07:59:561085
1086 # https://crbug.com/640185
1087 # "//chrome/test:chrome_app_unittests",
dpranke3f55a4d2016-08-03 00:21:191088 "//chrome/test:unit_tests",
1089 "//chrome/test/chromedriver:chromedriver_unittests",
1090 "//chrome_elf:chrome_elf_unittests",
1091 "//components:components_unittests",
1092 "//components/test_runner:layout_test_helper",
1093 "//content/shell:content_shell_crash_service",
dpranke9b8bb5422016-08-03 23:38:551094 "//content/test:content_browsertests",
dpranke3f55a4d2016-08-03 00:21:191095 "//content/test:content_unittests",
1096 "//courgette:courgette_unittests",
dpranke9b8bb5422016-08-03 23:38:551097 "//crypto:crypto_unittests",
dpranke3f55a4d2016-08-03 00:21:191098 "//device:device_unittests",
1099 "//extensions:extensions_browsertests",
1100 "//extensions:extensions_unittests",
1101 "//gin:gin_shell",
1102 "//gin:gin_unittests",
1103 "//google_apis:google_apis_unittests",
1104 "//google_apis/gcm:gcm_unit_tests",
1105 "//gpu:gpu_unittests",
1106 "//ipc:ipc_tests",
1107 "//jingle:jingle_unittests",
1108 "//media:media_unittests",
1109 "//media/capture:capture_unittests",
dpranke9b8bb5422016-08-03 23:38:551110 "//media/cast:cast_unittests",
dpranke3f55a4d2016-08-03 00:21:191111 "//media/midi:midi_unittests",
1112 "//mojo",
1113 "//net:net_unittests",
1114 "//printing:printing_unittests",
1115 "//remoting:remoting_unittests",
1116 "//skia:skia_unittests",
1117 "//sql:sql_unittests",
dpranke3f55a4d2016-08-03 00:21:191118 "//third_party/WebKit/Source/platform:blink_platform_unittests",
brettw4a6700a2016-09-01 01:24:011119 "//third_party/WebKit/Source/platform/heap:blink_heap_unittests",
dpranke3f55a4d2016-08-03 00:21:191120 "//third_party/angle/src/tests:angle_unittests",
1121 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
1122 "//third_party/leveldatabase:env_chromium_unittests",
1123 "//third_party/libaddressinput:libaddressinput_unittests",
1124 "//third_party/libphonenumber:libphonenumber_unittests",
1125 "//ui/accessibility:accessibility_unittests",
1126 "//ui/aura:aura_unittests",
1127 "//ui/compositor:compositor_unittests",
1128 "//ui/display:display_unittests",
1129 "//ui/events:events_unittests",
1130 "//ui/gfx:gfx_unittests",
1131 "//ui/gl:gl_unittests",
1132 "//ui/keyboard:keyboard_unittests",
1133 "//ui/touch_selection:ui_touch_selection_unittests",
1134 "//url:url_unittests",
1135 ]
1136 }
1137}