[go: nahoru, domu]

blob: c98f59f1c8dd04bf7bcd535031c734e14c7d4357 [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
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") {
dprankee2ef3822015-02-24 21:42:1887 testonly = true
dprankee2ef3822015-02-24 21:42:1888 deps = [
89 "//base:base_unittests",
brettwa874dcc2015-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",
brettwa874dcc2015-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",
dpranke244f9732015-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",
markdittmerd88b8352016-04-08 15:28:45178 "//gpu/ipc/service:gpu_ipc_service_unittests",
pkotwicz558d5252015-10-19 21:09:55179 "//ipc:ipc_tests",
180 "//ipc/mojo:ipc_mojo_unittests",
181 "//media:media_unittests",
miu45b848fe2015-11-26 01:23:29182 "//media/cast:cast_unittests",
pkotwicz558d5252015-10-19 21:09:55183 "//media/midi:midi_unittests",
184 "//mojo",
pkotwicz558d5252015-10-19 21:09:55185 "//mojo/common:mojo_common_unittests",
rockotc637caf9b2016-02-10 09:57:08186 "//mojo/edk/system:mojo_system_unittests",
187 "//mojo/edk/test:mojo_public_bindings_unittests",
rockotc637caf9b2016-02-10 09:57:08188 "//mojo/edk/test:mojo_public_system_unittests",
pkotwicz558d5252015-10-19 21:09:55189 "//net:net_perftests",
benf709a3092016-04-12 22:38:22190 "//services/shell/public/cpp",
Dirk Pranke49802732015-12-10 01:36:41191 "//third_party/WebKit/Source/platform:blink_heap_unittests",
192 "//third_party/WebKit/Source/platform:blink_platform_unittests",
dpranke244f9732015-11-20 05:38:10193 "//third_party/WebKit/Source/web:webkit_unit_tests",
194 "//third_party/WebKit/Source/wtf:wtf_unittests",
nednguyenc42bf912016-01-27 01:39:28195 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35196 "//third_party/smhasher:pmurhash",
197 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35198 "//ui/display:display_unittests",
199 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35200 "//ui/gl:gl_unittests",
201 "//ui/touch_selection:ui_touch_selection_unittests",
markdittmer67b71ea2016-03-03 22:40:03202 "//url/ipc:url_ipc_unittests",
sherouk53f0f1a2015-08-03 15:59:35203 ]
sdefresne998e8582015-10-07 13:36:45204 } else {
sdefresnea378b452015-10-08 09:55:58205 deps += [
sdefresne3bdd5632016-03-26 00:06:26206 "//ios/chrome:ios_chrome_unittests",
207 "//ios/chrome/app",
208 "//ios/chrome/browser",
dpranke0e5462c2016-02-23 19:57:46209 "//ios/chrome/common",
sdefresnea378b452015-10-08 09:55:58210 "//ios/net:ios_net_unittests",
dpranke0e5462c2016-02-23 19:57:46211 "//ios/public/provider/chrome/browser",
sdefresne89308c92015-11-16 10:40:34212 "//ios/public/provider/web",
sdefresnec6ddd7ac2015-10-09 17:30:19213 "//ios/testing:ocmock_support_unittest",
baxley33bcc1342016-02-24 20:43:09214 "//ios/third_party/fishhook",
sdefresnea9045f42016-02-23 15:22:45215 "//ios/third_party/ochamcrest",
sdefresne44b76fd2016-03-31 02:37:37216 "//ios/web:ios_web_inttests",
sdefresneaa7c1cf2015-10-22 00:41:11217 "//ios/web:ios_web_unittests",
dpranke244f9732015-11-20 05:38:10218 "//ios/web/shell:ios_web_shell",
sdefresnea378b452015-10-08 09:55:58219 ]
agrieve97dd57d2016-01-05 19:26:27220 }
221
scottmg34fb7e52014-12-03 23:27:24222 deps += root_extra_deps
brettw@chromium.orgfce5c3fe2014-04-10 21:13:05223
tfarina4aa9edc2015-10-26 22:14:02224 if (enable_extensions) {
rockot2f1326e2015-02-23 23:53:51225 deps += [ "//extensions/shell:app_shell_unittests" ]
dprankefd1813272015-04-13 23:56:00226 }
227
dprankefd1813272015-04-13 23:56:00228 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55229 deps += [ "//chrome/browser/media/router" ]
rockot2f1326e2015-02-23 23:53:51230 }
231
garykac3eddb5b2015-04-17 23:16:38232 if (enable_remoting) {
233 deps += [ "//remoting:remoting_all" ]
James Robinson060f2e32014-09-10 22:31:37234 }
235
dprankee2ef3822015-02-24 21:42:18236 if (toolkit_views) {
237 deps += [ "//ui/views:views_unittests" ]
brettw@chromium.org6b9028ab2014-07-23 17:15:38238 }
239
dprankee2ef3822015-02-24 21:42:18240 if (use_aura) {
mswda0133e62016-02-16 20:50:02241 deps += [
242 "//ash:ash_shell_with_content",
243 "//ash:ash_unittests",
mfomitchev216ff0b2016-04-06 19:45:39244 "//ui/app_list/shower:app_list_shower_unittests",
mswda0133e62016-02-16 20:50:02245 "//ui/aura:aura_unittests",
mswda0133e62016-02-16 20:50:02246 "//ui/aura:demo",
247 "//ui/wm:wm_unittests",
248 ]
dprankee2ef3822015-02-24 21:42:18249 }
250
251 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47252 deps += [ "//ui/ozone" ]
tfarina@chromium.orga306aaa2014-05-24 13:21:50253 }
254
dprankefd1813272015-04-13 23:56:00255 if (use_x11) {
256 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22257 }
258
tmoniuszkoe5578b922015-04-14 09:38:03259 if (enable_configuration_policy) {
260 deps += [ "//components/policy:policy_templates" ]
261 }
262
dprankefd1813272015-04-13 23:56:00263 if (v8_use_external_startup_data) {
264 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
brettw@chromium.org137dff6d2014-06-12 19:35:55265 }
266
brettw66e3feab2015-07-20 23:52:22267 if (is_win) {
brettwf986f952015-10-07 17:18:15268 deps += [
269 "//chrome/installer/gcapi",
270 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
271 ]
brettw66e3feab2015-07-20 23:52:22272 }
273
dpranke@chromium.org5a8d5162014-04-12 01:19:16274 if (is_android) {
cjhopman@chromium.org26046b52014-07-16 00:11:03275 deps += [
pkotwicze2dae8b2015-11-03 20:12:55276 "//base:base_junit_tests",
dpranke244f9732015-11-20 05:38:10277 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38278 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02279 "//build/android/rezip",
pkotwicze2dae8b2015-11-03 20:12:55280 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
281 "//components/policy/android:components_policy_junit_tests",
282 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45283 "//content/shell/android:content_shell_apk",
284 "//content/test:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55285 "//net/android:net_junit_tests",
jbudorick5ef42902016-04-07 04:17:11286 "//testing/android/junit:junit_unit_tests",
pkotwicz8adff4e2015-12-17 21:55:45287 "//third_party/android_tools:uiautomator_java",
agrieve40ba6862015-07-15 02:09:05288 "//third_party/errorprone:chromium_errorprone",
pkotwicz8adff4e2015-12-17 21:55:45289 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10290 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49291 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34292 "//tools/android:push_apps_to_background",
pkotwicz8b9d18c2015-10-05 01:59:33293 "//tools/android/heap_profiler:heap_profiler_unittests",
dgn28050da2015-10-19 10:16:43294 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
pkotwicz077093762015-12-21 16:47:15295 "//tools/cygprofile:cygprofile_unittests",
dprankee2ef3822015-02-24 21:42:18296 "//tools/imagediff($host_toolchain)",
newt9e226032016-01-26 01:30:15297 "//ui/android:ui_junit_tests",
dprankee2ef3822015-02-24 21:42:18298 ]
299 deps -= [
rockot9c67e5f2015-03-12 20:01:21300 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18301 "//url:url_unittests",
cjhopman@chromium.org26046b52014-07-16 00:11:03302 ]
303
pkotwicz92e2e2312015-12-15 22:29:46304 if (!is_component_build) {
305 deps += [
agrievee23386b2016-01-05 04:47:58306 "//components/cronet/android:cronet_package",
pkotwicz92e2e2312015-12-15 22:29:46307 "//components/cronet/android:cronet_sample_apk",
308 "//components/cronet/android:cronet_sample_test_apk",
309 "//components/cronet/android:cronet_test_apk",
310 "//components/cronet/android:cronet_test_instrumentation_apk",
311 "//components/cronet/android:cronet_unittests",
312 ]
313 }
314
pkotwicz061c5a42015-09-30 02:16:54315 if (!is_chromecast) {
316 deps += [
michaelbaicbcc7e62015-11-12 04:29:53317 "//android_webview",
agrieveb08e2f5b2015-12-29 01:17:30318 "//android_webview/test",
mikecase49971fc2016-03-21 21:18:05319 "//android_webview/tools/system_webview_shell",
pkotwicze2dae8b2015-11-03 20:12:55320 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54321 "//chrome/android:chrome_public_apk",
322 "//chrome/android:chrome_public_test_apk",
323 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b2015-12-28 20:23:11324 "//content/shell/android:content_shell_test_apk",
pkotwicz0a2255e2015-10-06 16:29:05325 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54326 ]
327 }
328
pkotwicz06a4b4b42015-10-29 23:11:11329 if (target_cpu != "x64") {
330 deps += [ "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)" ]
331 }
332
cjhopmanca675d3e2014-10-24 03:50:45333 if (has_chrome_android_internal) {
dprankee2ef3822015-02-24 21:42:18334 deps += [ "//clank" ] # TODO(GYP) ??
cjhopmanca675d3e2014-10-24 03:50:45335 }
dprankefd1813272015-04-13 23:56:00336 }
337
pkotwicza4d233b22015-11-02 18:20:38338 if (is_linux || is_android) { # TODO(GYP): || is_bsd?
dprankefd1813272015-04-13 23:56:00339 deps += [
pkotwicza4d233b22015-11-02 18:20:38340 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00341 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38342 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00343 "//breakpad:minidump-2-core",
344 ]
345 }
346
dpranke6293d252015-04-14 19:12:00347 if (is_chromeos) {
348 deps += [
349 "//chromeos:chromeos_unittests",
yoshiki8e2ddbb2016-03-10 07:11:22350 "//ui/arc:ui_arc_unittests",
dpranke6293d252015-04-14 19:12:00351 "//ui/chromeos:ui_chromeos_unittests",
352 ]
353 }
354
dprankefd1813272015-04-13 23:56:00355 if (is_chromeos || is_mac || is_win) {
356 deps += [
357 "//rlz:rlz_id",
358 "//rlz:rlz_lib",
359 "//rlz:rlz_unittests",
360 ]
dprankedb5527d72015-03-08 04:22:47361 }
362
363 if (is_linux) {
364 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06365 deps += [
dpranke2bc89212015-11-18 00:24:43366 "//chrome:manpage",
367 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47368 "//dbus:dbus_test_server",
dprankee2ef3822015-02-24 21:42:18369 "//dbus:dbus_unittests",
dprankedb5527d72015-03-08 04:22:47370 "//net:disk_cache_memory_test",
371 "//net:flip_in_mem_edsm_server",
372 "//net:flip_in_mem_edsm_server_unittests",
373 "//net:quic_client",
374 "//net:quic_server",
375 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18376 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06377 ]
dnicoara8c6aa8e2015-03-11 23:20:32378
379 if (is_chromeos || use_ash) {
380 deps += [ "//components/session_manager/core" ]
dpranke2bc89212015-11-18 00:24:43381 }
382
383 if (is_chrome_branded && is_official_build) {
384 # TODO(dpranke): add the linux_dump_symbols flag?
385 deps += [ "//chrome:linux_symbols" ]
dnicoara8c6aa8e2015-03-11 23:20:32386 }
dprankedb5527d72015-03-08 04:22:47387 }
388
sherouke1859f92015-08-05 10:19:10389 if (is_ios || is_win || (is_linux && !is_chromeos)) {
390 deps += [
391 "//base:base_i18n_perftests",
392 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58393 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10394 ]
395 }
396
agrieve473155b2015-12-28 20:23:11397 if (is_android || is_win || (is_linux && !is_chromeos)) {
tfarina9e7cf702015-02-23 21:13:44398 deps += [
dprankedb5527d72015-03-08 04:22:47399 "//base:build_utf8_validator_tables",
dpranke244f9732015-11-20 05:38:10400 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47401 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00402 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47403 "//components:components_perftests",
dprankedb5527d72015-03-08 04:22:47404 "//content/test:content_gl_benchmark",
dpranke244f9732015-11-20 05:38:10405 "//content/test:content_gl_tests",
dprankedb5527d72015-03-08 04:22:47406 "//device:device_unittests",
407 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47408 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47409 "//google_apis/gcm:mcs_probe",
dprankefd1813272015-04-13 23:56:00410 "//gpu:gl_tests",
dpranke244f9732015-11-20 05:38:10411 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47412 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47413 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00414 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47415 "//sync:run_sync_testserver",
dprankedb5527d72015-03-08 04:22:47416 "//third_party/codesighs:maptsvdifftool",
dprankefd1813272015-04-13 23:56:00417 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47418 "//ui/compositor:compositor_unittests",
419 ]
420
agrieve473155b2015-12-28 20:23:11421 # TODO(GYP): Figure out which of these should (and can) build
422 # for chromeos/mac/ios.
423 if (!is_android) {
424 deps += [
425 "//chrome/test:load_library_perf_tests",
426 "//chrome/test:sync_performance_tests",
427 "//chrome/test/chromedriver:chromedriver",
428 "//chrome/test/chromedriver:chromedriver_tests",
429 "//courgette:courgette",
430 "//courgette:courgette_fuzz",
431 "//courgette:courgette_minimal_tool",
432 "//courgette:courgette_unittests",
433 "//media/cast:generate_barcode_video",
434 "//media/cast:generate_timecode_audio",
435 "//net:crash_cache",
436 "//net:crl_set_dump",
437 "//net:dns_fuzz_stub",
438 "//net:gdig",
439 "//net:get_server_time",
440 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
441 "//net:run_testserver",
442 "//net:stress_cache",
443 "//net:tld_cleanup",
444 "//ppapi:pepper_hash_for_uma",
445 "//ppapi:ppapi_perftests",
446 "//third_party/angle/src/tests:angle_unittests",
447 "//third_party/leveldatabase:env_chromium_unittests",
448 "//third_party/libaddressinput:libaddressinput_unittests",
449 ]
450 }
451 if (!is_android && !is_linux) {
dpranke7e19b472015-11-13 00:49:33452 # TODO(dpranke): Re-enable this once
453 # https://chromium-review.googlesource.com/#/c/312298/1 is rolled
454 # into chromium.
455 deps += [ "//third_party/angle/src/tests:angle_end2end_tests" ]
456 }
457
dprankedb5527d72015-03-08 04:22:47458 if (enable_extensions) {
459 deps += [ "//extensions/shell:app_shell" ]
460 }
461
462 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13463 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43464
465 if (is_linux) {
466 # TODO(dpranke): Figure out what platforms should actually have this.
467 deps += [
brettwf4b4a4282015-12-16 00:41:13468 "//components/nacl/loader:helper_nonsfi",
469 "//components/nacl/loader:nacl_helper",
jbudorick3c0ef43092016-02-03 23:40:16470 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
dpranke2bc89212015-11-18 00:24:43471 ]
472 }
dprankedb5527d72015-03-08 04:22:47473 }
474
xhwangfa2d9d472015-12-18 23:31:18475 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10476 deps += [ "//media:ffmpeg_regression_tests" ]
dprankedb5527d72015-03-08 04:22:47477 }
dprankefd1813272015-04-13 23:56:00478 }
479
agrieve473155b2015-12-28 20:23:11480 if (is_android || (is_linux && !is_chromeos)) {
dprankefd1813272015-04-13 23:56:00481 deps += [
482 # TODO(GYP): Figure out which of these should (and can) build
483 # under which other conditions.
agrieve473155b2015-12-28 20:23:11484 "//breakpad:dump_syms($host_toolchain)",
485 "//breakpad:microdump_stackwalk($host_toolchain)",
486 "//breakpad:minidump_dump($host_toolchain)",
487 "//breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00488 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00489 "//content/public/app:browser",
490 "//content/public/app:child",
491
492 # TODO(GYP): Remove this when the gles2 tests work
493 "//gpu/command_buffer/client:gles2_implementation_no_check",
dprankefd1813272015-04-13 23:56:00494 "//gpu/khronos_glcts_support:khronos_glcts_test", # TODO(GYP) crbug.com/471903 to make this complete.
rockotc637caf9b2016-02-10 09:57:08495 "//mojo/edk/test:mojo_public_system_perftests",
benf709a3092016-04-12 22:38:22496 "//services/shell/public/cpp",
dprankefd1813272015-04-13 23:56:00497 "//testing/gmock:gmock_main",
dpranke244f9732015-11-20 05:38:10498 "//third_party/codesighs:nm2tsv",
dprankefd1813272015-04-13 23:56:00499 ]
500
agrieve473155b2015-12-28 20:23:11501 if (!is_android) {
502 deps += [
503 "//build/sanitizers:copy_llvm_symbolizer",
504 "//chrome/test:chrome_app_unittests",
505 "//media/cast:cast_benchmarks",
506 "//media/cast:tap_proxy",
507 "//skia:filter_fuzz_stub",
508 "//skia:image_operations_bench",
509 "//sync/tools:sync_client",
510 "//sync/tools:sync_listen_notifications",
511 "//third_party/sqlite:sqlite_shell",
512 "//ui/keyboard:keyboard_unittests",
513 "//ui/message_center:message_center_unittests",
514 "//ui/snapshot:snapshot_unittests",
515 "//ui/views/examples:views_examples_with_content_exe",
516 ]
dprankefd1813272015-04-13 23:56:00517
agrieve473155b2015-12-28 20:23:11518 if (!is_debug && !is_component_build) {
519 deps += [ "//chrome/tools/service_discovery_sniffer" ]
520 }
dprankefd1813272015-04-13 23:56:00521 }
522
523 if (toolkit_views) {
524 deps += [ "//ui/app_list:app_list_demo" ]
525 }
dprankedb5527d72015-03-08 04:22:47526
527 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44528 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59529 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44530 }
dprankedb5527d72015-03-08 04:22:47531 }
532 }
533
534 if (is_mac) {
535 deps += [
536 "//breakpad:crash_inspector",
537 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44538 "//third_party/apple_sample_code",
539 "//third_party/molokocacao",
540 ]
dpranke43760592014-11-08 02:59:57541 deps -= [
brettw011138d2015-10-21 03:05:38542 # Mojo in GN contains some things which are never compiled in GYP on Mac,
543 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10544 "//mojo",
mohsen29fd4052014-12-08 21:06:46545 ]
dprankefd1813272015-04-13 23:56:00546 }
547
548 if (is_win) {
549 deps += [
550 "//base:pe_image_test",
grt734e87b2015-07-06 19:36:43551 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00552 "//chrome_elf:chrome_elf_unittests",
553 "//chrome_elf:dll_hash_main",
dprankefd1813272015-04-13 23:56:00554 "//components/wifi:wifi_test",
555 "//net:quic_client",
556 "//net:quic_server",
557 "//sandbox/win:pocdll",
558 "//sandbox/win:sandbox_poc",
559 "//sandbox/win:sbox_integration_tests",
560 "//sandbox/win:sbox_unittests",
561 "//sandbox/win:sbox_validation_tests",
562 "//testing/gtest:gtest_main",
563 "//third_party/codesighs:msmap2tsv",
564 "//third_party/pdfium/samples:pdfium_diff",
dprankefd1813272015-04-13 23:56:00565 ]
dprankee2ef3822015-02-24 21:42:18566 deps -= [
567 "//crypto:crypto_unittests", # TODO(GYP)
568 "//net:net_unittests", # TODO(GYP)
569 ]
sherouk53f0f1a2015-08-03 15:59:35570 } else if (!is_android && !is_ios) {
miu45b848fe2015-11-26 01:23:29571 deps += [ "//breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34572 }
slance9d62f2015-11-04 01:15:01573 if (is_chromecast) {
574 deps += [ "//chromecast:cast_shell" ]
575 }
miu45b848fe2015-11-26 01:23:29576
dpranked43eab42015-12-15 23:10:44577 if (is_mac) { # TODO(GYP) || is_ios
miu45b848fe2015-11-26 01:23:29578 deps += [ "//media/cast:cast_h264_vt_encoder_unittests" ]
579 }
hbos17a7b4a22015-12-07 10:49:45580
581 if (use_openh264) {
582 deps += [
583 "//third_party/openh264:common",
584 "//third_party/openh264:encoder",
585 "//third_party/openh264:processing",
586 ]
587 }
dpranke18e57432015-02-27 21:46:47588}
589
sky60a230b2016-01-23 01:04:53590# This group contains all the targets needed to run mojo's apptest_runner.
591group("mojo_apptests") {
592 testonly = true
593
594 deps = []
595
596 if (is_win || is_linux) {
597 deps += [
skyfcde3a42016-02-09 20:27:44598 "//components/resource_provider:resource_provider_unittests",
sky48ad0962016-03-22 19:45:59599 "//mash:mash_unittests",
jrummell135d61e2016-01-27 19:36:17600 "//media/mojo/services:tests",
sky60a230b2016-01-23 01:04:53601 "//ui/views/mus:tests",
602 ]
603 }
604}
605
dpranked62d8512015-03-02 03:06:03606group("gn_only") {
dprankedb5527d72015-03-08 04:22:47607 testonly = true
608
dpranke2a294622015-08-07 05:23:01609 deps = []
610
amistry4dcd7c42015-12-16 04:53:10611 if (!is_ios) {
612 deps += [ "//mojo/common:mojo_common_perftests" ]
613 }
614
dpranke244f9732015-11-20 05:38:10615 if (!is_android && !is_ios && !is_chromeos) {
isherman0f89b43eb2015-04-11 00:02:45616 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
617 }
618
ben8f4e95ad2015-12-01 18:35:58619 if (is_win || is_linux) {
sky70471b22016-01-14 16:20:54620 deps += [
sky60a230b2016-01-23 01:04:53621 ":mojo_apptests",
kylecharbd601e5a2016-03-31 13:11:35622 "//components/mus/demo",
rockot6a2b0422016-03-09 17:14:59623 "//components/mus/ws:tests",
sky70471b22016-01-14 16:20:54624 "//mash:all",
skyfcde3a42016-02-09 20:27:44625 "//mojo",
sky70471b22016-01-14 16:20:54626 ]
sky97b65592015-11-02 20:08:25627 }
628
zhaoqin756f8572016-01-25 21:41:17629 if (is_win && use_drfuzz) {
630 # build libfuzzer fuzzers on Windows to run with Dr. Fuzz
631 deps += [
632 "//testing/libfuzzer/fuzzers",
633 "//testing/libfuzzer/tests:libfuzzer_tests",
634 ]
635 }
636
slance9d62f2015-11-04 01:15:01637 if (is_linux && !is_chromeos && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47638 # TODO(GYP): Figure out if any of these should be in gn_all
639 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45640 deps += [
dprankedb5527d72015-03-08 04:22:47641 ":gn_mojo_targets",
642 "//chrome/browser/resources:extension_resource_demo",
643 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47644 "//chrome/tools/convert_dict",
645 "//components/constrained_window:unit_tests",
erg716b6172016-03-18 18:30:29646 "//components/filesystem:unittests",
ergf1f689f2016-03-22 00:51:20647 "//components/leveldb:leveldb_service_unittests",
dprankedb5527d72015-03-08 04:22:47648 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45649 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47650 "//components/rappor:unit_tests",
651 "//components/sessions:unit_tests",
652 "//media/blink:media_blink_unittests",
dprankedb5527d72015-03-08 04:22:47653 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47654 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
655 "//storage/browser:dump_file_system",
kjellanderd8592082016-03-31 15:51:40656 "//testing/libfuzzer/fuzzers",
657 "//testing/libfuzzer/tests:libfuzzer_tests",
dprankedb5527d72015-03-08 04:22:47658 "//third_party/angle:libANGLE",
659 "//third_party/angle:libEGL",
660 "//third_party/angle:libGLESv2",
661 "//third_party/cld_2:cld_2_dynamic_data_tool",
662 "//third_party/leveldatabase:leveldb_arena_test",
663 "//third_party/leveldatabase:leveldb_bloom_test",
dprankedb5527d72015-03-08 04:22:47664 "//third_party/leveldatabase:leveldb_cache_test",
dprankedb5527d72015-03-08 04:22:47665 "//third_party/leveldatabase:leveldb_corruption_test",
dpranke244f9732015-11-20 05:38:10666 "//third_party/leveldatabase:leveldb_crc32c_test",
667 "//third_party/leveldatabase:leveldb_db_bench",
668 "//third_party/leveldatabase:leveldb_db_test",
dprankedb5527d72015-03-08 04:22:47669 "//third_party/leveldatabase:leveldb_dbformat_test",
dpranke244f9732015-11-20 05:38:10670 "//third_party/leveldatabase:leveldb_env_test",
671 "//third_party/leveldatabase:leveldb_filename_test",
672 "//third_party/leveldatabase:leveldb_filter_block_test",
673 "//third_party/leveldatabase:leveldb_log_test",
674 "//third_party/leveldatabase:leveldb_skiplist_test",
675 "//third_party/leveldatabase:leveldb_table_test",
676 "//third_party/leveldatabase:leveldb_version_edit_test",
677 "//third_party/leveldatabase:leveldb_write_batch_test",
dprankedb5527d72015-03-08 04:22:47678 "//third_party/libjpeg_turbo:simd",
dpranke244f9732015-11-20 05:38:10679 "//third_party/libsrtp:rdbx_driver",
dprankedb5527d72015-03-08 04:22:47680 "//third_party/libsrtp:replay_driver",
681 "//third_party/libsrtp:roc_driver",
682 "//third_party/libsrtp:rtpw",
dprankedb5527d72015-03-08 04:22:47683 "//third_party/libsrtp:srtp_driver",
684 "//third_party/libsrtp:srtp_driver",
dpranke244f9732015-11-20 05:38:10685 "//third_party/libsrtp:srtp_test_aes_calc",
dprankedb5527d72015-03-08 04:22:47686 "//third_party/libsrtp:srtp_test_cipher_driver",
687 "//third_party/libsrtp:srtp_test_datatypes_driver",
dprankedb5527d72015-03-08 04:22:47688 "//third_party/libsrtp:srtp_test_env",
dpranke244f9732015-11-20 05:38:10689 "//third_party/libsrtp:srtp_test_kernel_driver",
dprankedb5527d72015-03-08 04:22:47690 "//third_party/libsrtp:srtp_test_rand_gen",
691 "//third_party/libsrtp:srtp_test_sha1_driver",
692 "//third_party/libsrtp:srtp_test_stat_driver",
693 "//third_party/opus:opus_compare",
694 "//third_party/opus:opus_demo",
dpranke244f9732015-11-20 05:38:10695 "//third_party/opus:test_opus_api",
dprankedb5527d72015-03-08 04:22:47696 "//third_party/opus:test_opus_decode",
697 "//third_party/opus:test_opus_encode",
dprankedb5527d72015-03-08 04:22:47698 "//third_party/opus:test_opus_padding",
dpranke244f9732015-11-20 05:38:10699 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47700 "//third_party/webrtc/system_wrappers:field_trial_default",
701 "//third_party/webrtc/system_wrappers:metrics_default",
702 "//ui/display/types",
703 "//ui/shell_dialogs:shell_dialogs_unittests",
704 "//ui/views/examples:views_examples_exe",
dprankedb5527d72015-03-08 04:22:47705 ]
dprankeb0713542015-07-31 21:07:21706
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16707 if (target_cpu == "x86" || target_cpu == "x64") {
agrieve473155b2015-12-28 20:23:11708 if (!is_android) {
709 deps += [ "//chrome/test:load_library_perf_tests" ]
710 }
mcgrathr916aafa2015-09-15 00:06:53711 deps += [
mcgrathr916aafa2015-09-15 00:06:53712 "//native_client/src/trusted/platform_qualify:vcpuid",
dpranke244f9732015-11-20 05:38:10713 "//third_party/libjpeg_turbo:simd_asm",
mcgrathr916aafa2015-09-15 00:06:53714 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16715 }
dpranke807f6022015-03-17 23:20:56716 if (is_linux && current_toolchain == host_toolchain) {
717 deps += [ "//v8:d8" ]
718 }
aizatskye9aba582016-03-25 22:37:16719 }
720
spang324dc57a2016-04-06 14:54:08721 if (use_ozone) {
722 deps += [ "//ui/ozone/demo" ]
723 }
724
sbc92b4d572016-02-18 03:28:23725 if (enable_nacl) {
726 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
727 }
728
agrieve473155b2015-12-28 20:23:11729 if (is_android) {
730 deps += [
731 "//build/android/gyp/test:hello_world",
732 "//build/android/incremental_install:bootstrap_java",
733 ]
nyquistb5f050b2015-09-10 05:10:35734 }
735
skyostilfe116162016-02-26 20:53:33736 if (is_linux && use_ozone) {
737 deps += [
738 "//headless",
739 "//headless:headless_tests",
740 ]
741 }
742
agrieve473155b2015-12-28 20:23:11743 if (!is_chromecast && (is_android || is_linux || is_chromeos)) {
744 deps += [
745 "//blimp",
746 "//blimp:blimp_tests",
aizatskyddefc992015-11-20 08:42:03747 ]
aizatskyfc46a9f2015-10-09 21:20:08748 }
dprankedb5527d72015-03-08 04:22:47749}
750
751group("gn_mojo_targets") {
752 testonly = true
753 if (is_linux && !is_chromeos) {
754 # TODO(GYP): Figure out if any of these should be in gn_all
755 # and figure out how cross-platform they are
756 deps = [
dprankedb5527d72015-03-08 04:22:47757 "//ipc/mojo:ipc_mojo_perftests",
dprankedb5527d72015-03-08 04:22:47758 "//media/mojo:tests",
dpranke244f9732015-11-20 05:38:10759 "//media/mojo/services:cdm_service",
msw1bb9c6c2015-05-06 21:35:44760 "//mojo:tests",
dprankedb5527d72015-03-08 04:22:47761 ]
dprankedb5527d72015-03-08 04:22:47762 }
763}
764
765group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03766 deps = [
dprankeb6128d02015-05-01 16:40:30767 "//build/config/sanitizers:options_sources",
768
dprankedb5527d72015-03-08 04:22:47769 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
770 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dprankeb6128d02015-05-01 16:40:30771
772 "//ui/resources:repack_ui_test_mac_locale_pack",
dpranked62d8512015-03-02 03:06:03773 ]
dpranked2fb5222015-09-10 22:39:05774
775 if (!is_ios) {
776 deps += [
dpranked2fb5222015-09-10 22:39:05777 "//v8:postmortem-metadata",
dpranke244f9732015-11-20 05:38:10778 "//v8:v8_snapshot",
dpranked2fb5222015-09-10 22:39:05779 ]
780 }
dpranked62d8512015-03-02 03:06:03781}
782
tfarinacb2638b2015-05-12 03:24:15783if (!is_ios) {
784 # This group includes all of the targets needed to build and test Blink,
785 # including running the layout tests (see below).
786 group("blink_tests") {
787 testonly = true
788
789 deps = [
790 "//third_party/WebKit/public:all_blink",
791 ]
792
793 # NOTE: The following deps are needed to run the layout tests
794 # (run-webkit-tests) but there is no GN target for the layout tests,
795 # so we need to specify the dependencies here instead.
796 if (is_android) {
797 deps += [
agrieve62ab00282016-04-05 02:03:45798 "//breakpad:breakpad_unittests",
tfarinacb2638b2015-05-12 03:24:15799 "//breakpad:dump_syms($host_toolchain)",
pkotwicza4d233b22015-11-02 18:20:38800 "//breakpad:microdump_stackwalk($host_toolchain)",
801 "//breakpad:minidump_dump($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15802 "//breakpad:minidump_stackwalk($host_toolchain)",
pkotwicza4d233b22015-11-02 18:20:38803 "//breakpad:symupload($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15804 "//content/shell/android:content_shell_apk",
ojan94989c72015-07-17 21:56:42805 "//tools/imagediff($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15806 ]
807 } else {
ojan94989c72015-07-17 21:56:42808 deps += [
809 "//content/shell:content_shell",
810 "//tools/imagediff",
811 ]
tfarinacb2638b2015-05-12 03:24:15812 }
813
814 if (is_win) {
815 deps += [
jochen73e711c2015-06-03 10:01:46816 "//components/test_runner:layout_test_helper",
brettw0d3b1df2015-12-03 00:10:01817 "//content/shell:content_shell_crash_service",
tfarinacb2638b2015-05-12 03:24:15818 ]
819 }
820
821 if (!is_win && !is_android) {
Gordana.Cmiljanovicf243e9a2015-05-26 22:14:47822 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15823 }
824
825 if (is_mac) {
826 deps += [
827 "//breakpad:dump_syms($host_toolchain)",
jochen73e711c2015-06-03 10:01:46828 "//components/test_runner:layout_test_helper",
tfarinacb2638b2015-05-12 03:24:15829 ]
830 }
831
832 if (is_linux) {
833 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
834 }
835 }
836}
837
dpranke6abd8652015-08-28 03:21:11838# Add a dummy target for compatibility w/ GYP
839group("chromium_swarm_tests") {
840}
841
dpranke2302dfa2015-09-29 02:21:52842group("chromium_builder_perf") {
843 testonly = true
844
845 # TODO(GYP): Make this target work on the mac.
846 if (!is_ios && !is_android && !is_chromecast && !is_mac) {
847 deps = [
848 "//cc:cc_perftests",
849 "//chrome",
850 "//chrome/test:load_library_perf_tests",
851 "//chrome/test:sync_performance_tests",
852 "//gpu:gpu_perftests",
853 "//media:media_perftests",
854 "//media/midi:midi_unittests",
nednguyenc42bf912016-01-27 01:39:28855 "//third_party/catapult/telemetry:bitmaptools",
dpranke2302dfa2015-09-29 02:21:52856 ]
857
858 if (!is_chromeos) {
859 deps += [ "//chrome/test:performance_browser_tests" ]
860 }
861 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:04862 if (is_official_build) {
863 # In GN builds, this is controlled by the 'linux_dump_symbols'
864 # flag, which defaults to 1 for official builds. For now,
865 # we skip the separate flag and just key off of is_official_build.
866 deps += [ "//chrome:linux_symbols" ]
867 }
dpranke2302dfa2015-09-29 02:21:52868
869 if (!is_chromeos) {
870 deps += [ "//tools/perf/clear_system_cache" ]
871 }
872 }
873
874 if (is_win) {
875 deps += [
dpranke2302dfa2015-09-29 02:21:52876 # "//gpu:angle_perftests", TODO(GYP): crbug.com/537008
877 ]
dpranke2302dfa2015-09-29 02:21:52878 } else {
dprankeec10b3932015-10-02 17:58:23879 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52880 }
881 }
882}
agrieve017b91f2016-02-29 20:15:06883
884# Because of the source assignment filter, many targets end up over-filtering
885# their sources if the output directory contains a platform name. Assert that
886# this doesn't happen. http://crbug.com/548283
887template("assert_valid_out_dir") {
888 # List copied from //build/config/BUILDCONFIG.gn.
889 set_sources_assignment_filter([
890 "*\bandroid/*",
891 "*\bchromeos/*",
892 "*\bcocoa/*",
893 "*\bios/*",
894 "*\blinux/*",
895 "*\bmac/*",
896 "*\bposix/*",
897 "*\bwin/*",
898 ])
899 assert(target_name != "") # Mark as used.
900 sources = invoker.actual_sources
901 assert(
902 sources == invoker.actual_sources,
903 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
904}
905
906assert_valid_out_dir("_unused") {
907 actual_sources = [ "$root_build_dir/foo" ]
908}