[go: nahoru, domu]

blob: 3974d9688ccf3f2b0c17c7dbe68097ae22009baa [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
rockot2f1326e2015-02-23 23:53:5111import("//build/config/features.gni")
aizatskyfc46a9f2015-10-09 21:20:0812import("//build/config/sanitizers/sanitizers.gni")
tfarina@chromium.org378b4f02014-06-10 15:58:4513import("//build/config/ui.gni")
dpranked4da5ab2015-10-13 06:20:3314import("//build_overrides/v8.gni")
mostynb2196a462015-08-20 17:22:1015import("//media/media_options.gni")
hbos17a7b4a22015-12-07 10:49:4516import("//third_party/openh264/openh264_args.gni")
dprankee2ef3822015-02-24 21:42:1817
cjhopmanca675d3e2014-10-24 03:50:4518if (is_android) {
19 import("//build/config/android/config.gni")
20}
tfarina@chromium.org378b4f02014-06-10 15:58:4521
brettwb84b2942014-10-22 22:58:4522declare_args() {
23 # A list of extra dependencies to add to the root target. This allows a
24 # checkout to add additional targets without explicitly changing any checked-
25 # in files.
26 root_extra_deps = []
27}
28
dprankeef9c5e582015-11-15 23:22:0829# This file defines the following five main targets:
dpranked62d8512015-03-02 03:06:0330#
dprankeddc174902015-04-29 01:38:3531# "both_gn_and_gyp" should list every root target (target that nothing else
32# depends on) built by GN that is also built in the GYP build.
dpranked62d8512015-03-02 03:06:0333#
dprankeddc174902015-04-29 01:38:3534# "gn_all" should (transitively) cause everything to be built; if you run
35# 'ninja gn_all' and then 'ninja all', the second build should do no work.
36#
dprankeef9c5e582015-11-15 23:22:0837# "gn_only" should list every root target that is *not* intended to be built in
38# a GYP build. Because GN has different rules for deciding what an 'all' build
39# is, this may end up including targets that are actually defined in a GYP
40# build but not dependencies of GYP's "all" (and so not actually built).
dprankeddc174902015-04-29 01:38:3541#
dprankeb6128d02015-05-01 16:40:3042# "gn_visibility": targets that are normally not visible to top-level targets,
dprankeef9c5e582015-11-15 23:22:0843# but are built anyway by "all". Since we don't want any such targets, we have
44# this placeholder to make sure hidden targets that aren't otherwise depended
45# on yet are accounted for.
46#
47# "All" is an alias for "gn_all". It exists for bot compatibility w/ GYP for
48# the iOS bots and the official builders, but should not be generally used
49# during the GYP->GN migration. We cannot guarantee that GN's "All" builds the
50# same set of targets as GYP's "All" does, because GYP's "All" supports
51# wildcards.
52#
53# Lastly, none of these targets are guaranteed to be the same as what ninja
54# will build with "all". For more on how "all" works and the differences in how
55# GYP and GN determine "all", see crbug.com/503241.
dprankeb6128d02015-05-01 16:40:3056#
brettwf9427f92016-05-05 23:18:5557# TODO(GYP_GONE): crbug.com/481694. Make sure that the above is true and there
58# are scripts run on the bots that enforce this. Once the GYP migration is
59# over, we can collapse all of these targets as desired.
dprankeff30e3d2015-02-24 06:52:3960
dprankee2ef3822015-02-24 21:42:1861group("gn_all") {
dprankeddc174902015-04-29 01:38:3562 testonly = true
63
64 deps = [
65 ":both_gn_and_gyp",
66 ":gn_only",
dprankeb6128d02015-05-01 16:40:3067 ":gn_visibility",
dprankeddc174902015-04-29 01:38:3568 ]
machenbach640e53da2016-06-06 09:19:0869
70 if (!is_ios) {
71 deps += [
72 "//v8:gn_all",
73 ]
74 }
dprankeddc174902015-04-29 01:38:3575}
76
brettwf9427f92016-05-05 23:18:5577# TODO(GYP_GONE): This target exists for compatibility with GYP, specifically
dprankeef9c5e582015-11-15 23:22:0878# for the iOS bots and the official builders.
79group("All") {
80 testonly = true
81
82 deps = [
83 ":gn_all",
84 ]
85}
86
brettwf9427f92016-05-05 23:18:5587# TODO(GYP_GONE): This target exists for compatibility with GYP for the
88# builders. For now, this builds everything. We should decide if we want to
89# build less.
Dirk Prankef00b78b2016-04-18 23:59:2090group("chromium_builder_tests") {
91 testonly = true
92
93 deps = [
94 ":All",
95 ]
96}
97
dprankef92633b2016-04-28 04:33:3498if (is_chromeos) {
99 group("chromiumos_preflight") {
100 testonly = true
101 deps = [
102 "//breakpad:minidump_stackwalk($host_toolchain)",
103 "//chrome",
104 "//chrome/test/chromedriver",
dprankef92633b2016-04-28 04:33:34105 "//media:media_unittests",
markdittmer6e70beb82016-05-02 05:40:47106 "//media/gpu:video_decode_accelerator_unittest",
107 "//media/gpu:video_encode_accelerator_unittest",
dprankef92633b2016-04-28 04:33:34108 "//ppapi/examples/video_decode",
109 "//sandbox/linux:chrome_sandbox",
110 "//sandbox/linux:sandbox_linux_unittests",
111
stevenjbd570b1f2016-04-29 22:57:36112 # Blocked on https://github.com/catapult-project/catapult/issues/2297
dprankef92633b2016-04-28 04:33:34113 #"//third_party/catapult/telemetry:bitmaptools",
dprankef92633b2016-04-28 04:33:34114 "//tools/perf/clear_system_cache",
115 ]
116 }
117}
118
dprankeddc174902015-04-29 01:38:35119# The "both_gn_and_gyp" target should reflect every target that is built
120# in both the GN and GYP builds, and ideally it should match the
121# "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line.
dprankeddc174902015-04-29 01:38:35122group("both_gn_and_gyp") {
dprankee2ef3822015-02-24 21:42:18123 testonly = true
dprankee2ef3822015-02-24 21:42:18124 deps = [
125 "//base:base_unittests",
brettwa874dcc2015-08-28 23:59:18126 "//chrome/installer",
sheroukdc35ba272015-09-22 14:09:37127 "//components:components_unittests",
sheroukce1c7d72015-08-24 15:21:59128 "//net:net_unittests",
sherouk2866d662015-08-24 16:29:44129 "//skia:skia_unittests",
brettwa874dcc2015-08-28 23:59:18130 "//sql:sql_unittests",
sherouk3eee4a82015-09-01 10:42:33131 "//sync:sync_unit_tests",
ochangcc11d0e2016-04-26 19:58:26132 "//tools/ipc_fuzzer:ipc_fuzzer_all",
sherouk4fb74d42015-08-24 15:58:41133 "//ui/base:ui_base_unittests",
sherouk84a45ff2015-09-01 13:31:39134 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:41135 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:18136 ]
dpranke2a294622015-08-07 05:23:01137
sdefresne21832bf92016-03-30 22:01:02138 if (!is_android && !is_chromecast) {
139 deps += [
140 "//crypto:crypto_unittests",
141 "//google_apis/gcm:gcm_unit_tests",
142 ]
143 }
144
slance9d62f2015-11-04 01:15:01145 if (!is_ios && !is_android && !is_chromecast) {
sherouk53f0f1a2015-08-03 15:59:35146 deps += [
sherouk53f0f1a2015-08-03 15:59:35147 "//chrome",
148 "//chrome/test:browser_tests",
149 "//chrome/test:interactive_ui_tests",
150 "//chrome/test:sync_integration_tests",
sherouk53f0f1a2015-08-03 15:59:35151 "//chrome/test/chromedriver:chromedriver_unittests",
sherouk53f0f1a2015-08-03 15:59:35152 "//extensions:extensions_browsertests",
153 "//extensions:extensions_unittests",
dprankedbdd9d82015-08-12 21:18:18154 "//gpu/gles2_conform_support:gles2_conform_test",
stevenjb604316362016-05-06 22:10:26155 "//gpu/khronos_glcts_support:khronos_glcts_test",
sherouk53f0f1a2015-08-03 15:59:35156 "//jingle:jingle_unittests",
sherouk53f0f1a2015-08-03 15:59:35157 "//net:hpack_example_generator",
158 "//net:hpack_fuzz_mutator",
159 "//net:hpack_fuzz_wrapper",
sherouk53f0f1a2015-08-03 15:59:35160 "//ppapi:ppapi_unittests",
161 "//ppapi/examples/2d",
162 "//ppapi/examples/audio",
163 "//ppapi/examples/audio_input",
164 "//ppapi/examples/compositor",
165 "//ppapi/examples/crxfs",
166 "//ppapi/examples/enumerate_devices",
167 "//ppapi/examples/file_chooser",
168 "//ppapi/examples/flash_topmost",
169 "//ppapi/examples/font",
170 "//ppapi/examples/gamepad",
171 "//ppapi/examples/gles2",
172 "//ppapi/examples/gles2_spinning_cube",
173 "//ppapi/examples/ime",
174 "//ppapi/examples/input",
175 "//ppapi/examples/media_stream_audio",
176 "//ppapi/examples/media_stream_video",
177 "//ppapi/examples/mouse_cursor",
178 "//ppapi/examples/mouse_lock",
179 "//ppapi/examples/printing",
180 "//ppapi/examples/scaling",
181 "//ppapi/examples/scripting",
182 "//ppapi/examples/stub",
183 "//ppapi/examples/threading",
184 "//ppapi/examples/url_loader",
185 "//ppapi/examples/video_capture",
186 "//ppapi/examples/video_decode",
187 "//ppapi/examples/video_effects",
188 "//ppapi/examples/video_encode",
189 "//printing:printing_unittests",
brettweb7dc6582016-05-24 01:19:43190 "//sync/tools:sync_client",
191 "//sync/tools:sync_listen_notifications",
sherouk53f0f1a2015-08-03 15:59:35192 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
193 "//third_party/codesighs",
pkotwicz558d5252015-10-19 21:09:55194 "//third_party/pdfium/samples:pdfium_test",
charliea00055282016-01-26 00:15:15195 "//tools/battor_agent",
charliea5daef2bb2016-01-29 00:13:25196 "//tools/battor_agent:battor_agent_unittests",
pkotwicz558d5252015-10-19 21:09:55197 "//tools/gn",
dpranke244f9732015-11-20 05:38:10198 "//tools/gn:gn_unittests",
pkotwicz558d5252015-10-19 21:09:55199 "//tools/perf/clear_system_cache",
200 "//ui/accessibility:accessibility_unittests",
pkotwicz558d5252015-10-19 21:09:55201 ]
202 }
203
204 if (!is_ios) {
205 # TODO(GYP): Figure out which of these should actually build on iOS,
206 # and whether there should be other targets that are iOS-only and missing.
207 deps += [
208 "//cc:cc_unittests",
stipc6de0f492016-06-01 20:05:03209 "//chrome/test:telemetry_perf_unittests",
pkotwicz558d5252015-10-19 21:09:55210 "//chrome/test:unit_tests",
211 "//components:components_browsertests",
212 "//content/shell:content_shell",
213 "//content/test:content_browsertests",
214 "//content/test:content_perftests",
215 "//content/test:content_unittests",
216 "//device:device_unittests",
217 "//gpu:gpu_unittests",
markdittmerd88b8352016-04-08 15:28:45218 "//gpu/ipc/service:gpu_ipc_service_unittests",
pkotwicz558d5252015-10-19 21:09:55219 "//ipc:ipc_tests",
220 "//ipc/mojo:ipc_mojo_unittests",
221 "//media:media_unittests",
miu45b848fe2015-11-26 01:23:29222 "//media/cast:cast_unittests",
pkotwicz558d5252015-10-19 21:09:55223 "//media/midi:midi_unittests",
224 "//mojo",
pkotwicz558d5252015-10-19 21:09:55225 "//mojo/common:mojo_common_unittests",
rockotc637caf9b2016-02-10 09:57:08226 "//mojo/edk/system:mojo_system_unittests",
227 "//mojo/edk/test:mojo_public_bindings_unittests",
rockotc637caf9b2016-02-10 09:57:08228 "//mojo/edk/test:mojo_public_system_unittests",
pkotwicz558d5252015-10-19 21:09:55229 "//net:net_perftests",
benf709a3092016-04-12 22:38:22230 "//services/shell/public/cpp",
Dirk Pranke49802732015-12-10 01:36:41231 "//third_party/WebKit/Source/platform:blink_heap_unittests",
232 "//third_party/WebKit/Source/platform:blink_platform_unittests",
dpranke244f9732015-11-20 05:38:10233 "//third_party/WebKit/Source/web:webkit_unit_tests",
234 "//third_party/WebKit/Source/wtf:wtf_unittests",
nednguyenc42bf912016-01-27 01:39:28235 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35236 "//third_party/smhasher:pmurhash",
237 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35238 "//ui/display:display_unittests",
239 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35240 "//ui/gl:gl_unittests",
241 "//ui/touch_selection:ui_touch_selection_unittests",
markdittmer67b71ea2016-03-03 22:40:03242 "//url/ipc:url_ipc_unittests",
sherouk53f0f1a2015-08-03 15:59:35243 ]
sdefresne998e8582015-10-07 13:36:45244 } else {
sdefresne88abe362016-06-01 10:40:11245 deps += [ "//ios:all" ]
agrieve97dd57d2016-01-05 19:26:27246 }
247
scottmg34fb7e52014-12-03 23:27:24248 deps += root_extra_deps
brettw@chromium.orgfce5c3fe2014-04-10 21:13:05249
tfarina4aa9edc2015-10-26 22:14:02250 if (enable_extensions) {
rockot2f1326e2015-02-23 23:53:51251 deps += [ "//extensions/shell:app_shell_unittests" ]
dprankefd1813272015-04-13 23:56:00252 }
253
dprankefd1813272015-04-13 23:56:00254 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55255 deps += [ "//chrome/browser/media/router" ]
rockot2f1326e2015-02-23 23:53:51256 }
257
garykac3eddb5b2015-04-17 23:16:38258 if (enable_remoting) {
259 deps += [ "//remoting:remoting_all" ]
James Robinson060f2e32014-09-10 22:31:37260 }
261
dprankee2ef3822015-02-24 21:42:18262 if (toolkit_views) {
263 deps += [ "//ui/views:views_unittests" ]
brettw@chromium.org6b9028ab2014-07-23 17:15:38264 }
265
dprankee2ef3822015-02-24 21:42:18266 if (use_aura) {
mswda0133e62016-02-16 20:50:02267 deps += [
268 "//ash:ash_shell_with_content",
269 "//ash:ash_unittests",
tapted87ca2d62016-05-19 20:48:49270 "//ui/app_list:app_list_unittests",
271 "//ui/app_list/presenter:app_list_presenter_unittests",
mswda0133e62016-02-16 20:50:02272 "//ui/aura:aura_unittests",
mswda0133e62016-02-16 20:50:02273 "//ui/aura:demo",
274 "//ui/wm:wm_unittests",
275 ]
dprankee2ef3822015-02-24 21:42:18276 }
277
278 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47279 deps += [ "//ui/ozone" ]
tfarina@chromium.orga306aaa2014-05-24 13:21:50280 }
281
dprankefd1813272015-04-13 23:56:00282 if (use_x11) {
283 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22284 }
285
tmoniuszkoe5578b922015-04-14 09:38:03286 if (enable_configuration_policy) {
287 deps += [ "//components/policy:policy_templates" ]
288 }
289
dprankefd1813272015-04-13 23:56:00290 if (v8_use_external_startup_data) {
291 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
brettw@chromium.org137dff6d2014-06-12 19:35:55292 }
293
brettw66e3feab2015-07-20 23:52:22294 if (is_win) {
brettwf986f952015-10-07 17:18:15295 deps += [
296 "//chrome/installer/gcapi",
297 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
298 ]
brettw66e3feab2015-07-20 23:52:22299 }
300
dpranke@chromium.org5a8d5162014-04-12 01:19:16301 if (is_android) {
cjhopman@chromium.org26046b52014-07-16 00:11:03302 deps += [
pkotwicze2dae8b2015-11-03 20:12:55303 "//base:base_junit_tests",
dpranke244f9732015-11-20 05:38:10304 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38305 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02306 "//build/android/rezip",
pkotwicz2dd67962016-05-10 00:21:08307 "//chrome/android/webapk/shell_apk:webapk",
pkotwicze2dae8b2015-11-03 20:12:55308 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
309 "//components/policy/android:components_policy_junit_tests",
310 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45311 "//content/shell/android:content_shell_apk",
markdittmer6e70beb82016-05-02 05:40:47312 "//media/gpu:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55313 "//net/android:net_junit_tests",
jbudorick5ef42902016-04-07 04:17:11314 "//testing/android/junit:junit_unit_tests",
agrieve40ba6862015-07-15 02:09:05315 "//third_party/errorprone:chromium_errorprone",
pkotwicz8adff4e2015-12-17 21:55:45316 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10317 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49318 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34319 "//tools/android:push_apps_to_background",
jbudorickdfc01f62016-06-01 15:42:12320 "//tools/android/audio_focus_grabber:audio_focus_grabber_apk",
321 "//tools/android/customtabs_benchmark:customtabs_benchmark_apk",
pkotwicz8b9d18c2015-10-05 01:59:33322 "//tools/android/heap_profiler:heap_profiler_unittests",
dgn28050da2015-10-19 10:16:43323 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
pkotwicz077093762015-12-21 16:47:15324 "//tools/cygprofile:cygprofile_unittests",
newt9e226032016-01-26 01:30:15325 "//ui/android:ui_junit_tests",
dprankee2ef3822015-02-24 21:42:18326 ]
327 deps -= [
rockot9c67e5f2015-03-12 20:01:21328 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18329 "//url:url_unittests",
cjhopman@chromium.org26046b52014-07-16 00:11:03330 ]
331
pkotwicz92e2e2312015-12-15 22:29:46332 if (!is_component_build) {
333 deps += [
agrievee23386b2016-01-05 04:47:58334 "//components/cronet/android:cronet_package",
jbudorickdfc01f62016-06-01 15:42:12335 "//components/cronet/android:cronet_perf_test_apk",
pkotwicz92e2e2312015-12-15 22:29:46336 "//components/cronet/android:cronet_sample_apk",
337 "//components/cronet/android:cronet_sample_test_apk",
338 "//components/cronet/android:cronet_test_apk",
339 "//components/cronet/android:cronet_test_instrumentation_apk",
340 "//components/cronet/android:cronet_unittests",
341 ]
342 }
343
pkotwicz061c5a42015-09-30 02:16:54344 if (!is_chromecast) {
345 deps += [
michaelbaicbcc7e62015-11-12 04:29:53346 "//android_webview",
agrieveb08e2f5b2015-12-29 01:17:30347 "//android_webview/test",
mikecase49971fc2016-03-21 21:18:05348 "//android_webview/tools/system_webview_shell",
pkotwicze2dae8b2015-11-03 20:12:55349 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54350 "//chrome/android:chrome_public_apk",
351 "//chrome/android:chrome_public_test_apk",
jbudorickdfc01f62016-06-01 15:42:12352 "//chrome/android:chrome_sync_shell_test_apk",
pkotwicz061c5a42015-09-30 02:16:54353 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b2015-12-28 20:23:11354 "//content/shell/android:content_shell_test_apk",
pkotwicz0a2255e2015-10-06 16:29:05355 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54356 ]
357 }
358
pkotwicz06a4b4b42015-10-29 23:11:11359 if (target_cpu != "x64") {
jbudorickdfc01f62016-06-01 15:42:12360 deps += [
361 "//content/shell/android:chromium_linker_test_apk",
362 "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)",
363 ]
pkotwicz06a4b4b42015-10-29 23:11:11364 }
365
cjhopmanca675d3e2014-10-24 03:50:45366 if (has_chrome_android_internal) {
brettwf9427f92016-05-05 23:18:55367 deps += [ "//clank" ]
cjhopmanca675d3e2014-10-24 03:50:45368 }
dprankefd1813272015-04-13 23:56:00369 }
370
brettwf9427f92016-05-05 23:18:55371 if (is_linux || is_android) {
dprankefd1813272015-04-13 23:56:00372 deps += [
pkotwicza4d233b22015-11-02 18:20:38373 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00374 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38375 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00376 "//breakpad:minidump-2-core",
377 ]
378 }
379
dpranke6293d252015-04-14 19:12:00380 if (is_chromeos) {
381 deps += [
382 "//chromeos:chromeos_unittests",
yoshiki8e2ddbb2016-03-10 07:11:22383 "//ui/arc:ui_arc_unittests",
dpranke6293d252015-04-14 19:12:00384 "//ui/chromeos:ui_chromeos_unittests",
385 ]
386 }
387
dprankefd1813272015-04-13 23:56:00388 if (is_chromeos || is_mac || is_win) {
389 deps += [
390 "//rlz:rlz_id",
391 "//rlz:rlz_lib",
392 "//rlz:rlz_unittests",
393 ]
dprankedb5527d72015-03-08 04:22:47394 }
395
396 if (is_linux) {
397 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06398 deps += [
dpranke2bc89212015-11-18 00:24:43399 "//chrome:manpage",
400 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47401 "//net:disk_cache_memory_test",
402 "//net:flip_in_mem_edsm_server",
403 "//net:flip_in_mem_edsm_server_unittests",
404 "//net:quic_client",
405 "//net:quic_server",
406 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18407 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06408 ]
dnicoara8c6aa8e2015-03-11 23:20:32409
mbjorgea12e5a52016-05-31 22:15:17410 if (use_dbus) {
411 deps += [
412 "//dbus:dbus_test_server",
413 "//dbus:dbus_unittests",
414 ]
415 }
416
dnicoara8c6aa8e2015-03-11 23:20:32417 if (is_chromeos || use_ash) {
418 deps += [ "//components/session_manager/core" ]
dpranke2bc89212015-11-18 00:24:43419 }
420
421 if (is_chrome_branded && is_official_build) {
422 # TODO(dpranke): add the linux_dump_symbols flag?
423 deps += [ "//chrome:linux_symbols" ]
dnicoara8c6aa8e2015-03-11 23:20:32424 }
dprankedb5527d72015-03-08 04:22:47425 }
426
sherouke1859f92015-08-05 10:19:10427 if (is_ios || is_win || (is_linux && !is_chromeos)) {
428 deps += [
429 "//base:base_i18n_perftests",
430 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58431 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10432 ]
433 }
434
thakis507c15c2016-06-01 00:26:01435 # TODO(GYP): Figure out which of these should (and can) build
436 # for chromeos/ios.
437 if (!is_chromeos && !is_ios) {
tfarina9e7cf702015-02-23 21:13:44438 deps += [
dprankedb5527d72015-03-08 04:22:47439 "//base:build_utf8_validator_tables",
dpranke244f9732015-11-20 05:38:10440 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47441 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00442 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47443 "//components:components_perftests",
dprankedb5527d72015-03-08 04:22:47444 "//device:device_unittests",
445 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47446 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47447 "//google_apis/gcm:mcs_probe",
dprankefd1813272015-04-13 23:56:00448 "//gpu:gl_tests",
dpranke244f9732015-11-20 05:38:10449 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47450 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47451 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00452 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47453 "//sync:run_sync_testserver",
ynovikov25dc7aad2016-05-27 23:09:54454 "//third_party/angle/src/tests:angle_unittests",
dprankedb5527d72015-03-08 04:22:47455 "//third_party/codesighs:maptsvdifftool",
dprankefd1813272015-04-13 23:56:00456 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47457 "//ui/compositor:compositor_unittests",
458 ]
459
agrieve473155b2015-12-28 20:23:11460 if (!is_android) {
461 deps += [
462 "//chrome/test:load_library_perf_tests",
463 "//chrome/test:sync_performance_tests",
464 "//chrome/test/chromedriver:chromedriver",
465 "//chrome/test/chromedriver:chromedriver_tests",
466 "//courgette:courgette",
467 "//courgette:courgette_fuzz",
468 "//courgette:courgette_minimal_tool",
469 "//courgette:courgette_unittests",
stevenjb7b6fd642016-05-18 18:15:30470 "//media/cast:generate_barcode_video",
471 "//media/cast:generate_timecode_audio",
agrieve473155b2015-12-28 20:23:11472 "//net:crash_cache",
473 "//net:crl_set_dump",
474 "//net:dns_fuzz_stub",
475 "//net:gdig",
476 "//net:get_server_time",
477 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
478 "//net:run_testserver",
479 "//net:stress_cache",
480 "//net:tld_cleanup",
481 "//ppapi:pepper_hash_for_uma",
482 "//ppapi:ppapi_perftests",
thakis72c2da22016-06-01 03:11:51483 "//third_party/angle/src/tests:angle_end2end_tests",
agrieve473155b2015-12-28 20:23:11484 "//third_party/leveldatabase:env_chromium_unittests",
485 "//third_party/libaddressinput:libaddressinput_unittests",
486 ]
dpranke7e19b472015-11-13 00:49:33487 }
488
dprankedb5527d72015-03-08 04:22:47489 if (enable_extensions) {
490 deps += [ "//extensions/shell:app_shell" ]
491 }
492
493 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13494 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43495
496 if (is_linux) {
497 # TODO(dpranke): Figure out what platforms should actually have this.
498 deps += [
brettwf4b4a4282015-12-16 00:41:13499 "//components/nacl/loader:helper_nonsfi",
500 "//components/nacl/loader:nacl_helper",
jbudorick3c0ef43092016-02-03 23:40:16501 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
dpranke2bc89212015-11-18 00:24:43502 ]
503 }
dprankedb5527d72015-03-08 04:22:47504 }
505
xhwangfa2d9d472015-12-18 23:31:18506 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10507 deps += [ "//media:ffmpeg_regression_tests" ]
dprankedb5527d72015-03-08 04:22:47508 }
dprankefd1813272015-04-13 23:56:00509 }
510
agrieve473155b2015-12-28 20:23:11511 if (is_android || (is_linux && !is_chromeos)) {
dprankefd1813272015-04-13 23:56:00512 deps += [
agrieve473155b2015-12-28 20:23:11513 "//breakpad:dump_syms($host_toolchain)",
514 "//breakpad:microdump_stackwalk($host_toolchain)",
515 "//breakpad:minidump_dump($host_toolchain)",
516 "//breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00517 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00518 "//content/public/app:browser",
519 "//content/public/app:child",
rockotc637caf9b2016-02-10 09:57:08520 "//mojo/edk/test:mojo_public_system_perftests",
benf709a3092016-04-12 22:38:22521 "//services/shell/public/cpp",
dprankefd1813272015-04-13 23:56:00522 "//testing/gmock:gmock_main",
dpranke244f9732015-11-20 05:38:10523 "//third_party/codesighs:nm2tsv",
dprankefd1813272015-04-13 23:56:00524 ]
525
agrieve473155b2015-12-28 20:23:11526 if (!is_android) {
527 deps += [
528 "//build/sanitizers:copy_llvm_symbolizer",
529 "//chrome/test:chrome_app_unittests",
brettwf9427f92016-05-05 23:18:55530 "//gpu/khronos_glcts_support:khronos_glcts_test",
agrieve473155b2015-12-28 20:23:11531 "//media/cast:cast_benchmarks",
532 "//media/cast:tap_proxy",
533 "//skia:filter_fuzz_stub",
534 "//skia:image_operations_bench",
agrieve473155b2015-12-28 20:23:11535 "//third_party/sqlite:sqlite_shell",
536 "//ui/keyboard:keyboard_unittests",
537 "//ui/message_center:message_center_unittests",
538 "//ui/snapshot:snapshot_unittests",
539 "//ui/views/examples:views_examples_with_content_exe",
540 ]
dprankefd1813272015-04-13 23:56:00541
agrieve473155b2015-12-28 20:23:11542 if (!is_debug && !is_component_build) {
543 deps += [ "//chrome/tools/service_discovery_sniffer" ]
544 }
dprankefd1813272015-04-13 23:56:00545 }
546
taptedd13e0cd2016-05-13 08:26:56547 if (enable_app_list) {
dprankefd1813272015-04-13 23:56:00548 deps += [ "//ui/app_list:app_list_demo" ]
549 }
dprankedb5527d72015-03-08 04:22:47550
551 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44552 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59553 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44554 }
dprankedb5527d72015-03-08 04:22:47555 }
556 }
557
558 if (is_mac) {
559 deps += [
560 "//breakpad:crash_inspector",
561 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44562 "//third_party/apple_sample_code",
563 "//third_party/molokocacao",
564 ]
dpranke43760592014-11-08 02:59:57565 deps -= [
brettw011138d2015-10-21 03:05:38566 # Mojo in GN contains some things which are never compiled in GYP on Mac,
567 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10568 "//mojo",
mohsen29fd4052014-12-08 21:06:46569 ]
dprankefd1813272015-04-13 23:56:00570 }
571
572 if (is_win) {
573 deps += [
574 "//base:pe_image_test",
anantaf2e54a92016-05-28 00:39:16575 "//chrome/install_static:install_static_unittests",
grt734e87b2015-07-06 19:36:43576 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00577 "//chrome_elf:chrome_elf_unittests",
578 "//chrome_elf:dll_hash_main",
dprankefd1813272015-04-13 23:56:00579 "//components/wifi:wifi_test",
580 "//net:quic_client",
581 "//net:quic_server",
582 "//sandbox/win:pocdll",
583 "//sandbox/win:sandbox_poc",
584 "//sandbox/win:sbox_integration_tests",
585 "//sandbox/win:sbox_unittests",
586 "//sandbox/win:sbox_validation_tests",
587 "//testing/gtest:gtest_main",
588 "//third_party/codesighs:msmap2tsv",
589 "//third_party/pdfium/samples:pdfium_diff",
dprankefd1813272015-04-13 23:56:00590 ]
dprankee2ef3822015-02-24 21:42:18591 deps -= [
592 "//crypto:crypto_unittests", # TODO(GYP)
593 "//net:net_unittests", # TODO(GYP)
594 ]
fdorayfb048bff2016-04-28 22:07:36595
596 if (!(is_component_build && is_debug && target_cpu == "x86")) {
597 deps +=
598 [ "//chrome/installer/mini_installer:next_version_mini_installer" ]
599 }
sherouk53f0f1a2015-08-03 15:59:35600 } else if (!is_android && !is_ios) {
miu45b848fe2015-11-26 01:23:29601 deps += [ "//breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34602 }
rsesek985bd812016-04-26 21:06:15603
slance9d62f2015-11-04 01:15:01604 if (is_chromecast) {
605 deps += [ "//chromecast:cast_shell" ]
606 }
miu45b848fe2015-11-26 01:23:29607
dpranked43eab42015-12-15 23:10:44608 if (is_mac) { # TODO(GYP) || is_ios
miu45b848fe2015-11-26 01:23:29609 deps += [ "//media/cast:cast_h264_vt_encoder_unittests" ]
610 }
hbos17a7b4a22015-12-07 10:49:45611
rsesek985bd812016-04-26 21:06:15612 if (is_mac || is_win) {
613 deps += [
614 "//third_party/crashpad/crashpad/handler:crashpad_handler",
615 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
616 ]
617 }
618
hbos17a7b4a22015-12-07 10:49:45619 if (use_openh264) {
620 deps += [
621 "//third_party/openh264:common",
622 "//third_party/openh264:encoder",
623 "//third_party/openh264:processing",
624 ]
625 }
dpranke18e57432015-02-27 21:46:47626}
627
dpranked62d8512015-03-02 03:06:03628group("gn_only") {
dprankedb5527d72015-03-08 04:22:47629 testonly = true
630
dpranke2a294622015-08-07 05:23:01631 deps = []
632
amistry4dcd7c42015-12-16 04:53:10633 if (!is_ios) {
634 deps += [ "//mojo/common:mojo_common_perftests" ]
635 }
636
scheib35dc9202016-04-26 22:35:43637 if (!is_android && !is_ios) {
638 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
639 }
640
dpranke244f9732015-11-20 05:38:10641 if (!is_android && !is_ios && !is_chromeos) {
isherman0f89b43eb2015-04-11 00:02:45642 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
643 }
644
ben8f4e95ad2015-12-01 18:35:58645 if (is_win || is_linux) {
sky70471b22016-01-14 16:20:54646 deps += [
kylecharbd601e5a2016-03-31 13:11:35647 "//components/mus/demo",
rockot6a2b0422016-03-09 17:14:59648 "//components/mus/ws:tests",
sky70471b22016-01-14 16:20:54649 "//mash:all",
bena5d1cd42016-04-29 22:59:53650 "//media/mojo/services:media_mojo_shell_unittests",
skyfcde3a42016-02-09 20:27:44651 "//mojo",
benee648f62016-05-12 23:04:50652 "//services/navigation",
qyearsley88bc4802016-05-17 18:02:34653 "//ui/views/mus:views_mus_interactive_ui_tests",
bena5d1cd42016-04-29 22:59:53654 "//ui/views/mus:views_mus_unittests",
sky70471b22016-01-14 16:20:54655 ]
sky97b65592015-11-02 20:08:25656 }
657
stevenjb7b6fd642016-05-18 18:15:30658 if (is_linux && !is_chromeos && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47659 # TODO(GYP): Figure out if any of these should be in gn_all
660 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45661 deps += [
dprankedb5527d72015-03-08 04:22:47662 ":gn_mojo_targets",
663 "//chrome/browser/resources:extension_resource_demo",
664 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47665 "//chrome/tools/convert_dict",
666 "//components/constrained_window:unit_tests",
erg4652931e2016-04-27 22:15:40667 "//components/filesystem:filesystem_service_unittests",
ergf1f689f2016-03-22 00:51:20668 "//components/leveldb:leveldb_service_unittests",
dprankedb5527d72015-03-08 04:22:47669 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45670 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47671 "//components/rappor:unit_tests",
672 "//components/sessions:unit_tests",
673 "//media/blink:media_blink_unittests",
stevenjb7b6fd642016-05-18 18:15:30674 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47675 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
676 "//storage/browser:dump_file_system",
677 "//third_party/angle:libANGLE",
678 "//third_party/angle:libEGL",
679 "//third_party/angle:libGLESv2",
680 "//third_party/cld_2:cld_2_dynamic_data_tool",
681 "//third_party/leveldatabase:leveldb_arena_test",
682 "//third_party/leveldatabase:leveldb_bloom_test",
dprankedb5527d72015-03-08 04:22:47683 "//third_party/leveldatabase:leveldb_cache_test",
dprankedb5527d72015-03-08 04:22:47684 "//third_party/leveldatabase:leveldb_corruption_test",
dpranke244f9732015-11-20 05:38:10685 "//third_party/leveldatabase:leveldb_crc32c_test",
686 "//third_party/leveldatabase:leveldb_db_bench",
687 "//third_party/leveldatabase:leveldb_db_test",
dprankedb5527d72015-03-08 04:22:47688 "//third_party/leveldatabase:leveldb_dbformat_test",
dpranke244f9732015-11-20 05:38:10689 "//third_party/leveldatabase:leveldb_env_test",
690 "//third_party/leveldatabase:leveldb_filename_test",
691 "//third_party/leveldatabase:leveldb_filter_block_test",
692 "//third_party/leveldatabase:leveldb_log_test",
693 "//third_party/leveldatabase:leveldb_skiplist_test",
694 "//third_party/leveldatabase:leveldb_table_test",
695 "//third_party/leveldatabase:leveldb_version_edit_test",
696 "//third_party/leveldatabase:leveldb_write_batch_test",
dprankedb5527d72015-03-08 04:22:47697 "//third_party/libjpeg_turbo:simd",
dpranke244f9732015-11-20 05:38:10698 "//third_party/libsrtp:rdbx_driver",
dprankedb5527d72015-03-08 04:22:47699 "//third_party/libsrtp:replay_driver",
700 "//third_party/libsrtp:roc_driver",
701 "//third_party/libsrtp:rtpw",
dprankedb5527d72015-03-08 04:22:47702 "//third_party/libsrtp:srtp_driver",
703 "//third_party/libsrtp:srtp_driver",
dpranke244f9732015-11-20 05:38:10704 "//third_party/libsrtp:srtp_test_aes_calc",
dprankedb5527d72015-03-08 04:22:47705 "//third_party/libsrtp:srtp_test_cipher_driver",
706 "//third_party/libsrtp:srtp_test_datatypes_driver",
dprankedb5527d72015-03-08 04:22:47707 "//third_party/libsrtp:srtp_test_env",
dpranke244f9732015-11-20 05:38:10708 "//third_party/libsrtp:srtp_test_kernel_driver",
dprankedb5527d72015-03-08 04:22:47709 "//third_party/libsrtp:srtp_test_rand_gen",
710 "//third_party/libsrtp:srtp_test_sha1_driver",
711 "//third_party/libsrtp:srtp_test_stat_driver",
712 "//third_party/opus:opus_compare",
713 "//third_party/opus:opus_demo",
dpranke244f9732015-11-20 05:38:10714 "//third_party/opus:test_opus_api",
dprankedb5527d72015-03-08 04:22:47715 "//third_party/opus:test_opus_decode",
716 "//third_party/opus:test_opus_encode",
dprankedb5527d72015-03-08 04:22:47717 "//third_party/opus:test_opus_padding",
dpranke244f9732015-11-20 05:38:10718 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47719 "//third_party/webrtc/system_wrappers:field_trial_default",
720 "//third_party/webrtc/system_wrappers:metrics_default",
721 "//ui/display/types",
722 "//ui/shell_dialogs:shell_dialogs_unittests",
723 "//ui/views/examples:views_examples_exe",
dprankedb5527d72015-03-08 04:22:47724 ]
dprankeb0713542015-07-31 21:07:21725
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16726 if (target_cpu == "x86" || target_cpu == "x64") {
agrieve473155b2015-12-28 20:23:11727 if (!is_android) {
728 deps += [ "//chrome/test:load_library_perf_tests" ]
729 }
mcgrathr916aafa2015-09-15 00:06:53730 deps += [
mcgrathr916aafa2015-09-15 00:06:53731 "//native_client/src/trusted/platform_qualify:vcpuid",
dpranke244f9732015-11-20 05:38:10732 "//third_party/libjpeg_turbo:simd_asm",
mcgrathr916aafa2015-09-15 00:06:53733 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16734 }
dpranke807f6022015-03-17 23:20:56735 if (is_linux && current_toolchain == host_toolchain) {
jochen11513aa02016-05-11 09:59:51736 deps += [ "//v8:v8_shell" ]
dpranke807f6022015-03-17 23:20:56737 }
aizatskye9aba582016-03-25 22:37:16738 }
739
spang324dc57a2016-04-06 14:54:08740 if (use_ozone) {
741 deps += [ "//ui/ozone/demo" ]
742 }
743
aizatskyaf496112016-04-15 19:26:32744 if ((is_linux && !is_chromeos && !is_chromecast) || (is_win && use_drfuzz) ||
745 (use_libfuzzer && is_mac)) {
746 deps += [
747 "//testing/libfuzzer/fuzzers",
748 "//testing/libfuzzer/tests:libfuzzer_tests",
aizatsky3f560172016-06-03 23:26:06749 "//third_party/icu/fuzzers",
aizatskyaf496112016-04-15 19:26:32750 ]
751 }
752
sbc92b4d572016-02-18 03:28:23753 if (enable_nacl) {
754 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
755 }
756
agrieve473155b2015-12-28 20:23:11757 if (is_android) {
758 deps += [
759 "//build/android/gyp/test:hello_world",
760 "//build/android/incremental_install:bootstrap_java",
761 ]
nyquistb5f050b2015-09-10 05:10:35762 }
763
skyostilfe116162016-02-26 20:53:33764 if (is_linux && use_ozone) {
765 deps += [
766 "//headless",
767 "//headless:headless_tests",
768 ]
769 }
770
agrieve473155b2015-12-28 20:23:11771 if (!is_chromecast && (is_android || is_linux || is_chromeos)) {
772 deps += [
773 "//blimp",
774 "//blimp:blimp_tests",
aizatskyddefc992015-11-20 08:42:03775 ]
aizatskyfc46a9f2015-10-09 21:20:08776 }
dprankedb5527d72015-03-08 04:22:47777}
778
779group("gn_mojo_targets") {
780 testonly = true
781 if (is_linux && !is_chromeos) {
782 # TODO(GYP): Figure out if any of these should be in gn_all
783 # and figure out how cross-platform they are
784 deps = [
dprankedb5527d72015-03-08 04:22:47785 "//ipc/mojo:ipc_mojo_perftests",
dprankedb5527d72015-03-08 04:22:47786 "//media/mojo:tests",
xhwangd3b5d3f2016-05-18 03:37:59787 "//media/mojo/services",
msw1bb9c6c2015-05-06 21:35:44788 "//mojo:tests",
dprankedb5527d72015-03-08 04:22:47789 ]
dprankedb5527d72015-03-08 04:22:47790 }
791}
792
793group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03794 deps = [
dprankeb6128d02015-05-01 16:40:30795 "//build/config/sanitizers:options_sources",
dprankedb5527d72015-03-08 04:22:47796 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
797 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dpranked62d8512015-03-02 03:06:03798 ]
dpranked2fb5222015-09-10 22:39:05799
800 if (!is_ios) {
801 deps += [
dpranked2fb5222015-09-10 22:39:05802 "//v8:postmortem-metadata",
dpranke244f9732015-11-20 05:38:10803 "//v8:v8_snapshot",
dpranked2fb5222015-09-10 22:39:05804 ]
805 }
dpranked62d8512015-03-02 03:06:03806}
807
tfarinacb2638b2015-05-12 03:24:15808if (!is_ios) {
809 # This group includes all of the targets needed to build and test Blink,
810 # including running the layout tests (see below).
811 group("blink_tests") {
812 testonly = true
813
814 deps = [
agrieve993374cf2016-04-13 00:05:39815 "//content/shell:content_shell",
tfarinacb2638b2015-05-12 03:24:15816 "//third_party/WebKit/public:all_blink",
agrieve993374cf2016-04-13 00:05:39817 "//tools/imagediff",
tfarinacb2638b2015-05-12 03:24:15818 ]
819
820 # NOTE: The following deps are needed to run the layout tests
821 # (run-webkit-tests) but there is no GN target for the layout tests,
822 # so we need to specify the dependencies here instead.
823 if (is_android) {
824 deps += [
agrieve62ab00282016-04-05 02:03:45825 "//breakpad:breakpad_unittests",
agrieve993374cf2016-04-13 00:05:39826 "//breakpad:dump_syms",
827 "//breakpad:microdump_stackwalk",
828 "//breakpad:minidump_dump",
829 "//breakpad:minidump_stackwalk",
830 "//breakpad:symupload",
831 "//tools/android/forwarder",
ojan94989c72015-07-17 21:56:42832 ]
tfarinacb2638b2015-05-12 03:24:15833 }
834
835 if (is_win) {
836 deps += [
jochen73e711c2015-06-03 10:01:46837 "//components/test_runner:layout_test_helper",
brettw0d3b1df2015-12-03 00:10:01838 "//content/shell:content_shell_crash_service",
tfarinacb2638b2015-05-12 03:24:15839 ]
840 }
841
842 if (!is_win && !is_android) {
Gordana.Cmiljanovicf243e9a2015-05-26 22:14:47843 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15844 }
845
846 if (is_mac) {
847 deps += [
848 "//breakpad:dump_syms($host_toolchain)",
jochen73e711c2015-06-03 10:01:46849 "//components/test_runner:layout_test_helper",
tfarinacb2638b2015-05-12 03:24:15850 ]
851 }
852
853 if (is_linux) {
854 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
855 }
856 }
857}
858
dpranke6abd8652015-08-28 03:21:11859# Add a dummy target for compatibility w/ GYP
860group("chromium_swarm_tests") {
861}
862
dpranke2302dfa2015-09-29 02:21:52863group("chromium_builder_perf") {
864 testonly = true
865
866 # TODO(GYP): Make this target work on the mac.
867 if (!is_ios && !is_android && !is_chromecast && !is_mac) {
868 deps = [
869 "//cc:cc_perftests",
dpranke2302dfa2015-09-29 02:21:52870 "//chrome/test:load_library_perf_tests",
871 "//chrome/test:sync_performance_tests",
872 "//gpu:gpu_perftests",
873 "//media:media_perftests",
874 "//media/midi:midi_unittests",
kbr1e58e782016-05-27 17:21:19875 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
dpranke2302dfa2015-09-29 02:21:52876 ]
877
878 if (!is_chromeos) {
879 deps += [ "//chrome/test:performance_browser_tests" ]
880 }
881 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:04882 if (is_official_build) {
883 # In GN builds, this is controlled by the 'linux_dump_symbols'
884 # flag, which defaults to 1 for official builds. For now,
885 # we skip the separate flag and just key off of is_official_build.
886 deps += [ "//chrome:linux_symbols" ]
887 }
dpranke2302dfa2015-09-29 02:21:52888
889 if (!is_chromeos) {
890 deps += [ "//tools/perf/clear_system_cache" ]
891 }
892 }
893
894 if (is_win) {
895 deps += [
dpranke2302dfa2015-09-29 02:21:52896 # "//gpu:angle_perftests", TODO(GYP): crbug.com/537008
hansa3d3aa4d2016-05-04 22:12:52897 "//chrome/installer/mini_installer:mini_installer",
dpranke2302dfa2015-09-29 02:21:52898 ]
dpranke2302dfa2015-09-29 02:21:52899 } else {
dprankeec10b3932015-10-02 17:58:23900 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52901 }
902 }
903}
agrieve017b91f2016-02-29 20:15:06904
brettw6df3e8c2016-04-14 21:07:13905# For compatibility with GYP. The linux_chromium_chromeos_rel_ng and
906# linux_chromium_chromeos_compile_rel_ng bots reference this target as
907# something to build, but all targets for those bots to compile are set
908# up differently.
909# TODO bug 601920: Remove reference to aura_builder on bot config and delete
910# this group.
911group("aura_builder") {
912}
913
agrieve95ba4442016-04-25 15:47:13914if (is_android) {
915 group("optimize_gn_gen") {
916 deps = [
917 # These run expensive scripts in non-default toolchains. Generally, host
918 # toolchain targets are loaded in the later part of the run, and the
919 # result is they push out the end of generation. By preloading these, the
920 # scripts can be parallelized with the rest of the load.
921 "//build/config/linux(//build/toolchain/linux:clang_x64)",
922 "//build/config/posix(//build/toolchain/linux:clang_x64)",
923
924 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot
925 # generation.
926 "//build/config/linux(//build/toolchain/linux:clang_x86)",
927 "//build/config/posix(//build/toolchain/linux:clang_x86)",
928 ]
929 }
930}
931
agrieve017b91f2016-02-29 20:15:06932# Because of the source assignment filter, many targets end up over-filtering
933# their sources if the output directory contains a platform name. Assert that
934# this doesn't happen. http://crbug.com/548283
935template("assert_valid_out_dir") {
936 # List copied from //build/config/BUILDCONFIG.gn.
937 set_sources_assignment_filter([
938 "*\bandroid/*",
939 "*\bchromeos/*",
940 "*\bcocoa/*",
941 "*\bios/*",
942 "*\blinux/*",
943 "*\bmac/*",
944 "*\bposix/*",
945 "*\bwin/*",
946 ])
947 assert(target_name != "") # Mark as used.
948 sources = invoker.actual_sources
949 assert(
950 sources == invoker.actual_sources,
951 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
952}
953
954assert_valid_out_dir("_unused") {
955 actual_sources = [ "$root_build_dir/foo" ]
956}