blob: 1b4a952b56ec7736cfc19b5ad1c11a92016629a1 [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#
dprankeddc174902015-04-29 01:38:3557# TODO(GYP): crbug.com/481694. Make sure that the above is true and there are
dprankeef9c5e582015-11-15 23:22:0858# scripts run on the bots that enforce this. Once the GYP migration is over, we
59# 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
dprankeef9c5e582015-11-15 23:22:0871# TODO(GYP): This target exists for compatibility with GYP, specifically
72# for the iOS bots and the official builders.
73group("All") {
74 testonly = true
75
76 deps = [
77 ":gn_all",
78 ]
79}
80
dprankeddc174902015-04-29 01:38:3581# The "both_gn_and_gyp" target should reflect every target that is built
82# in both the GN and GYP builds, and ideally it should match the
83# "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line.
84#
85# TODO(GYP): Add build steps that check and enforce this on the bots.
86group("both_gn_and_gyp") {
87 testonly = true
dprankeddc174902015-04-29 01:38:3588 deps = [
dprankee2ef3822015-02-24 21:42:1889 "//base:base_unittests",
brettwa874dccb2015-08-28 23:59:1890 "//chrome/installer",
sheroukdc35ba272015-09-22 14:09:3791 "//components:components_unittests",
sheroukce1c7d72015-08-24 15:21:5992 "//net:net_unittests",
sherouk2866d662015-08-24 16:29:4493 "//skia:skia_unittests",
brettwa874dccb2015-08-28 23:59:1894 "//sql:sql_unittests",
sherouk3eee4a82015-09-01 10:42:3395 "//sync:sync_unit_tests",
sherouk4fb74d42015-08-24 15:58:4196 "//ui/base:ui_base_unittests",
sherouk84a45ff2015-09-01 13:31:3997 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:4198 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:1899 ]
dpranke2a294622015-08-07 05:23:01100
sdefresne21832bf92016-03-30 22:01:02101 if (!is_android && !is_chromecast) {
102 deps += [
103 "//crypto:crypto_unittests",
104 "//google_apis/gcm:gcm_unit_tests",
105 ]
106 }
107
slance9d62f2015-11-04 01:15:01108 if (!is_ios && !is_android && !is_chromecast) {
sherouk53f0f1a2015-08-03 15:59:35109 deps += [
sherouk53f0f1a2015-08-03 15:59:35110 "//chrome",
111 "//chrome/test:browser_tests",
112 "//chrome/test:interactive_ui_tests",
113 "//chrome/test:sync_integration_tests",
sherouk53f0f1a2015-08-03 15:59:35114 "//chrome/test/chromedriver:chromedriver_unittests",
sherouk53f0f1a2015-08-03 15:59:35115 "//extensions:extensions_browsertests",
116 "//extensions:extensions_unittests",
dprankedbdd9d82015-08-12 21:18:18117 "//gpu/gles2_conform_support:gles2_conform_test",
sherouk53f0f1a2015-08-03 15:59:35118 "//jingle:jingle_unittests",
sherouk53f0f1a2015-08-03 15:59:35119 "//net:hpack_example_generator",
120 "//net:hpack_fuzz_mutator",
121 "//net:hpack_fuzz_wrapper",
sherouk53f0f1a2015-08-03 15:59:35122 "//ppapi:ppapi_unittests",
123 "//ppapi/examples/2d",
124 "//ppapi/examples/audio",
125 "//ppapi/examples/audio_input",
126 "//ppapi/examples/compositor",
127 "//ppapi/examples/crxfs",
128 "//ppapi/examples/enumerate_devices",
129 "//ppapi/examples/file_chooser",
130 "//ppapi/examples/flash_topmost",
131 "//ppapi/examples/font",
132 "//ppapi/examples/gamepad",
133 "//ppapi/examples/gles2",
134 "//ppapi/examples/gles2_spinning_cube",
135 "//ppapi/examples/ime",
136 "//ppapi/examples/input",
137 "//ppapi/examples/media_stream_audio",
138 "//ppapi/examples/media_stream_video",
139 "//ppapi/examples/mouse_cursor",
140 "//ppapi/examples/mouse_lock",
141 "//ppapi/examples/printing",
142 "//ppapi/examples/scaling",
143 "//ppapi/examples/scripting",
144 "//ppapi/examples/stub",
145 "//ppapi/examples/threading",
146 "//ppapi/examples/url_loader",
147 "//ppapi/examples/video_capture",
148 "//ppapi/examples/video_decode",
149 "//ppapi/examples/video_effects",
150 "//ppapi/examples/video_encode",
151 "//printing:printing_unittests",
sherouk53f0f1a2015-08-03 15:59:35152 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
153 "//third_party/codesighs",
pkotwicz558d5252015-10-19 21:09:55154 "//third_party/pdfium/samples:pdfium_test",
charliea00055282016-01-26 00:15:15155 "//tools/battor_agent",
charliea5daef2bb2016-01-29 00:13:25156 "//tools/battor_agent:battor_agent_unittests",
pkotwicz558d5252015-10-19 21:09:55157 "//tools/gn",
dpranke244f973d62015-11-20 05:38:10158 "//tools/gn:gn_unittests",
pkotwicz558d5252015-10-19 21:09:55159 "//tools/perf/clear_system_cache",
160 "//ui/accessibility:accessibility_unittests",
161 "//ui/app_list:app_list_unittests",
162 ]
163 }
164
165 if (!is_ios) {
166 # TODO(GYP): Figure out which of these should actually build on iOS,
167 # and whether there should be other targets that are iOS-only and missing.
168 deps += [
169 "//cc:cc_unittests",
170 "//chrome/test:unit_tests",
171 "//components:components_browsertests",
172 "//content/shell:content_shell",
173 "//content/test:content_browsertests",
174 "//content/test:content_perftests",
175 "//content/test:content_unittests",
176 "//device:device_unittests",
177 "//gpu:gpu_unittests",
178 "//ipc:ipc_tests",
179 "//ipc/mojo:ipc_mojo_unittests",
180 "//media:media_unittests",
miu45b848fe2015-11-26 01:23:29181 "//media/cast:cast_unittests",
pkotwicz558d5252015-10-19 21:09:55182 "//media/midi:midi_unittests",
183 "//mojo",
pkotwicz558d5252015-10-19 21:09:55184 "//mojo/common:mojo_common_unittests",
rockotc637caf9b2016-02-10 09:57:08185 "//mojo/edk/system:mojo_system_unittests",
186 "//mojo/edk/test:mojo_public_bindings_unittests",
rockotc637caf9b2016-02-10 09:57:08187 "//mojo/edk/test:mojo_public_system_unittests",
ben273c1e32016-01-12 02:44:08188 "//mojo/shell/public/cpp",
pkotwicz558d5252015-10-19 21:09:55189 "//net:net_perftests",
Dirk Pranke49802732015-12-10 01:36:41190 "//third_party/WebKit/Source/platform:blink_heap_unittests",
191 "//third_party/WebKit/Source/platform:blink_platform_unittests",
dpranke244f973d62015-11-20 05:38:10192 "//third_party/WebKit/Source/web:webkit_unit_tests",
193 "//third_party/WebKit/Source/wtf:wtf_unittests",
nednguyenc42bf912016-01-27 01:39:28194 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35195 "//third_party/smhasher:pmurhash",
196 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35197 "//ui/display:display_unittests",
198 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35199 "//ui/gl:gl_unittests",
200 "//ui/touch_selection:ui_touch_selection_unittests",
markdittmer67b71ea2016-03-03 22:40:03201 "//url/ipc:url_ipc_unittests",
sherouk53f0f1a2015-08-03 15:59:35202 ]
sdefresne998e8582015-10-07 13:36:45203 } else {
sdefresnea378b452015-10-08 09:55:58204 deps += [
sdefresne3bdd5632016-03-26 00:06:26205 "//ios/chrome:ios_chrome_unittests",
206 "//ios/chrome/app",
207 "//ios/chrome/browser",
dpranke0e5462ce2016-02-23 19:57:46208 "//ios/chrome/common",
sdefresnea378b452015-10-08 09:55:58209 "//ios/net:ios_net_unittests",
dpranke0e5462ce2016-02-23 19:57:46210 "//ios/public/provider/chrome/browser",
sdefresne89308c92015-11-16 10:40:34211 "//ios/public/provider/web",
sdefresnec6ddd7ac2015-10-09 17:30:19212 "//ios/testing:ocmock_support_unittest",
baxley33bcc1342016-02-24 20:43:09213 "//ios/third_party/fishhook",
sdefresnea9045f42016-02-23 15:22:45214 "//ios/third_party/ochamcrest",
sdefresne44b76fd2016-03-31 02:37:37215 "//ios/web:ios_web_inttests",
sdefresneaa7c1cf2015-10-22 00:41:11216 "//ios/web:ios_web_unittests",
dpranke244f973d62015-11-20 05:38:10217 "//ios/web/shell:ios_web_shell",
sdefresnea378b452015-10-08 09:55:58218 ]
sherouk53f0f1a2015-08-03 15:59:35219 }
dprankee2ef3822015-02-24 21:42:18220
scottmg34fb7e52014-12-03 23:27:24221 deps += root_extra_deps
[email protected]fce5c3fe2014-04-10 21:13:05222
tfarina4aa9edc2015-10-26 22:14:02223 if (enable_extensions) {
rockot2f1326e2015-02-23 23:53:51224 deps += [ "//extensions/shell:app_shell_unittests" ]
225 }
226
dprankefd1813272015-04-13 23:56:00227 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55228 deps += [ "//chrome/browser/media/router" ]
dprankefd1813272015-04-13 23:56:00229 }
230
garykac3eddb5b2015-04-17 23:16:38231 if (enable_remoting) {
232 deps += [ "//remoting:remoting_all" ]
dprankece5eb832015-04-01 20:21:05233 }
234
dprankee2ef3822015-02-24 21:42:18235 if (toolkit_views) {
236 deps += [ "//ui/views:views_unittests" ]
James Robinson060f2e32014-09-10 22:31:37237 }
238
dprankee2ef3822015-02-24 21:42:18239 if (use_aura) {
mswda0133e62016-02-16 20:50:02240 deps += [
241 "//ash:ash_shell_with_content",
242 "//ash:ash_unittests",
243 "//ui/aura:aura_unittests",
mswda0133e62016-02-16 20:50:02244 "//ui/aura:demo",
245 "//ui/wm:wm_unittests",
246 ]
dprankee2ef3822015-02-24 21:42:18247 }
248
249 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47250 deps += [ "//ui/ozone" ]
[email protected]a306aaa2014-05-24 13:21:50251 }
252
dprankefd1813272015-04-13 23:56:00253 if (use_x11) {
254 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22255 }
256
tmoniuszkoe5578b922015-04-14 09:38:03257 if (enable_configuration_policy) {
258 deps += [ "//components/policy:policy_templates" ]
259 }
260
dprankefd1813272015-04-13 23:56:00261 if (v8_use_external_startup_data) {
262 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
[email protected]2d6893a2014-06-02 19:16:36263 }
264
brettw66e3feab2015-07-20 23:52:22265 if (is_win) {
brettwf986f9572015-10-07 17:18:15266 deps += [
267 "//chrome/installer/gcapi",
268 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
269 ]
brettw66e3feab2015-07-20 23:52:22270 }
271
[email protected]5a8d5162014-04-12 01:19:16272 if (is_android) {
[email protected]26046b52014-07-16 00:11:03273 deps += [
pkotwicze2dae8b2015-11-03 20:12:55274 "//base:base_junit_tests",
dpranke244f973d62015-11-20 05:38:10275 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38276 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02277 "//build/android/rezip",
pkotwicze2dae8b2015-11-03 20:12:55278 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
279 "//components/policy/android:components_policy_junit_tests",
280 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45281 "//content/shell/android:content_shell_apk",
282 "//content/test:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55283 "//net/android:net_junit_tests",
284 "//testing/android/junit:junit_unittests",
pkotwicz8adff4e2015-12-17 21:55:45285 "//third_party/android_tools:uiautomator_java",
agrieve40ba6862015-07-15 02:09:05286 "//third_party/errorprone:chromium_errorprone",
pkotwicz8adff4e2015-12-17 21:55:45287 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10288 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49289 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34290 "//tools/android:push_apps_to_background",
pkotwicz8b9d18c2015-10-05 01:59:33291 "//tools/android/heap_profiler:heap_profiler_unittests",
dgn28050da2015-10-19 10:16:43292 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
pkotwicz077093762015-12-21 16:47:15293 "//tools/cygprofile:cygprofile_unittests",
dprankee2ef3822015-02-24 21:42:18294 "//tools/imagediff($host_toolchain)",
newt9e226032016-01-26 01:30:15295 "//ui/android:ui_junit_tests",
dprankee2ef3822015-02-24 21:42:18296 ]
297 deps -= [
rockot9c67e5f2015-03-12 20:01:21298 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18299 "//url:url_unittests",
[email protected]26046b52014-07-16 00:11:03300 ]
301
pkotwicz92e2e2312015-12-15 22:29:46302 if (!is_component_build) {
303 deps += [
agrievee23386b2016-01-05 04:47:58304 "//components/cronet/android:cronet_package",
pkotwicz92e2e2312015-12-15 22:29:46305 "//components/cronet/android:cronet_sample_apk",
306 "//components/cronet/android:cronet_sample_test_apk",
307 "//components/cronet/android:cronet_test_apk",
308 "//components/cronet/android:cronet_test_instrumentation_apk",
309 "//components/cronet/android:cronet_unittests",
310 ]
311 }
312
pkotwicz061c5a42015-09-30 02:16:54313 if (!is_chromecast) {
314 deps += [
michaelbaicbcc7e62015-11-12 04:29:53315 "//android_webview",
agrieveb08e2f5b2015-12-29 01:17:30316 "//android_webview/test",
mikecase49971fc2016-03-21 21:18:05317 "//android_webview/tools/system_webview_shell",
pkotwicze2dae8b2015-11-03 20:12:55318 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54319 "//chrome/android:chrome_public_apk",
320 "//chrome/android:chrome_public_test_apk",
321 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b42015-12-28 20:23:11322 "//content/shell/android:content_shell_test_apk",
pkotwicz0a2255e2015-10-06 16:29:05323 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54324 ]
325 }
326
pkotwicz06a4b4b42015-10-29 23:11:11327 if (target_cpu != "x64") {
328 deps += [ "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)" ]
329 }
330
cjhopmanca675d3e2014-10-24 03:50:45331 if (has_chrome_android_internal) {
dprankee2ef3822015-02-24 21:42:18332 deps += [ "//clank" ] # TODO(GYP) ??
cjhopmanca675d3e2014-10-24 03:50:45333 }
dprankedb5527d72015-03-08 04:22:47334 }
335
pkotwicza4d233b22015-11-02 18:20:38336 if (is_linux || is_android) { # TODO(GYP): || is_bsd?
dprankefd1813272015-04-13 23:56:00337 deps += [
pkotwicza4d233b22015-11-02 18:20:38338 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00339 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38340 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00341 "//breakpad:minidump-2-core",
342 ]
343 }
344
dpranke6293d252015-04-14 19:12:00345 if (is_chromeos) {
346 deps += [
347 "//chromeos:chromeos_unittests",
yoshiki8e2ddbb2016-03-10 07:11:22348 "//ui/arc:ui_arc_unittests",
dpranke6293d252015-04-14 19:12:00349 "//ui/chromeos:ui_chromeos_unittests",
350 ]
351 }
352
dprankefd1813272015-04-13 23:56:00353 if (is_chromeos || is_mac || is_win) {
354 deps += [
355 "//rlz:rlz_id",
356 "//rlz:rlz_lib",
357 "//rlz:rlz_unittests",
358 ]
359 }
360
dprankedb5527d72015-03-08 04:22:47361 if (is_linux) {
362 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06363 deps += [
dpranke2bc89212015-11-18 00:24:43364 "//chrome:manpage",
365 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47366 "//dbus:dbus_test_server",
dprankee2ef3822015-02-24 21:42:18367 "//dbus:dbus_unittests",
dprankedb5527d72015-03-08 04:22:47368 "//net:disk_cache_memory_test",
369 "//net:flip_in_mem_edsm_server",
370 "//net:flip_in_mem_edsm_server_unittests",
371 "//net:quic_client",
372 "//net:quic_server",
373 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18374 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06375 ]
dnicoara8c6aa8e2015-03-11 23:20:32376
377 if (is_chromeos || use_ash) {
378 deps += [ "//components/session_manager/core" ]
379 }
dpranke2bc89212015-11-18 00:24:43380
381 if (is_chrome_branded && is_official_build) {
382 # TODO(dpranke): add the linux_dump_symbols flag?
383 deps += [ "//chrome:linux_symbols" ]
384 }
dprankedb5527d72015-03-08 04:22:47385 }
386
sherouke1859f92015-08-05 10:19:10387 if (is_ios || is_win || (is_linux && !is_chromeos)) {
388 deps += [
389 "//base:base_i18n_perftests",
390 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58391 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10392 ]
393 }
394
agrieve473155b42015-12-28 20:23:11395 if (is_android || is_win || (is_linux && !is_chromeos)) {
tfarina9e7cf702015-02-23 21:13:44396 deps += [
dprankedb5527d72015-03-08 04:22:47397 "//base:build_utf8_validator_tables",
dpranke244f973d62015-11-20 05:38:10398 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47399 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00400 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47401 "//components:components_perftests",
dprankedb5527d72015-03-08 04:22:47402 "//content/test:content_gl_benchmark",
dpranke244f973d62015-11-20 05:38:10403 "//content/test:content_gl_tests",
dprankedb5527d72015-03-08 04:22:47404 "//device:device_unittests",
405 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47406 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47407 "//google_apis/gcm:mcs_probe",
dprankefd1813272015-04-13 23:56:00408 "//gpu:gl_tests",
dpranke244f973d62015-11-20 05:38:10409 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47410 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47411 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00412 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47413 "//sync:run_sync_testserver",
dprankedb5527d72015-03-08 04:22:47414 "//third_party/codesighs:maptsvdifftool",
dprankefd1813272015-04-13 23:56:00415 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47416 "//ui/compositor:compositor_unittests",
417 ]
418
agrieve473155b42015-12-28 20:23:11419 # TODO(GYP): Figure out which of these should (and can) build
420 # for chromeos/mac/ios.
421 if (!is_android) {
422 deps += [
423 "//chrome/test:load_library_perf_tests",
424 "//chrome/test:sync_performance_tests",
425 "//chrome/test/chromedriver:chromedriver",
426 "//chrome/test/chromedriver:chromedriver_tests",
427 "//courgette:courgette",
428 "//courgette:courgette_fuzz",
429 "//courgette:courgette_minimal_tool",
430 "//courgette:courgette_unittests",
431 "//media/cast:generate_barcode_video",
432 "//media/cast:generate_timecode_audio",
433 "//net:crash_cache",
434 "//net:crl_set_dump",
435 "//net:dns_fuzz_stub",
436 "//net:gdig",
437 "//net:get_server_time",
438 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
439 "//net:run_testserver",
440 "//net:stress_cache",
441 "//net:tld_cleanup",
442 "//ppapi:pepper_hash_for_uma",
443 "//ppapi:ppapi_perftests",
444 "//third_party/angle/src/tests:angle_unittests",
445 "//third_party/leveldatabase:env_chromium_unittests",
446 "//third_party/libaddressinput:libaddressinput_unittests",
447 ]
448 }
449 if (!is_android && !is_linux) {
dpranke7e19b472015-11-13 00:49:33450 # TODO(dpranke): Re-enable this once
451 # https://chromium-review.googlesource.com/#/c/312298/1 is rolled
452 # into chromium.
453 deps += [ "//third_party/angle/src/tests:angle_end2end_tests" ]
454 }
455
dprankedb5527d72015-03-08 04:22:47456 if (enable_extensions) {
457 deps += [ "//extensions/shell:app_shell" ]
458 }
459
460 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13461 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43462
463 if (is_linux) {
464 # TODO(dpranke): Figure out what platforms should actually have this.
465 deps += [
brettwf4b4a4282015-12-16 00:41:13466 "//components/nacl/loader:helper_nonsfi",
467 "//components/nacl/loader:nacl_helper",
jbudorick3c0ef43092016-02-03 23:40:16468 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
dpranke2bc89212015-11-18 00:24:43469 ]
470 }
dprankedb5527d72015-03-08 04:22:47471 }
472
xhwangfa2d9d472015-12-18 23:31:18473 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10474 deps += [ "//media:ffmpeg_regression_tests" ]
475 }
dprankefd1813272015-04-13 23:56:00476 }
477
agrieve473155b42015-12-28 20:23:11478 if (is_android || (is_linux && !is_chromeos)) {
dprankefd1813272015-04-13 23:56:00479 deps += [
480 # TODO(GYP): Figure out which of these should (and can) build
481 # under which other conditions.
agrieve473155b42015-12-28 20:23:11482 "//breakpad:dump_syms($host_toolchain)",
483 "//breakpad:microdump_stackwalk($host_toolchain)",
484 "//breakpad:minidump_dump($host_toolchain)",
485 "//breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00486 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00487 "//content/public/app:browser",
488 "//content/public/app:child",
489
490 # TODO(GYP): Remove this when the gles2 tests work
491 "//gpu/command_buffer/client:gles2_implementation_no_check",
dprankefd1813272015-04-13 23:56:00492 "//gpu/khronos_glcts_support:khronos_glcts_test", # TODO(GYP) crbug.com/471903 to make this complete.
rockotc637caf9b2016-02-10 09:57:08493 "//mojo/edk/test:mojo_public_system_perftests",
ben273c1e32016-01-12 02:44:08494 "//mojo/shell/public/cpp",
dprankefd1813272015-04-13 23:56:00495 "//testing/gmock:gmock_main",
dpranke244f973d62015-11-20 05:38:10496 "//third_party/codesighs:nm2tsv",
dprankefd1813272015-04-13 23:56:00497 ]
498
agrieve473155b42015-12-28 20:23:11499 if (!is_android) {
500 deps += [
501 "//build/sanitizers:copy_llvm_symbolizer",
502 "//chrome/test:chrome_app_unittests",
503 "//media/cast:cast_benchmarks",
504 "//media/cast:tap_proxy",
505 "//skia:filter_fuzz_stub",
506 "//skia:image_operations_bench",
507 "//sync/tools:sync_client",
508 "//sync/tools:sync_listen_notifications",
509 "//third_party/sqlite:sqlite_shell",
510 "//ui/keyboard:keyboard_unittests",
511 "//ui/message_center:message_center_unittests",
512 "//ui/snapshot:snapshot_unittests",
513 "//ui/views/examples:views_examples_with_content_exe",
514 ]
dprankefd1813272015-04-13 23:56:00515
agrieve473155b42015-12-28 20:23:11516 if (!is_debug && !is_component_build) {
517 deps += [ "//chrome/tools/service_discovery_sniffer" ]
518 }
dprankefd1813272015-04-13 23:56:00519 }
520
521 if (toolkit_views) {
522 deps += [ "//ui/app_list:app_list_demo" ]
523 }
dprankedb5527d72015-03-08 04:22:47524
525 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44526 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59527 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44528 }
dprankedb5527d72015-03-08 04:22:47529 }
530 }
531
532 if (is_mac) {
533 deps += [
534 "//breakpad:crash_inspector",
535 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44536 "//third_party/apple_sample_code",
537 "//third_party/molokocacao",
538 ]
dpranke43760592014-11-08 02:59:57539 deps -= [
brettw011138d2015-10-21 03:05:38540 # Mojo in GN contains some things which are never compiled in GYP on Mac,
541 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10542 "//mojo",
dprankecf8465db72014-11-10 23:51:22543 ]
dprankefd1813272015-04-13 23:56:00544 }
545
546 if (is_win) {
547 deps += [
548 "//base:pe_image_test",
grt734e87b2015-07-06 19:36:43549 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00550 "//chrome_elf:chrome_elf_unittests",
551 "//chrome_elf:dll_hash_main",
dprankefd1813272015-04-13 23:56:00552 "//components/wifi:wifi_test",
553 "//net:quic_client",
554 "//net:quic_server",
555 "//sandbox/win:pocdll",
556 "//sandbox/win:sandbox_poc",
557 "//sandbox/win:sbox_integration_tests",
558 "//sandbox/win:sbox_unittests",
559 "//sandbox/win:sbox_validation_tests",
560 "//testing/gtest:gtest_main",
561 "//third_party/codesighs:msmap2tsv",
562 "//third_party/pdfium/samples:pdfium_diff",
dprankefd1813272015-04-13 23:56:00563 ]
dprankee2ef3822015-02-24 21:42:18564 deps -= [
565 "//crypto:crypto_unittests", # TODO(GYP)
566 "//net:net_unittests", # TODO(GYP)
567 ]
sherouk53f0f1a2015-08-03 15:59:35568 } else if (!is_android && !is_ios) {
miu45b848fe2015-11-26 01:23:29569 deps += [ "//breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34570 }
slance9d62f2015-11-04 01:15:01571 if (is_chromecast) {
572 deps += [ "//chromecast:cast_shell" ]
573 }
miu45b848fe2015-11-26 01:23:29574
dpranked43eab42015-12-15 23:10:44575 if (is_mac) { # TODO(GYP) || is_ios
miu45b848fe2015-11-26 01:23:29576 deps += [ "//media/cast:cast_h264_vt_encoder_unittests" ]
577 }
hbos17a7b4a22015-12-07 10:49:45578
579 if (use_openh264) {
580 deps += [
581 "//third_party/openh264:common",
582 "//third_party/openh264:encoder",
583 "//third_party/openh264:processing",
584 ]
585 }
[email protected]f0e7ff882013-12-26 21:23:09586}
brettw533c50422015-02-26 17:49:16587
sky60a230b9f2016-01-23 01:04:53588# This group contains all the targets needed to run mojo's apptest_runner.
589group("mojo_apptests") {
590 testonly = true
591
592 deps = []
593
594 if (is_win || is_linux) {
595 deps += [
skyfcde3a42016-02-09 20:27:44596 "//components/resource_provider:resource_provider_unittests",
sky48ad0962016-03-22 19:45:59597 "//mash:mash_unittests",
jrummell135d61e2016-01-27 19:36:17598 "//media/mojo/services:tests",
sky60a230b9f2016-01-23 01:04:53599 "//ui/views/mus:tests",
600 ]
601 }
602}
603
dpranked62d8512015-03-02 03:06:03604group("gn_only") {
dprankedb5527d72015-03-08 04:22:47605 testonly = true
606
dpranke2a294622015-08-07 05:23:01607 deps = []
608
amistry4dcd7c42015-12-16 04:53:10609 if (!is_ios) {
610 deps += [ "//mojo/common:mojo_common_perftests" ]
611 }
612
dpranke244f973d62015-11-20 05:38:10613 if (!is_android && !is_ios && !is_chromeos) {
isherman0f89b43eb2015-04-11 00:02:45614 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
615 }
616
ben8f4e95ad2015-12-01 18:35:58617 if (is_win || is_linux) {
sky70471b22016-01-14 16:20:54618 deps += [
sky60a230b9f2016-01-23 01:04:53619 ":mojo_apptests",
kylecharbd601e5a2016-03-31 13:11:35620 "//components/mus/demo",
rockot6a2b0422016-03-09 17:14:59621 "//components/mus/ws:tests",
sky70471b22016-01-14 16:20:54622 "//mash:all",
skyfcde3a42016-02-09 20:27:44623 "//mojo",
sky70471b22016-01-14 16:20:54624 ]
sky97b65592015-11-02 20:08:25625 }
626
zhaoqin756f8572016-01-25 21:41:17627 if (is_win && use_drfuzz) {
628 # build libfuzzer fuzzers on Windows to run with Dr. Fuzz
629 deps += [
630 "//testing/libfuzzer/fuzzers",
631 "//testing/libfuzzer/tests:libfuzzer_tests",
632 ]
633 }
634
slance9d62f2015-11-04 01:15:01635 if (is_linux && !is_chromeos && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47636 # TODO(GYP): Figure out if any of these should be in gn_all
637 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45638 deps += [
dprankedb5527d72015-03-08 04:22:47639 ":gn_mojo_targets",
640 "//chrome/browser/resources:extension_resource_demo",
641 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47642 "//chrome/tools/convert_dict",
643 "//components/constrained_window:unit_tests",
erg716b6172016-03-18 18:30:29644 "//components/filesystem:unittests",
ergf1f689f2016-03-22 00:51:20645 "//components/leveldb:leveldb_service_unittests",
dprankedb5527d72015-03-08 04:22:47646 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45647 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47648 "//components/rappor:unit_tests",
649 "//components/sessions:unit_tests",
650 "//media/blink:media_blink_unittests",
dprankedb5527d72015-03-08 04:22:47651 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47652 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
653 "//storage/browser:dump_file_system",
kjellanderd859208c2016-03-31 15:51:40654 "//testing/libfuzzer/fuzzers",
655 "//testing/libfuzzer/tests:libfuzzer_tests",
dprankedb5527d72015-03-08 04:22:47656 "//third_party/angle:libANGLE",
657 "//third_party/angle:libEGL",
658 "//third_party/angle:libGLESv2",
659 "//third_party/cld_2:cld_2_dynamic_data_tool",
660 "//third_party/leveldatabase:leveldb_arena_test",
661 "//third_party/leveldatabase:leveldb_bloom_test",
dprankedb5527d72015-03-08 04:22:47662 "//third_party/leveldatabase:leveldb_cache_test",
dprankedb5527d72015-03-08 04:22:47663 "//third_party/leveldatabase:leveldb_corruption_test",
dpranke244f973d62015-11-20 05:38:10664 "//third_party/leveldatabase:leveldb_crc32c_test",
665 "//third_party/leveldatabase:leveldb_db_bench",
666 "//third_party/leveldatabase:leveldb_db_test",
dprankedb5527d72015-03-08 04:22:47667 "//third_party/leveldatabase:leveldb_dbformat_test",
dpranke244f973d62015-11-20 05:38:10668 "//third_party/leveldatabase:leveldb_env_test",
669 "//third_party/leveldatabase:leveldb_filename_test",
670 "//third_party/leveldatabase:leveldb_filter_block_test",
671 "//third_party/leveldatabase:leveldb_log_test",
672 "//third_party/leveldatabase:leveldb_skiplist_test",
673 "//third_party/leveldatabase:leveldb_table_test",
674 "//third_party/leveldatabase:leveldb_version_edit_test",
675 "//third_party/leveldatabase:leveldb_write_batch_test",
dprankedb5527d72015-03-08 04:22:47676 "//third_party/libjpeg_turbo:simd",
dpranke244f973d62015-11-20 05:38:10677 "//third_party/libsrtp:rdbx_driver",
dprankedb5527d72015-03-08 04:22:47678 "//third_party/libsrtp:replay_driver",
679 "//third_party/libsrtp:roc_driver",
680 "//third_party/libsrtp:rtpw",
dprankedb5527d72015-03-08 04:22:47681 "//third_party/libsrtp:srtp_driver",
682 "//third_party/libsrtp:srtp_driver",
dpranke244f973d62015-11-20 05:38:10683 "//third_party/libsrtp:srtp_test_aes_calc",
dprankedb5527d72015-03-08 04:22:47684 "//third_party/libsrtp:srtp_test_cipher_driver",
685 "//third_party/libsrtp:srtp_test_datatypes_driver",
dprankedb5527d72015-03-08 04:22:47686 "//third_party/libsrtp:srtp_test_env",
dpranke244f973d62015-11-20 05:38:10687 "//third_party/libsrtp:srtp_test_kernel_driver",
dprankedb5527d72015-03-08 04:22:47688 "//third_party/libsrtp:srtp_test_rand_gen",
689 "//third_party/libsrtp:srtp_test_sha1_driver",
690 "//third_party/libsrtp:srtp_test_stat_driver",
691 "//third_party/opus:opus_compare",
692 "//third_party/opus:opus_demo",
dpranke244f973d62015-11-20 05:38:10693 "//third_party/opus:test_opus_api",
dprankedb5527d72015-03-08 04:22:47694 "//third_party/opus:test_opus_decode",
695 "//third_party/opus:test_opus_encode",
dprankedb5527d72015-03-08 04:22:47696 "//third_party/opus:test_opus_padding",
dpranke244f973d62015-11-20 05:38:10697 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47698 "//third_party/webrtc/system_wrappers:field_trial_default",
699 "//third_party/webrtc/system_wrappers:metrics_default",
700 "//ui/display/types",
701 "//ui/shell_dialogs:shell_dialogs_unittests",
702 "//ui/views/examples:views_examples_exe",
dprankedb5527d72015-03-08 04:22:47703 ]
dprankeb0713542015-07-31 21:07:21704
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16705 if (target_cpu == "x86" || target_cpu == "x64") {
agrieve473155b42015-12-28 20:23:11706 if (!is_android) {
707 deps += [ "//chrome/test:load_library_perf_tests" ]
708 }
mcgrathr916aafa2015-09-15 00:06:53709 deps += [
mcgrathr916aafa2015-09-15 00:06:53710 "//native_client/src/trusted/platform_qualify:vcpuid",
dpranke244f973d62015-11-20 05:38:10711 "//third_party/libjpeg_turbo:simd_asm",
mcgrathr916aafa2015-09-15 00:06:53712 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16713 }
dprankedb5527d72015-03-08 04:22:47714 if (use_ozone) {
715 deps += [ "//ui/ozone/demo" ]
716 }
dpranke807f602b2015-03-17 23:20:56717
718 if (is_linux && current_toolchain == host_toolchain) {
719 deps += [ "//v8:d8" ]
720 }
dprankedb5527d72015-03-08 04:22:47721 }
dprankeb0713542015-07-31 21:07:21722
sbc92b4d572016-02-18 03:28:23723 if (enable_nacl) {
724 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
725 }
726
agrieve473155b42015-12-28 20:23:11727 if (is_android) {
728 deps += [
729 "//build/android/gyp/test:hello_world",
730 "//build/android/incremental_install:bootstrap_java",
731 ]
nyquistb5f050b2015-09-10 05:10:35732 }
733
skyostilfe116162016-02-26 20:53:33734 if (is_linux && use_ozone) {
735 deps += [
736 "//headless",
737 "//headless:headless_tests",
738 ]
739 }
740
agrieve473155b42015-12-28 20:23:11741 if (!is_chromecast && (is_android || is_linux || is_chromeos)) {
742 deps += [
743 "//blimp",
744 "//blimp:blimp_tests",
745 ]
dprankeb0713542015-07-31 21:07:21746 }
dprankedb5527d72015-03-08 04:22:47747}
748
749group("gn_mojo_targets") {
750 testonly = true
751 if (is_linux && !is_chromeos) {
752 # TODO(GYP): Figure out if any of these should be in gn_all
753 # and figure out how cross-platform they are
754 deps = [
dprankedb5527d72015-03-08 04:22:47755 "//ipc/mojo:ipc_mojo_perftests",
dprankedb5527d72015-03-08 04:22:47756 "//media/mojo:tests",
dpranke244f973d62015-11-20 05:38:10757 "//media/mojo/services:cdm_service",
msw1bb9c6c2015-05-06 21:35:44758 "//mojo:tests",
dprankedb5527d72015-03-08 04:22:47759 ]
dprankedb5527d72015-03-08 04:22:47760 }
761}
762
763group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03764 deps = [
dprankeb6128d02015-05-01 16:40:30765 "//build/config/sanitizers:options_sources",
766
dprankedb5527d72015-03-08 04:22:47767 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
768 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dprankeb6128d02015-05-01 16:40:30769
770 "//ui/resources:repack_ui_test_mac_locale_pack",
dpranked62d8512015-03-02 03:06:03771 ]
dpranked2fb5222015-09-10 22:39:05772
773 if (!is_ios) {
774 deps += [
dpranked2fb5222015-09-10 22:39:05775 "//v8:postmortem-metadata",
dpranke244f973d62015-11-20 05:38:10776 "//v8:v8_snapshot",
dpranked2fb5222015-09-10 22:39:05777 ]
778 }
dpranked62d8512015-03-02 03:06:03779}
780
tfarinacb2638b2015-05-12 03:24:15781if (!is_ios) {
782 # This group includes all of the targets needed to build and test Blink,
783 # including running the layout tests (see below).
784 group("blink_tests") {
785 testonly = true
786
787 deps = [
788 "//third_party/WebKit/public:all_blink",
789 ]
790
791 # NOTE: The following deps are needed to run the layout tests
792 # (run-webkit-tests) but there is no GN target for the layout tests,
793 # so we need to specify the dependencies here instead.
794 if (is_android) {
795 deps += [
pkotwicza4d233b22015-11-02 18:20:38796 "//breakpad:breakpad_unittests_deps",
tfarinacb2638b2015-05-12 03:24:15797 "//breakpad:dump_syms($host_toolchain)",
pkotwicza4d233b22015-11-02 18:20:38798 "//breakpad:microdump_stackwalk($host_toolchain)",
799 "//breakpad:minidump_dump($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15800 "//breakpad:minidump_stackwalk($host_toolchain)",
pkotwicza4d233b22015-11-02 18:20:38801 "//breakpad:symupload($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15802 "//content/shell/android:content_shell_apk",
ojan94989c72015-07-17 21:56:42803 "//tools/imagediff($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15804 ]
805 } else {
ojan94989c72015-07-17 21:56:42806 deps += [
807 "//content/shell:content_shell",
808 "//tools/imagediff",
809 ]
tfarinacb2638b2015-05-12 03:24:15810 }
811
812 if (is_win) {
813 deps += [
jochen73e711c2015-06-03 10:01:46814 "//components/test_runner:layout_test_helper",
brettw0d3b1df2015-12-03 00:10:01815 "//content/shell:content_shell_crash_service",
tfarinacb2638b2015-05-12 03:24:15816 ]
817 }
818
819 if (!is_win && !is_android) {
Gordana.Cmiljanovicf243e9a2015-05-26 22:14:47820 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15821 }
822
823 if (is_mac) {
824 deps += [
825 "//breakpad:dump_syms($host_toolchain)",
jochen73e711c2015-06-03 10:01:46826 "//components/test_runner:layout_test_helper",
tfarinacb2638b2015-05-12 03:24:15827 ]
828 }
829
830 if (is_linux) {
831 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
832 }
833 }
834}
835
dpranke6abd8652015-08-28 03:21:11836# Add a dummy target for compatibility w/ GYP
837group("chromium_swarm_tests") {
838}
839
dpranke2302dfa2015-09-29 02:21:52840group("chromium_builder_perf") {
841 testonly = true
842
843 # TODO(GYP): Make this target work on the mac.
844 if (!is_ios && !is_android && !is_chromecast && !is_mac) {
845 deps = [
846 "//cc:cc_perftests",
847 "//chrome",
848 "//chrome/test:load_library_perf_tests",
849 "//chrome/test:sync_performance_tests",
850 "//gpu:gpu_perftests",
851 "//media:media_perftests",
852 "//media/midi:midi_unittests",
nednguyenc42bf912016-01-27 01:39:28853 "//third_party/catapult/telemetry:bitmaptools",
dpranke2302dfa2015-09-29 02:21:52854 ]
855
856 if (!is_chromeos) {
857 deps += [ "//chrome/test:performance_browser_tests" ]
858 }
859 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:04860 if (is_official_build) {
861 # In GN builds, this is controlled by the 'linux_dump_symbols'
862 # flag, which defaults to 1 for official builds. For now,
863 # we skip the separate flag and just key off of is_official_build.
864 deps += [ "//chrome:linux_symbols" ]
865 }
dpranke2302dfa2015-09-29 02:21:52866
867 if (!is_chromeos) {
868 deps += [ "//tools/perf/clear_system_cache" ]
869 }
870 }
871
872 if (is_win) {
873 deps += [
brettw0d3b1df2015-12-03 00:10:01874 "//chrome/tools/crash_service",
dpranke2302dfa2015-09-29 02:21:52875 # "//gpu:angle_perftests", TODO(GYP): crbug.com/537008
876 ]
877
878 if (target_cpu == "x86") {
brettw0d3b1df2015-12-03 00:10:01879 deps += [ "//chrome/tools/crash_service:crash_service_win64" ]
dpranke2302dfa2015-09-29 02:21:52880 }
881 } else {
dprankeec10b3932015-10-02 17:58:23882 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52883 }
884 }
885}
agrieve017b91f2016-02-29 20:15:06886
887# Because of the source assignment filter, many targets end up over-filtering
888# their sources if the output directory contains a platform name. Assert that
889# this doesn't happen. http://crbug.com/548283
890template("assert_valid_out_dir") {
891 # List copied from //build/config/BUILDCONFIG.gn.
892 set_sources_assignment_filter([
893 "*\bandroid/*",
894 "*\bchromeos/*",
895 "*\bcocoa/*",
896 "*\bios/*",
897 "*\blinux/*",
898 "*\bmac/*",
899 "*\bposix/*",
900 "*\bwin/*",
901 ])
902 assert(target_name != "") # Mark as used.
903 sources = invoker.actual_sources
904 assert(
905 sources == invoker.actual_sources,
906 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
907}
908
909assert_valid_out_dir("_unused") {
910 actual_sources = [ "$root_build_dir/foo" ]
911}