[go: nahoru, domu]

blob: 66a1cc464bd4225f4bae833d2e75e836ef588179 [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#
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") {
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 ]
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
Dirk Prankef00b78b2016-04-18 23:59:2081# TODO(GYP): This target exists for compatibility with GYP for the builders.
82# For now, this builds everything. We should decide if we want to build less.
83group("chromium_builder_tests") {
84 testonly = true
85
86 deps = [
87 ":All",
88 ]
89}
90
dprankeddc174902015-04-29 01:38:3591# The "both_gn_and_gyp" target should reflect every target that is built
92# in both the GN and GYP builds, and ideally it should match the
93# "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line.
94#
95# TODO(GYP): Add build steps that check and enforce this on the bots.
96group("both_gn_and_gyp") {
dprankee2ef3822015-02-24 21:42:1897 testonly = true
dprankee2ef3822015-02-24 21:42:1898 deps = [
99 "//base:base_unittests",
brettwa874dcc2015-08-28 23:59:18100 "//chrome/installer",
sheroukdc35ba272015-09-22 14:09:37101 "//components:components_unittests",
sheroukce1c7d72015-08-24 15:21:59102 "//net:net_unittests",
sherouk2866d662015-08-24 16:29:44103 "//skia:skia_unittests",
brettwa874dcc2015-08-28 23:59:18104 "//sql:sql_unittests",
sherouk3eee4a82015-09-01 10:42:33105 "//sync:sync_unit_tests",
ochangcc11d0e2016-04-26 19:58:26106 "//tools/ipc_fuzzer:ipc_fuzzer_all",
sherouk4fb74d42015-08-24 15:58:41107 "//ui/base:ui_base_unittests",
sherouk84a45ff2015-09-01 13:31:39108 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:41109 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:18110 ]
dpranke2a294622015-08-07 05:23:01111
sdefresne21832bf92016-03-30 22:01:02112 if (!is_android && !is_chromecast) {
113 deps += [
114 "//crypto:crypto_unittests",
115 "//google_apis/gcm:gcm_unit_tests",
116 ]
117 }
118
slance9d62f2015-11-04 01:15:01119 if (!is_ios && !is_android && !is_chromecast) {
sherouk53f0f1a2015-08-03 15:59:35120 deps += [
sherouk53f0f1a2015-08-03 15:59:35121 "//chrome",
122 "//chrome/test:browser_tests",
123 "//chrome/test:interactive_ui_tests",
124 "//chrome/test:sync_integration_tests",
sherouk53f0f1a2015-08-03 15:59:35125 "//chrome/test/chromedriver:chromedriver_unittests",
sherouk53f0f1a2015-08-03 15:59:35126 "//extensions:extensions_browsertests",
127 "//extensions:extensions_unittests",
dprankedbdd9d82015-08-12 21:18:18128 "//gpu/gles2_conform_support:gles2_conform_test",
sherouk53f0f1a2015-08-03 15:59:35129 "//jingle:jingle_unittests",
sherouk53f0f1a2015-08-03 15:59:35130 "//net:hpack_example_generator",
131 "//net:hpack_fuzz_mutator",
132 "//net:hpack_fuzz_wrapper",
sherouk53f0f1a2015-08-03 15:59:35133 "//ppapi:ppapi_unittests",
134 "//ppapi/examples/2d",
135 "//ppapi/examples/audio",
136 "//ppapi/examples/audio_input",
137 "//ppapi/examples/compositor",
138 "//ppapi/examples/crxfs",
139 "//ppapi/examples/enumerate_devices",
140 "//ppapi/examples/file_chooser",
141 "//ppapi/examples/flash_topmost",
142 "//ppapi/examples/font",
143 "//ppapi/examples/gamepad",
144 "//ppapi/examples/gles2",
145 "//ppapi/examples/gles2_spinning_cube",
146 "//ppapi/examples/ime",
147 "//ppapi/examples/input",
148 "//ppapi/examples/media_stream_audio",
149 "//ppapi/examples/media_stream_video",
150 "//ppapi/examples/mouse_cursor",
151 "//ppapi/examples/mouse_lock",
152 "//ppapi/examples/printing",
153 "//ppapi/examples/scaling",
154 "//ppapi/examples/scripting",
155 "//ppapi/examples/stub",
156 "//ppapi/examples/threading",
157 "//ppapi/examples/url_loader",
158 "//ppapi/examples/video_capture",
159 "//ppapi/examples/video_decode",
160 "//ppapi/examples/video_effects",
161 "//ppapi/examples/video_encode",
162 "//printing:printing_unittests",
sherouk53f0f1a2015-08-03 15:59:35163 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
164 "//third_party/codesighs",
pkotwicz558d5252015-10-19 21:09:55165 "//third_party/pdfium/samples:pdfium_test",
charliea00055282016-01-26 00:15:15166 "//tools/battor_agent",
charliea5daef2bb2016-01-29 00:13:25167 "//tools/battor_agent:battor_agent_unittests",
pkotwicz558d5252015-10-19 21:09:55168 "//tools/gn",
dpranke244f9732015-11-20 05:38:10169 "//tools/gn:gn_unittests",
pkotwicz558d5252015-10-19 21:09:55170 "//tools/perf/clear_system_cache",
171 "//ui/accessibility:accessibility_unittests",
172 "//ui/app_list:app_list_unittests",
173 ]
174 }
175
176 if (!is_ios) {
177 # TODO(GYP): Figure out which of these should actually build on iOS,
178 # and whether there should be other targets that are iOS-only and missing.
179 deps += [
180 "//cc:cc_unittests",
181 "//chrome/test:unit_tests",
182 "//components:components_browsertests",
183 "//content/shell:content_shell",
184 "//content/test:content_browsertests",
185 "//content/test:content_perftests",
186 "//content/test:content_unittests",
187 "//device:device_unittests",
188 "//gpu:gpu_unittests",
markdittmerd88b8352016-04-08 15:28:45189 "//gpu/ipc/service:gpu_ipc_service_unittests",
pkotwicz558d5252015-10-19 21:09:55190 "//ipc:ipc_tests",
191 "//ipc/mojo:ipc_mojo_unittests",
192 "//media:media_unittests",
miu45b848fe2015-11-26 01:23:29193 "//media/cast:cast_unittests",
pkotwicz558d5252015-10-19 21:09:55194 "//media/midi:midi_unittests",
195 "//mojo",
pkotwicz558d5252015-10-19 21:09:55196 "//mojo/common:mojo_common_unittests",
rockotc637caf9b2016-02-10 09:57:08197 "//mojo/edk/system:mojo_system_unittests",
198 "//mojo/edk/test:mojo_public_bindings_unittests",
rockotc637caf9b2016-02-10 09:57:08199 "//mojo/edk/test:mojo_public_system_unittests",
pkotwicz558d5252015-10-19 21:09:55200 "//net:net_perftests",
benf709a3092016-04-12 22:38:22201 "//services/shell/public/cpp",
Dirk Pranke49802732015-12-10 01:36:41202 "//third_party/WebKit/Source/platform:blink_heap_unittests",
203 "//third_party/WebKit/Source/platform:blink_platform_unittests",
dpranke244f9732015-11-20 05:38:10204 "//third_party/WebKit/Source/web:webkit_unit_tests",
205 "//third_party/WebKit/Source/wtf:wtf_unittests",
nednguyenc42bf912016-01-27 01:39:28206 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35207 "//third_party/smhasher:pmurhash",
208 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35209 "//ui/display:display_unittests",
210 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35211 "//ui/gl:gl_unittests",
212 "//ui/touch_selection:ui_touch_selection_unittests",
markdittmer67b71ea2016-03-03 22:40:03213 "//url/ipc:url_ipc_unittests",
sherouk53f0f1a2015-08-03 15:59:35214 ]
sdefresne998e8582015-10-07 13:36:45215 } else {
sdefresnea378b452015-10-08 09:55:58216 deps += [
sdefresne3bdd5632016-03-26 00:06:26217 "//ios/chrome:ios_chrome_unittests",
218 "//ios/chrome/app",
219 "//ios/chrome/browser",
dpranke0e5462c2016-02-23 19:57:46220 "//ios/chrome/common",
sdefresnea378b452015-10-08 09:55:58221 "//ios/net:ios_net_unittests",
dpranke0e5462c2016-02-23 19:57:46222 "//ios/public/provider/chrome/browser",
sdefresne89308c92015-11-16 10:40:34223 "//ios/public/provider/web",
sdefresnec6ddd7ac2015-10-09 17:30:19224 "//ios/testing:ocmock_support_unittest",
sdefresne22de3c92016-04-14 08:51:10225 "//ios/third_party/earl_grey",
sdefresne44b76fd2016-03-31 02:37:37226 "//ios/web:ios_web_inttests",
sdefresneaa7c1cf2015-10-22 00:41:11227 "//ios/web:ios_web_unittests",
dpranke244f9732015-11-20 05:38:10228 "//ios/web/shell:ios_web_shell",
sdefresnea378b452015-10-08 09:55:58229 ]
agrieve97dd57d2016-01-05 19:26:27230 }
231
scottmg34fb7e52014-12-03 23:27:24232 deps += root_extra_deps
brettw@chromium.orgfce5c3fe2014-04-10 21:13:05233
tfarina4aa9edc2015-10-26 22:14:02234 if (enable_extensions) {
rockot2f1326e2015-02-23 23:53:51235 deps += [ "//extensions/shell:app_shell_unittests" ]
dprankefd1813272015-04-13 23:56:00236 }
237
dprankefd1813272015-04-13 23:56:00238 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55239 deps += [ "//chrome/browser/media/router" ]
rockot2f1326e2015-02-23 23:53:51240 }
241
garykac3eddb5b2015-04-17 23:16:38242 if (enable_remoting) {
243 deps += [ "//remoting:remoting_all" ]
James Robinson060f2e32014-09-10 22:31:37244 }
245
dprankee2ef3822015-02-24 21:42:18246 if (toolkit_views) {
247 deps += [ "//ui/views:views_unittests" ]
brettw@chromium.org6b9028ab2014-07-23 17:15:38248 }
249
dprankee2ef3822015-02-24 21:42:18250 if (use_aura) {
mswda0133e62016-02-16 20:50:02251 deps += [
252 "//ash:ash_shell_with_content",
253 "//ash:ash_unittests",
mfomitchevda899d82016-04-15 22:20:37254 "//ui/app_list/presenter:app_list_presenter_unittests",
mswda0133e62016-02-16 20:50:02255 "//ui/aura:aura_unittests",
mswda0133e62016-02-16 20:50:02256 "//ui/aura:demo",
257 "//ui/wm:wm_unittests",
258 ]
dprankee2ef3822015-02-24 21:42:18259 }
260
261 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47262 deps += [ "//ui/ozone" ]
tfarina@chromium.orga306aaa2014-05-24 13:21:50263 }
264
dprankefd1813272015-04-13 23:56:00265 if (use_x11) {
266 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22267 }
268
tmoniuszkoe5578b922015-04-14 09:38:03269 if (enable_configuration_policy) {
270 deps += [ "//components/policy:policy_templates" ]
271 }
272
dprankefd1813272015-04-13 23:56:00273 if (v8_use_external_startup_data) {
274 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
brettw@chromium.org137dff6d2014-06-12 19:35:55275 }
276
brettw66e3feab2015-07-20 23:52:22277 if (is_win) {
brettwf986f952015-10-07 17:18:15278 deps += [
279 "//chrome/installer/gcapi",
280 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
281 ]
brettw66e3feab2015-07-20 23:52:22282 }
283
dpranke@chromium.org5a8d5162014-04-12 01:19:16284 if (is_android) {
cjhopman@chromium.org26046b52014-07-16 00:11:03285 deps += [
pkotwicze2dae8b2015-11-03 20:12:55286 "//base:base_junit_tests",
dpranke244f9732015-11-20 05:38:10287 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38288 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02289 "//build/android/rezip",
pkotwicze2dae8b2015-11-03 20:12:55290 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
291 "//components/policy/android:components_policy_junit_tests",
292 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45293 "//content/shell/android:content_shell_apk",
294 "//content/test:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55295 "//net/android:net_junit_tests",
jbudorick5ef42902016-04-07 04:17:11296 "//testing/android/junit:junit_unit_tests",
pkotwicz8adff4e2015-12-17 21:55:45297 "//third_party/android_tools:uiautomator_java",
agrieve40ba6862015-07-15 02:09:05298 "//third_party/errorprone:chromium_errorprone",
pkotwicz8adff4e2015-12-17 21:55:45299 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10300 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49301 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34302 "//tools/android:push_apps_to_background",
pkotwicz8b9d18c2015-10-05 01:59:33303 "//tools/android/heap_profiler:heap_profiler_unittests",
dgn28050da2015-10-19 10:16:43304 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
pkotwicz077093762015-12-21 16:47:15305 "//tools/cygprofile:cygprofile_unittests",
newt9e226032016-01-26 01:30:15306 "//ui/android:ui_junit_tests",
dprankee2ef3822015-02-24 21:42:18307 ]
308 deps -= [
rockot9c67e5f2015-03-12 20:01:21309 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18310 "//url:url_unittests",
cjhopman@chromium.org26046b52014-07-16 00:11:03311 ]
312
pkotwicz92e2e2312015-12-15 22:29:46313 if (!is_component_build) {
314 deps += [
agrievee23386b2016-01-05 04:47:58315 "//components/cronet/android:cronet_package",
pkotwicz92e2e2312015-12-15 22:29:46316 "//components/cronet/android:cronet_sample_apk",
317 "//components/cronet/android:cronet_sample_test_apk",
318 "//components/cronet/android:cronet_test_apk",
319 "//components/cronet/android:cronet_test_instrumentation_apk",
320 "//components/cronet/android:cronet_unittests",
321 ]
322 }
323
pkotwicz061c5a42015-09-30 02:16:54324 if (!is_chromecast) {
325 deps += [
michaelbaicbcc7e62015-11-12 04:29:53326 "//android_webview",
agrieveb08e2f5b2015-12-29 01:17:30327 "//android_webview/test",
mikecase49971fc2016-03-21 21:18:05328 "//android_webview/tools/system_webview_shell",
pkotwicze2dae8b2015-11-03 20:12:55329 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54330 "//chrome/android:chrome_public_apk",
331 "//chrome/android:chrome_public_test_apk",
332 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b2015-12-28 20:23:11333 "//content/shell/android:content_shell_test_apk",
pkotwicz0a2255e2015-10-06 16:29:05334 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54335 ]
336 }
337
pkotwicz06a4b4b42015-10-29 23:11:11338 if (target_cpu != "x64") {
339 deps += [ "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)" ]
340 }
341
cjhopmanca675d3e2014-10-24 03:50:45342 if (has_chrome_android_internal) {
dprankee2ef3822015-02-24 21:42:18343 deps += [ "//clank" ] # TODO(GYP) ??
cjhopmanca675d3e2014-10-24 03:50:45344 }
dprankefd1813272015-04-13 23:56:00345 }
346
pkotwicza4d233b22015-11-02 18:20:38347 if (is_linux || is_android) { # TODO(GYP): || is_bsd?
dprankefd1813272015-04-13 23:56:00348 deps += [
pkotwicza4d233b22015-11-02 18:20:38349 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00350 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38351 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00352 "//breakpad:minidump-2-core",
353 ]
354 }
355
dpranke6293d252015-04-14 19:12:00356 if (is_chromeos) {
357 deps += [
358 "//chromeos:chromeos_unittests",
yoshiki8e2ddbb2016-03-10 07:11:22359 "//ui/arc:ui_arc_unittests",
dpranke6293d252015-04-14 19:12:00360 "//ui/chromeos:ui_chromeos_unittests",
361 ]
362 }
363
dprankefd1813272015-04-13 23:56:00364 if (is_chromeos || is_mac || is_win) {
365 deps += [
366 "//rlz:rlz_id",
367 "//rlz:rlz_lib",
368 "//rlz:rlz_unittests",
369 ]
dprankedb5527d72015-03-08 04:22:47370 }
371
372 if (is_linux) {
373 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06374 deps += [
dpranke2bc89212015-11-18 00:24:43375 "//chrome:manpage",
376 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47377 "//dbus:dbus_test_server",
dprankee2ef3822015-02-24 21:42:18378 "//dbus:dbus_unittests",
dprankedb5527d72015-03-08 04:22:47379 "//net:disk_cache_memory_test",
380 "//net:flip_in_mem_edsm_server",
381 "//net:flip_in_mem_edsm_server_unittests",
382 "//net:quic_client",
383 "//net:quic_server",
384 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18385 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06386 ]
dnicoara8c6aa8e2015-03-11 23:20:32387
388 if (is_chromeos || use_ash) {
389 deps += [ "//components/session_manager/core" ]
dpranke2bc89212015-11-18 00:24:43390 }
391
392 if (is_chrome_branded && is_official_build) {
393 # TODO(dpranke): add the linux_dump_symbols flag?
394 deps += [ "//chrome:linux_symbols" ]
dnicoara8c6aa8e2015-03-11 23:20:32395 }
dprankedb5527d72015-03-08 04:22:47396 }
397
sherouke1859f92015-08-05 10:19:10398 if (is_ios || is_win || (is_linux && !is_chromeos)) {
399 deps += [
400 "//base:base_i18n_perftests",
401 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58402 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10403 ]
404 }
405
agrieve473155b2015-12-28 20:23:11406 if (is_android || is_win || (is_linux && !is_chromeos)) {
tfarina9e7cf702015-02-23 21:13:44407 deps += [
dprankedb5527d72015-03-08 04:22:47408 "//base:build_utf8_validator_tables",
dpranke244f9732015-11-20 05:38:10409 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47410 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00411 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47412 "//components:components_perftests",
fsamuel540b8c12016-04-21 18:47:10413 "//components/display_compositor:display_compositor_unittests",
dprankedb5527d72015-03-08 04:22:47414 "//device:device_unittests",
415 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47416 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47417 "//google_apis/gcm:mcs_probe",
dprankefd1813272015-04-13 23:56:00418 "//gpu:gl_tests",
dpranke244f9732015-11-20 05:38:10419 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47420 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47421 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00422 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47423 "//sync:run_sync_testserver",
dprankedb5527d72015-03-08 04:22:47424 "//third_party/codesighs:maptsvdifftool",
dprankefd1813272015-04-13 23:56:00425 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47426 "//ui/compositor:compositor_unittests",
427 ]
428
agrieve473155b2015-12-28 20:23:11429 # TODO(GYP): Figure out which of these should (and can) build
430 # for chromeos/mac/ios.
431 if (!is_android) {
432 deps += [
433 "//chrome/test:load_library_perf_tests",
434 "//chrome/test:sync_performance_tests",
435 "//chrome/test/chromedriver:chromedriver",
436 "//chrome/test/chromedriver:chromedriver_tests",
437 "//courgette:courgette",
438 "//courgette:courgette_fuzz",
439 "//courgette:courgette_minimal_tool",
440 "//courgette:courgette_unittests",
441 "//media/cast:generate_barcode_video",
442 "//media/cast:generate_timecode_audio",
443 "//net:crash_cache",
444 "//net:crl_set_dump",
445 "//net:dns_fuzz_stub",
446 "//net:gdig",
447 "//net:get_server_time",
448 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
449 "//net:run_testserver",
450 "//net:stress_cache",
451 "//net:tld_cleanup",
452 "//ppapi:pepper_hash_for_uma",
453 "//ppapi:ppapi_perftests",
454 "//third_party/angle/src/tests:angle_unittests",
455 "//third_party/leveldatabase:env_chromium_unittests",
456 "//third_party/libaddressinput:libaddressinput_unittests",
457 ]
458 }
459 if (!is_android && !is_linux) {
dpranke7e19b472015-11-13 00:49:33460 # TODO(dpranke): Re-enable this once
461 # https://chromium-review.googlesource.com/#/c/312298/1 is rolled
462 # into chromium.
463 deps += [ "//third_party/angle/src/tests:angle_end2end_tests" ]
464 }
465
dprankedb5527d72015-03-08 04:22:47466 if (enable_extensions) {
467 deps += [ "//extensions/shell:app_shell" ]
468 }
469
470 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13471 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43472
473 if (is_linux) {
474 # TODO(dpranke): Figure out what platforms should actually have this.
475 deps += [
brettwf4b4a4282015-12-16 00:41:13476 "//components/nacl/loader:helper_nonsfi",
477 "//components/nacl/loader:nacl_helper",
jbudorick3c0ef43092016-02-03 23:40:16478 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
dpranke2bc89212015-11-18 00:24:43479 ]
480 }
dprankedb5527d72015-03-08 04:22:47481 }
482
xhwangfa2d9d472015-12-18 23:31:18483 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10484 deps += [ "//media:ffmpeg_regression_tests" ]
dprankedb5527d72015-03-08 04:22:47485 }
dprankefd1813272015-04-13 23:56:00486 }
487
agrieve473155b2015-12-28 20:23:11488 if (is_android || (is_linux && !is_chromeos)) {
dprankefd1813272015-04-13 23:56:00489 deps += [
490 # TODO(GYP): Figure out which of these should (and can) build
491 # under which other conditions.
agrieve473155b2015-12-28 20:23:11492 "//breakpad:dump_syms($host_toolchain)",
493 "//breakpad:microdump_stackwalk($host_toolchain)",
494 "//breakpad:minidump_dump($host_toolchain)",
495 "//breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00496 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00497 "//content/public/app:browser",
498 "//content/public/app:child",
499
500 # TODO(GYP): Remove this when the gles2 tests work
501 "//gpu/command_buffer/client:gles2_implementation_no_check",
rockotc637caf9b2016-02-10 09:57:08502 "//mojo/edk/test:mojo_public_system_perftests",
benf709a3092016-04-12 22:38:22503 "//services/shell/public/cpp",
dprankefd1813272015-04-13 23:56:00504 "//testing/gmock:gmock_main",
dpranke244f9732015-11-20 05:38:10505 "//third_party/codesighs:nm2tsv",
dprankefd1813272015-04-13 23:56:00506 ]
507
agrieve473155b2015-12-28 20:23:11508 if (!is_android) {
509 deps += [
510 "//build/sanitizers:copy_llvm_symbolizer",
511 "//chrome/test:chrome_app_unittests",
agrievedb0b5f02016-04-22 00:19:48512 "//gpu/khronos_glcts_support:khronos_glcts_test", # TODO(GYP) crbug.com/471903 to make this complete.
agrieve473155b2015-12-28 20:23:11513 "//media/cast:cast_benchmarks",
514 "//media/cast:tap_proxy",
515 "//skia:filter_fuzz_stub",
516 "//skia:image_operations_bench",
517 "//sync/tools:sync_client",
518 "//sync/tools:sync_listen_notifications",
519 "//third_party/sqlite:sqlite_shell",
520 "//ui/keyboard:keyboard_unittests",
521 "//ui/message_center:message_center_unittests",
522 "//ui/snapshot:snapshot_unittests",
523 "//ui/views/examples:views_examples_with_content_exe",
524 ]
dprankefd1813272015-04-13 23:56:00525
agrieve473155b2015-12-28 20:23:11526 if (!is_debug && !is_component_build) {
527 deps += [ "//chrome/tools/service_discovery_sniffer" ]
528 }
dprankefd1813272015-04-13 23:56:00529 }
530
531 if (toolkit_views) {
532 deps += [ "//ui/app_list:app_list_demo" ]
533 }
dprankedb5527d72015-03-08 04:22:47534
535 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44536 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59537 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44538 }
dprankedb5527d72015-03-08 04:22:47539 }
540 }
541
542 if (is_mac) {
543 deps += [
544 "//breakpad:crash_inspector",
545 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44546 "//third_party/apple_sample_code",
547 "//third_party/molokocacao",
548 ]
dpranke43760592014-11-08 02:59:57549 deps -= [
brettw011138d2015-10-21 03:05:38550 # Mojo in GN contains some things which are never compiled in GYP on Mac,
551 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10552 "//mojo",
mohsen29fd4052014-12-08 21:06:46553 ]
dprankefd1813272015-04-13 23:56:00554 }
555
556 if (is_win) {
557 deps += [
558 "//base:pe_image_test",
grt734e87b2015-07-06 19:36:43559 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00560 "//chrome_elf:chrome_elf_unittests",
561 "//chrome_elf:dll_hash_main",
dprankefd1813272015-04-13 23:56:00562 "//components/wifi:wifi_test",
563 "//net:quic_client",
564 "//net:quic_server",
565 "//sandbox/win:pocdll",
566 "//sandbox/win:sandbox_poc",
567 "//sandbox/win:sbox_integration_tests",
568 "//sandbox/win:sbox_unittests",
569 "//sandbox/win:sbox_validation_tests",
570 "//testing/gtest:gtest_main",
571 "//third_party/codesighs:msmap2tsv",
572 "//third_party/pdfium/samples:pdfium_diff",
dprankefd1813272015-04-13 23:56:00573 ]
dprankee2ef3822015-02-24 21:42:18574 deps -= [
575 "//crypto:crypto_unittests", # TODO(GYP)
576 "//net:net_unittests", # TODO(GYP)
577 ]
sherouk53f0f1a2015-08-03 15:59:35578 } else if (!is_android && !is_ios) {
miu45b848fe2015-11-26 01:23:29579 deps += [ "//breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34580 }
rsesek985bd812016-04-26 21:06:15581
slance9d62f2015-11-04 01:15:01582 if (is_chromecast) {
583 deps += [ "//chromecast:cast_shell" ]
584 }
miu45b848fe2015-11-26 01:23:29585
dpranked43eab42015-12-15 23:10:44586 if (is_mac) { # TODO(GYP) || is_ios
miu45b848fe2015-11-26 01:23:29587 deps += [ "//media/cast:cast_h264_vt_encoder_unittests" ]
588 }
hbos17a7b4a22015-12-07 10:49:45589
rsesek985bd812016-04-26 21:06:15590 if (is_mac || is_win) {
591 deps += [
592 "//third_party/crashpad/crashpad/handler:crashpad_handler",
593 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
594 ]
595 }
596
hbos17a7b4a22015-12-07 10:49:45597 if (use_openh264) {
598 deps += [
599 "//third_party/openh264:common",
600 "//third_party/openh264:encoder",
601 "//third_party/openh264:processing",
602 ]
603 }
dpranke18e57432015-02-27 21:46:47604}
605
sky60a230b2016-01-23 01:04:53606# This group contains all the targets needed to run mojo's apptest_runner.
607group("mojo_apptests") {
608 testonly = true
609
610 deps = []
611
612 if (is_win || is_linux) {
613 deps += [
skyfcde3a42016-02-09 20:27:44614 "//components/resource_provider:resource_provider_unittests",
sky48ad0962016-03-22 19:45:59615 "//mash:mash_unittests",
jrummell135d61e2016-01-27 19:36:17616 "//media/mojo/services:tests",
sky60a230b2016-01-23 01:04:53617 "//ui/views/mus:tests",
618 ]
619 }
620}
621
dpranked62d8512015-03-02 03:06:03622group("gn_only") {
dprankedb5527d72015-03-08 04:22:47623 testonly = true
624
dpranke2a294622015-08-07 05:23:01625 deps = []
626
amistry4dcd7c42015-12-16 04:53:10627 if (!is_ios) {
628 deps += [ "//mojo/common:mojo_common_perftests" ]
629 }
630
scheib35dc9202016-04-26 22:35:43631 if (!is_android && !is_ios) {
632 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
633 }
634
dpranke244f9732015-11-20 05:38:10635 if (!is_android && !is_ios && !is_chromeos) {
isherman0f89b43eb2015-04-11 00:02:45636 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
637 }
638
ben8f4e95ad2015-12-01 18:35:58639 if (is_win || is_linux) {
sky70471b22016-01-14 16:20:54640 deps += [
sky60a230b2016-01-23 01:04:53641 ":mojo_apptests",
kylecharbd601e5a2016-03-31 13:11:35642 "//components/mus/demo",
rockot6a2b0422016-03-09 17:14:59643 "//components/mus/ws:tests",
sky70471b22016-01-14 16:20:54644 "//mash:all",
skyfcde3a42016-02-09 20:27:44645 "//mojo",
sky70471b22016-01-14 16:20:54646 ]
sky97b65592015-11-02 20:08:25647 }
648
slance9d62f2015-11-04 01:15:01649 if (is_linux && !is_chromeos && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47650 # TODO(GYP): Figure out if any of these should be in gn_all
651 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45652 deps += [
dprankedb5527d72015-03-08 04:22:47653 ":gn_mojo_targets",
654 "//chrome/browser/resources:extension_resource_demo",
655 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47656 "//chrome/tools/convert_dict",
657 "//components/constrained_window:unit_tests",
erg716b6172016-03-18 18:30:29658 "//components/filesystem:unittests",
ergf1f689f2016-03-22 00:51:20659 "//components/leveldb:leveldb_service_unittests",
dprankedb5527d72015-03-08 04:22:47660 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45661 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47662 "//components/rappor:unit_tests",
663 "//components/sessions:unit_tests",
664 "//media/blink:media_blink_unittests",
dprankedb5527d72015-03-08 04:22:47665 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47666 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
667 "//storage/browser:dump_file_system",
668 "//third_party/angle:libANGLE",
669 "//third_party/angle:libEGL",
670 "//third_party/angle:libGLESv2",
671 "//third_party/cld_2:cld_2_dynamic_data_tool",
672 "//third_party/leveldatabase:leveldb_arena_test",
673 "//third_party/leveldatabase:leveldb_bloom_test",
dprankedb5527d72015-03-08 04:22:47674 "//third_party/leveldatabase:leveldb_cache_test",
dprankedb5527d72015-03-08 04:22:47675 "//third_party/leveldatabase:leveldb_corruption_test",
dpranke244f9732015-11-20 05:38:10676 "//third_party/leveldatabase:leveldb_crc32c_test",
677 "//third_party/leveldatabase:leveldb_db_bench",
678 "//third_party/leveldatabase:leveldb_db_test",
dprankedb5527d72015-03-08 04:22:47679 "//third_party/leveldatabase:leveldb_dbformat_test",
dpranke244f9732015-11-20 05:38:10680 "//third_party/leveldatabase:leveldb_env_test",
681 "//third_party/leveldatabase:leveldb_filename_test",
682 "//third_party/leveldatabase:leveldb_filter_block_test",
683 "//third_party/leveldatabase:leveldb_log_test",
684 "//third_party/leveldatabase:leveldb_skiplist_test",
685 "//third_party/leveldatabase:leveldb_table_test",
686 "//third_party/leveldatabase:leveldb_version_edit_test",
687 "//third_party/leveldatabase:leveldb_write_batch_test",
dprankedb5527d72015-03-08 04:22:47688 "//third_party/libjpeg_turbo:simd",
dpranke244f9732015-11-20 05:38:10689 "//third_party/libsrtp:rdbx_driver",
dprankedb5527d72015-03-08 04:22:47690 "//third_party/libsrtp:replay_driver",
691 "//third_party/libsrtp:roc_driver",
692 "//third_party/libsrtp:rtpw",
dprankedb5527d72015-03-08 04:22:47693 "//third_party/libsrtp:srtp_driver",
694 "//third_party/libsrtp:srtp_driver",
dpranke244f9732015-11-20 05:38:10695 "//third_party/libsrtp:srtp_test_aes_calc",
dprankedb5527d72015-03-08 04:22:47696 "//third_party/libsrtp:srtp_test_cipher_driver",
697 "//third_party/libsrtp:srtp_test_datatypes_driver",
dprankedb5527d72015-03-08 04:22:47698 "//third_party/libsrtp:srtp_test_env",
dpranke244f9732015-11-20 05:38:10699 "//third_party/libsrtp:srtp_test_kernel_driver",
dprankedb5527d72015-03-08 04:22:47700 "//third_party/libsrtp:srtp_test_rand_gen",
701 "//third_party/libsrtp:srtp_test_sha1_driver",
702 "//third_party/libsrtp:srtp_test_stat_driver",
703 "//third_party/opus:opus_compare",
704 "//third_party/opus:opus_demo",
dpranke244f9732015-11-20 05:38:10705 "//third_party/opus:test_opus_api",
dprankedb5527d72015-03-08 04:22:47706 "//third_party/opus:test_opus_decode",
707 "//third_party/opus:test_opus_encode",
dprankedb5527d72015-03-08 04:22:47708 "//third_party/opus:test_opus_padding",
dpranke244f9732015-11-20 05:38:10709 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47710 "//third_party/webrtc/system_wrappers:field_trial_default",
711 "//third_party/webrtc/system_wrappers:metrics_default",
712 "//ui/display/types",
713 "//ui/shell_dialogs:shell_dialogs_unittests",
714 "//ui/views/examples:views_examples_exe",
dprankedb5527d72015-03-08 04:22:47715 ]
dprankeb0713542015-07-31 21:07:21716
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16717 if (target_cpu == "x86" || target_cpu == "x64") {
agrieve473155b2015-12-28 20:23:11718 if (!is_android) {
719 deps += [ "//chrome/test:load_library_perf_tests" ]
720 }
mcgrathr916aafa2015-09-15 00:06:53721 deps += [
mcgrathr916aafa2015-09-15 00:06:53722 "//native_client/src/trusted/platform_qualify:vcpuid",
dpranke244f9732015-11-20 05:38:10723 "//third_party/libjpeg_turbo:simd_asm",
mcgrathr916aafa2015-09-15 00:06:53724 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16725 }
dpranke807f6022015-03-17 23:20:56726 if (is_linux && current_toolchain == host_toolchain) {
727 deps += [ "//v8:d8" ]
728 }
aizatskye9aba582016-03-25 22:37:16729 }
730
spang324dc57a2016-04-06 14:54:08731 if (use_ozone) {
732 deps += [ "//ui/ozone/demo" ]
733 }
734
aizatskyaf496112016-04-15 19:26:32735 if ((is_linux && !is_chromeos && !is_chromecast) || (is_win && use_drfuzz) ||
736 (use_libfuzzer && is_mac)) {
737 deps += [
738 "//testing/libfuzzer/fuzzers",
739 "//testing/libfuzzer/tests:libfuzzer_tests",
740 ]
741 }
742
sbc92b4d572016-02-18 03:28:23743 if (enable_nacl) {
744 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
745 }
746
agrieve473155b2015-12-28 20:23:11747 if (is_android) {
748 deps += [
749 "//build/android/gyp/test:hello_world",
750 "//build/android/incremental_install:bootstrap_java",
751 ]
nyquistb5f050b2015-09-10 05:10:35752 }
753
skyostilfe116162016-02-26 20:53:33754 if (is_linux && use_ozone) {
755 deps += [
756 "//headless",
757 "//headless:headless_tests",
758 ]
759 }
760
agrieve473155b2015-12-28 20:23:11761 if (!is_chromecast && (is_android || is_linux || is_chromeos)) {
762 deps += [
763 "//blimp",
764 "//blimp:blimp_tests",
aizatskyddefc992015-11-20 08:42:03765 ]
aizatskyfc46a9f2015-10-09 21:20:08766 }
dprankedb5527d72015-03-08 04:22:47767}
768
769group("gn_mojo_targets") {
770 testonly = true
771 if (is_linux && !is_chromeos) {
772 # TODO(GYP): Figure out if any of these should be in gn_all
773 # and figure out how cross-platform they are
774 deps = [
dprankedb5527d72015-03-08 04:22:47775 "//ipc/mojo:ipc_mojo_perftests",
dprankedb5527d72015-03-08 04:22:47776 "//media/mojo:tests",
dpranke244f9732015-11-20 05:38:10777 "//media/mojo/services:cdm_service",
msw1bb9c6c2015-05-06 21:35:44778 "//mojo:tests",
dprankedb5527d72015-03-08 04:22:47779 ]
dprankedb5527d72015-03-08 04:22:47780 }
781}
782
783group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03784 deps = [
dprankeb6128d02015-05-01 16:40:30785 "//build/config/sanitizers:options_sources",
786
dprankedb5527d72015-03-08 04:22:47787 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
788 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dprankeb6128d02015-05-01 16:40:30789
790 "//ui/resources:repack_ui_test_mac_locale_pack",
dpranked62d8512015-03-02 03:06:03791 ]
dpranked2fb5222015-09-10 22:39:05792
793 if (!is_ios) {
794 deps += [
dpranked2fb5222015-09-10 22:39:05795 "//v8:postmortem-metadata",
dpranke244f9732015-11-20 05:38:10796 "//v8:v8_snapshot",
dpranked2fb5222015-09-10 22:39:05797 ]
798 }
dpranked62d8512015-03-02 03:06:03799}
800
tfarinacb2638b2015-05-12 03:24:15801if (!is_ios) {
802 # This group includes all of the targets needed to build and test Blink,
803 # including running the layout tests (see below).
804 group("blink_tests") {
805 testonly = true
806
807 deps = [
agrieve993374cf2016-04-13 00:05:39808 "//content/shell:content_shell",
tfarinacb2638b2015-05-12 03:24:15809 "//third_party/WebKit/public:all_blink",
agrieve993374cf2016-04-13 00:05:39810 "//tools/imagediff",
tfarinacb2638b2015-05-12 03:24:15811 ]
812
813 # NOTE: The following deps are needed to run the layout tests
814 # (run-webkit-tests) but there is no GN target for the layout tests,
815 # so we need to specify the dependencies here instead.
816 if (is_android) {
817 deps += [
agrieve62ab00282016-04-05 02:03:45818 "//breakpad:breakpad_unittests",
agrieve993374cf2016-04-13 00:05:39819 "//breakpad:dump_syms",
820 "//breakpad:microdump_stackwalk",
821 "//breakpad:minidump_dump",
822 "//breakpad:minidump_stackwalk",
823 "//breakpad:symupload",
824 "//tools/android/forwarder",
ojan94989c72015-07-17 21:56:42825 ]
tfarinacb2638b2015-05-12 03:24:15826 }
827
828 if (is_win) {
829 deps += [
jochen73e711c2015-06-03 10:01:46830 "//components/test_runner:layout_test_helper",
brettw0d3b1df2015-12-03 00:10:01831 "//content/shell:content_shell_crash_service",
tfarinacb2638b2015-05-12 03:24:15832 ]
833 }
834
835 if (!is_win && !is_android) {
Gordana.Cmiljanovicf243e9a2015-05-26 22:14:47836 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15837 }
838
839 if (is_mac) {
840 deps += [
841 "//breakpad:dump_syms($host_toolchain)",
jochen73e711c2015-06-03 10:01:46842 "//components/test_runner:layout_test_helper",
tfarinacb2638b2015-05-12 03:24:15843 ]
844 }
845
846 if (is_linux) {
847 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
848 }
849 }
850}
851
dpranke6abd8652015-08-28 03:21:11852# Add a dummy target for compatibility w/ GYP
853group("chromium_swarm_tests") {
854}
855
dpranke2302dfa2015-09-29 02:21:52856group("chromium_builder_perf") {
857 testonly = true
858
859 # TODO(GYP): Make this target work on the mac.
860 if (!is_ios && !is_android && !is_chromecast && !is_mac) {
861 deps = [
862 "//cc:cc_perftests",
863 "//chrome",
864 "//chrome/test:load_library_perf_tests",
865 "//chrome/test:sync_performance_tests",
866 "//gpu:gpu_perftests",
867 "//media:media_perftests",
868 "//media/midi:midi_unittests",
nednguyenc42bf912016-01-27 01:39:28869 "//third_party/catapult/telemetry:bitmaptools",
dpranke2302dfa2015-09-29 02:21:52870 ]
871
872 if (!is_chromeos) {
873 deps += [ "//chrome/test:performance_browser_tests" ]
874 }
875 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:04876 if (is_official_build) {
877 # In GN builds, this is controlled by the 'linux_dump_symbols'
878 # flag, which defaults to 1 for official builds. For now,
879 # we skip the separate flag and just key off of is_official_build.
880 deps += [ "//chrome:linux_symbols" ]
881 }
dpranke2302dfa2015-09-29 02:21:52882
883 if (!is_chromeos) {
884 deps += [ "//tools/perf/clear_system_cache" ]
885 }
886 }
887
888 if (is_win) {
889 deps += [
dpranke2302dfa2015-09-29 02:21:52890 # "//gpu:angle_perftests", TODO(GYP): crbug.com/537008
891 ]
dpranke2302dfa2015-09-29 02:21:52892 } else {
dprankeec10b3932015-10-02 17:58:23893 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52894 }
895 }
896}
agrieve017b91f2016-02-29 20:15:06897
brettw6df3e8c2016-04-14 21:07:13898# For compatibility with GYP. The linux_chromium_chromeos_rel_ng and
899# linux_chromium_chromeos_compile_rel_ng bots reference this target as
900# something to build, but all targets for those bots to compile are set
901# up differently.
902# TODO bug 601920: Remove reference to aura_builder on bot config and delete
903# this group.
904group("aura_builder") {
905}
906
agrieve95ba4442016-04-25 15:47:13907if (is_android) {
908 group("optimize_gn_gen") {
909 deps = [
910 # These run expensive scripts in non-default toolchains. Generally, host
911 # toolchain targets are loaded in the later part of the run, and the
912 # result is they push out the end of generation. By preloading these, the
913 # scripts can be parallelized with the rest of the load.
914 "//build/config/linux(//build/toolchain/linux:clang_x64)",
915 "//build/config/posix(//build/toolchain/linux:clang_x64)",
916
917 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot
918 # generation.
919 "//build/config/linux(//build/toolchain/linux:clang_x86)",
920 "//build/config/posix(//build/toolchain/linux:clang_x86)",
921 ]
922 }
923}
924
agrieve017b91f2016-02-29 20:15:06925# Because of the source assignment filter, many targets end up over-filtering
926# their sources if the output directory contains a platform name. Assert that
927# this doesn't happen. http://crbug.com/548283
928template("assert_valid_out_dir") {
929 # List copied from //build/config/BUILDCONFIG.gn.
930 set_sources_assignment_filter([
931 "*\bandroid/*",
932 "*\bchromeos/*",
933 "*\bcocoa/*",
934 "*\bios/*",
935 "*\blinux/*",
936 "*\bmac/*",
937 "*\bposix/*",
938 "*\bwin/*",
939 ])
940 assert(target_name != "") # Mark as used.
941 sources = invoker.actual_sources
942 assert(
943 sources == invoker.actual_sources,
944 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
945}
946
947assert_valid_out_dir("_unused") {
948 actual_sources = [ "$root_build_dir/foo" ]
949}