blob: ad3070b1374a864b87eb9a4eae8b940d188ab32b [file] [log] [blame]
[email protected]f0e7ff882013-12-26 21:23:091# Copyright (c) 2013 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5# This is the root build file for GN. GN will start processing by loading this
6# file, and recursively load all dependencies until all dependencies are either
7# resolved or known not to exist (which will cause the build to fail). So if
8# you add a new build file, there must be some path of dependencies from this
9# file to your new one or GN won't know about it.
10
rockot2f1326e2015-02-23 23:53:5111import("//build/config/features.gni")
aizatskyfc46a9f2015-10-09 21:20:0812import("//build/config/sanitizers/sanitizers.gni")
[email protected]378b4f02014-06-10 15:58:4513import("//build/config/ui.gni")
dpranked4da5ab42015-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}
[email protected]378b4f02014-06-10 15:58:4521
brettwb84b29472014-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") {
62 testonly = true
63
64 deps = [
dprankeddc174902015-04-29 01:38:3565 ":both_gn_and_gyp",
66 ":gn_only",
dprankeb6128d02015-05-01 16:40:3067 ":gn_visibility",
dprankeddc174902015-04-29 01:38:3568 ]
69}
70
brettwf9427f92016-05-05 23:18:5571# TODO(GYP_GONE): This target exists for compatibility with GYP, specifically
dprankeef9c5e582015-11-15 23:22:0872# for the iOS bots and the official builders.
73group("All") {
74 testonly = true
75
76 deps = [
77 ":gn_all",
78 ]
79}
80
brettwf9427f92016-05-05 23:18:5581# TODO(GYP_GONE): This target exists for compatibility with GYP for the
82# builders. For now, this builds everything. We should decide if we want to
83# build less.
Dirk Prankef00b78b2016-04-18 23:59:2084group("chromium_builder_tests") {
85 testonly = true
86
87 deps = [
88 ":All",
89 ]
90}
91
dprankef92633b2016-04-28 04:33:3492if (is_chromeos) {
93 group("chromiumos_preflight") {
94 testonly = true
95 deps = [
96 "//breakpad:minidump_stackwalk($host_toolchain)",
97 "//chrome",
98 "//chrome/test/chromedriver",
dprankef92633b2016-04-28 04:33:3499 "//media:media_unittests",
markdittmer6e70beb82016-05-02 05:40:47100 "//media/gpu:video_decode_accelerator_unittest",
101 "//media/gpu:video_encode_accelerator_unittest",
dprankef92633b2016-04-28 04:33:34102 "//ppapi/examples/video_decode",
103 "//sandbox/linux:chrome_sandbox",
104 "//sandbox/linux:sandbox_linux_unittests",
105
stevenjbd570b1f2016-04-29 22:57:36106 # Blocked on https://github.com/catapult-project/catapult/issues/2297
dprankef92633b2016-04-28 04:33:34107 #"//third_party/catapult/telemetry:bitmaptools",
dprankef92633b2016-04-28 04:33:34108 "//tools/perf/clear_system_cache",
109 ]
110 }
111}
112
dprankeddc174902015-04-29 01:38:35113# The "both_gn_and_gyp" target should reflect every target that is built
114# in both the GN and GYP builds, and ideally it should match the
115# "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line.
dprankeddc174902015-04-29 01:38:35116group("both_gn_and_gyp") {
117 testonly = true
dprankeddc174902015-04-29 01:38:35118 deps = [
dprankee2ef3822015-02-24 21:42:18119 "//base:base_unittests",
brettwa874dcc2015-08-28 23:59:18120 "//chrome/installer",
sheroukdc35ba272015-09-22 14:09:37121 "//components:components_unittests",
sheroukce1c7d72015-08-24 15:21:59122 "//net:net_unittests",
sherouk2866d662015-08-24 16:29:44123 "//skia:skia_unittests",
brettwa874dcc2015-08-28 23:59:18124 "//sql:sql_unittests",
sherouk3eee4a82015-09-01 10:42:33125 "//sync:sync_unit_tests",
ochangcc11d0e2016-04-26 19:58:26126 "//tools/ipc_fuzzer:ipc_fuzzer_all",
sherouk4fb74d42015-08-24 15:58:41127 "//ui/base:ui_base_unittests",
sherouk84a45ff2015-09-01 13:31:39128 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:41129 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:18130 ]
dpranke2a294622015-08-07 05:23:01131
sdefresne21832bf92016-03-30 22:01:02132 if (!is_android && !is_chromecast) {
133 deps += [
134 "//crypto:crypto_unittests",
135 "//google_apis/gcm:gcm_unit_tests",
136 ]
137 }
138
slance9d62f2015-11-04 01:15:01139 if (!is_ios && !is_android && !is_chromecast) {
sherouk53f0f1a2015-08-03 15:59:35140 deps += [
sherouk53f0f1a2015-08-03 15:59:35141 "//chrome",
142 "//chrome/test:browser_tests",
143 "//chrome/test:interactive_ui_tests",
144 "//chrome/test:sync_integration_tests",
sherouk53f0f1a2015-08-03 15:59:35145 "//chrome/test/chromedriver:chromedriver_unittests",
sherouk53f0f1a2015-08-03 15:59:35146 "//extensions:extensions_browsertests",
147 "//extensions:extensions_unittests",
dprankedbdd9d82015-08-12 21:18:18148 "//gpu/gles2_conform_support:gles2_conform_test",
stevenjb604316362016-05-06 22:10:26149 "//gpu/khronos_glcts_support:khronos_glcts_test",
sherouk53f0f1a2015-08-03 15:59:35150 "//jingle:jingle_unittests",
sherouk53f0f1a2015-08-03 15:59:35151 "//net:hpack_example_generator",
152 "//net:hpack_fuzz_mutator",
153 "//net:hpack_fuzz_wrapper",
sherouk53f0f1a2015-08-03 15:59:35154 "//ppapi:ppapi_unittests",
155 "//ppapi/examples/2d",
156 "//ppapi/examples/audio",
157 "//ppapi/examples/audio_input",
158 "//ppapi/examples/compositor",
159 "//ppapi/examples/crxfs",
160 "//ppapi/examples/enumerate_devices",
161 "//ppapi/examples/file_chooser",
162 "//ppapi/examples/flash_topmost",
163 "//ppapi/examples/font",
164 "//ppapi/examples/gamepad",
165 "//ppapi/examples/gles2",
166 "//ppapi/examples/gles2_spinning_cube",
167 "//ppapi/examples/ime",
168 "//ppapi/examples/input",
169 "//ppapi/examples/media_stream_audio",
170 "//ppapi/examples/media_stream_video",
171 "//ppapi/examples/mouse_cursor",
172 "//ppapi/examples/mouse_lock",
173 "//ppapi/examples/printing",
174 "//ppapi/examples/scaling",
175 "//ppapi/examples/scripting",
176 "//ppapi/examples/stub",
177 "//ppapi/examples/threading",
178 "//ppapi/examples/url_loader",
179 "//ppapi/examples/video_capture",
180 "//ppapi/examples/video_decode",
181 "//ppapi/examples/video_effects",
182 "//ppapi/examples/video_encode",
183 "//printing:printing_unittests",
sherouk53f0f1a2015-08-03 15:59:35184 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
185 "//third_party/codesighs",
pkotwicz558d5252015-10-19 21:09:55186 "//third_party/pdfium/samples:pdfium_test",
charliea00055282016-01-26 00:15:15187 "//tools/battor_agent",
charliea5daef2bb2016-01-29 00:13:25188 "//tools/battor_agent:battor_agent_unittests",
pkotwicz558d5252015-10-19 21:09:55189 "//tools/gn",
dpranke244f973d62015-11-20 05:38:10190 "//tools/gn:gn_unittests",
pkotwicz558d5252015-10-19 21:09:55191 "//tools/perf/clear_system_cache",
192 "//ui/accessibility:accessibility_unittests",
pkotwicz558d5252015-10-19 21:09:55193 ]
194 }
195
196 if (!is_ios) {
197 # TODO(GYP): Figure out which of these should actually build on iOS,
198 # and whether there should be other targets that are iOS-only and missing.
199 deps += [
200 "//cc:cc_unittests",
201 "//chrome/test:unit_tests",
202 "//components:components_browsertests",
203 "//content/shell:content_shell",
204 "//content/test:content_browsertests",
205 "//content/test:content_perftests",
206 "//content/test:content_unittests",
207 "//device:device_unittests",
208 "//gpu:gpu_unittests",
markdittmerd88b8352016-04-08 15:28:45209 "//gpu/ipc/service:gpu_ipc_service_unittests",
pkotwicz558d5252015-10-19 21:09:55210 "//ipc:ipc_tests",
211 "//ipc/mojo:ipc_mojo_unittests",
212 "//media:media_unittests",
miu45b848fe2015-11-26 01:23:29213 "//media/cast:cast_unittests",
pkotwicz558d5252015-10-19 21:09:55214 "//media/midi:midi_unittests",
215 "//mojo",
pkotwicz558d5252015-10-19 21:09:55216 "//mojo/common:mojo_common_unittests",
rockotc637caf9b2016-02-10 09:57:08217 "//mojo/edk/system:mojo_system_unittests",
218 "//mojo/edk/test:mojo_public_bindings_unittests",
rockotc637caf9b2016-02-10 09:57:08219 "//mojo/edk/test:mojo_public_system_unittests",
pkotwicz558d5252015-10-19 21:09:55220 "//net:net_perftests",
benf709a3092016-04-12 22:38:22221 "//services/shell/public/cpp",
Dirk Pranke49802732015-12-10 01:36:41222 "//third_party/WebKit/Source/platform:blink_heap_unittests",
223 "//third_party/WebKit/Source/platform:blink_platform_unittests",
dpranke244f973d62015-11-20 05:38:10224 "//third_party/WebKit/Source/web:webkit_unit_tests",
225 "//third_party/WebKit/Source/wtf:wtf_unittests",
nednguyenc42bf912016-01-27 01:39:28226 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35227 "//third_party/smhasher:pmurhash",
228 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35229 "//ui/display:display_unittests",
230 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35231 "//ui/gl:gl_unittests",
232 "//ui/touch_selection:ui_touch_selection_unittests",
markdittmer67b71ea2016-03-03 22:40:03233 "//url/ipc:url_ipc_unittests",
sherouk53f0f1a2015-08-03 15:59:35234 ]
sdefresne998e8582015-10-07 13:36:45235 } else {
sdefresnea378b452015-10-08 09:55:58236 deps += [
sdefresne3bdd5632016-03-26 00:06:26237 "//ios/chrome:ios_chrome_unittests",
238 "//ios/chrome/app",
239 "//ios/chrome/browser",
dpranke0e5462ce2016-02-23 19:57:46240 "//ios/chrome/common",
sdefresnea378b452015-10-08 09:55:58241 "//ios/net:ios_net_unittests",
dpranke0e5462ce2016-02-23 19:57:46242 "//ios/public/provider/chrome/browser",
sdefresne89308c92015-11-16 10:40:34243 "//ios/public/provider/web",
sdefresnec6ddd7ac2015-10-09 17:30:19244 "//ios/testing:ocmock_support_unittest",
sdefresne22de3c92016-04-14 08:51:10245 "//ios/third_party/earl_grey",
sdefresne44b76fd2016-03-31 02:37:37246 "//ios/web:ios_web_inttests",
sdefresneaa7c1cf2015-10-22 00:41:11247 "//ios/web:ios_web_unittests",
dpranke244f973d62015-11-20 05:38:10248 "//ios/web/shell:ios_web_shell",
sdefresnea378b452015-10-08 09:55:58249 ]
sherouk53f0f1a2015-08-03 15:59:35250 }
dprankee2ef3822015-02-24 21:42:18251
scottmg34fb7e52014-12-03 23:27:24252 deps += root_extra_deps
[email protected]fce5c3fe2014-04-10 21:13:05253
tfarina4aa9edc2015-10-26 22:14:02254 if (enable_extensions) {
rockot2f1326e2015-02-23 23:53:51255 deps += [ "//extensions/shell:app_shell_unittests" ]
256 }
257
dprankefd1813272015-04-13 23:56:00258 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55259 deps += [ "//chrome/browser/media/router" ]
dprankefd1813272015-04-13 23:56:00260 }
261
garykac3eddb5b2015-04-17 23:16:38262 if (enable_remoting) {
263 deps += [ "//remoting:remoting_all" ]
dprankece5eb832015-04-01 20:21:05264 }
265
dprankee2ef3822015-02-24 21:42:18266 if (toolkit_views) {
267 deps += [ "//ui/views:views_unittests" ]
James Robinson060f2e32014-09-10 22:31:37268 }
269
dprankee2ef3822015-02-24 21:42:18270 if (use_aura) {
mswda0133e62016-02-16 20:50:02271 deps += [
272 "//ash:ash_shell_with_content",
273 "//ash:ash_unittests",
tapted87ca2d62016-05-19 20:48:49274 "//ui/app_list:app_list_unittests",
275 "//ui/app_list/presenter:app_list_presenter_unittests",
mswda0133e62016-02-16 20:50:02276 "//ui/aura:aura_unittests",
mswda0133e62016-02-16 20:50:02277 "//ui/aura:demo",
278 "//ui/wm:wm_unittests",
279 ]
dprankee2ef3822015-02-24 21:42:18280 }
281
282 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47283 deps += [ "//ui/ozone" ]
[email protected]a306aaa2014-05-24 13:21:50284 }
285
dprankefd1813272015-04-13 23:56:00286 if (use_x11) {
287 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22288 }
289
tmoniuszkoe5578b922015-04-14 09:38:03290 if (enable_configuration_policy) {
291 deps += [ "//components/policy:policy_templates" ]
292 }
293
dprankefd1813272015-04-13 23:56:00294 if (v8_use_external_startup_data) {
295 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
[email protected]2d6893a2014-06-02 19:16:36296 }
297
brettw66e3feab2015-07-20 23:52:22298 if (is_win) {
brettwf986f9572015-10-07 17:18:15299 deps += [
300 "//chrome/installer/gcapi",
301 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
302 ]
brettw66e3feab2015-07-20 23:52:22303 }
304
[email protected]5a8d5162014-04-12 01:19:16305 if (is_android) {
[email protected]26046b52014-07-16 00:11:03306 deps += [
pkotwicze2dae8b2015-11-03 20:12:55307 "//base:base_junit_tests",
dpranke244f973d62015-11-20 05:38:10308 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38309 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02310 "//build/android/rezip",
pkotwicz2dd67962016-05-10 00:21:08311 "//chrome/android/webapk/shell_apk:webapk",
pkotwicze2dae8b2015-11-03 20:12:55312 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
313 "//components/policy/android:components_policy_junit_tests",
314 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45315 "//content/shell/android:content_shell_apk",
markdittmer6e70beb82016-05-02 05:40:47316 "//media/gpu:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55317 "//net/android:net_junit_tests",
jbudorick5ef42902016-04-07 04:17:11318 "//testing/android/junit:junit_unit_tests",
agrieve40ba6862015-07-15 02:09:05319 "//third_party/errorprone:chromium_errorprone",
pkotwicz8adff4e2015-12-17 21:55:45320 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10321 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49322 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34323 "//tools/android:push_apps_to_background",
pkotwicz8b9d18c2015-10-05 01:59:33324 "//tools/android/heap_profiler:heap_profiler_unittests",
dgn28050da2015-10-19 10:16:43325 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
pkotwicz077093762015-12-21 16:47:15326 "//tools/cygprofile:cygprofile_unittests",
newt9e226032016-01-26 01:30:15327 "//ui/android:ui_junit_tests",
dprankee2ef3822015-02-24 21:42:18328 ]
329 deps -= [
rockot9c67e5f2015-03-12 20:01:21330 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18331 "//url:url_unittests",
[email protected]26046b52014-07-16 00:11:03332 ]
333
pkotwicz92e2e2312015-12-15 22:29:46334 if (!is_component_build) {
335 deps += [
agrievee23386b2016-01-05 04:47:58336 "//components/cronet/android:cronet_package",
pkotwicz92e2e2312015-12-15 22:29:46337 "//components/cronet/android:cronet_sample_apk",
338 "//components/cronet/android:cronet_sample_test_apk",
339 "//components/cronet/android:cronet_test_apk",
340 "//components/cronet/android:cronet_test_instrumentation_apk",
341 "//components/cronet/android:cronet_unittests",
342 ]
343 }
344
pkotwicz061c5a42015-09-30 02:16:54345 if (!is_chromecast) {
346 deps += [
michaelbaicbcc7e62015-11-12 04:29:53347 "//android_webview",
agrieveb08e2f5b2015-12-29 01:17:30348 "//android_webview/test",
mikecase49971fc2016-03-21 21:18:05349 "//android_webview/tools/system_webview_shell",
pkotwicze2dae8b2015-11-03 20:12:55350 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54351 "//chrome/android:chrome_public_apk",
352 "//chrome/android:chrome_public_test_apk",
353 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b42015-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") {
360 deps += [ "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)" ]
361 }
362
cjhopmanca675d3e2014-10-24 03:50:45363 if (has_chrome_android_internal) {
brettwf9427f92016-05-05 23:18:55364 deps += [ "//clank" ]
cjhopmanca675d3e2014-10-24 03:50:45365 }
dprankedb5527d72015-03-08 04:22:47366 }
367
brettwf9427f92016-05-05 23:18:55368 if (is_linux || is_android) {
dprankefd1813272015-04-13 23:56:00369 deps += [
pkotwicza4d233b22015-11-02 18:20:38370 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00371 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38372 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00373 "//breakpad:minidump-2-core",
374 ]
375 }
376
dpranke6293d252015-04-14 19:12:00377 if (is_chromeos) {
378 deps += [
379 "//chromeos:chromeos_unittests",
yoshiki8e2ddbb2016-03-10 07:11:22380 "//ui/arc:ui_arc_unittests",
dpranke6293d252015-04-14 19:12:00381 "//ui/chromeos:ui_chromeos_unittests",
382 ]
383 }
384
dprankefd1813272015-04-13 23:56:00385 if (is_chromeos || is_mac || is_win) {
386 deps += [
387 "//rlz:rlz_id",
388 "//rlz:rlz_lib",
389 "//rlz:rlz_unittests",
390 ]
391 }
392
dprankedb5527d72015-03-08 04:22:47393 if (is_linux) {
394 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06395 deps += [
dpranke2bc89212015-11-18 00:24:43396 "//chrome:manpage",
397 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47398 "//dbus:dbus_test_server",
dprankee2ef3822015-02-24 21:42:18399 "//dbus:dbus_unittests",
dprankedb5527d72015-03-08 04:22:47400 "//net:disk_cache_memory_test",
401 "//net:flip_in_mem_edsm_server",
402 "//net:flip_in_mem_edsm_server_unittests",
403 "//net:quic_client",
404 "//net:quic_server",
405 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18406 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06407 ]
dnicoara8c6aa8e2015-03-11 23:20:32408
409 if (is_chromeos || use_ash) {
410 deps += [ "//components/session_manager/core" ]
411 }
dpranke2bc89212015-11-18 00:24:43412
413 if (is_chrome_branded && is_official_build) {
414 # TODO(dpranke): add the linux_dump_symbols flag?
415 deps += [ "//chrome:linux_symbols" ]
416 }
dprankedb5527d72015-03-08 04:22:47417 }
418
sherouke1859f92015-08-05 10:19:10419 if (is_ios || is_win || (is_linux && !is_chromeos)) {
420 deps += [
421 "//base:base_i18n_perftests",
422 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58423 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10424 ]
425 }
426
stevenjb7b6fd642016-05-18 18:15:30427 if (is_android || is_win || (is_linux && !is_chromeos)) {
tfarina9e7cf702015-02-23 21:13:44428 deps += [
dprankedb5527d72015-03-08 04:22:47429 "//base:build_utf8_validator_tables",
dpranke244f973d62015-11-20 05:38:10430 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47431 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00432 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47433 "//components:components_perftests",
dprankedb5527d72015-03-08 04:22:47434 "//device:device_unittests",
435 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47436 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47437 "//google_apis/gcm:mcs_probe",
dprankefd1813272015-04-13 23:56:00438 "//gpu:gl_tests",
dpranke244f973d62015-11-20 05:38:10439 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47440 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47441 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00442 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47443 "//sync:run_sync_testserver",
dprankedb5527d72015-03-08 04:22:47444 "//third_party/codesighs:maptsvdifftool",
dprankefd1813272015-04-13 23:56:00445 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47446 "//ui/compositor:compositor_unittests",
447 ]
448
agrieve473155b42015-12-28 20:23:11449 # TODO(GYP): Figure out which of these should (and can) build
450 # for chromeos/mac/ios.
451 if (!is_android) {
452 deps += [
453 "//chrome/test:load_library_perf_tests",
454 "//chrome/test:sync_performance_tests",
455 "//chrome/test/chromedriver:chromedriver",
456 "//chrome/test/chromedriver:chromedriver_tests",
457 "//courgette:courgette",
458 "//courgette:courgette_fuzz",
459 "//courgette:courgette_minimal_tool",
460 "//courgette:courgette_unittests",
stevenjb7b6fd642016-05-18 18:15:30461 "//media/cast:generate_barcode_video",
462 "//media/cast:generate_timecode_audio",
agrieve473155b42015-12-28 20:23:11463 "//net:crash_cache",
464 "//net:crl_set_dump",
465 "//net:dns_fuzz_stub",
466 "//net:gdig",
467 "//net:get_server_time",
468 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
469 "//net:run_testserver",
470 "//net:stress_cache",
471 "//net:tld_cleanup",
472 "//ppapi:pepper_hash_for_uma",
473 "//ppapi:ppapi_perftests",
474 "//third_party/angle/src/tests:angle_unittests",
475 "//third_party/leveldatabase:env_chromium_unittests",
476 "//third_party/libaddressinput:libaddressinput_unittests",
477 ]
478 }
479 if (!is_android && !is_linux) {
dpranke7e19b472015-11-13 00:49:33480 # TODO(dpranke): Re-enable this once
481 # https://chromium-review.googlesource.com/#/c/312298/1 is rolled
482 # into chromium.
483 deps += [ "//third_party/angle/src/tests:angle_end2end_tests" ]
484 }
485
dprankedb5527d72015-03-08 04:22:47486 if (enable_extensions) {
487 deps += [ "//extensions/shell:app_shell" ]
488 }
489
490 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13491 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43492
493 if (is_linux) {
494 # TODO(dpranke): Figure out what platforms should actually have this.
495 deps += [
brettwf4b4a4282015-12-16 00:41:13496 "//components/nacl/loader:helper_nonsfi",
497 "//components/nacl/loader:nacl_helper",
jbudorick3c0ef43092016-02-03 23:40:16498 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
dpranke2bc89212015-11-18 00:24:43499 ]
500 }
dprankedb5527d72015-03-08 04:22:47501 }
502
xhwangfa2d9d472015-12-18 23:31:18503 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10504 deps += [ "//media:ffmpeg_regression_tests" ]
505 }
dprankefd1813272015-04-13 23:56:00506 }
507
agrieve473155b42015-12-28 20:23:11508 if (is_android || (is_linux && !is_chromeos)) {
dprankefd1813272015-04-13 23:56:00509 deps += [
agrieve473155b42015-12-28 20:23:11510 "//breakpad:dump_syms($host_toolchain)",
511 "//breakpad:microdump_stackwalk($host_toolchain)",
512 "//breakpad:minidump_dump($host_toolchain)",
513 "//breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00514 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00515 "//content/public/app:browser",
516 "//content/public/app:child",
rockotc637caf9b2016-02-10 09:57:08517 "//mojo/edk/test:mojo_public_system_perftests",
benf709a3092016-04-12 22:38:22518 "//services/shell/public/cpp",
dprankefd1813272015-04-13 23:56:00519 "//testing/gmock:gmock_main",
dpranke244f973d62015-11-20 05:38:10520 "//third_party/codesighs:nm2tsv",
dprankefd1813272015-04-13 23:56:00521 ]
522
agrieve473155b42015-12-28 20:23:11523 if (!is_android) {
524 deps += [
525 "//build/sanitizers:copy_llvm_symbolizer",
526 "//chrome/test:chrome_app_unittests",
brettwf9427f92016-05-05 23:18:55527 "//gpu/khronos_glcts_support:khronos_glcts_test",
agrieve473155b42015-12-28 20:23:11528 "//media/cast:cast_benchmarks",
529 "//media/cast:tap_proxy",
530 "//skia:filter_fuzz_stub",
531 "//skia:image_operations_bench",
532 "//sync/tools:sync_client",
533 "//sync/tools:sync_listen_notifications",
534 "//third_party/sqlite:sqlite_shell",
535 "//ui/keyboard:keyboard_unittests",
536 "//ui/message_center:message_center_unittests",
537 "//ui/snapshot:snapshot_unittests",
538 "//ui/views/examples:views_examples_with_content_exe",
539 ]
dprankefd1813272015-04-13 23:56:00540
agrieve473155b42015-12-28 20:23:11541 if (!is_debug && !is_component_build) {
542 deps += [ "//chrome/tools/service_discovery_sniffer" ]
543 }
dprankefd1813272015-04-13 23:56:00544 }
545
taptedd13e0cd2016-05-13 08:26:56546 if (enable_app_list) {
dprankefd1813272015-04-13 23:56:00547 deps += [ "//ui/app_list:app_list_demo" ]
548 }
dprankedb5527d72015-03-08 04:22:47549
550 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44551 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59552 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44553 }
dprankedb5527d72015-03-08 04:22:47554 }
555 }
556
557 if (is_mac) {
558 deps += [
559 "//breakpad:crash_inspector",
560 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44561 "//third_party/apple_sample_code",
562 "//third_party/molokocacao",
563 ]
dpranke43760592014-11-08 02:59:57564 deps -= [
brettw011138d2015-10-21 03:05:38565 # Mojo in GN contains some things which are never compiled in GYP on Mac,
566 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10567 "//mojo",
dprankecf8465db72014-11-10 23:51:22568 ]
dprankefd1813272015-04-13 23:56:00569 }
570
571 if (is_win) {
572 deps += [
573 "//base:pe_image_test",
grt734e87b2015-07-06 19:36:43574 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00575 "//chrome_elf:chrome_elf_unittests",
576 "//chrome_elf:dll_hash_main",
dprankefd1813272015-04-13 23:56:00577 "//components/wifi:wifi_test",
578 "//net:quic_client",
579 "//net:quic_server",
580 "//sandbox/win:pocdll",
581 "//sandbox/win:sandbox_poc",
582 "//sandbox/win:sbox_integration_tests",
583 "//sandbox/win:sbox_unittests",
584 "//sandbox/win:sbox_validation_tests",
585 "//testing/gtest:gtest_main",
586 "//third_party/codesighs:msmap2tsv",
587 "//third_party/pdfium/samples:pdfium_diff",
dprankefd1813272015-04-13 23:56:00588 ]
dprankee2ef3822015-02-24 21:42:18589 deps -= [
590 "//crypto:crypto_unittests", # TODO(GYP)
591 "//net:net_unittests", # TODO(GYP)
592 ]
fdorayfb048bff2016-04-28 22:07:36593
594 if (!(is_component_build && is_debug && target_cpu == "x86")) {
595 deps +=
596 [ "//chrome/installer/mini_installer:next_version_mini_installer" ]
597 }
sherouk53f0f1a2015-08-03 15:59:35598 } else if (!is_android && !is_ios) {
miu45b848fe2015-11-26 01:23:29599 deps += [ "//breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34600 }
rsesek985bd812016-04-26 21:06:15601
slance9d62f2015-11-04 01:15:01602 if (is_chromecast) {
603 deps += [ "//chromecast:cast_shell" ]
604 }
miu45b848fe2015-11-26 01:23:29605
dpranked43eab42015-12-15 23:10:44606 if (is_mac) { # TODO(GYP) || is_ios
miu45b848fe2015-11-26 01:23:29607 deps += [ "//media/cast:cast_h264_vt_encoder_unittests" ]
608 }
hbos17a7b4a22015-12-07 10:49:45609
rsesek985bd812016-04-26 21:06:15610 if (is_mac || is_win) {
611 deps += [
612 "//third_party/crashpad/crashpad/handler:crashpad_handler",
613 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
614 ]
615 }
616
hbos17a7b4a22015-12-07 10:49:45617 if (use_openh264) {
618 deps += [
619 "//third_party/openh264:common",
620 "//third_party/openh264:encoder",
621 "//third_party/openh264:processing",
622 ]
623 }
[email protected]f0e7ff882013-12-26 21:23:09624}
brettw533c50422015-02-26 17:49:16625
dpranked62d8512015-03-02 03:06:03626group("gn_only") {
dprankedb5527d72015-03-08 04:22:47627 testonly = true
628
dpranke2a294622015-08-07 05:23:01629 deps = []
630
amistry4dcd7c42015-12-16 04:53:10631 if (!is_ios) {
632 deps += [ "//mojo/common:mojo_common_perftests" ]
633 }
634
scheib35dc9202016-04-26 22:35:43635 if (!is_android && !is_ios) {
636 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
637 }
638
dpranke244f973d62015-11-20 05:38:10639 if (!is_android && !is_ios && !is_chromeos) {
isherman0f89b43eb2015-04-11 00:02:45640 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
641 }
642
ben8f4e95ad2015-12-01 18:35:58643 if (is_win || is_linux) {
sky70471b22016-01-14 16:20:54644 deps += [
kylecharbd601e5a2016-03-31 13:11:35645 "//components/mus/demo",
rockot6a2b0422016-03-09 17:14:59646 "//components/mus/ws:tests",
sky70471b22016-01-14 16:20:54647 "//mash:all",
bena5d1cd42016-04-29 22:59:53648 "//media/mojo/services:media_mojo_shell_unittests",
skyfcde3a42016-02-09 20:27:44649 "//mojo",
benee648f62016-05-12 23:04:50650 "//services/navigation",
qyearsley88bc4802016-05-17 18:02:34651 "//ui/views/mus:views_mus_interactive_ui_tests",
bena5d1cd42016-04-29 22:59:53652 "//ui/views/mus:views_mus_unittests",
sky70471b22016-01-14 16:20:54653 ]
sky97b65592015-11-02 20:08:25654 }
655
stevenjb7b6fd642016-05-18 18:15:30656 if (is_linux && !is_chromeos && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47657 # TODO(GYP): Figure out if any of these should be in gn_all
658 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45659 deps += [
dprankedb5527d72015-03-08 04:22:47660 ":gn_mojo_targets",
661 "//chrome/browser/resources:extension_resource_demo",
662 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47663 "//chrome/tools/convert_dict",
664 "//components/constrained_window:unit_tests",
erg4652931e2016-04-27 22:15:40665 "//components/filesystem:filesystem_service_unittests",
ergf1f689f2016-03-22 00:51:20666 "//components/leveldb:leveldb_service_unittests",
dprankedb5527d72015-03-08 04:22:47667 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45668 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47669 "//components/rappor:unit_tests",
670 "//components/sessions:unit_tests",
671 "//media/blink:media_blink_unittests",
stevenjb7b6fd642016-05-18 18:15:30672 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47673 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
674 "//storage/browser:dump_file_system",
675 "//third_party/angle:libANGLE",
676 "//third_party/angle:libEGL",
677 "//third_party/angle:libGLESv2",
678 "//third_party/cld_2:cld_2_dynamic_data_tool",
679 "//third_party/leveldatabase:leveldb_arena_test",
680 "//third_party/leveldatabase:leveldb_bloom_test",
dprankedb5527d72015-03-08 04:22:47681 "//third_party/leveldatabase:leveldb_cache_test",
dprankedb5527d72015-03-08 04:22:47682 "//third_party/leveldatabase:leveldb_corruption_test",
dpranke244f973d62015-11-20 05:38:10683 "//third_party/leveldatabase:leveldb_crc32c_test",
684 "//third_party/leveldatabase:leveldb_db_bench",
685 "//third_party/leveldatabase:leveldb_db_test",
dprankedb5527d72015-03-08 04:22:47686 "//third_party/leveldatabase:leveldb_dbformat_test",
dpranke244f973d62015-11-20 05:38:10687 "//third_party/leveldatabase:leveldb_env_test",
688 "//third_party/leveldatabase:leveldb_filename_test",
689 "//third_party/leveldatabase:leveldb_filter_block_test",
690 "//third_party/leveldatabase:leveldb_log_test",
691 "//third_party/leveldatabase:leveldb_skiplist_test",
692 "//third_party/leveldatabase:leveldb_table_test",
693 "//third_party/leveldatabase:leveldb_version_edit_test",
694 "//third_party/leveldatabase:leveldb_write_batch_test",
dprankedb5527d72015-03-08 04:22:47695 "//third_party/libjpeg_turbo:simd",
dpranke244f973d62015-11-20 05:38:10696 "//third_party/libsrtp:rdbx_driver",
dprankedb5527d72015-03-08 04:22:47697 "//third_party/libsrtp:replay_driver",
698 "//third_party/libsrtp:roc_driver",
699 "//third_party/libsrtp:rtpw",
dprankedb5527d72015-03-08 04:22:47700 "//third_party/libsrtp:srtp_driver",
701 "//third_party/libsrtp:srtp_driver",
dpranke244f973d62015-11-20 05:38:10702 "//third_party/libsrtp:srtp_test_aes_calc",
dprankedb5527d72015-03-08 04:22:47703 "//third_party/libsrtp:srtp_test_cipher_driver",
704 "//third_party/libsrtp:srtp_test_datatypes_driver",
dprankedb5527d72015-03-08 04:22:47705 "//third_party/libsrtp:srtp_test_env",
dpranke244f973d62015-11-20 05:38:10706 "//third_party/libsrtp:srtp_test_kernel_driver",
dprankedb5527d72015-03-08 04:22:47707 "//third_party/libsrtp:srtp_test_rand_gen",
708 "//third_party/libsrtp:srtp_test_sha1_driver",
709 "//third_party/libsrtp:srtp_test_stat_driver",
710 "//third_party/opus:opus_compare",
711 "//third_party/opus:opus_demo",
dpranke244f973d62015-11-20 05:38:10712 "//third_party/opus:test_opus_api",
dprankedb5527d72015-03-08 04:22:47713 "//third_party/opus:test_opus_decode",
714 "//third_party/opus:test_opus_encode",
dprankedb5527d72015-03-08 04:22:47715 "//third_party/opus:test_opus_padding",
dpranke244f973d62015-11-20 05:38:10716 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47717 "//third_party/webrtc/system_wrappers:field_trial_default",
718 "//third_party/webrtc/system_wrappers:metrics_default",
719 "//ui/display/types",
720 "//ui/shell_dialogs:shell_dialogs_unittests",
721 "//ui/views/examples:views_examples_exe",
dprankedb5527d72015-03-08 04:22:47722 ]
dprankeb0713542015-07-31 21:07:21723
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16724 if (target_cpu == "x86" || target_cpu == "x64") {
agrieve473155b42015-12-28 20:23:11725 if (!is_android) {
726 deps += [ "//chrome/test:load_library_perf_tests" ]
727 }
mcgrathr916aafa2015-09-15 00:06:53728 deps += [
mcgrathr916aafa2015-09-15 00:06:53729 "//native_client/src/trusted/platform_qualify:vcpuid",
dpranke244f973d62015-11-20 05:38:10730 "//third_party/libjpeg_turbo:simd_asm",
mcgrathr916aafa2015-09-15 00:06:53731 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16732 }
dpranke807f602b2015-03-17 23:20:56733 if (is_linux && current_toolchain == host_toolchain) {
jochen11513aa02016-05-11 09:59:51734 deps += [ "//v8:v8_shell" ]
dpranke807f602b2015-03-17 23:20:56735 }
dprankedb5527d72015-03-08 04:22:47736 }
dprankeb0713542015-07-31 21:07:21737
spang324dc57a2016-04-06 14:54:08738 if (use_ozone) {
739 deps += [ "//ui/ozone/demo" ]
740 }
741
aizatskyaf496112016-04-15 19:26:32742 if ((is_linux && !is_chromeos && !is_chromecast) || (is_win && use_drfuzz) ||
743 (use_libfuzzer && is_mac)) {
744 deps += [
745 "//testing/libfuzzer/fuzzers",
746 "//testing/libfuzzer/tests:libfuzzer_tests",
747 ]
748 }
749
sbc92b4d572016-02-18 03:28:23750 if (enable_nacl) {
751 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
752 }
753
agrieve473155b42015-12-28 20:23:11754 if (is_android) {
755 deps += [
756 "//build/android/gyp/test:hello_world",
757 "//build/android/incremental_install:bootstrap_java",
758 ]
nyquistb5f050b2015-09-10 05:10:35759 }
760
skyostilfe116162016-02-26 20:53:33761 if (is_linux && use_ozone) {
762 deps += [
763 "//headless",
764 "//headless:headless_tests",
765 ]
766 }
767
agrieve473155b42015-12-28 20:23:11768 if (!is_chromecast && (is_android || is_linux || is_chromeos)) {
769 deps += [
770 "//blimp",
771 "//blimp:blimp_tests",
772 ]
dprankeb0713542015-07-31 21:07:21773 }
dprankedb5527d72015-03-08 04:22:47774}
775
776group("gn_mojo_targets") {
777 testonly = true
778 if (is_linux && !is_chromeos) {
779 # TODO(GYP): Figure out if any of these should be in gn_all
780 # and figure out how cross-platform they are
781 deps = [
dprankedb5527d72015-03-08 04:22:47782 "//ipc/mojo:ipc_mojo_perftests",
dprankedb5527d72015-03-08 04:22:47783 "//media/mojo:tests",
xhwangd3b5d3f2016-05-18 03:37:59784 "//media/mojo/services",
msw1bb9c6c2015-05-06 21:35:44785 "//mojo:tests",
dprankedb5527d72015-03-08 04:22:47786 ]
dprankedb5527d72015-03-08 04:22:47787 }
788}
789
790group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03791 deps = [
dprankeb6128d02015-05-01 16:40:30792 "//build/config/sanitizers:options_sources",
793
dprankedb5527d72015-03-08 04:22:47794 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
795 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dprankeb6128d02015-05-01 16:40:30796
797 "//ui/resources:repack_ui_test_mac_locale_pack",
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",
dpranke244f973d62015-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",
870 "//chrome",
871 "//chrome/test:load_library_perf_tests",
872 "//chrome/test:sync_performance_tests",
873 "//gpu:gpu_perftests",
874 "//media:media_perftests",
875 "//media/midi:midi_unittests",
nednguyenc42bf912016-01-27 01:39:28876 "//third_party/catapult/telemetry:bitmaptools",
dpranke2302dfa2015-09-29 02:21:52877 ]
878
879 if (!is_chromeos) {
880 deps += [ "//chrome/test:performance_browser_tests" ]
881 }
882 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:04883 if (is_official_build) {
884 # In GN builds, this is controlled by the 'linux_dump_symbols'
885 # flag, which defaults to 1 for official builds. For now,
886 # we skip the separate flag and just key off of is_official_build.
887 deps += [ "//chrome:linux_symbols" ]
888 }
dpranke2302dfa2015-09-29 02:21:52889
890 if (!is_chromeos) {
891 deps += [ "//tools/perf/clear_system_cache" ]
892 }
893 }
894
895 if (is_win) {
896 deps += [
dpranke2302dfa2015-09-29 02:21:52897 # "//gpu:angle_perftests", TODO(GYP): crbug.com/537008
hansa3d3aa4d2016-05-04 22:12:52898 "//chrome/installer/mini_installer:mini_installer",
dpranke2302dfa2015-09-29 02:21:52899 ]
dpranke2302dfa2015-09-29 02:21:52900 } else {
dprankeec10b3932015-10-02 17:58:23901 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52902 }
903 }
904}
agrieve017b91f2016-02-29 20:15:06905
brettw6df3e8c42016-04-14 21:07:13906# For compatibility with GYP. The linux_chromium_chromeos_rel_ng and
907# linux_chromium_chromeos_compile_rel_ng bots reference this target as
908# something to build, but all targets for those bots to compile are set
909# up differently.
910# TODO bug 601920: Remove reference to aura_builder on bot config and delete
911# this group.
912group("aura_builder") {
913}
914
agrieve95ba4442016-04-25 15:47:13915if (is_android) {
916 group("optimize_gn_gen") {
917 deps = [
918 # These run expensive scripts in non-default toolchains. Generally, host
919 # toolchain targets are loaded in the later part of the run, and the
920 # result is they push out the end of generation. By preloading these, the
921 # scripts can be parallelized with the rest of the load.
922 "//build/config/linux(//build/toolchain/linux:clang_x64)",
923 "//build/config/posix(//build/toolchain/linux:clang_x64)",
924
925 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot
926 # generation.
927 "//build/config/linux(//build/toolchain/linux:clang_x86)",
928 "//build/config/posix(//build/toolchain/linux:clang_x86)",
929 ]
930 }
931}
932
agrieve017b91f2016-02-29 20:15:06933# Because of the source assignment filter, many targets end up over-filtering
934# their sources if the output directory contains a platform name. Assert that
935# this doesn't happen. http://crbug.com/548283
936template("assert_valid_out_dir") {
937 # List copied from //build/config/BUILDCONFIG.gn.
938 set_sources_assignment_filter([
939 "*\bandroid/*",
940 "*\bchromeos/*",
941 "*\bcocoa/*",
942 "*\bios/*",
943 "*\blinux/*",
944 "*\bmac/*",
945 "*\bposix/*",
946 "*\bwin/*",
947 ])
948 assert(target_name != "") # Mark as used.
949 sources = invoker.actual_sources
950 assert(
951 sources == invoker.actual_sources,
952 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
953}
954
955assert_valid_out_dir("_unused") {
956 actual_sources = [ "$root_build_dir/foo" ]
957}