[go: nahoru, domu]

blob: fb2c0cd52ebc8d5d468bb5511103b57e1a9f0456 [file] [log] [blame]
brettw@chromium.orgf0e7ff882013-12-26 21:23:091# Copyright (c) 2013 The Chromium Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5# This is the root build file for GN. GN will start processing by loading this
6# file, and recursively load all dependencies until all dependencies are either
7# resolved or known not to exist (which will cause the build to fail). So if
8# you add a new build file, there must be some path of dependencies from this
9# file to your new one or GN won't know about it.
10
rockot2f1326e2015-02-23 23:53:5111import("//build/config/features.gni")
aizatskyfc46a9f2015-10-09 21:20:0812import("//build/config/sanitizers/sanitizers.gni")
tfarina@chromium.org378b4f02014-06-10 15:58:4513import("//build/config/ui.gni")
dpranked4da5ab2015-10-13 06:20:3314import("//build_overrides/v8.gni")
mostynb2196a462015-08-20 17:22:1015import("//media/media_options.gni")
hbos17a7b4a22015-12-07 10:49:4516import("//third_party/openh264/openh264_args.gni")
dprankee2ef3822015-02-24 21:42:1817
cjhopmanca675d3e2014-10-24 03:50:4518if (is_android) {
19 import("//build/config/android/config.gni")
20}
tfarina@chromium.org378b4f02014-06-10 15:58:4521
brettwb84b2942014-10-22 22:58:4522declare_args() {
23 # A list of extra dependencies to add to the root target. This allows a
24 # checkout to add additional targets without explicitly changing any checked-
25 # in files.
26 root_extra_deps = []
27}
28
dprankeef9c5e582015-11-15 23:22:0829# This file defines the following five main targets:
dpranked62d8512015-03-02 03:06:0330#
dprankeddc174902015-04-29 01:38:3531# "both_gn_and_gyp" should list every root target (target that nothing else
32# depends on) built by GN that is also built in the GYP build.
dpranked62d8512015-03-02 03:06:0333#
dprankeddc174902015-04-29 01:38:3534# "gn_all" should (transitively) cause everything to be built; if you run
35# 'ninja gn_all' and then 'ninja all', the second build should do no work.
36#
dprankeef9c5e582015-11-15 23:22:0837# "gn_only" should list every root target that is *not* intended to be built in
38# a GYP build. Because GN has different rules for deciding what an 'all' build
39# is, this may end up including targets that are actually defined in a GYP
40# build but not dependencies of GYP's "all" (and so not actually built).
dprankeddc174902015-04-29 01:38:3541#
dprankeb6128d02015-05-01 16:40:3042# "gn_visibility": targets that are normally not visible to top-level targets,
dprankeef9c5e582015-11-15 23:22:0843# but are built anyway by "all". Since we don't want any such targets, we have
44# this placeholder to make sure hidden targets that aren't otherwise depended
45# on yet are accounted for.
46#
47# "All" is an alias for "gn_all". It exists for bot compatibility w/ GYP for
48# the iOS bots and the official builders, but should not be generally used
49# during the GYP->GN migration. We cannot guarantee that GN's "All" builds the
50# same set of targets as GYP's "All" does, because GYP's "All" supports
51# wildcards.
52#
53# Lastly, none of these targets are guaranteed to be the same as what ninja
54# will build with "all". For more on how "all" works and the differences in how
55# GYP and GN determine "all", see crbug.com/503241.
dprankeb6128d02015-05-01 16:40:3056#
brettwf9427f92016-05-05 23:18:5557# TODO(GYP_GONE): crbug.com/481694. Make sure that the above is true and there
58# are scripts run on the bots that enforce this. Once the GYP migration is
59# over, we can collapse all of these targets as desired.
dprankeff30e3d2015-02-24 06:52:3960
dprankee2ef3822015-02-24 21:42:1861group("gn_all") {
dprankeddc174902015-04-29 01:38:3562 testonly = true
63
64 deps = [
65 ":both_gn_and_gyp",
66 ":gn_only",
dprankeb6128d02015-05-01 16:40:3067 ":gn_visibility",
dprankeddc174902015-04-29 01:38:3568 ]
machenbach640e53da2016-06-06 09:19:0869
70 if (!is_ios) {
jmadilla42eba2a2016-06-07 18:58:2971 deps += [ "//v8:gn_all" ]
machenbach640e53da2016-06-06 09:19:0872 }
dprankeddc174902015-04-29 01:38:3573}
74
brettwf9427f92016-05-05 23:18:5575# TODO(GYP_GONE): This target exists for compatibility with GYP, specifically
dprankeef9c5e582015-11-15 23:22:0876# for the iOS bots and the official builders.
77group("All") {
78 testonly = true
79
80 deps = [
81 ":gn_all",
82 ]
83}
84
brettwf9427f92016-05-05 23:18:5585# TODO(GYP_GONE): This target exists for compatibility with GYP for the
86# builders. For now, this builds everything. We should decide if we want to
87# build less.
Dirk Prankef00b78b2016-04-18 23:59:2088group("chromium_builder_tests") {
89 testonly = true
90
91 deps = [
92 ":All",
93 ]
94}
95
dprankef92633b2016-04-28 04:33:3496if (is_chromeos) {
97 group("chromiumos_preflight") {
98 testonly = true
99 deps = [
100 "//breakpad:minidump_stackwalk($host_toolchain)",
101 "//chrome",
102 "//chrome/test/chromedriver",
dprankef92633b2016-04-28 04:33:34103 "//media:media_unittests",
markdittmer6e70beb82016-05-02 05:40:47104 "//media/gpu:video_decode_accelerator_unittest",
105 "//media/gpu:video_encode_accelerator_unittest",
dprankef92633b2016-04-28 04:33:34106 "//ppapi/examples/video_decode",
107 "//sandbox/linux:chrome_sandbox",
108 "//sandbox/linux:sandbox_linux_unittests",
109
stevenjbd570b1f2016-04-29 22:57:36110 # Blocked on https://github.com/catapult-project/catapult/issues/2297
dprankef92633b2016-04-28 04:33:34111 #"//third_party/catapult/telemetry:bitmaptools",
dprankef92633b2016-04-28 04:33:34112 "//tools/perf/clear_system_cache",
113 ]
114 }
115}
116
dprankeddc174902015-04-29 01:38:35117# The "both_gn_and_gyp" target should reflect every target that is built
118# in both the GN and GYP builds, and ideally it should match the
119# "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line.
dprankeddc174902015-04-29 01:38:35120group("both_gn_and_gyp") {
dprankee2ef3822015-02-24 21:42:18121 testonly = true
dprankee2ef3822015-02-24 21:42:18122 deps = [
123 "//base:base_unittests",
brettwa874dcc2015-08-28 23:59:18124 "//chrome/installer",
sheroukdc35ba272015-09-22 14:09:37125 "//components:components_unittests",
sheroukce1c7d72015-08-24 15:21:59126 "//net:net_unittests",
sherouk2866d662015-08-24 16:29:44127 "//skia:skia_unittests",
brettwa874dcc2015-08-28 23:59:18128 "//sql:sql_unittests",
sherouk3eee4a82015-09-01 10:42:33129 "//sync:sync_unit_tests",
ochangcc11d0e2016-04-26 19:58:26130 "//tools/ipc_fuzzer:ipc_fuzzer_all",
sherouk4fb74d42015-08-24 15:58:41131 "//ui/base:ui_base_unittests",
sherouk84a45ff2015-09-01 13:31:39132 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:41133 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:18134 ]
dpranke2a294622015-08-07 05:23:01135
sdefresne21832bf92016-03-30 22:01:02136 if (!is_android && !is_chromecast) {
137 deps += [
138 "//crypto:crypto_unittests",
139 "//google_apis/gcm:gcm_unit_tests",
140 ]
141 }
142
slance9d62f2015-11-04 01:15:01143 if (!is_ios && !is_android && !is_chromecast) {
sherouk53f0f1a2015-08-03 15:59:35144 deps += [
sherouk53f0f1a2015-08-03 15:59:35145 "//chrome",
146 "//chrome/test:browser_tests",
147 "//chrome/test:interactive_ui_tests",
148 "//chrome/test:sync_integration_tests",
sherouk53f0f1a2015-08-03 15:59:35149 "//chrome/test/chromedriver:chromedriver_unittests",
sherouk53f0f1a2015-08-03 15:59:35150 "//extensions:extensions_browsertests",
151 "//extensions:extensions_unittests",
dprankedbdd9d82015-08-12 21:18:18152 "//gpu/gles2_conform_support:gles2_conform_test",
stevenjb604316362016-05-06 22:10:26153 "//gpu/khronos_glcts_support:khronos_glcts_test",
sherouk53f0f1a2015-08-03 15:59:35154 "//jingle:jingle_unittests",
sherouk53f0f1a2015-08-03 15:59:35155 "//net:hpack_example_generator",
156 "//net:hpack_fuzz_mutator",
157 "//net:hpack_fuzz_wrapper",
sherouk53f0f1a2015-08-03 15:59:35158 "//ppapi:ppapi_unittests",
159 "//ppapi/examples/2d",
160 "//ppapi/examples/audio",
161 "//ppapi/examples/audio_input",
162 "//ppapi/examples/compositor",
163 "//ppapi/examples/crxfs",
164 "//ppapi/examples/enumerate_devices",
165 "//ppapi/examples/file_chooser",
166 "//ppapi/examples/flash_topmost",
167 "//ppapi/examples/font",
168 "//ppapi/examples/gamepad",
169 "//ppapi/examples/gles2",
170 "//ppapi/examples/gles2_spinning_cube",
171 "//ppapi/examples/ime",
172 "//ppapi/examples/input",
173 "//ppapi/examples/media_stream_audio",
174 "//ppapi/examples/media_stream_video",
175 "//ppapi/examples/mouse_cursor",
176 "//ppapi/examples/mouse_lock",
177 "//ppapi/examples/printing",
178 "//ppapi/examples/scaling",
179 "//ppapi/examples/scripting",
180 "//ppapi/examples/stub",
181 "//ppapi/examples/threading",
182 "//ppapi/examples/url_loader",
183 "//ppapi/examples/video_capture",
184 "//ppapi/examples/video_decode",
185 "//ppapi/examples/video_effects",
186 "//ppapi/examples/video_encode",
187 "//printing:printing_unittests",
brettweb7dc6582016-05-24 01:19:43188 "//sync/tools:sync_client",
189 "//sync/tools:sync_listen_notifications",
sherouk53f0f1a2015-08-03 15:59:35190 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
191 "//third_party/codesighs",
pkotwicz558d5252015-10-19 21:09:55192 "//third_party/pdfium/samples:pdfium_test",
charliea00055282016-01-26 00:15:15193 "//tools/battor_agent",
charliea5daef2bb2016-01-29 00:13:25194 "//tools/battor_agent:battor_agent_unittests",
pkotwicz558d5252015-10-19 21:09:55195 "//tools/gn",
dpranke244f9732015-11-20 05:38:10196 "//tools/gn:gn_unittests",
pkotwicz558d5252015-10-19 21:09:55197 "//tools/perf/clear_system_cache",
198 "//ui/accessibility:accessibility_unittests",
pkotwicz558d5252015-10-19 21:09:55199 ]
200 }
201
202 if (!is_ios) {
203 # TODO(GYP): Figure out which of these should actually build on iOS,
204 # and whether there should be other targets that are iOS-only and missing.
205 deps += [
206 "//cc:cc_unittests",
stipc6de0f492016-06-01 20:05:03207 "//chrome/test:telemetry_perf_unittests",
pkotwicz558d5252015-10-19 21:09:55208 "//chrome/test:unit_tests",
209 "//components:components_browsertests",
210 "//content/shell:content_shell",
211 "//content/test:content_browsertests",
212 "//content/test:content_perftests",
213 "//content/test:content_unittests",
214 "//device:device_unittests",
215 "//gpu:gpu_unittests",
markdittmerd88b8352016-04-08 15:28:45216 "//gpu/ipc/service:gpu_ipc_service_unittests",
pkotwicz558d5252015-10-19 21:09:55217 "//ipc:ipc_tests",
218 "//ipc/mojo:ipc_mojo_unittests",
219 "//media:media_unittests",
miu45b848fe2015-11-26 01:23:29220 "//media/cast:cast_unittests",
pkotwicz558d5252015-10-19 21:09:55221 "//media/midi:midi_unittests",
222 "//mojo",
pkotwicz558d5252015-10-19 21:09:55223 "//mojo/common:mojo_common_unittests",
rockotc637caf9b2016-02-10 09:57:08224 "//mojo/edk/system:mojo_system_unittests",
225 "//mojo/edk/test:mojo_public_bindings_unittests",
rockotc637caf9b2016-02-10 09:57:08226 "//mojo/edk/test:mojo_public_system_unittests",
pkotwicz558d5252015-10-19 21:09:55227 "//net:net_perftests",
benf709a3092016-04-12 22:38:22228 "//services/shell/public/cpp",
Dirk Pranke49802732015-12-10 01:36:41229 "//third_party/WebKit/Source/platform:blink_heap_unittests",
230 "//third_party/WebKit/Source/platform:blink_platform_unittests",
dpranke244f9732015-11-20 05:38:10231 "//third_party/WebKit/Source/web:webkit_unit_tests",
232 "//third_party/WebKit/Source/wtf:wtf_unittests",
nednguyenc42bf912016-01-27 01:39:28233 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35234 "//third_party/smhasher:pmurhash",
235 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35236 "//ui/display:display_unittests",
237 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35238 "//ui/gl:gl_unittests",
239 "//ui/touch_selection:ui_touch_selection_unittests",
markdittmer67b71ea2016-03-03 22:40:03240 "//url/ipc:url_ipc_unittests",
sherouk53f0f1a2015-08-03 15:59:35241 ]
sdefresne998e8582015-10-07 13:36:45242 } else {
sdefresne88abe362016-06-01 10:40:11243 deps += [ "//ios:all" ]
agrieve97dd57d2016-01-05 19:26:27244 }
245
scottmg34fb7e52014-12-03 23:27:24246 deps += root_extra_deps
brettw@chromium.orgfce5c3fe2014-04-10 21:13:05247
tfarina4aa9edc2015-10-26 22:14:02248 if (enable_extensions) {
rockot2f1326e2015-02-23 23:53:51249 deps += [ "//extensions/shell:app_shell_unittests" ]
dprankefd1813272015-04-13 23:56:00250 }
251
dprankefd1813272015-04-13 23:56:00252 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55253 deps += [ "//chrome/browser/media/router" ]
rockot2f1326e2015-02-23 23:53:51254 }
255
garykac3eddb5b2015-04-17 23:16:38256 if (enable_remoting) {
257 deps += [ "//remoting:remoting_all" ]
James Robinson060f2e32014-09-10 22:31:37258 }
259
dprankee2ef3822015-02-24 21:42:18260 if (toolkit_views) {
ellyjones41c21fe2016-06-09 17:10:19261 deps += [
262 "//ui/views:views_unittests",
263 "//ui/views/examples:views_examples_exe",
264 "//ui/views/examples:views_examples_with_content_exe",
265 ]
brettw@chromium.org6b9028ab2014-07-23 17:15:38266 }
267
dprankee2ef3822015-02-24 21:42:18268 if (use_aura) {
mswda0133e62016-02-16 20:50:02269 deps += [
270 "//ash:ash_shell_with_content",
271 "//ash:ash_unittests",
tapted87ca2d62016-05-19 20:48:49272 "//ui/app_list:app_list_unittests",
273 "//ui/app_list/presenter:app_list_presenter_unittests",
mswda0133e62016-02-16 20:50:02274 "//ui/aura:aura_unittests",
mswda0133e62016-02-16 20:50:02275 "//ui/aura:demo",
276 "//ui/wm:wm_unittests",
277 ]
dprankee2ef3822015-02-24 21:42:18278 }
279
280 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47281 deps += [ "//ui/ozone" ]
tfarina@chromium.orga306aaa2014-05-24 13:21:50282 }
283
dprankefd1813272015-04-13 23:56:00284 if (use_x11) {
285 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22286 }
287
tmoniuszkoe5578b922015-04-14 09:38:03288 if (enable_configuration_policy) {
289 deps += [ "//components/policy:policy_templates" ]
290 }
291
dprankefd1813272015-04-13 23:56:00292 if (v8_use_external_startup_data) {
293 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
brettw@chromium.org137dff6d2014-06-12 19:35:55294 }
295
brettw66e3feab2015-07-20 23:52:22296 if (is_win) {
brettwf986f952015-10-07 17:18:15297 deps += [
298 "//chrome/installer/gcapi",
299 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
300 ]
brettw66e3feab2015-07-20 23:52:22301 }
302
dpranke@chromium.org5a8d5162014-04-12 01:19:16303 if (is_android) {
cjhopman@chromium.org26046b52014-07-16 00:11:03304 deps += [
pkotwicze2dae8b2015-11-03 20:12:55305 "//base:base_junit_tests",
dpranke244f9732015-11-20 05:38:10306 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38307 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02308 "//build/android/rezip",
pkotwicz2dd67962016-05-10 00:21:08309 "//chrome/android/webapk/shell_apk:webapk",
pkotwicze2dae8b2015-11-03 20:12:55310 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
311 "//components/policy/android:components_policy_junit_tests",
312 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45313 "//content/shell/android:content_shell_apk",
markdittmer6e70beb82016-05-02 05:40:47314 "//media/gpu:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55315 "//net/android:net_junit_tests",
jbudorick5ef42902016-04-07 04:17:11316 "//testing/android/junit:junit_unit_tests",
agrieve40ba6862015-07-15 02:09:05317 "//third_party/errorprone:chromium_errorprone",
pkotwicz8adff4e2015-12-17 21:55:45318 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10319 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49320 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34321 "//tools/android:push_apps_to_background",
jbudorickdfc01f62016-06-01 15:42:12322 "//tools/android/audio_focus_grabber:audio_focus_grabber_apk",
323 "//tools/android/customtabs_benchmark:customtabs_benchmark_apk",
pkotwicz8b9d18c2015-10-05 01:59:33324 "//tools/android/heap_profiler:heap_profiler_unittests",
dgn28050da2015-10-19 10:16:43325 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
pkotwicz077093762015-12-21 16:47:15326 "//tools/cygprofile:cygprofile_unittests",
newt9e226032016-01-26 01:30:15327 "//ui/android:ui_junit_tests",
dprankee2ef3822015-02-24 21:42:18328 ]
329 deps -= [
rockot9c67e5f2015-03-12 20:01:21330 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18331 "//url:url_unittests",
cjhopman@chromium.org26046b52014-07-16 00:11:03332 ]
333
pkotwicz92e2e2312015-12-15 22:29:46334 if (!is_component_build) {
335 deps += [
agrievee23386b2016-01-05 04:47:58336 "//components/cronet/android:cronet_package",
jbudorickdfc01f62016-06-01 15:42:12337 "//components/cronet/android:cronet_perf_test_apk",
pkotwicz92e2e2312015-12-15 22:29:46338 "//components/cronet/android:cronet_sample_apk",
339 "//components/cronet/android:cronet_sample_test_apk",
340 "//components/cronet/android:cronet_test_apk",
341 "//components/cronet/android:cronet_test_instrumentation_apk",
342 "//components/cronet/android:cronet_unittests",
343 ]
344 }
345
pkotwicz061c5a42015-09-30 02:16:54346 if (!is_chromecast) {
347 deps += [
michaelbaicbcc7e62015-11-12 04:29:53348 "//android_webview",
agrieveb08e2f5b2015-12-29 01:17:30349 "//android_webview/test",
mikecase49971fc2016-03-21 21:18:05350 "//android_webview/tools/system_webview_shell",
pkotwicze2dae8b2015-11-03 20:12:55351 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54352 "//chrome/android:chrome_public_apk",
353 "//chrome/android:chrome_public_test_apk",
jbudorickdfc01f62016-06-01 15:42:12354 "//chrome/android:chrome_sync_shell_test_apk",
pkotwicz061c5a42015-09-30 02:16:54355 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b2015-12-28 20:23:11356 "//content/shell/android:content_shell_test_apk",
pkotwicz0a2255e2015-10-06 16:29:05357 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54358 ]
359 }
360
pkotwicz06a4b4b42015-10-29 23:11:11361 if (target_cpu != "x64") {
jbudorickdfc01f62016-06-01 15:42:12362 deps += [
363 "//content/shell/android:chromium_linker_test_apk",
364 "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)",
365 ]
pkotwicz06a4b4b42015-10-29 23:11:11366 }
367
cjhopmanca675d3e2014-10-24 03:50:45368 if (has_chrome_android_internal) {
brettwf9427f92016-05-05 23:18:55369 deps += [ "//clank" ]
cjhopmanca675d3e2014-10-24 03:50:45370 }
dprankefd1813272015-04-13 23:56:00371 }
372
brettwf9427f92016-05-05 23:18:55373 if (is_linux || is_android) {
dprankefd1813272015-04-13 23:56:00374 deps += [
pkotwicza4d233b22015-11-02 18:20:38375 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00376 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38377 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00378 "//breakpad:minidump-2-core",
379 ]
380 }
381
dpranke6293d252015-04-14 19:12:00382 if (is_chromeos) {
383 deps += [
384 "//chromeos:chromeos_unittests",
yoshiki8e2ddbb2016-03-10 07:11:22385 "//ui/arc:ui_arc_unittests",
dpranke6293d252015-04-14 19:12:00386 "//ui/chromeos:ui_chromeos_unittests",
387 ]
388 }
389
dprankefd1813272015-04-13 23:56:00390 if (is_chromeos || is_mac || is_win) {
391 deps += [
392 "//rlz:rlz_id",
393 "//rlz:rlz_lib",
394 "//rlz:rlz_unittests",
395 ]
dprankedb5527d72015-03-08 04:22:47396 }
397
398 if (is_linux) {
399 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06400 deps += [
dpranke2bc89212015-11-18 00:24:43401 "//chrome:manpage",
402 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47403 "//net:disk_cache_memory_test",
404 "//net:flip_in_mem_edsm_server",
405 "//net:flip_in_mem_edsm_server_unittests",
406 "//net:quic_client",
407 "//net:quic_server",
408 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18409 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06410 ]
dnicoara8c6aa8e2015-03-11 23:20:32411
mbjorgea12e5a52016-05-31 22:15:17412 if (use_dbus) {
413 deps += [
414 "//dbus:dbus_test_server",
415 "//dbus:dbus_unittests",
416 ]
417 }
418
dnicoara8c6aa8e2015-03-11 23:20:32419 if (is_chromeos || use_ash) {
420 deps += [ "//components/session_manager/core" ]
dpranke2bc89212015-11-18 00:24:43421 }
422
423 if (is_chrome_branded && is_official_build) {
424 # TODO(dpranke): add the linux_dump_symbols flag?
425 deps += [ "//chrome:linux_symbols" ]
dnicoara8c6aa8e2015-03-11 23:20:32426 }
dprankedb5527d72015-03-08 04:22:47427 }
428
sherouke1859f92015-08-05 10:19:10429 if (is_ios || is_win || (is_linux && !is_chromeos)) {
430 deps += [
431 "//base:base_i18n_perftests",
432 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58433 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10434 ]
435 }
436
thakis507c15c2016-06-01 00:26:01437 # TODO(GYP): Figure out which of these should (and can) build
438 # for chromeos/ios.
439 if (!is_chromeos && !is_ios) {
tfarina9e7cf702015-02-23 21:13:44440 deps += [
dprankedb5527d72015-03-08 04:22:47441 "//base:build_utf8_validator_tables",
dpranke244f9732015-11-20 05:38:10442 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47443 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00444 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47445 "//components:components_perftests",
dprankedb5527d72015-03-08 04:22:47446 "//device:device_unittests",
447 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47448 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47449 "//google_apis/gcm:mcs_probe",
dprankefd1813272015-04-13 23:56:00450 "//gpu:gl_tests",
dpranke244f9732015-11-20 05:38:10451 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47452 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47453 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00454 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47455 "//sync:run_sync_testserver",
ynovikov25dc7aad2016-05-27 23:09:54456 "//third_party/angle/src/tests:angle_unittests",
dprankedb5527d72015-03-08 04:22:47457 "//third_party/codesighs:maptsvdifftool",
dprankefd1813272015-04-13 23:56:00458 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47459 "//ui/compositor:compositor_unittests",
460 ]
461
agrieve473155b2015-12-28 20:23:11462 if (!is_android) {
463 deps += [
464 "//chrome/test:load_library_perf_tests",
465 "//chrome/test:sync_performance_tests",
466 "//chrome/test/chromedriver:chromedriver",
467 "//chrome/test/chromedriver:chromedriver_tests",
468 "//courgette:courgette",
469 "//courgette:courgette_fuzz",
470 "//courgette:courgette_minimal_tool",
471 "//courgette:courgette_unittests",
stevenjb7b6fd642016-05-18 18:15:30472 "//media/cast:generate_barcode_video",
473 "//media/cast:generate_timecode_audio",
agrieve473155b2015-12-28 20:23:11474 "//net:crash_cache",
475 "//net:crl_set_dump",
476 "//net:dns_fuzz_stub",
477 "//net:gdig",
478 "//net:get_server_time",
479 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
480 "//net:run_testserver",
481 "//net:stress_cache",
482 "//net:tld_cleanup",
483 "//ppapi:pepper_hash_for_uma",
484 "//ppapi:ppapi_perftests",
thakis72c2da22016-06-01 03:11:51485 "//third_party/angle/src/tests:angle_end2end_tests",
agrieve473155b2015-12-28 20:23:11486 "//third_party/leveldatabase:env_chromium_unittests",
487 "//third_party/libaddressinput:libaddressinput_unittests",
488 ]
dpranke7e19b472015-11-13 00:49:33489 }
490
dprankedb5527d72015-03-08 04:22:47491 if (enable_extensions) {
492 deps += [ "//extensions/shell:app_shell" ]
493 }
494
495 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13496 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43497
498 if (is_linux) {
499 # TODO(dpranke): Figure out what platforms should actually have this.
500 deps += [
brettwf4b4a4282015-12-16 00:41:13501 "//components/nacl/loader:helper_nonsfi",
502 "//components/nacl/loader:nacl_helper",
jbudorick3c0ef43092016-02-03 23:40:16503 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
dpranke2bc89212015-11-18 00:24:43504 ]
505 }
dprankedb5527d72015-03-08 04:22:47506 }
507
xhwangfa2d9d472015-12-18 23:31:18508 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10509 deps += [ "//media:ffmpeg_regression_tests" ]
dprankedb5527d72015-03-08 04:22:47510 }
dprankefd1813272015-04-13 23:56:00511 }
512
agrieve473155b2015-12-28 20:23:11513 if (is_android || (is_linux && !is_chromeos)) {
dprankefd1813272015-04-13 23:56:00514 deps += [
agrieve473155b2015-12-28 20:23:11515 "//breakpad:dump_syms($host_toolchain)",
516 "//breakpad:microdump_stackwalk($host_toolchain)",
517 "//breakpad:minidump_dump($host_toolchain)",
518 "//breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00519 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00520 "//content/public/app:browser",
521 "//content/public/app:child",
rockotc637caf9b2016-02-10 09:57:08522 "//mojo/edk/test:mojo_public_system_perftests",
benf709a3092016-04-12 22:38:22523 "//services/shell/public/cpp",
dprankefd1813272015-04-13 23:56:00524 "//testing/gmock:gmock_main",
dpranke244f9732015-11-20 05:38:10525 "//third_party/codesighs:nm2tsv",
dprankefd1813272015-04-13 23:56:00526 ]
527
agrieve473155b2015-12-28 20:23:11528 if (!is_android) {
529 deps += [
530 "//build/sanitizers:copy_llvm_symbolizer",
531 "//chrome/test:chrome_app_unittests",
brettwf9427f92016-05-05 23:18:55532 "//gpu/khronos_glcts_support:khronos_glcts_test",
agrieve473155b2015-12-28 20:23:11533 "//media/cast:cast_benchmarks",
534 "//media/cast:tap_proxy",
535 "//skia:filter_fuzz_stub",
536 "//skia:image_operations_bench",
agrieve473155b2015-12-28 20:23:11537 "//third_party/sqlite:sqlite_shell",
538 "//ui/keyboard:keyboard_unittests",
539 "//ui/message_center:message_center_unittests",
540 "//ui/snapshot:snapshot_unittests",
agrieve473155b2015-12-28 20:23:11541 ]
dprankefd1813272015-04-13 23:56:00542
agrieve473155b2015-12-28 20:23:11543 if (!is_debug && !is_component_build) {
544 deps += [ "//chrome/tools/service_discovery_sniffer" ]
545 }
dprankefd1813272015-04-13 23:56:00546 }
547
taptedd13e0cd2016-05-13 08:26:56548 if (enable_app_list) {
dprankefd1813272015-04-13 23:56:00549 deps += [ "//ui/app_list:app_list_demo" ]
550 }
dprankedb5527d72015-03-08 04:22:47551
552 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44553 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59554 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44555 }
dprankedb5527d72015-03-08 04:22:47556 }
557 }
558
559 if (is_mac) {
560 deps += [
561 "//breakpad:crash_inspector",
562 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44563 "//third_party/apple_sample_code",
564 "//third_party/molokocacao",
565 ]
dpranke43760592014-11-08 02:59:57566 deps -= [
brettw011138d2015-10-21 03:05:38567 # Mojo in GN contains some things which are never compiled in GYP on Mac,
568 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10569 "//mojo",
mohsen29fd4052014-12-08 21:06:46570 ]
dprankefd1813272015-04-13 23:56:00571 }
572
573 if (is_win) {
574 deps += [
575 "//base:pe_image_test",
anantaf2e54a92016-05-28 00:39:16576 "//chrome/install_static:install_static_unittests",
grt734e87b2015-07-06 19:36:43577 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00578 "//chrome_elf:chrome_elf_unittests",
579 "//chrome_elf:dll_hash_main",
dprankefd1813272015-04-13 23:56:00580 "//components/wifi:wifi_test",
581 "//net:quic_client",
582 "//net:quic_server",
583 "//sandbox/win:pocdll",
584 "//sandbox/win:sandbox_poc",
585 "//sandbox/win:sbox_integration_tests",
586 "//sandbox/win:sbox_unittests",
587 "//sandbox/win:sbox_validation_tests",
588 "//testing/gtest:gtest_main",
589 "//third_party/codesighs:msmap2tsv",
590 "//third_party/pdfium/samples:pdfium_diff",
dprankefd1813272015-04-13 23:56:00591 ]
dprankee2ef3822015-02-24 21:42:18592 deps -= [
593 "//crypto:crypto_unittests", # TODO(GYP)
594 "//net:net_unittests", # TODO(GYP)
595 ]
fdorayfb048bff2016-04-28 22:07:36596
597 if (!(is_component_build && is_debug && target_cpu == "x86")) {
598 deps +=
599 [ "//chrome/installer/mini_installer:next_version_mini_installer" ]
600 }
sherouk53f0f1a2015-08-03 15:59:35601 } else if (!is_android && !is_ios) {
miu45b848fe2015-11-26 01:23:29602 deps += [ "//breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34603 }
rsesek985bd812016-04-26 21:06:15604
slance9d62f2015-11-04 01:15:01605 if (is_chromecast) {
606 deps += [ "//chromecast:cast_shell" ]
607 }
miu45b848fe2015-11-26 01:23:29608
dpranked43eab42015-12-15 23:10:44609 if (is_mac) { # TODO(GYP) || is_ios
miu45b848fe2015-11-26 01:23:29610 deps += [ "//media/cast:cast_h264_vt_encoder_unittests" ]
611 }
hbos17a7b4a22015-12-07 10:49:45612
rsesek985bd812016-04-26 21:06:15613 if (is_mac || is_win) {
614 deps += [
615 "//third_party/crashpad/crashpad/handler:crashpad_handler",
616 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
617 ]
618 }
619
hbos17a7b4a22015-12-07 10:49:45620 if (use_openh264) {
621 deps += [
622 "//third_party/openh264:common",
623 "//third_party/openh264:encoder",
624 "//third_party/openh264:processing",
625 ]
626 }
dpranke18e57432015-02-27 21:46:47627}
628
dpranked62d8512015-03-02 03:06:03629group("gn_only") {
dprankedb5527d72015-03-08 04:22:47630 testonly = true
631
dpranke2a294622015-08-07 05:23:01632 deps = []
633
amistry4dcd7c42015-12-16 04:53:10634 if (!is_ios) {
635 deps += [ "//mojo/common:mojo_common_perftests" ]
636 }
637
scheib35dc9202016-04-26 22:35:43638 if (!is_android && !is_ios) {
639 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
640 }
641
dpranke244f9732015-11-20 05:38:10642 if (!is_android && !is_ios && !is_chromeos) {
isherman0f89b43eb2015-04-11 00:02:45643 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
644 }
645
ben8f4e95ad2015-12-01 18:35:58646 if (is_win || is_linux) {
sky70471b22016-01-14 16:20:54647 deps += [
kylecharbd601e5a2016-03-31 13:11:35648 "//components/mus/demo",
rockot6a2b0422016-03-09 17:14:59649 "//components/mus/ws:tests",
sky70471b22016-01-14 16:20:54650 "//mash:all",
bena5d1cd42016-04-29 22:59:53651 "//media/mojo/services:media_mojo_shell_unittests",
skyfcde3a42016-02-09 20:27:44652 "//mojo",
benee648f62016-05-12 23:04:50653 "//services/navigation",
qyearsley88bc4802016-05-17 18:02:34654 "//ui/views/mus:views_mus_interactive_ui_tests",
bena5d1cd42016-04-29 22:59:53655 "//ui/views/mus:views_mus_unittests",
sky70471b22016-01-14 16:20:54656 ]
sky97b65592015-11-02 20:08:25657 }
658
stevenjb7b6fd642016-05-18 18:15:30659 if (is_linux && !is_chromeos && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47660 # TODO(GYP): Figure out if any of these should be in gn_all
661 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45662 deps += [
dprankedb5527d72015-03-08 04:22:47663 ":gn_mojo_targets",
664 "//chrome/browser/resources:extension_resource_demo",
665 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47666 "//chrome/tools/convert_dict",
667 "//components/constrained_window:unit_tests",
erg4652931e2016-04-27 22:15:40668 "//components/filesystem:filesystem_service_unittests",
ergf1f689f2016-03-22 00:51:20669 "//components/leveldb:leveldb_service_unittests",
dprankedb5527d72015-03-08 04:22:47670 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45671 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47672 "//components/rappor:unit_tests",
673 "//components/sessions:unit_tests",
674 "//media/blink:media_blink_unittests",
stevenjb7b6fd642016-05-18 18:15:30675 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47676 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
677 "//storage/browser:dump_file_system",
678 "//third_party/angle:libANGLE",
679 "//third_party/angle:libEGL",
680 "//third_party/angle:libGLESv2",
dprankedb5527d72015-03-08 04:22:47681 "//third_party/leveldatabase:leveldb_arena_test",
682 "//third_party/leveldatabase:leveldb_bloom_test",
dprankedb5527d72015-03-08 04:22:47683 "//third_party/leveldatabase:leveldb_cache_test",
dprankedb5527d72015-03-08 04:22:47684 "//third_party/leveldatabase:leveldb_corruption_test",
dpranke244f9732015-11-20 05:38:10685 "//third_party/leveldatabase:leveldb_crc32c_test",
686 "//third_party/leveldatabase:leveldb_db_bench",
687 "//third_party/leveldatabase:leveldb_db_test",
dprankedb5527d72015-03-08 04:22:47688 "//third_party/leveldatabase:leveldb_dbformat_test",
dpranke244f9732015-11-20 05:38:10689 "//third_party/leveldatabase:leveldb_env_test",
690 "//third_party/leveldatabase:leveldb_filename_test",
691 "//third_party/leveldatabase:leveldb_filter_block_test",
692 "//third_party/leveldatabase:leveldb_log_test",
693 "//third_party/leveldatabase:leveldb_skiplist_test",
694 "//third_party/leveldatabase:leveldb_table_test",
695 "//third_party/leveldatabase:leveldb_version_edit_test",
696 "//third_party/leveldatabase:leveldb_write_batch_test",
dprankedb5527d72015-03-08 04:22:47697 "//third_party/libjpeg_turbo:simd",
dpranke244f9732015-11-20 05:38:10698 "//third_party/libsrtp:rdbx_driver",
dprankedb5527d72015-03-08 04:22:47699 "//third_party/libsrtp:replay_driver",
700 "//third_party/libsrtp:roc_driver",
701 "//third_party/libsrtp:rtpw",
dprankedb5527d72015-03-08 04:22:47702 "//third_party/libsrtp:srtp_driver",
703 "//third_party/libsrtp:srtp_driver",
dpranke244f9732015-11-20 05:38:10704 "//third_party/libsrtp:srtp_test_aes_calc",
dprankedb5527d72015-03-08 04:22:47705 "//third_party/libsrtp:srtp_test_cipher_driver",
706 "//third_party/libsrtp:srtp_test_datatypes_driver",
dprankedb5527d72015-03-08 04:22:47707 "//third_party/libsrtp:srtp_test_env",
dpranke244f9732015-11-20 05:38:10708 "//third_party/libsrtp:srtp_test_kernel_driver",
dprankedb5527d72015-03-08 04:22:47709 "//third_party/libsrtp:srtp_test_rand_gen",
710 "//third_party/libsrtp:srtp_test_sha1_driver",
711 "//third_party/libsrtp:srtp_test_stat_driver",
712 "//third_party/opus:opus_compare",
713 "//third_party/opus:opus_demo",
dpranke244f9732015-11-20 05:38:10714 "//third_party/opus:test_opus_api",
dprankedb5527d72015-03-08 04:22:47715 "//third_party/opus:test_opus_decode",
716 "//third_party/opus:test_opus_encode",
dprankedb5527d72015-03-08 04:22:47717 "//third_party/opus:test_opus_padding",
dpranke244f9732015-11-20 05:38:10718 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47719 "//third_party/webrtc/system_wrappers:field_trial_default",
720 "//third_party/webrtc/system_wrappers:metrics_default",
721 "//ui/display/types",
722 "//ui/shell_dialogs:shell_dialogs_unittests",
dprankedb5527d72015-03-08 04:22:47723 ]
dprankeb0713542015-07-31 21:07:21724
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16725 if (target_cpu == "x86" || target_cpu == "x64") {
agrieve473155b2015-12-28 20:23:11726 if (!is_android) {
727 deps += [ "//chrome/test:load_library_perf_tests" ]
728 }
mcgrathr916aafa2015-09-15 00:06:53729 deps += [
mcgrathr916aafa2015-09-15 00:06:53730 "//native_client/src/trusted/platform_qualify:vcpuid",
dpranke244f9732015-11-20 05:38:10731 "//third_party/libjpeg_turbo:simd_asm",
mcgrathr916aafa2015-09-15 00:06:53732 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16733 }
dpranke807f6022015-03-17 23:20:56734 if (is_linux && current_toolchain == host_toolchain) {
jochen11513aa02016-05-11 09:59:51735 deps += [ "//v8:v8_shell" ]
dpranke807f6022015-03-17 23:20:56736 }
aizatskye9aba582016-03-25 22:37:16737 }
738
spang324dc57a2016-04-06 14:54:08739 if (use_ozone) {
740 deps += [ "//ui/ozone/demo" ]
741 }
742
aizatskyaf496112016-04-15 19:26:32743 if ((is_linux && !is_chromeos && !is_chromecast) || (is_win && use_drfuzz) ||
744 (use_libfuzzer && is_mac)) {
745 deps += [
746 "//testing/libfuzzer/fuzzers",
747 "//testing/libfuzzer/tests:libfuzzer_tests",
aizatsky3f560172016-06-03 23:26:06748 "//third_party/icu/fuzzers",
aizatskyaf496112016-04-15 19:26:32749 ]
750 }
751
sbc92b4d572016-02-18 03:28:23752 if (enable_nacl) {
753 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
754 }
755
agrieve473155b2015-12-28 20:23:11756 if (is_android) {
757 deps += [
758 "//build/android/gyp/test:hello_world",
759 "//build/android/incremental_install:bootstrap_java",
760 ]
nyquistb5f050b2015-09-10 05:10:35761 }
762
skyostilfe116162016-02-26 20:53:33763 if (is_linux && use_ozone) {
764 deps += [
765 "//headless",
766 "//headless:headless_tests",
767 ]
768 }
769
agrieve473155b2015-12-28 20:23:11770 if (!is_chromecast && (is_android || is_linux || is_chromeos)) {
771 deps += [
772 "//blimp",
773 "//blimp:blimp_tests",
aizatskyddefc992015-11-20 08:42:03774 ]
aizatskyfc46a9f2015-10-09 21:20:08775 }
dprankedb5527d72015-03-08 04:22:47776}
777
778group("gn_mojo_targets") {
779 testonly = true
780 if (is_linux && !is_chromeos) {
781 # TODO(GYP): Figure out if any of these should be in gn_all
782 # and figure out how cross-platform they are
783 deps = [
dprankedb5527d72015-03-08 04:22:47784 "//ipc/mojo:ipc_mojo_perftests",
dprankedb5527d72015-03-08 04:22:47785 "//media/mojo:tests",
xhwangd3b5d3f2016-05-18 03:37:59786 "//media/mojo/services",
msw1bb9c6c2015-05-06 21:35:44787 "//mojo:tests",
dprankedb5527d72015-03-08 04:22:47788 ]
dprankedb5527d72015-03-08 04:22:47789 }
790}
791
792group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03793 deps = [
dprankeb6128d02015-05-01 16:40:30794 "//build/config/sanitizers:options_sources",
dprankedb5527d72015-03-08 04:22:47795 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
796 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dpranked62d8512015-03-02 03:06:03797 ]
dpranked2fb5222015-09-10 22:39:05798
799 if (!is_ios) {
800 deps += [
dpranked2fb5222015-09-10 22:39:05801 "//v8:postmortem-metadata",
dpranke244f9732015-11-20 05:38:10802 "//v8:v8_snapshot",
dpranked2fb5222015-09-10 22:39:05803 ]
804 }
dpranked62d8512015-03-02 03:06:03805}
806
tfarinacb2638b2015-05-12 03:24:15807if (!is_ios) {
808 # This group includes all of the targets needed to build and test Blink,
809 # including running the layout tests (see below).
810 group("blink_tests") {
811 testonly = true
812
813 deps = [
agrieve993374cf2016-04-13 00:05:39814 "//content/shell:content_shell",
tfarinacb2638b2015-05-12 03:24:15815 "//third_party/WebKit/public:all_blink",
agrieve993374cf2016-04-13 00:05:39816 "//tools/imagediff",
tfarinacb2638b2015-05-12 03:24:15817 ]
818
819 # NOTE: The following deps are needed to run the layout tests
820 # (run-webkit-tests) but there is no GN target for the layout tests,
821 # so we need to specify the dependencies here instead.
822 if (is_android) {
823 deps += [
agrieve62ab00282016-04-05 02:03:45824 "//breakpad:breakpad_unittests",
agrieve993374cf2016-04-13 00:05:39825 "//breakpad:dump_syms",
826 "//breakpad:microdump_stackwalk",
827 "//breakpad:minidump_dump",
828 "//breakpad:minidump_stackwalk",
829 "//breakpad:symupload",
830 "//tools/android/forwarder",
ojan94989c72015-07-17 21:56:42831 ]
tfarinacb2638b2015-05-12 03:24:15832 }
833
834 if (is_win) {
835 deps += [
jochen73e711c2015-06-03 10:01:46836 "//components/test_runner:layout_test_helper",
brettw0d3b1df2015-12-03 00:10:01837 "//content/shell:content_shell_crash_service",
tfarinacb2638b2015-05-12 03:24:15838 ]
839 }
840
841 if (!is_win && !is_android) {
Gordana.Cmiljanovicf243e9a2015-05-26 22:14:47842 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15843 }
844
845 if (is_mac) {
846 deps += [
847 "//breakpad:dump_syms($host_toolchain)",
jochen73e711c2015-06-03 10:01:46848 "//components/test_runner:layout_test_helper",
tfarinacb2638b2015-05-12 03:24:15849 ]
850 }
851
852 if (is_linux) {
853 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
854 }
855 }
856}
857
dpranke6abd8652015-08-28 03:21:11858# Add a dummy target for compatibility w/ GYP
859group("chromium_swarm_tests") {
860}
861
dpranke2302dfa2015-09-29 02:21:52862group("chromium_builder_perf") {
863 testonly = true
864
865 # TODO(GYP): Make this target work on the mac.
866 if (!is_ios && !is_android && !is_chromecast && !is_mac) {
867 deps = [
868 "//cc:cc_perftests",
dpranke2302dfa2015-09-29 02:21:52869 "//chrome/test:load_library_perf_tests",
870 "//chrome/test:sync_performance_tests",
871 "//gpu:gpu_perftests",
872 "//media:media_perftests",
873 "//media/midi:midi_unittests",
kbr1e58e782016-05-27 17:21:19874 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
dpranke2302dfa2015-09-29 02:21:52875 ]
876
877 if (!is_chromeos) {
878 deps += [ "//chrome/test:performance_browser_tests" ]
879 }
880 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:04881 if (is_official_build) {
882 # In GN builds, this is controlled by the 'linux_dump_symbols'
883 # flag, which defaults to 1 for official builds. For now,
884 # we skip the separate flag and just key off of is_official_build.
885 deps += [ "//chrome:linux_symbols" ]
886 }
dpranke2302dfa2015-09-29 02:21:52887
888 if (!is_chromeos) {
889 deps += [ "//tools/perf/clear_system_cache" ]
890 }
891 }
892
893 if (is_win) {
894 deps += [
hansa3d3aa4d2016-05-04 22:12:52895 "//chrome/installer/mini_installer:mini_installer",
jmadilla42eba2a2016-06-07 18:58:29896 "//third_party/angle/src/tests:angle_perftests",
dpranke2302dfa2015-09-29 02:21:52897 ]
dpranke2302dfa2015-09-29 02:21:52898 } else {
dprankeec10b3932015-10-02 17:58:23899 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52900 }
901 }
902}
agrieve017b91f2016-02-29 20:15:06903
brettw6df3e8c2016-04-14 21:07:13904# For compatibility with GYP. The linux_chromium_chromeos_rel_ng and
905# linux_chromium_chromeos_compile_rel_ng bots reference this target as
906# something to build, but all targets for those bots to compile are set
907# up differently.
908# TODO bug 601920: Remove reference to aura_builder on bot config and delete
909# this group.
910group("aura_builder") {
911}
912
agrieve95ba4442016-04-25 15:47:13913if (is_android) {
914 group("optimize_gn_gen") {
915 deps = [
916 # These run expensive scripts in non-default toolchains. Generally, host
917 # toolchain targets are loaded in the later part of the run, and the
918 # result is they push out the end of generation. By preloading these, the
919 # scripts can be parallelized with the rest of the load.
920 "//build/config/linux(//build/toolchain/linux:clang_x64)",
921 "//build/config/posix(//build/toolchain/linux:clang_x64)",
922
923 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot
924 # generation.
925 "//build/config/linux(//build/toolchain/linux:clang_x86)",
926 "//build/config/posix(//build/toolchain/linux:clang_x86)",
927 ]
928 }
929}
930
agrieve017b91f2016-02-29 20:15:06931# Because of the source assignment filter, many targets end up over-filtering
932# their sources if the output directory contains a platform name. Assert that
933# this doesn't happen. http://crbug.com/548283
934template("assert_valid_out_dir") {
935 # List copied from //build/config/BUILDCONFIG.gn.
936 set_sources_assignment_filter([
937 "*\bandroid/*",
938 "*\bchromeos/*",
939 "*\bcocoa/*",
940 "*\bios/*",
941 "*\blinux/*",
942 "*\bmac/*",
943 "*\bposix/*",
944 "*\bwin/*",
945 ])
946 assert(target_name != "") # Mark as used.
947 sources = invoker.actual_sources
948 assert(
949 sources == invoker.actual_sources,
950 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
951}
952
953assert_valid_out_dir("_unused") {
954 actual_sources = [ "$root_build_dir/foo" ]
955}