[go: nahoru, domu]

blob: 3497cf3cb6b647921acc5a5f2770be06ac47a337 [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
dprankead249c72016-06-11 18:01:2211import("//build/config/compiler/compiler.gni")
rockot2f1326e2015-02-23 23:53:5112import("//build/config/features.gni")
aizatskyfc46a9f2015-10-09 21:20:0813import("//build/config/sanitizers/sanitizers.gni")
tfarina@chromium.org378b4f02014-06-10 15:58:4514import("//build/config/ui.gni")
dpranked4da5ab2015-10-13 06:20:3315import("//build_overrides/v8.gni")
mostynb2196a462015-08-20 17:22:1016import("//media/media_options.gni")
hbos17a7b4a22015-12-07 10:49:4517import("//third_party/openh264/openh264_args.gni")
thakis3f7d4fc2016-06-10 18:47:5018import("//tools/ipc_fuzzer/ipc_fuzzer.gni")
dprankee2ef3822015-02-24 21:42:1819
cjhopmanca675d3e2014-10-24 03:50:4520if (is_android) {
21 import("//build/config/android/config.gni")
22}
tfarina@chromium.org378b4f02014-06-10 15:58:4523
brettwb84b2942014-10-22 22:58:4524declare_args() {
25 # A list of extra dependencies to add to the root target. This allows a
26 # checkout to add additional targets without explicitly changing any checked-
27 # in files.
28 root_extra_deps = []
29}
30
dprankeef9c5e582015-11-15 23:22:0831# This file defines the following five main targets:
dpranked62d8512015-03-02 03:06:0332#
dprankeddc174902015-04-29 01:38:3533# "both_gn_and_gyp" should list every root target (target that nothing else
34# depends on) built by GN that is also built in the GYP build.
dpranked62d8512015-03-02 03:06:0335#
dprankeddc174902015-04-29 01:38:3536# "gn_all" should (transitively) cause everything to be built; if you run
37# 'ninja gn_all' and then 'ninja all', the second build should do no work.
38#
dprankeef9c5e582015-11-15 23:22:0839# "gn_only" should list every root target that is *not* intended to be built in
40# a GYP build. Because GN has different rules for deciding what an 'all' build
41# is, this may end up including targets that are actually defined in a GYP
42# build but not dependencies of GYP's "all" (and so not actually built).
dprankeddc174902015-04-29 01:38:3543#
dprankeb6128d02015-05-01 16:40:3044# "gn_visibility": targets that are normally not visible to top-level targets,
dprankeef9c5e582015-11-15 23:22:0845# but are built anyway by "all". Since we don't want any such targets, we have
46# this placeholder to make sure hidden targets that aren't otherwise depended
47# on yet are accounted for.
48#
49# "All" is an alias for "gn_all". It exists for bot compatibility w/ GYP for
50# the iOS bots and the official builders, but should not be generally used
51# during the GYP->GN migration. We cannot guarantee that GN's "All" builds the
52# same set of targets as GYP's "All" does, because GYP's "All" supports
53# wildcards.
54#
55# Lastly, none of these targets are guaranteed to be the same as what ninja
56# will build with "all". For more on how "all" works and the differences in how
57# GYP and GN determine "all", see crbug.com/503241.
dprankeb6128d02015-05-01 16:40:3058#
brettwf9427f92016-05-05 23:18:5559# TODO(GYP_GONE): crbug.com/481694. Make sure that the above is true and there
60# are scripts run on the bots that enforce this. Once the GYP migration is
61# over, we can collapse all of these targets as desired.
dprankeff30e3d2015-02-24 06:52:3962
dprankee2ef3822015-02-24 21:42:1863group("gn_all") {
dprankeddc174902015-04-29 01:38:3564 testonly = true
65
66 deps = [
67 ":both_gn_and_gyp",
68 ":gn_only",
dprankeb6128d02015-05-01 16:40:3069 ":gn_visibility",
dprankeddc174902015-04-29 01:38:3570 ]
machenbach640e53da2016-06-06 09:19:0871
72 if (!is_ios) {
jmadilla42eba2a2016-06-07 18:58:2973 deps += [ "//v8:gn_all" ]
machenbach640e53da2016-06-06 09:19:0874 }
dprankeddc174902015-04-29 01:38:3575}
76
brettwf9427f92016-05-05 23:18:5577# TODO(GYP_GONE): This target exists for compatibility with GYP, specifically
dprankeef9c5e582015-11-15 23:22:0878# for the iOS bots and the official builders.
79group("All") {
80 testonly = true
81
82 deps = [
83 ":gn_all",
84 ]
85}
86
brettwf9427f92016-05-05 23:18:5587# TODO(GYP_GONE): This target exists for compatibility with GYP for the
dprankec7bbafa2016-06-17 03:02:0588# builders that specify targets in the recipes directly.
89# Ideally it should not exist, and the builders should be specifying
90# more specific targets (or 'All') via the source-side
91# //testing/buildbot/*.json files. We should simply delete this target
92# and update any recipes that are using it.
Dirk Prankef00b78b2016-04-18 23:59:2093group("chromium_builder_tests") {
94 testonly = true
dprankec7bbafa2016-06-17 03:02:0595 deps = []
Dirk Prankef00b78b2016-04-18 23:59:2096}
97
dpranke1d5b70692016-06-20 21:09:0498# TODO(GYP_GONE): Figure out if we really need this target or if there's
99# some better way to specify things.
100if (is_win) {
101 group("chrome_official_builder_no_unittests") {
102 deps = [
103 "//chrome/installer/gcapi",
104 "//chrome/installer/mini_installer",
105 "//courgette",
106
107 # TODO(GYP): crbug.com/621575 do we need to port this?
108 # "//chrome:pack_policy_templates",
109
110 "//remoting/webapp",
111 ]
112 if (target_cpu == "x86") {
113 deps += [ "//courgette(//build/toolchain/win:x64)" ]
114 }
115 if (is_chrome_branded) {
116 deps += [ "//remoting/host:remoting_host_installation" ]
117 }
118 }
119}
120
dprankef92633b2016-04-28 04:33:34121if (is_chromeos) {
122 group("chromiumos_preflight") {
123 testonly = true
124 deps = [
125 "//breakpad:minidump_stackwalk($host_toolchain)",
126 "//chrome",
127 "//chrome/test/chromedriver",
dprankef92633b2016-04-28 04:33:34128 "//media:media_unittests",
markdittmer6e70beb82016-05-02 05:40:47129 "//media/gpu:video_decode_accelerator_unittest",
130 "//media/gpu:video_encode_accelerator_unittest",
dprankef92633b2016-04-28 04:33:34131 "//ppapi/examples/video_decode",
132 "//sandbox/linux:chrome_sandbox",
133 "//sandbox/linux:sandbox_linux_unittests",
134
stevenjbd570b1f2016-04-29 22:57:36135 # Blocked on https://github.com/catapult-project/catapult/issues/2297
dprankef92633b2016-04-28 04:33:34136 #"//third_party/catapult/telemetry:bitmaptools",
dprankef92633b2016-04-28 04:33:34137 "//tools/perf/clear_system_cache",
138 ]
139 }
140}
141
dprankeddc174902015-04-29 01:38:35142# The "both_gn_and_gyp" target should reflect every target that is built
143# in both the GN and GYP builds, and ideally it should match the
144# "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line.
dprankeddc174902015-04-29 01:38:35145group("both_gn_and_gyp") {
dprankee2ef3822015-02-24 21:42:18146 testonly = true
dprankee2ef3822015-02-24 21:42:18147 deps = [
148 "//base:base_unittests",
brettwa874dcc2015-08-28 23:59:18149 "//chrome/installer",
sheroukdc35ba272015-09-22 14:09:37150 "//components:components_unittests",
sheroukce1c7d72015-08-24 15:21:59151 "//net:net_unittests",
sherouk2866d662015-08-24 16:29:44152 "//skia:skia_unittests",
brettwa874dcc2015-08-28 23:59:18153 "//sql:sql_unittests",
sherouk3eee4a82015-09-01 10:42:33154 "//sync:sync_unit_tests",
ochangcc11d0e2016-04-26 19:58:26155 "//tools/ipc_fuzzer:ipc_fuzzer_all",
sherouk4fb74d42015-08-24 15:58:41156 "//ui/base:ui_base_unittests",
sherouk84a45ff2015-09-01 13:31:39157 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:41158 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:18159 ]
dpranke2a294622015-08-07 05:23:01160
sdefresne21832bf92016-03-30 22:01:02161 if (!is_android && !is_chromecast) {
162 deps += [
163 "//crypto:crypto_unittests",
164 "//google_apis/gcm:gcm_unit_tests",
165 ]
166 }
167
slance9d62f2015-11-04 01:15:01168 if (!is_ios && !is_android && !is_chromecast) {
sherouk53f0f1a2015-08-03 15:59:35169 deps += [
sherouk53f0f1a2015-08-03 15:59:35170 "//chrome",
171 "//chrome/test:browser_tests",
172 "//chrome/test:interactive_ui_tests",
173 "//chrome/test:sync_integration_tests",
sherouk53f0f1a2015-08-03 15:59:35174 "//chrome/test/chromedriver:chromedriver_unittests",
jamescookfbbf9112016-06-14 16:24:49175 "//extensions:extensions_browsertests",
176 "//extensions:extensions_unittests",
dprankedbdd9d82015-08-12 21:18:18177 "//gpu/gles2_conform_support:gles2_conform_test",
stevenjb604316362016-05-06 22:10:26178 "//gpu/khronos_glcts_support:khronos_glcts_test",
sherouk53f0f1a2015-08-03 15:59:35179 "//jingle:jingle_unittests",
sherouk53f0f1a2015-08-03 15:59:35180 "//net:hpack_example_generator",
181 "//net:hpack_fuzz_mutator",
182 "//net:hpack_fuzz_wrapper",
sherouk53f0f1a2015-08-03 15:59:35183 "//ppapi:ppapi_unittests",
184 "//ppapi/examples/2d",
185 "//ppapi/examples/audio",
186 "//ppapi/examples/audio_input",
187 "//ppapi/examples/compositor",
188 "//ppapi/examples/crxfs",
189 "//ppapi/examples/enumerate_devices",
190 "//ppapi/examples/file_chooser",
191 "//ppapi/examples/flash_topmost",
192 "//ppapi/examples/font",
193 "//ppapi/examples/gamepad",
194 "//ppapi/examples/gles2",
195 "//ppapi/examples/gles2_spinning_cube",
196 "//ppapi/examples/ime",
197 "//ppapi/examples/input",
198 "//ppapi/examples/media_stream_audio",
199 "//ppapi/examples/media_stream_video",
200 "//ppapi/examples/mouse_cursor",
201 "//ppapi/examples/mouse_lock",
202 "//ppapi/examples/printing",
203 "//ppapi/examples/scaling",
204 "//ppapi/examples/scripting",
205 "//ppapi/examples/stub",
206 "//ppapi/examples/threading",
207 "//ppapi/examples/url_loader",
208 "//ppapi/examples/video_capture",
209 "//ppapi/examples/video_decode",
210 "//ppapi/examples/video_effects",
211 "//ppapi/examples/video_encode",
212 "//printing:printing_unittests",
brettweb7dc6582016-05-24 01:19:43213 "//sync/tools:sync_client",
214 "//sync/tools:sync_listen_notifications",
sherouk53f0f1a2015-08-03 15:59:35215 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
216 "//third_party/codesighs",
pkotwicz558d5252015-10-19 21:09:55217 "//third_party/pdfium/samples:pdfium_test",
charliea00055282016-01-26 00:15:15218 "//tools/battor_agent",
charliea5daef2bb2016-01-29 00:13:25219 "//tools/battor_agent:battor_agent_unittests",
pkotwicz558d5252015-10-19 21:09:55220 "//tools/gn",
dpranke244f9732015-11-20 05:38:10221 "//tools/gn:gn_unittests",
pkotwicz558d5252015-10-19 21:09:55222 "//tools/perf/clear_system_cache",
223 "//ui/accessibility:accessibility_unittests",
pkotwicz558d5252015-10-19 21:09:55224 ]
225 }
226
227 if (!is_ios) {
228 # TODO(GYP): Figure out which of these should actually build on iOS,
229 # and whether there should be other targets that are iOS-only and missing.
230 deps += [
231 "//cc:cc_unittests",
stipc6de0f492016-06-01 20:05:03232 "//chrome/test:telemetry_perf_unittests",
pkotwicz558d5252015-10-19 21:09:55233 "//chrome/test:unit_tests",
234 "//components:components_browsertests",
235 "//content/shell:content_shell",
236 "//content/test:content_browsertests",
237 "//content/test:content_perftests",
238 "//content/test:content_unittests",
239 "//device:device_unittests",
240 "//gpu:gpu_unittests",
markdittmerd88b8352016-04-08 15:28:45241 "//gpu/ipc/service:gpu_ipc_service_unittests",
pkotwicz558d5252015-10-19 21:09:55242 "//ipc:ipc_tests",
243 "//ipc/mojo:ipc_mojo_unittests",
244 "//media:media_unittests",
miu45b848fe2015-11-26 01:23:29245 "//media/cast:cast_unittests",
pkotwicz558d5252015-10-19 21:09:55246 "//media/midi:midi_unittests",
247 "//mojo",
pkotwicz558d5252015-10-19 21:09:55248 "//mojo/common:mojo_common_unittests",
rockotc637caf9b2016-02-10 09:57:08249 "//mojo/edk/system:mojo_system_unittests",
250 "//mojo/edk/test:mojo_public_bindings_unittests",
rockotc637caf9b2016-02-10 09:57:08251 "//mojo/edk/test:mojo_public_system_unittests",
pkotwicz558d5252015-10-19 21:09:55252 "//net:net_perftests",
benf709a3092016-04-12 22:38:22253 "//services/shell/public/cpp",
Dirk Pranke49802732015-12-10 01:36:41254 "//third_party/WebKit/Source/platform:blink_heap_unittests",
255 "//third_party/WebKit/Source/platform:blink_platform_unittests",
dpranke244f9732015-11-20 05:38:10256 "//third_party/WebKit/Source/web:webkit_unit_tests",
257 "//third_party/WebKit/Source/wtf:wtf_unittests",
nednguyenc42bf912016-01-27 01:39:28258 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35259 "//third_party/smhasher:pmurhash",
260 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35261 "//ui/display:display_unittests",
262 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35263 "//ui/gl:gl_unittests",
264 "//ui/touch_selection:ui_touch_selection_unittests",
markdittmer67b71ea2016-03-03 22:40:03265 "//url/ipc:url_ipc_unittests",
sherouk53f0f1a2015-08-03 15:59:35266 ]
sdefresne998e8582015-10-07 13:36:45267 } else {
sdefresne88abe362016-06-01 10:40:11268 deps += [ "//ios:all" ]
agrieve97dd57d2016-01-05 19:26:27269 }
270
scottmg34fb7e52014-12-03 23:27:24271 deps += root_extra_deps
brettw@chromium.orgfce5c3fe2014-04-10 21:13:05272
tfarina4aa9edc2015-10-26 22:14:02273 if (enable_extensions) {
jamescookfbbf9112016-06-14 16:24:49274 deps += [ "//extensions/shell:app_shell_unittests" ]
dprankefd1813272015-04-13 23:56:00275 }
276
dprankefd1813272015-04-13 23:56:00277 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55278 deps += [ "//chrome/browser/media/router" ]
rockot2f1326e2015-02-23 23:53:51279 }
280
garykac3eddb5b2015-04-17 23:16:38281 if (enable_remoting) {
282 deps += [ "//remoting:remoting_all" ]
James Robinson060f2e32014-09-10 22:31:37283 }
284
dprankee2ef3822015-02-24 21:42:18285 if (toolkit_views) {
ellyjones41c21fe2016-06-09 17:10:19286 deps += [
287 "//ui/views:views_unittests",
288 "//ui/views/examples:views_examples_exe",
289 "//ui/views/examples:views_examples_with_content_exe",
290 ]
brettw@chromium.org6b9028ab2014-07-23 17:15:38291 }
292
dprankee2ef3822015-02-24 21:42:18293 if (use_aura) {
mswda0133e62016-02-16 20:50:02294 deps += [
jamescookfbbf9112016-06-14 16:24:49295 "//ash:ash_shell_with_content",
296 "//ash:ash_unittests",
tapted87ca2d62016-05-19 20:48:49297 "//ui/app_list:app_list_unittests",
298 "//ui/app_list/presenter:app_list_presenter_unittests",
mswda0133e62016-02-16 20:50:02299 "//ui/aura:aura_unittests",
mswda0133e62016-02-16 20:50:02300 "//ui/aura:demo",
301 "//ui/wm:wm_unittests",
302 ]
dprankee2ef3822015-02-24 21:42:18303 }
304
305 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47306 deps += [ "//ui/ozone" ]
tfarina@chromium.orga306aaa2014-05-24 13:21:50307 }
308
dprankefd1813272015-04-13 23:56:00309 if (use_x11) {
310 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22311 }
312
tmoniuszkoe5578b922015-04-14 09:38:03313 if (enable_configuration_policy) {
314 deps += [ "//components/policy:policy_templates" ]
315 }
316
dprankefd1813272015-04-13 23:56:00317 if (v8_use_external_startup_data) {
318 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
brettw@chromium.org137dff6d2014-06-12 19:35:55319 }
320
brettw66e3feab2015-07-20 23:52:22321 if (is_win) {
brettwf986f952015-10-07 17:18:15322 deps += [
323 "//chrome/installer/gcapi",
324 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
325 ]
brettw66e3feab2015-07-20 23:52:22326 }
327
dpranke@chromium.org5a8d5162014-04-12 01:19:16328 if (is_android) {
cjhopman@chromium.org26046b52014-07-16 00:11:03329 deps += [
pkotwicze2dae8b2015-11-03 20:12:55330 "//base:base_junit_tests",
dpranke244f9732015-11-20 05:38:10331 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38332 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02333 "//build/android/rezip",
pkotwicz2dd67962016-05-10 00:21:08334 "//chrome/android/webapk/shell_apk:webapk",
pkotwicze2dae8b2015-11-03 20:12:55335 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
336 "//components/policy/android:components_policy_junit_tests",
337 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45338 "//content/shell/android:content_shell_apk",
markdittmer6e70beb82016-05-02 05:40:47339 "//media/gpu:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55340 "//net/android:net_junit_tests",
jbudorick5ef42902016-04-07 04:17:11341 "//testing/android/junit:junit_unit_tests",
wnwen41f70b92016-06-22 14:48:56342 "//third_party/android_async_task:android_async_task_java",
agrieve40ba6862015-07-15 02:09:05343 "//third_party/errorprone:chromium_errorprone",
pkotwicz8adff4e2015-12-17 21:55:45344 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10345 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49346 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34347 "//tools/android:push_apps_to_background",
jbudorickdfc01f62016-06-01 15:42:12348 "//tools/android/audio_focus_grabber:audio_focus_grabber_apk",
349 "//tools/android/customtabs_benchmark:customtabs_benchmark_apk",
pkotwicz8b9d18c2015-10-05 01:59:33350 "//tools/android/heap_profiler:heap_profiler_unittests",
dgn28050da2015-10-19 10:16:43351 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
pkotwicz077093762015-12-21 16:47:15352 "//tools/cygprofile:cygprofile_unittests",
newt9e226032016-01-26 01:30:15353 "//ui/android:ui_junit_tests",
dprankee2ef3822015-02-24 21:42:18354 ]
355 deps -= [
rockot9c67e5f2015-03-12 20:01:21356 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18357 "//url:url_unittests",
cjhopman@chromium.org26046b52014-07-16 00:11:03358 ]
359
pkotwicz92e2e2312015-12-15 22:29:46360 if (!is_component_build) {
361 deps += [
agrievee23386b2016-01-05 04:47:58362 "//components/cronet/android:cronet_package",
jbudorickdfc01f62016-06-01 15:42:12363 "//components/cronet/android:cronet_perf_test_apk",
pkotwicz92e2e2312015-12-15 22:29:46364 "//components/cronet/android:cronet_sample_apk",
365 "//components/cronet/android:cronet_sample_test_apk",
366 "//components/cronet/android:cronet_test_apk",
367 "//components/cronet/android:cronet_test_instrumentation_apk",
368 "//components/cronet/android:cronet_unittests",
369 ]
370 }
371
pkotwicz061c5a42015-09-30 02:16:54372 if (!is_chromecast) {
373 deps += [
michaelbaicbcc7e62015-11-12 04:29:53374 "//android_webview",
agrieveb08e2f5b2015-12-29 01:17:30375 "//android_webview/test",
mikecase49971fc2016-03-21 21:18:05376 "//android_webview/tools/system_webview_shell",
pkotwicze2dae8b2015-11-03 20:12:55377 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54378 "//chrome/android:chrome_public_apk",
379 "//chrome/android:chrome_public_test_apk",
jbudorickdfc01f62016-06-01 15:42:12380 "//chrome/android:chrome_sync_shell_test_apk",
pkotwicz061c5a42015-09-30 02:16:54381 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b2015-12-28 20:23:11382 "//content/shell/android:content_shell_test_apk",
pkotwicz0a2255e2015-10-06 16:29:05383 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54384 ]
385 }
386
pkotwicz06a4b4b42015-10-29 23:11:11387 if (target_cpu != "x64") {
jbudorickdfc01f62016-06-01 15:42:12388 deps += [
389 "//content/shell/android:chromium_linker_test_apk",
390 "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)",
391 ]
pkotwicz06a4b4b42015-10-29 23:11:11392 }
393
cjhopmanca675d3e2014-10-24 03:50:45394 if (has_chrome_android_internal) {
brettwf9427f92016-05-05 23:18:55395 deps += [ "//clank" ]
cjhopmanca675d3e2014-10-24 03:50:45396 }
dprankefd1813272015-04-13 23:56:00397 }
398
brettwf9427f92016-05-05 23:18:55399 if (is_linux || is_android) {
dprankefd1813272015-04-13 23:56:00400 deps += [
pkotwicza4d233b22015-11-02 18:20:38401 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00402 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38403 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00404 "//breakpad:minidump-2-core",
405 ]
406 }
407
dpranke6293d252015-04-14 19:12:00408 if (is_chromeos) {
409 deps += [
410 "//chromeos:chromeos_unittests",
yoshiki8e2ddbb2016-03-10 07:11:22411 "//ui/arc:ui_arc_unittests",
dpranke6293d252015-04-14 19:12:00412 "//ui/chromeos:ui_chromeos_unittests",
413 ]
414 }
415
dprankefd1813272015-04-13 23:56:00416 if (is_chromeos || is_mac || is_win) {
417 deps += [
418 "//rlz:rlz_id",
419 "//rlz:rlz_lib",
420 "//rlz:rlz_unittests",
421 ]
dprankedb5527d72015-03-08 04:22:47422 }
423
424 if (is_linux) {
425 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06426 deps += [
dpranke2bc89212015-11-18 00:24:43427 "//chrome:manpage",
428 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47429 "//net:disk_cache_memory_test",
430 "//net:flip_in_mem_edsm_server",
431 "//net:flip_in_mem_edsm_server_unittests",
432 "//net:quic_client",
433 "//net:quic_server",
434 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18435 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06436 ]
dnicoara8c6aa8e2015-03-11 23:20:32437
mbjorgea12e5a52016-05-31 22:15:17438 if (use_dbus) {
439 deps += [
440 "//dbus:dbus_test_server",
441 "//dbus:dbus_unittests",
442 ]
443 }
444
dnicoara8c6aa8e2015-03-11 23:20:32445 if (is_chromeos || use_ash) {
446 deps += [ "//components/session_manager/core" ]
dpranke2bc89212015-11-18 00:24:43447 }
448
449 if (is_chrome_branded && is_official_build) {
450 # TODO(dpranke): add the linux_dump_symbols flag?
451 deps += [ "//chrome:linux_symbols" ]
dnicoara8c6aa8e2015-03-11 23:20:32452 }
dprankedb5527d72015-03-08 04:22:47453 }
454
sherouke1859f92015-08-05 10:19:10455 if (is_ios || is_win || (is_linux && !is_chromeos)) {
456 deps += [
457 "//base:base_i18n_perftests",
458 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58459 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10460 ]
461 }
462
thakis507c15c2016-06-01 00:26:01463 # TODO(GYP): Figure out which of these should (and can) build
464 # for chromeos/ios.
465 if (!is_chromeos && !is_ios) {
tfarina9e7cf702015-02-23 21:13:44466 deps += [
dprankedb5527d72015-03-08 04:22:47467 "//base:build_utf8_validator_tables",
dpranke244f9732015-11-20 05:38:10468 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47469 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00470 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47471 "//components:components_perftests",
dprankedb5527d72015-03-08 04:22:47472 "//device:device_unittests",
473 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47474 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47475 "//google_apis/gcm:mcs_probe",
dprankefd1813272015-04-13 23:56:00476 "//gpu:gl_tests",
dpranke244f9732015-11-20 05:38:10477 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47478 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47479 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00480 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47481 "//sync:run_sync_testserver",
ynovikove3d872f32016-06-09 20:35:05482 "//third_party/angle/src/tests:angle_end2end_tests",
ynovikov25dc7aad2016-05-27 23:09:54483 "//third_party/angle/src/tests:angle_unittests",
dprankedb5527d72015-03-08 04:22:47484 "//third_party/codesighs:maptsvdifftool",
dprankefd1813272015-04-13 23:56:00485 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47486 "//ui/compositor:compositor_unittests",
487 ]
488
agrieve473155b2015-12-28 20:23:11489 if (!is_android) {
490 deps += [
491 "//chrome/test:load_library_perf_tests",
492 "//chrome/test:sync_performance_tests",
493 "//chrome/test/chromedriver:chromedriver",
494 "//chrome/test/chromedriver:chromedriver_tests",
495 "//courgette:courgette",
496 "//courgette:courgette_fuzz",
497 "//courgette:courgette_minimal_tool",
498 "//courgette:courgette_unittests",
stevenjb7b6fd642016-05-18 18:15:30499 "//media/cast:generate_barcode_video",
500 "//media/cast:generate_timecode_audio",
agrieve473155b2015-12-28 20:23:11501 "//net:crash_cache",
502 "//net:crl_set_dump",
503 "//net:dns_fuzz_stub",
504 "//net:gdig",
505 "//net:get_server_time",
506 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
507 "//net:run_testserver",
508 "//net:stress_cache",
509 "//net:tld_cleanup",
510 "//ppapi:pepper_hash_for_uma",
511 "//ppapi:ppapi_perftests",
agrieve473155b2015-12-28 20:23:11512 "//third_party/leveldatabase:env_chromium_unittests",
513 "//third_party/libaddressinput:libaddressinput_unittests",
514 ]
dprankedb5527d72015-03-08 04:22:47515 }
516
jamescookfbbf9112016-06-14 16:24:49517 if (enable_extensions) {
518 deps += [ "//extensions/shell:app_shell" ]
519 }
520
dprankedb5527d72015-03-08 04:22:47521 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13522 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43523
524 if (is_linux) {
525 # TODO(dpranke): Figure out what platforms should actually have this.
526 deps += [
brettwf4b4a4282015-12-16 00:41:13527 "//components/nacl/loader:helper_nonsfi",
528 "//components/nacl/loader:nacl_helper",
jbudorick3c0ef43092016-02-03 23:40:16529 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
dpranke2bc89212015-11-18 00:24:43530 ]
531 }
dprankedb5527d72015-03-08 04:22:47532 }
533
xhwangfa2d9d472015-12-18 23:31:18534 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10535 deps += [ "//media:ffmpeg_regression_tests" ]
dprankedb5527d72015-03-08 04:22:47536 }
dprankefd1813272015-04-13 23:56:00537 }
538
agrieve473155b2015-12-28 20:23:11539 if (is_android || (is_linux && !is_chromeos)) {
dprankefd1813272015-04-13 23:56:00540 deps += [
agrieve473155b2015-12-28 20:23:11541 "//breakpad:dump_syms($host_toolchain)",
542 "//breakpad:microdump_stackwalk($host_toolchain)",
543 "//breakpad:minidump_dump($host_toolchain)",
544 "//breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00545 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00546 "//content/public/app:browser",
547 "//content/public/app:child",
rockotc637caf9b2016-02-10 09:57:08548 "//mojo/edk/test:mojo_public_system_perftests",
benf709a3092016-04-12 22:38:22549 "//services/shell/public/cpp",
dprankefd1813272015-04-13 23:56:00550 "//testing/gmock:gmock_main",
dpranke244f9732015-11-20 05:38:10551 "//third_party/codesighs:nm2tsv",
dprankefd1813272015-04-13 23:56:00552 ]
553
agrieve473155b2015-12-28 20:23:11554 if (!is_android) {
555 deps += [
agrieve473155b2015-12-28 20:23:11556 "//chrome/test:chrome_app_unittests",
brettwf9427f92016-05-05 23:18:55557 "//gpu/khronos_glcts_support:khronos_glcts_test",
agrieve473155b2015-12-28 20:23:11558 "//media/cast:cast_benchmarks",
559 "//media/cast:tap_proxy",
560 "//skia:filter_fuzz_stub",
561 "//skia:image_operations_bench",
agrieve473155b2015-12-28 20:23:11562 "//third_party/sqlite:sqlite_shell",
563 "//ui/keyboard:keyboard_unittests",
564 "//ui/message_center:message_center_unittests",
565 "//ui/snapshot:snapshot_unittests",
agrieve473155b2015-12-28 20:23:11566 ]
dprankefd1813272015-04-13 23:56:00567
agrieve473155b2015-12-28 20:23:11568 if (!is_debug && !is_component_build) {
569 deps += [ "//chrome/tools/service_discovery_sniffer" ]
570 }
yutakbfb4d1672016-06-13 07:42:59571
572 if (is_clang) {
573 deps += [ "//build/sanitizers:copy_llvm_symbolizer" ]
574 }
dprankefd1813272015-04-13 23:56:00575 }
576
taptedd13e0cd2016-05-13 08:26:56577 if (enable_app_list) {
dprankefd1813272015-04-13 23:56:00578 deps += [ "//ui/app_list:app_list_demo" ]
579 }
dprankedb5527d72015-03-08 04:22:47580
581 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44582 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59583 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44584 }
dprankedb5527d72015-03-08 04:22:47585 }
586 }
587
588 if (is_mac) {
589 deps += [
590 "//breakpad:crash_inspector",
591 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44592 "//third_party/apple_sample_code",
593 "//third_party/molokocacao",
594 ]
dpranke43760592014-11-08 02:59:57595 deps -= [
brettw011138d2015-10-21 03:05:38596 # Mojo in GN contains some things which are never compiled in GYP on Mac,
597 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10598 "//mojo",
mohsen29fd4052014-12-08 21:06:46599 ]
dprankefd1813272015-04-13 23:56:00600 }
601
602 if (is_win) {
603 deps += [
604 "//base:pe_image_test",
anantaf2e54a92016-05-28 00:39:16605 "//chrome/install_static:install_static_unittests",
grt734e87b2015-07-06 19:36:43606 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00607 "//chrome_elf:chrome_elf_unittests",
608 "//chrome_elf:dll_hash_main",
dprankefd1813272015-04-13 23:56:00609 "//components/wifi:wifi_test",
610 "//net:quic_client",
611 "//net:quic_server",
612 "//sandbox/win:pocdll",
613 "//sandbox/win:sandbox_poc",
614 "//sandbox/win:sbox_integration_tests",
615 "//sandbox/win:sbox_unittests",
616 "//sandbox/win:sbox_validation_tests",
617 "//testing/gtest:gtest_main",
618 "//third_party/codesighs:msmap2tsv",
619 "//third_party/pdfium/samples:pdfium_diff",
dprankefd1813272015-04-13 23:56:00620 ]
dprankee2ef3822015-02-24 21:42:18621 deps -= [
622 "//crypto:crypto_unittests", # TODO(GYP)
623 "//net:net_unittests", # TODO(GYP)
624 ]
fdorayfb048bff2016-04-28 22:07:36625
626 if (!(is_component_build && is_debug && target_cpu == "x86")) {
627 deps +=
628 [ "//chrome/installer/mini_installer:next_version_mini_installer" ]
629 }
sherouk53f0f1a2015-08-03 15:59:35630 } else if (!is_android && !is_ios) {
miu45b848fe2015-11-26 01:23:29631 deps += [ "//breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34632 }
rsesek985bd812016-04-26 21:06:15633
slance9d62f2015-11-04 01:15:01634 if (is_chromecast) {
635 deps += [ "//chromecast:cast_shell" ]
636 }
miu45b848fe2015-11-26 01:23:29637
dpranked43eab42015-12-15 23:10:44638 if (is_mac) { # TODO(GYP) || is_ios
miu45b848fe2015-11-26 01:23:29639 deps += [ "//media/cast:cast_h264_vt_encoder_unittests" ]
640 }
hbos17a7b4a22015-12-07 10:49:45641
rsesek985bd812016-04-26 21:06:15642 if (is_mac || is_win) {
643 deps += [
644 "//third_party/crashpad/crashpad/handler:crashpad_handler",
645 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
646 ]
647 }
648
hbos17a7b4a22015-12-07 10:49:45649 if (use_openh264) {
650 deps += [
651 "//third_party/openh264:common",
652 "//third_party/openh264:encoder",
653 "//third_party/openh264:processing",
654 ]
655 }
dpranke18e57432015-02-27 21:46:47656}
657
dpranked62d8512015-03-02 03:06:03658group("gn_only") {
dprankedb5527d72015-03-08 04:22:47659 testonly = true
660
dpranke2a294622015-08-07 05:23:01661 deps = []
662
amistry4dcd7c42015-12-16 04:53:10663 if (!is_ios) {
xhwangf69024d12016-06-16 17:52:29664 deps += [
665 "//media/mojo:media_mojo_unittests",
666 "//mojo/common:mojo_common_perftests",
667 ]
amistry4dcd7c42015-12-16 04:53:10668 }
669
scheib35dc9202016-04-26 22:35:43670 if (!is_android && !is_ios) {
671 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
672 }
673
dpranke244f9732015-11-20 05:38:10674 if (!is_android && !is_ios && !is_chromeos) {
isherman0f89b43eb2015-04-11 00:02:45675 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
676 }
677
ben8f4e95ad2015-12-01 18:35:58678 if (is_win || is_linux) {
sky70471b22016-01-14 16:20:54679 deps += [
kylecharbd601e5a2016-03-31 13:11:35680 "//components/mus/demo",
rockot6a2b0422016-03-09 17:14:59681 "//components/mus/ws:tests",
sky70471b22016-01-14 16:20:54682 "//mash:all",
bena5d1cd42016-04-29 22:59:53683 "//media/mojo/services:media_mojo_shell_unittests",
skyfcde3a42016-02-09 20:27:44684 "//mojo",
benee648f62016-05-12 23:04:50685 "//services/navigation",
qyearsley88bc4802016-05-17 18:02:34686 "//ui/views/mus:views_mus_interactive_ui_tests",
bena5d1cd42016-04-29 22:59:53687 "//ui/views/mus:views_mus_unittests",
sky70471b22016-01-14 16:20:54688 ]
sky97b65592015-11-02 20:08:25689 }
690
stevenjb7b6fd642016-05-18 18:15:30691 if (is_linux && !is_chromeos && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47692 # TODO(GYP): Figure out if any of these should be in gn_all
693 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45694 deps += [
dprankedb5527d72015-03-08 04:22:47695 ":gn_mojo_targets",
696 "//chrome/browser/resources:extension_resource_demo",
697 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47698 "//chrome/tools/convert_dict",
699 "//components/constrained_window:unit_tests",
erg4652931e2016-04-27 22:15:40700 "//components/filesystem:filesystem_service_unittests",
ergf1f689f2016-03-22 00:51:20701 "//components/leveldb:leveldb_service_unittests",
dprankedb5527d72015-03-08 04:22:47702 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45703 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47704 "//components/rappor:unit_tests",
705 "//components/sessions:unit_tests",
706 "//media/blink:media_blink_unittests",
stevenjb7b6fd642016-05-18 18:15:30707 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47708 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
709 "//storage/browser:dump_file_system",
710 "//third_party/angle:libANGLE",
711 "//third_party/angle:libEGL",
712 "//third_party/angle:libGLESv2",
dprankedb5527d72015-03-08 04:22:47713 "//third_party/leveldatabase:leveldb_arena_test",
714 "//third_party/leveldatabase:leveldb_bloom_test",
dprankedb5527d72015-03-08 04:22:47715 "//third_party/leveldatabase:leveldb_cache_test",
dprankedb5527d72015-03-08 04:22:47716 "//third_party/leveldatabase:leveldb_corruption_test",
dpranke244f9732015-11-20 05:38:10717 "//third_party/leveldatabase:leveldb_crc32c_test",
718 "//third_party/leveldatabase:leveldb_db_bench",
719 "//third_party/leveldatabase:leveldb_db_test",
dprankedb5527d72015-03-08 04:22:47720 "//third_party/leveldatabase:leveldb_dbformat_test",
dpranke244f9732015-11-20 05:38:10721 "//third_party/leveldatabase:leveldb_env_test",
722 "//third_party/leveldatabase:leveldb_filename_test",
723 "//third_party/leveldatabase:leveldb_filter_block_test",
724 "//third_party/leveldatabase:leveldb_log_test",
725 "//third_party/leveldatabase:leveldb_skiplist_test",
726 "//third_party/leveldatabase:leveldb_table_test",
727 "//third_party/leveldatabase:leveldb_version_edit_test",
728 "//third_party/leveldatabase:leveldb_write_batch_test",
dprankedb5527d72015-03-08 04:22:47729 "//third_party/libjpeg_turbo:simd",
dpranke244f9732015-11-20 05:38:10730 "//third_party/libsrtp:rdbx_driver",
dprankedb5527d72015-03-08 04:22:47731 "//third_party/libsrtp:replay_driver",
732 "//third_party/libsrtp:roc_driver",
733 "//third_party/libsrtp:rtpw",
dprankedb5527d72015-03-08 04:22:47734 "//third_party/libsrtp:srtp_driver",
735 "//third_party/libsrtp:srtp_driver",
dpranke244f9732015-11-20 05:38:10736 "//third_party/libsrtp:srtp_test_aes_calc",
dprankedb5527d72015-03-08 04:22:47737 "//third_party/libsrtp:srtp_test_cipher_driver",
738 "//third_party/libsrtp:srtp_test_datatypes_driver",
dprankedb5527d72015-03-08 04:22:47739 "//third_party/libsrtp:srtp_test_env",
dpranke244f9732015-11-20 05:38:10740 "//third_party/libsrtp:srtp_test_kernel_driver",
dprankedb5527d72015-03-08 04:22:47741 "//third_party/libsrtp:srtp_test_rand_gen",
742 "//third_party/libsrtp:srtp_test_sha1_driver",
743 "//third_party/libsrtp:srtp_test_stat_driver",
744 "//third_party/opus:opus_compare",
745 "//third_party/opus:opus_demo",
dpranke244f9732015-11-20 05:38:10746 "//third_party/opus:test_opus_api",
dprankedb5527d72015-03-08 04:22:47747 "//third_party/opus:test_opus_decode",
748 "//third_party/opus:test_opus_encode",
dprankedb5527d72015-03-08 04:22:47749 "//third_party/opus:test_opus_padding",
dpranke244f9732015-11-20 05:38:10750 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47751 "//third_party/webrtc/system_wrappers:field_trial_default",
752 "//third_party/webrtc/system_wrappers:metrics_default",
753 "//ui/display/types",
754 "//ui/shell_dialogs:shell_dialogs_unittests",
dprankedb5527d72015-03-08 04:22:47755 ]
dprankeb0713542015-07-31 21:07:21756
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16757 if (target_cpu == "x86" || target_cpu == "x64") {
agrieve473155b2015-12-28 20:23:11758 if (!is_android) {
759 deps += [ "//chrome/test:load_library_perf_tests" ]
760 }
mcgrathr916aafa2015-09-15 00:06:53761 deps += [
mcgrathr916aafa2015-09-15 00:06:53762 "//native_client/src/trusted/platform_qualify:vcpuid",
dpranke244f9732015-11-20 05:38:10763 "//third_party/libjpeg_turbo:simd_asm",
mcgrathr916aafa2015-09-15 00:06:53764 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16765 }
dpranke807f6022015-03-17 23:20:56766 if (is_linux && current_toolchain == host_toolchain) {
jochen11513aa02016-05-11 09:59:51767 deps += [ "//v8:v8_shell" ]
dpranke807f6022015-03-17 23:20:56768 }
aizatskye9aba582016-03-25 22:37:16769 }
770
spang324dc57a2016-04-06 14:54:08771 if (use_ozone) {
772 deps += [ "//ui/ozone/demo" ]
773 }
774
aizatskyaf496112016-04-15 19:26:32775 if ((is_linux && !is_chromeos && !is_chromecast) || (is_win && use_drfuzz) ||
776 (use_libfuzzer && is_mac)) {
777 deps += [
778 "//testing/libfuzzer/fuzzers",
779 "//testing/libfuzzer/tests:libfuzzer_tests",
aizatsky3f560172016-06-03 23:26:06780 "//third_party/icu/fuzzers",
aizatskyaf496112016-04-15 19:26:32781 ]
782 }
783
sbc92b4d572016-02-18 03:28:23784 if (enable_nacl) {
785 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
786 }
787
agrieve473155b2015-12-28 20:23:11788 if (is_android) {
789 deps += [
790 "//build/android/gyp/test:hello_world",
791 "//build/android/incremental_install:bootstrap_java",
792 ]
nyquistb5f050b2015-09-10 05:10:35793 }
794
skyostilfe116162016-02-26 20:53:33795 if (is_linux && use_ozone) {
796 deps += [
797 "//headless",
798 "//headless:headless_tests",
799 ]
800 }
801
agrieve473155b2015-12-28 20:23:11802 if (!is_chromecast && (is_android || is_linux || is_chromeos)) {
803 deps += [
804 "//blimp",
805 "//blimp:blimp_tests",
aizatskyddefc992015-11-20 08:42:03806 ]
aizatskyfc46a9f2015-10-09 21:20:08807 }
dprankedb5527d72015-03-08 04:22:47808}
809
810group("gn_mojo_targets") {
811 testonly = true
812 if (is_linux && !is_chromeos) {
813 # TODO(GYP): Figure out if any of these should be in gn_all
814 # and figure out how cross-platform they are
815 deps = [
dprankedb5527d72015-03-08 04:22:47816 "//ipc/mojo:ipc_mojo_perftests",
msw1bb9c6c2015-05-06 21:35:44817 "//mojo:tests",
dprankedb5527d72015-03-08 04:22:47818 ]
dprankedb5527d72015-03-08 04:22:47819 }
820}
821
822group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03823 deps = [
dprankeb6128d02015-05-01 16:40:30824 "//build/config/sanitizers:options_sources",
dprankedb5527d72015-03-08 04:22:47825 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
826 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dpranked62d8512015-03-02 03:06:03827 ]
dpranked2fb5222015-09-10 22:39:05828
829 if (!is_ios) {
830 deps += [
dpranked2fb5222015-09-10 22:39:05831 "//v8:postmortem-metadata",
dpranke244f9732015-11-20 05:38:10832 "//v8:v8_snapshot",
dpranked2fb5222015-09-10 22:39:05833 ]
834 }
dpranked62d8512015-03-02 03:06:03835}
836
tfarinacb2638b2015-05-12 03:24:15837if (!is_ios) {
838 # This group includes all of the targets needed to build and test Blink,
839 # including running the layout tests (see below).
840 group("blink_tests") {
841 testonly = true
842
843 deps = [
agrieve993374cf2016-04-13 00:05:39844 "//content/shell:content_shell",
tfarinacb2638b2015-05-12 03:24:15845 "//third_party/WebKit/public:all_blink",
agrieve993374cf2016-04-13 00:05:39846 "//tools/imagediff",
tfarinacb2638b2015-05-12 03:24:15847 ]
848
849 # NOTE: The following deps are needed to run the layout tests
850 # (run-webkit-tests) but there is no GN target for the layout tests,
851 # so we need to specify the dependencies here instead.
852 if (is_android) {
853 deps += [
agrieve62ab00282016-04-05 02:03:45854 "//breakpad:breakpad_unittests",
agrieve993374cf2016-04-13 00:05:39855 "//breakpad:dump_syms",
856 "//breakpad:microdump_stackwalk",
857 "//breakpad:minidump_dump",
858 "//breakpad:minidump_stackwalk",
859 "//breakpad:symupload",
860 "//tools/android/forwarder",
ojan94989c72015-07-17 21:56:42861 ]
tfarinacb2638b2015-05-12 03:24:15862 }
863
864 if (is_win) {
865 deps += [
jochen73e711c2015-06-03 10:01:46866 "//components/test_runner:layout_test_helper",
brettw0d3b1df2015-12-03 00:10:01867 "//content/shell:content_shell_crash_service",
tfarinacb2638b2015-05-12 03:24:15868 ]
869 }
870
871 if (!is_win && !is_android) {
Gordana.Cmiljanovicf243e9a2015-05-26 22:14:47872 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15873 }
874
875 if (is_mac) {
876 deps += [
877 "//breakpad:dump_syms($host_toolchain)",
jochen73e711c2015-06-03 10:01:46878 "//components/test_runner:layout_test_helper",
tfarinacb2638b2015-05-12 03:24:15879 ]
880 }
881
882 if (is_linux) {
883 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
884 }
885 }
886}
887
dpranke6abd8652015-08-28 03:21:11888# Add a dummy target for compatibility w/ GYP
889group("chromium_swarm_tests") {
890}
891
dpranke2302dfa2015-09-29 02:21:52892group("chromium_builder_perf") {
893 testonly = true
894
thakisca8a4282016-06-10 17:59:30895 if (!is_ios && !is_android && !is_chromecast) {
dpranke2302dfa2015-09-29 02:21:52896 deps = [
897 "//cc:cc_perftests",
dpranke2302dfa2015-09-29 02:21:52898 "//chrome/test:load_library_perf_tests",
dpranke2302dfa2015-09-29 02:21:52899 "//gpu:gpu_perftests",
900 "//media:media_perftests",
kbr1e58e782016-05-27 17:21:19901 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
dpranke2302dfa2015-09-29 02:21:52902 ]
903
904 if (!is_chromeos) {
905 deps += [ "//chrome/test:performance_browser_tests" ]
906 }
907 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:04908 if (is_official_build) {
909 # In GN builds, this is controlled by the 'linux_dump_symbols'
910 # flag, which defaults to 1 for official builds. For now,
911 # we skip the separate flag and just key off of is_official_build.
912 deps += [ "//chrome:linux_symbols" ]
913 }
dpranke2302dfa2015-09-29 02:21:52914
915 if (!is_chromeos) {
916 deps += [ "//tools/perf/clear_system_cache" ]
917 }
918 }
919
920 if (is_win) {
921 deps += [
hansa3d3aa4d2016-05-04 22:12:52922 "//chrome/installer/mini_installer:mini_installer",
jmadilla42eba2a2016-06-07 18:58:29923 "//third_party/angle/src/tests:angle_perftests",
dpranke2302dfa2015-09-29 02:21:52924 ]
dpranke2302dfa2015-09-29 02:21:52925 } else {
dprankeec10b3932015-10-02 17:58:23926 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52927 }
928 }
929}
agrieve017b91f2016-02-29 20:15:06930
thakis3f7d4fc2016-06-10 18:47:50931if (!is_ios && !is_android && !is_chromecast) {
932 group("chromium_builder_asan") {
933 testonly = true
934
935 deps = [
936 "//chrome:chrome",
937 "//content/shell:content_shell",
938 "//v8:d8",
939 ]
940 if (!is_win) {
941 deps += [
942 "//net:dns_fuzz_stub",
943 "//net:hpack_fuzz_wrapper",
944 "//skia:filter_fuzz_stub",
945 ]
946 }
947 if (enable_ipc_fuzzer && !is_component_build) {
948 deps += [ "//tools/ipc_fuzzer:ipc_fuzzer_all" ]
949 }
950 if (!is_chromeos) {
951 deps += [
952 "//third_party/pdfium/samples:pdfium_test",
953 "//v8:v8_shell($host_toolchain)",
954 ]
955 }
956 if (is_clang) {
957 deps += [ "//build/sanitizers:copy_llvm_symbolizer" ]
958 }
959 if (is_win && symbol_level == 2 && target_cpu == "x86" && is_syzyasan) {
960 deps += [
961 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
962 # TODO(GYP): Add this once it exists, https://crbug.com/619086
963 # "//content/shell:content_shell_syzyasan
964 ]
965 if (is_multi_dll_chrome) {
966 deps += [ "//chrome/tools/build/win/syzygy:chrome_child_dll_syzygy" ]
967 }
968 }
969 }
970}
971
brettw6df3e8c2016-04-14 21:07:13972# For compatibility with GYP. The linux_chromium_chromeos_rel_ng and
973# linux_chromium_chromeos_compile_rel_ng bots reference this target as
974# something to build, but all targets for those bots to compile are set
975# up differently.
976# TODO bug 601920: Remove reference to aura_builder on bot config and delete
977# this group.
978group("aura_builder") {
979}
980
agrieve95ba4442016-04-25 15:47:13981if (is_android) {
982 group("optimize_gn_gen") {
983 deps = [
984 # These run expensive scripts in non-default toolchains. Generally, host
985 # toolchain targets are loaded in the later part of the run, and the
986 # result is they push out the end of generation. By preloading these, the
987 # scripts can be parallelized with the rest of the load.
988 "//build/config/linux(//build/toolchain/linux:clang_x64)",
989 "//build/config/posix(//build/toolchain/linux:clang_x64)",
990
991 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot
992 # generation.
993 "//build/config/linux(//build/toolchain/linux:clang_x86)",
994 "//build/config/posix(//build/toolchain/linux:clang_x86)",
995 ]
996 }
997}
998
agrieve017b91f2016-02-29 20:15:06999# Because of the source assignment filter, many targets end up over-filtering
1000# their sources if the output directory contains a platform name. Assert that
1001# this doesn't happen. http://crbug.com/548283
1002template("assert_valid_out_dir") {
1003 # List copied from //build/config/BUILDCONFIG.gn.
1004 set_sources_assignment_filter([
1005 "*\bandroid/*",
1006 "*\bchromeos/*",
1007 "*\bcocoa/*",
1008 "*\bios/*",
1009 "*\blinux/*",
1010 "*\bmac/*",
1011 "*\bposix/*",
1012 "*\bwin/*",
1013 ])
1014 assert(target_name != "") # Mark as used.
1015 sources = invoker.actual_sources
1016 assert(
1017 sources == invoker.actual_sources,
1018 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
1019}
1020
1021assert_valid_out_dir("_unused") {
1022 actual_sources = [ "$root_build_dir/foo" ]
1023}