[go: nahoru, domu]

blob: 38e5b95047f8ff2c7abfc3c5bb81c927fe24d897 [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",
zmin6211e7d62016-06-23 01:19:29105 "//components/policy:pack_policy_templates",
dpranke1d5b70692016-06-20 21:09:04106 "//courgette",
dpranke1d5b70692016-06-20 21:09:04107 "//remoting/webapp",
108 ]
109 if (target_cpu == "x86") {
110 deps += [ "//courgette(//build/toolchain/win:x64)" ]
dpranke6311f0fd2016-06-29 23:41:46111
112 if (is_chrome_branded) {
113 deps += [ "//remoting/host:remoting_host_installation" ]
114 }
dpranke1d5b70692016-06-20 21:09:04115 }
116 }
dpranke33e626e2016-06-23 04:41:32117
118 group("chrome_official_builder") {
119 testonly = true
120
121 deps = [
122 ":chrome_official_builder_no_unittests",
123 "//base:base_unittests",
124 "//chrome/test:browser_tests",
125 "//chrome/test:sync_integration_tests",
126 "//ipc:ipc_tests",
127 "//media:media_unittests",
128 "//media/midi:midi_unittests",
129 "//net:net_unittests",
130 "//printing:printing_unittests",
131 "//sql:sql_unittests",
132 "//sync:sync_unit_tests",
133 "//ui/base:ui_base_unittests",
134 "//ui/gfx:gfx_unittests",
135 "//ui/touch_selection:ui_touch_selection_unittests",
136 "//ui/views:views_unittests",
137 "//url:url_unittests",
138 ]
139 }
dprankebad56d4b2016-06-26 18:06:30140
141 group("All_syzygy") {
142 if (is_syzyasan || syzygy_optimize) {
143 deps = [
144 "//chrome/installer/mini_installer:mini_installer",
145 "//chrome/installer/mini_installer:mini_installer_syzygy",
146 ]
147 }
148 }
dpranke1d5b70692016-06-20 21:09:04149}
150
dprankef92633b2016-04-28 04:33:34151if (is_chromeos) {
152 group("chromiumos_preflight") {
153 testonly = true
154 deps = [
155 "//breakpad:minidump_stackwalk($host_toolchain)",
156 "//chrome",
157 "//chrome/test/chromedriver",
dprankef92633b2016-04-28 04:33:34158 "//media:media_unittests",
markdittmer6e70beb82016-05-02 05:40:47159 "//media/gpu:video_decode_accelerator_unittest",
160 "//media/gpu:video_encode_accelerator_unittest",
dprankef92633b2016-04-28 04:33:34161 "//ppapi/examples/video_decode",
162 "//sandbox/linux:chrome_sandbox",
163 "//sandbox/linux:sandbox_linux_unittests",
164
stevenjbd570b1f2016-04-29 22:57:36165 # Blocked on https://github.com/catapult-project/catapult/issues/2297
dprankef92633b2016-04-28 04:33:34166 #"//third_party/catapult/telemetry:bitmaptools",
dprankef92633b2016-04-28 04:33:34167 "//tools/perf/clear_system_cache",
168 ]
169 }
170}
171
dprankeddc174902015-04-29 01:38:35172# The "both_gn_and_gyp" target should reflect every target that is built
173# in both the GN and GYP builds, and ideally it should match the
174# "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line.
dprankeddc174902015-04-29 01:38:35175group("both_gn_and_gyp") {
dprankee2ef3822015-02-24 21:42:18176 testonly = true
dprankee2ef3822015-02-24 21:42:18177 deps = [
178 "//base:base_unittests",
brettwa874dcc2015-08-28 23:59:18179 "//chrome/installer",
sheroukdc35ba272015-09-22 14:09:37180 "//components:components_unittests",
sheroukce1c7d72015-08-24 15:21:59181 "//net:net_unittests",
sherouk2866d662015-08-24 16:29:44182 "//skia:skia_unittests",
brettwa874dcc2015-08-28 23:59:18183 "//sql:sql_unittests",
sherouk3eee4a82015-09-01 10:42:33184 "//sync:sync_unit_tests",
ochangcc11d0e2016-04-26 19:58:26185 "//tools/ipc_fuzzer:ipc_fuzzer_all",
sherouk4fb74d42015-08-24 15:58:41186 "//ui/base:ui_base_unittests",
sherouk84a45ff2015-09-01 13:31:39187 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:41188 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:18189 ]
dpranke2a294622015-08-07 05:23:01190
sdefresne21832bf92016-03-30 22:01:02191 if (!is_android && !is_chromecast) {
192 deps += [
193 "//crypto:crypto_unittests",
194 "//google_apis/gcm:gcm_unit_tests",
195 ]
196 }
197
slance9d62f2015-11-04 01:15:01198 if (!is_ios && !is_android && !is_chromecast) {
sherouk53f0f1a2015-08-03 15:59:35199 deps += [
sherouk53f0f1a2015-08-03 15:59:35200 "//chrome",
201 "//chrome/test:browser_tests",
202 "//chrome/test:interactive_ui_tests",
203 "//chrome/test:sync_integration_tests",
sherouk53f0f1a2015-08-03 15:59:35204 "//chrome/test/chromedriver:chromedriver_unittests",
jamescookfbbf9112016-06-14 16:24:49205 "//extensions:extensions_browsertests",
206 "//extensions:extensions_unittests",
dprankedbdd9d82015-08-12 21:18:18207 "//gpu/gles2_conform_support:gles2_conform_test",
stevenjb604316362016-05-06 22:10:26208 "//gpu/khronos_glcts_support:khronos_glcts_test",
sherouk53f0f1a2015-08-03 15:59:35209 "//jingle:jingle_unittests",
sherouk53f0f1a2015-08-03 15:59:35210 "//net:hpack_example_generator",
211 "//net:hpack_fuzz_mutator",
212 "//net:hpack_fuzz_wrapper",
sherouk53f0f1a2015-08-03 15:59:35213 "//ppapi:ppapi_unittests",
214 "//ppapi/examples/2d",
215 "//ppapi/examples/audio",
216 "//ppapi/examples/audio_input",
217 "//ppapi/examples/compositor",
218 "//ppapi/examples/crxfs",
219 "//ppapi/examples/enumerate_devices",
220 "//ppapi/examples/file_chooser",
221 "//ppapi/examples/flash_topmost",
222 "//ppapi/examples/font",
223 "//ppapi/examples/gamepad",
224 "//ppapi/examples/gles2",
225 "//ppapi/examples/gles2_spinning_cube",
226 "//ppapi/examples/ime",
227 "//ppapi/examples/input",
228 "//ppapi/examples/media_stream_audio",
229 "//ppapi/examples/media_stream_video",
230 "//ppapi/examples/mouse_cursor",
231 "//ppapi/examples/mouse_lock",
232 "//ppapi/examples/printing",
233 "//ppapi/examples/scaling",
234 "//ppapi/examples/scripting",
235 "//ppapi/examples/stub",
236 "//ppapi/examples/threading",
237 "//ppapi/examples/url_loader",
238 "//ppapi/examples/video_capture",
239 "//ppapi/examples/video_decode",
240 "//ppapi/examples/video_effects",
241 "//ppapi/examples/video_encode",
242 "//printing:printing_unittests",
brettweb7dc6582016-05-24 01:19:43243 "//sync/tools:sync_client",
244 "//sync/tools:sync_listen_notifications",
sherouk53f0f1a2015-08-03 15:59:35245 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
246 "//third_party/codesighs",
pkotwicz558d5252015-10-19 21:09:55247 "//third_party/pdfium/samples:pdfium_test",
charliea00055282016-01-26 00:15:15248 "//tools/battor_agent",
charliea5daef2bb2016-01-29 00:13:25249 "//tools/battor_agent:battor_agent_unittests",
pkotwicz558d5252015-10-19 21:09:55250 "//tools/gn",
dpranke244f9732015-11-20 05:38:10251 "//tools/gn:gn_unittests",
pkotwicz558d5252015-10-19 21:09:55252 "//tools/perf/clear_system_cache",
253 "//ui/accessibility:accessibility_unittests",
pkotwicz558d5252015-10-19 21:09:55254 ]
255 }
256
257 if (!is_ios) {
258 # TODO(GYP): Figure out which of these should actually build on iOS,
259 # and whether there should be other targets that are iOS-only and missing.
260 deps += [
261 "//cc:cc_unittests",
stipc6de0f492016-06-01 20:05:03262 "//chrome/test:telemetry_perf_unittests",
pkotwicz558d5252015-10-19 21:09:55263 "//chrome/test:unit_tests",
264 "//components:components_browsertests",
265 "//content/shell:content_shell",
266 "//content/test:content_browsertests",
267 "//content/test:content_perftests",
268 "//content/test:content_unittests",
269 "//device:device_unittests",
270 "//gpu:gpu_unittests",
markdittmerd88b8352016-04-08 15:28:45271 "//gpu/ipc/service:gpu_ipc_service_unittests",
pkotwicz558d5252015-10-19 21:09:55272 "//ipc:ipc_tests",
pkotwicz558d5252015-10-19 21:09:55273 "//media:media_unittests",
mcasasd2f53ea2016-06-24 19:24:27274 "//media/capture:capture_unittests",
miu45b848fe2015-11-26 01:23:29275 "//media/cast:cast_unittests",
pkotwicz558d5252015-10-19 21:09:55276 "//media/midi:midi_unittests",
277 "//mojo",
pkotwicz558d5252015-10-19 21:09:55278 "//mojo/common:mojo_common_unittests",
rockotc637caf9b2016-02-10 09:57:08279 "//mojo/edk/system:mojo_system_unittests",
280 "//mojo/edk/test:mojo_public_bindings_unittests",
rockotc637caf9b2016-02-10 09:57:08281 "//mojo/edk/test:mojo_public_system_unittests",
pkotwicz558d5252015-10-19 21:09:55282 "//net:net_perftests",
benf709a3092016-04-12 22:38:22283 "//services/shell/public/cpp",
Dirk Pranke49802732015-12-10 01:36:41284 "//third_party/WebKit/Source/platform:blink_heap_unittests",
285 "//third_party/WebKit/Source/platform:blink_platform_unittests",
dpranke244f9732015-11-20 05:38:10286 "//third_party/WebKit/Source/web:webkit_unit_tests",
287 "//third_party/WebKit/Source/wtf:wtf_unittests",
nednguyenc42bf912016-01-27 01:39:28288 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35289 "//third_party/smhasher:pmurhash",
290 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35291 "//ui/display:display_unittests",
292 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35293 "//ui/gl:gl_unittests",
294 "//ui/touch_selection:ui_touch_selection_unittests",
markdittmer67b71ea2016-03-03 22:40:03295 "//url/ipc:url_ipc_unittests",
sherouk53f0f1a2015-08-03 15:59:35296 ]
sdefresne998e8582015-10-07 13:36:45297 } else {
sdefresne88abe362016-06-01 10:40:11298 deps += [ "//ios:all" ]
agrieve97dd57d2016-01-05 19:26:27299 }
300
scottmg34fb7e52014-12-03 23:27:24301 deps += root_extra_deps
brettw@chromium.orgfce5c3fe2014-04-10 21:13:05302
tfarina4aa9edc2015-10-26 22:14:02303 if (enable_extensions) {
jamescookfbbf9112016-06-14 16:24:49304 deps += [ "//extensions/shell:app_shell_unittests" ]
dprankefd1813272015-04-13 23:56:00305 }
306
dprankefd1813272015-04-13 23:56:00307 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55308 deps += [ "//chrome/browser/media/router" ]
rockot2f1326e2015-02-23 23:53:51309 }
310
garykac3eddb5b2015-04-17 23:16:38311 if (enable_remoting) {
312 deps += [ "//remoting:remoting_all" ]
James Robinson060f2e32014-09-10 22:31:37313 }
314
dprankee2ef3822015-02-24 21:42:18315 if (toolkit_views) {
ellyjones41c21fe2016-06-09 17:10:19316 deps += [
317 "//ui/views:views_unittests",
318 "//ui/views/examples:views_examples_exe",
319 "//ui/views/examples:views_examples_with_content_exe",
320 ]
brettw@chromium.org6b9028ab2014-07-23 17:15:38321 }
322
dprankee2ef3822015-02-24 21:42:18323 if (use_aura) {
mswda0133e62016-02-16 20:50:02324 deps += [
jamescookfbbf9112016-06-14 16:24:49325 "//ash:ash_shell_with_content",
326 "//ash:ash_unittests",
tapted87ca2d62016-05-19 20:48:49327 "//ui/app_list:app_list_unittests",
328 "//ui/app_list/presenter:app_list_presenter_unittests",
mswda0133e62016-02-16 20:50:02329 "//ui/aura:aura_unittests",
mswda0133e62016-02-16 20:50:02330 "//ui/aura:demo",
331 "//ui/wm:wm_unittests",
332 ]
dprankee2ef3822015-02-24 21:42:18333 }
334
335 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47336 deps += [ "//ui/ozone" ]
tfarina@chromium.orga306aaa2014-05-24 13:21:50337 }
338
dprankefd1813272015-04-13 23:56:00339 if (use_x11) {
340 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22341 }
342
tmoniuszkoe5578b922015-04-14 09:38:03343 if (enable_configuration_policy) {
344 deps += [ "//components/policy:policy_templates" ]
345 }
346
brettw66e3feab2015-07-20 23:52:22347 if (is_win) {
brettwf986f952015-10-07 17:18:15348 deps += [
349 "//chrome/installer/gcapi",
350 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
351 ]
brettw66e3feab2015-07-20 23:52:22352 }
353
dpranke@chromium.org5a8d5162014-04-12 01:19:16354 if (is_android) {
cjhopman@chromium.org26046b52014-07-16 00:11:03355 deps += [
pkotwicze2dae8b2015-11-03 20:12:55356 "//base:base_junit_tests",
dpranke244f9732015-11-20 05:38:10357 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38358 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02359 "//build/android/rezip",
pkotwicz2dd67962016-05-10 00:21:08360 "//chrome/android/webapk/shell_apk:webapk",
pkotwicze2dae8b2015-11-03 20:12:55361 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
362 "//components/policy/android:components_policy_junit_tests",
363 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45364 "//content/shell/android:content_shell_apk",
markdittmer6e70beb82016-05-02 05:40:47365 "//media/gpu:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55366 "//net/android:net_junit_tests",
jbudorick5ef42902016-04-07 04:17:11367 "//testing/android/junit:junit_unit_tests",
wnwen41f70b92016-06-22 14:48:56368 "//third_party/android_async_task:android_async_task_java",
agrieve40ba6862015-07-15 02:09:05369 "//third_party/errorprone:chromium_errorprone",
pkotwicz8adff4e2015-12-17 21:55:45370 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10371 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49372 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34373 "//tools/android:push_apps_to_background",
jbudorickdfc01f62016-06-01 15:42:12374 "//tools/android/audio_focus_grabber:audio_focus_grabber_apk",
375 "//tools/android/customtabs_benchmark:customtabs_benchmark_apk",
dgn28050da2015-10-19 10:16:43376 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
pkotwicz077093762015-12-21 16:47:15377 "//tools/cygprofile:cygprofile_unittests",
newt9e226032016-01-26 01:30:15378 "//ui/android:ui_junit_tests",
dprankee2ef3822015-02-24 21:42:18379 ]
380 deps -= [
rockot9c67e5f2015-03-12 20:01:21381 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18382 "//url:url_unittests",
cjhopman@chromium.org26046b52014-07-16 00:11:03383 ]
384
pkotwicz92e2e2312015-12-15 22:29:46385 if (!is_component_build) {
386 deps += [
agrievee23386b2016-01-05 04:47:58387 "//components/cronet/android:cronet_package",
jbudorickdfc01f62016-06-01 15:42:12388 "//components/cronet/android:cronet_perf_test_apk",
pkotwicz92e2e2312015-12-15 22:29:46389 "//components/cronet/android:cronet_sample_apk",
390 "//components/cronet/android:cronet_sample_test_apk",
391 "//components/cronet/android:cronet_test_apk",
392 "//components/cronet/android:cronet_test_instrumentation_apk",
393 "//components/cronet/android:cronet_unittests",
394 ]
395 }
396
pkotwicz061c5a42015-09-30 02:16:54397 if (!is_chromecast) {
398 deps += [
michaelbaicbcc7e62015-11-12 04:29:53399 "//android_webview",
agrieveb08e2f5b2015-12-29 01:17:30400 "//android_webview/test",
mikecasecb1b5062016-07-01 20:53:44401 "//android_webview/tools/automated_ui_tests:webview_ui_test_app",
mikecase49971fc2016-03-21 21:18:05402 "//android_webview/tools/system_webview_shell",
pkotwicze2dae8b2015-11-03 20:12:55403 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54404 "//chrome/android:chrome_public_apk",
405 "//chrome/android:chrome_public_test_apk",
jbudorickdfc01f62016-06-01 15:42:12406 "//chrome/android:chrome_sync_shell_test_apk",
pkotwicz061c5a42015-09-30 02:16:54407 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b2015-12-28 20:23:11408 "//content/shell/android:content_shell_test_apk",
pkotwicz0a2255e2015-10-06 16:29:05409 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54410 ]
411 }
412
pkotwicz06a4b4b42015-10-29 23:11:11413 if (target_cpu != "x64") {
jbudorickdfc01f62016-06-01 15:42:12414 deps += [
415 "//content/shell/android:chromium_linker_test_apk",
416 "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)",
417 ]
pkotwicz06a4b4b42015-10-29 23:11:11418 }
419
cjhopmanca675d3e2014-10-24 03:50:45420 if (has_chrome_android_internal) {
brettwf9427f92016-05-05 23:18:55421 deps += [ "//clank" ]
cjhopmanca675d3e2014-10-24 03:50:45422 }
dprankefd1813272015-04-13 23:56:00423 }
424
brettwf9427f92016-05-05 23:18:55425 if (is_linux || is_android) {
dprankefd1813272015-04-13 23:56:00426 deps += [
pkotwicza4d233b22015-11-02 18:20:38427 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00428 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38429 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00430 "//breakpad:minidump-2-core",
431 ]
432 }
433
dpranke6293d252015-04-14 19:12:00434 if (is_chromeos) {
435 deps += [
436 "//chromeos:chromeos_unittests",
yoshiki8e2ddbb2016-03-10 07:11:22437 "//ui/arc:ui_arc_unittests",
dpranke6293d252015-04-14 19:12:00438 "//ui/chromeos:ui_chromeos_unittests",
439 ]
440 }
441
dprankefd1813272015-04-13 23:56:00442 if (is_chromeos || is_mac || is_win) {
443 deps += [
444 "//rlz:rlz_id",
445 "//rlz:rlz_lib",
446 "//rlz:rlz_unittests",
447 ]
dprankedb5527d72015-03-08 04:22:47448 }
449
450 if (is_linux) {
451 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06452 deps += [
dpranke2bc89212015-11-18 00:24:43453 "//chrome:manpage",
454 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47455 "//net:disk_cache_memory_test",
456 "//net:flip_in_mem_edsm_server",
457 "//net:flip_in_mem_edsm_server_unittests",
458 "//net:quic_client",
459 "//net:quic_server",
460 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18461 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06462 ]
dnicoara8c6aa8e2015-03-11 23:20:32463
mbjorgea12e5a52016-05-31 22:15:17464 if (use_dbus) {
465 deps += [
466 "//dbus:dbus_test_server",
467 "//dbus:dbus_unittests",
468 ]
469 }
470
dnicoara8c6aa8e2015-03-11 23:20:32471 if (is_chromeos || use_ash) {
472 deps += [ "//components/session_manager/core" ]
dpranke2bc89212015-11-18 00:24:43473 }
474
475 if (is_chrome_branded && is_official_build) {
476 # TODO(dpranke): add the linux_dump_symbols flag?
477 deps += [ "//chrome:linux_symbols" ]
dnicoara8c6aa8e2015-03-11 23:20:32478 }
dprankedb5527d72015-03-08 04:22:47479 }
480
sherouke1859f92015-08-05 10:19:10481 if (is_ios || is_win || (is_linux && !is_chromeos)) {
482 deps += [
483 "//base:base_i18n_perftests",
484 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58485 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10486 ]
487 }
488
thakis507c15c2016-06-01 00:26:01489 # TODO(GYP): Figure out which of these should (and can) build
490 # for chromeos/ios.
491 if (!is_chromeos && !is_ios) {
tfarina9e7cf702015-02-23 21:13:44492 deps += [
dprankedb5527d72015-03-08 04:22:47493 "//base:build_utf8_validator_tables",
dpranke244f9732015-11-20 05:38:10494 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47495 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00496 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47497 "//components:components_perftests",
dprankedb5527d72015-03-08 04:22:47498 "//device:device_unittests",
499 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47500 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47501 "//google_apis/gcm:mcs_probe",
dprankefd1813272015-04-13 23:56:00502 "//gpu:gl_tests",
dpranke244f9732015-11-20 05:38:10503 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47504 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47505 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00506 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47507 "//sync:run_sync_testserver",
ynovikove3d872f32016-06-09 20:35:05508 "//third_party/angle/src/tests:angle_end2end_tests",
ynovikov25dc7aad2016-05-27 23:09:54509 "//third_party/angle/src/tests:angle_unittests",
dprankedb5527d72015-03-08 04:22:47510 "//third_party/codesighs:maptsvdifftool",
dprankefd1813272015-04-13 23:56:00511 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47512 "//ui/compositor:compositor_unittests",
513 ]
514
agrieve473155b2015-12-28 20:23:11515 if (!is_android) {
516 deps += [
517 "//chrome/test:load_library_perf_tests",
518 "//chrome/test:sync_performance_tests",
519 "//chrome/test/chromedriver:chromedriver",
520 "//chrome/test/chromedriver:chromedriver_tests",
521 "//courgette:courgette",
522 "//courgette:courgette_fuzz",
523 "//courgette:courgette_minimal_tool",
524 "//courgette:courgette_unittests",
stevenjb7b6fd642016-05-18 18:15:30525 "//media/cast:generate_barcode_video",
526 "//media/cast:generate_timecode_audio",
agrieve473155b2015-12-28 20:23:11527 "//net:crash_cache",
528 "//net:crl_set_dump",
529 "//net:dns_fuzz_stub",
530 "//net:gdig",
531 "//net:get_server_time",
532 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
533 "//net:run_testserver",
534 "//net:stress_cache",
535 "//net:tld_cleanup",
536 "//ppapi:pepper_hash_for_uma",
537 "//ppapi:ppapi_perftests",
agrieve473155b2015-12-28 20:23:11538 "//third_party/leveldatabase:env_chromium_unittests",
539 "//third_party/libaddressinput:libaddressinput_unittests",
540 ]
dprankedb5527d72015-03-08 04:22:47541 }
542
jamescookfbbf9112016-06-14 16:24:49543 if (enable_extensions) {
544 deps += [ "//extensions/shell:app_shell" ]
545 }
546
dprankedb5527d72015-03-08 04:22:47547 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13548 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43549
550 if (is_linux) {
551 # TODO(dpranke): Figure out what platforms should actually have this.
552 deps += [
brettwf4b4a4282015-12-16 00:41:13553 "//components/nacl/loader:helper_nonsfi",
554 "//components/nacl/loader:nacl_helper",
jbudorick3c0ef43092016-02-03 23:40:16555 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
dpranke2bc89212015-11-18 00:24:43556 ]
557 }
dprankedb5527d72015-03-08 04:22:47558 }
559
xhwangfa2d9d472015-12-18 23:31:18560 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10561 deps += [ "//media:ffmpeg_regression_tests" ]
dprankedb5527d72015-03-08 04:22:47562 }
dprankefd1813272015-04-13 23:56:00563 }
564
agrieve473155b2015-12-28 20:23:11565 if (is_android || (is_linux && !is_chromeos)) {
dprankefd1813272015-04-13 23:56:00566 deps += [
agrieve473155b2015-12-28 20:23:11567 "//breakpad:dump_syms($host_toolchain)",
568 "//breakpad:microdump_stackwalk($host_toolchain)",
569 "//breakpad:minidump_dump($host_toolchain)",
570 "//breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00571 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00572 "//content/public/app:browser",
573 "//content/public/app:child",
rockotc637caf9b2016-02-10 09:57:08574 "//mojo/edk/test:mojo_public_system_perftests",
benf709a3092016-04-12 22:38:22575 "//services/shell/public/cpp",
dprankefd1813272015-04-13 23:56:00576 "//testing/gmock:gmock_main",
dpranke244f9732015-11-20 05:38:10577 "//third_party/codesighs:nm2tsv",
dprankefd1813272015-04-13 23:56:00578 ]
579
agrieve473155b2015-12-28 20:23:11580 if (!is_android) {
581 deps += [
agrieve473155b2015-12-28 20:23:11582 "//chrome/test:chrome_app_unittests",
brettwf9427f92016-05-05 23:18:55583 "//gpu/khronos_glcts_support:khronos_glcts_test",
agrieve473155b2015-12-28 20:23:11584 "//media/cast:cast_benchmarks",
585 "//media/cast:tap_proxy",
586 "//skia:filter_fuzz_stub",
587 "//skia:image_operations_bench",
agrieve473155b2015-12-28 20:23:11588 "//third_party/sqlite:sqlite_shell",
589 "//ui/keyboard:keyboard_unittests",
590 "//ui/message_center:message_center_unittests",
591 "//ui/snapshot:snapshot_unittests",
agrieve473155b2015-12-28 20:23:11592 ]
dprankefd1813272015-04-13 23:56:00593
agrieve473155b2015-12-28 20:23:11594 if (!is_debug && !is_component_build) {
595 deps += [ "//chrome/tools/service_discovery_sniffer" ]
596 }
yutakbfb4d1672016-06-13 07:42:59597
598 if (is_clang) {
599 deps += [ "//build/sanitizers:copy_llvm_symbolizer" ]
600 }
dprankefd1813272015-04-13 23:56:00601 }
602
taptedd13e0cd2016-05-13 08:26:56603 if (enable_app_list) {
dprankefd1813272015-04-13 23:56:00604 deps += [ "//ui/app_list:app_list_demo" ]
605 }
dprankedb5527d72015-03-08 04:22:47606
607 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44608 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59609 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44610 }
dprankedb5527d72015-03-08 04:22:47611 }
612 }
613
614 if (is_mac) {
615 deps += [
616 "//breakpad:crash_inspector",
617 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44618 "//third_party/apple_sample_code",
619 "//third_party/molokocacao",
620 ]
dpranke43760592014-11-08 02:59:57621 deps -= [
brettw011138d2015-10-21 03:05:38622 # Mojo in GN contains some things which are never compiled in GYP on Mac,
623 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10624 "//mojo",
mohsen29fd4052014-12-08 21:06:46625 ]
dprankefd1813272015-04-13 23:56:00626 }
627
628 if (is_win) {
629 deps += [
630 "//base:pe_image_test",
anantaf2e54a92016-05-28 00:39:16631 "//chrome/install_static:install_static_unittests",
grt734e87b2015-07-06 19:36:43632 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00633 "//chrome_elf:chrome_elf_unittests",
634 "//chrome_elf:dll_hash_main",
dprankefd1813272015-04-13 23:56:00635 "//components/wifi:wifi_test",
636 "//net:quic_client",
637 "//net:quic_server",
638 "//sandbox/win:pocdll",
639 "//sandbox/win:sandbox_poc",
640 "//sandbox/win:sbox_integration_tests",
641 "//sandbox/win:sbox_unittests",
642 "//sandbox/win:sbox_validation_tests",
643 "//testing/gtest:gtest_main",
644 "//third_party/codesighs:msmap2tsv",
645 "//third_party/pdfium/samples:pdfium_diff",
dprankefd1813272015-04-13 23:56:00646 ]
dprankee2ef3822015-02-24 21:42:18647 deps -= [
648 "//crypto:crypto_unittests", # TODO(GYP)
649 "//net:net_unittests", # TODO(GYP)
650 ]
fdorayfb048bff2016-04-28 22:07:36651
652 if (!(is_component_build && is_debug && target_cpu == "x86")) {
653 deps +=
654 [ "//chrome/installer/mini_installer:next_version_mini_installer" ]
655 }
sherouk53f0f1a2015-08-03 15:59:35656 } else if (!is_android && !is_ios) {
miu45b848fe2015-11-26 01:23:29657 deps += [ "//breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34658 }
rsesek985bd812016-04-26 21:06:15659
slance9d62f2015-11-04 01:15:01660 if (is_chromecast) {
661 deps += [ "//chromecast:cast_shell" ]
662 }
miu45b848fe2015-11-26 01:23:29663
dpranked43eab42015-12-15 23:10:44664 if (is_mac) { # TODO(GYP) || is_ios
miu45b848fe2015-11-26 01:23:29665 deps += [ "//media/cast:cast_h264_vt_encoder_unittests" ]
666 }
hbos17a7b4a22015-12-07 10:49:45667
rsesek985bd812016-04-26 21:06:15668 if (is_mac || is_win) {
669 deps += [
670 "//third_party/crashpad/crashpad/handler:crashpad_handler",
671 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
672 ]
673 }
674
hbos17a7b4a22015-12-07 10:49:45675 if (use_openh264) {
676 deps += [
677 "//third_party/openh264:common",
678 "//third_party/openh264:encoder",
679 "//third_party/openh264:processing",
680 ]
681 }
dpranke18e57432015-02-27 21:46:47682}
683
dpranked62d8512015-03-02 03:06:03684group("gn_only") {
dprankedb5527d72015-03-08 04:22:47685 testonly = true
686
dpranke2a294622015-08-07 05:23:01687 deps = []
688
amistry4dcd7c42015-12-16 04:53:10689 if (!is_ios) {
xhwangf69024d12016-06-16 17:52:29690 deps += [
691 "//media/mojo:media_mojo_unittests",
692 "//mojo/common:mojo_common_perftests",
693 ]
amistry4dcd7c42015-12-16 04:53:10694 }
695
scheib35dc9202016-04-26 22:35:43696 if (!is_android && !is_ios) {
697 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
698 }
699
dpranke244f9732015-11-20 05:38:10700 if (!is_android && !is_ios && !is_chromeos) {
isherman0f89b43eb2015-04-11 00:02:45701 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
702 }
703
ben8f4e95ad2015-12-01 18:35:58704 if (is_win || is_linux) {
sky70471b22016-01-14 16:20:54705 deps += [
706 "//mash:all",
bena5d1cd42016-04-29 22:59:53707 "//media/mojo/services:media_mojo_shell_unittests",
skyfcde3a42016-02-09 20:27:44708 "//mojo",
benee648f62016-05-12 23:04:50709 "//services/navigation",
ben6b0453d2016-07-02 04:27:19710 "//services/ui/demo",
711 "//services/ui/ws:tests",
qyearsley88bc4802016-05-17 18:02:34712 "//ui/views/mus:views_mus_interactive_ui_tests",
bena5d1cd42016-04-29 22:59:53713 "//ui/views/mus:views_mus_unittests",
sky70471b22016-01-14 16:20:54714 ]
sky97b65592015-11-02 20:08:25715 }
716
stevenjb7b6fd642016-05-18 18:15:30717 if (is_linux && !is_chromeos && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47718 # TODO(GYP): Figure out if any of these should be in gn_all
719 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45720 deps += [
dprankedb5527d72015-03-08 04:22:47721 ":gn_mojo_targets",
722 "//chrome/browser/resources:extension_resource_demo",
723 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47724 "//chrome/tools/convert_dict",
725 "//components/constrained_window:unit_tests",
erg4652931e2016-04-27 22:15:40726 "//components/filesystem:filesystem_service_unittests",
ergf1f689f2016-03-22 00:51:20727 "//components/leveldb:leveldb_service_unittests",
dprankedb5527d72015-03-08 04:22:47728 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45729 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47730 "//components/rappor:unit_tests",
731 "//components/sessions:unit_tests",
732 "//media/blink:media_blink_unittests",
stevenjb7b6fd642016-05-18 18:15:30733 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47734 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
735 "//storage/browser:dump_file_system",
736 "//third_party/angle:libANGLE",
737 "//third_party/angle:libEGL",
738 "//third_party/angle:libGLESv2",
dprankedb5527d72015-03-08 04:22:47739 "//third_party/leveldatabase:leveldb_arena_test",
740 "//third_party/leveldatabase:leveldb_bloom_test",
dprankedb5527d72015-03-08 04:22:47741 "//third_party/leveldatabase:leveldb_cache_test",
dprankedb5527d72015-03-08 04:22:47742 "//third_party/leveldatabase:leveldb_corruption_test",
dpranke244f9732015-11-20 05:38:10743 "//third_party/leveldatabase:leveldb_crc32c_test",
744 "//third_party/leveldatabase:leveldb_db_bench",
745 "//third_party/leveldatabase:leveldb_db_test",
dprankedb5527d72015-03-08 04:22:47746 "//third_party/leveldatabase:leveldb_dbformat_test",
dpranke244f9732015-11-20 05:38:10747 "//third_party/leveldatabase:leveldb_env_test",
748 "//third_party/leveldatabase:leveldb_filename_test",
749 "//third_party/leveldatabase:leveldb_filter_block_test",
750 "//third_party/leveldatabase:leveldb_log_test",
751 "//third_party/leveldatabase:leveldb_skiplist_test",
752 "//third_party/leveldatabase:leveldb_table_test",
753 "//third_party/leveldatabase:leveldb_version_edit_test",
754 "//third_party/leveldatabase:leveldb_write_batch_test",
dprankedb5527d72015-03-08 04:22:47755 "//third_party/libjpeg_turbo:simd",
dpranke244f9732015-11-20 05:38:10756 "//third_party/libsrtp:rdbx_driver",
dprankedb5527d72015-03-08 04:22:47757 "//third_party/libsrtp:replay_driver",
758 "//third_party/libsrtp:roc_driver",
759 "//third_party/libsrtp:rtpw",
dprankedb5527d72015-03-08 04:22:47760 "//third_party/libsrtp:srtp_driver",
761 "//third_party/libsrtp:srtp_driver",
dpranke244f9732015-11-20 05:38:10762 "//third_party/libsrtp:srtp_test_aes_calc",
dprankedb5527d72015-03-08 04:22:47763 "//third_party/libsrtp:srtp_test_cipher_driver",
764 "//third_party/libsrtp:srtp_test_datatypes_driver",
dprankedb5527d72015-03-08 04:22:47765 "//third_party/libsrtp:srtp_test_env",
dpranke244f9732015-11-20 05:38:10766 "//third_party/libsrtp:srtp_test_kernel_driver",
dprankedb5527d72015-03-08 04:22:47767 "//third_party/libsrtp:srtp_test_rand_gen",
768 "//third_party/libsrtp:srtp_test_sha1_driver",
769 "//third_party/libsrtp:srtp_test_stat_driver",
770 "//third_party/opus:opus_compare",
771 "//third_party/opus:opus_demo",
dpranke244f9732015-11-20 05:38:10772 "//third_party/opus:test_opus_api",
dprankedb5527d72015-03-08 04:22:47773 "//third_party/opus:test_opus_decode",
774 "//third_party/opus:test_opus_encode",
dprankedb5527d72015-03-08 04:22:47775 "//third_party/opus:test_opus_padding",
dpranke244f9732015-11-20 05:38:10776 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47777 "//third_party/webrtc/system_wrappers:field_trial_default",
778 "//third_party/webrtc/system_wrappers:metrics_default",
779 "//ui/display/types",
780 "//ui/shell_dialogs:shell_dialogs_unittests",
dprankedb5527d72015-03-08 04:22:47781 ]
dprankeb0713542015-07-31 21:07:21782
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16783 if (target_cpu == "x86" || target_cpu == "x64") {
agrieve473155b2015-12-28 20:23:11784 if (!is_android) {
785 deps += [ "//chrome/test:load_library_perf_tests" ]
786 }
mcgrathr916aafa2015-09-15 00:06:53787 deps += [
mcgrathr916aafa2015-09-15 00:06:53788 "//native_client/src/trusted/platform_qualify:vcpuid",
dpranke244f9732015-11-20 05:38:10789 "//third_party/libjpeg_turbo:simd_asm",
mcgrathr916aafa2015-09-15 00:06:53790 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16791 }
dpranke807f6022015-03-17 23:20:56792 if (is_linux && current_toolchain == host_toolchain) {
jochen11513aa02016-05-11 09:59:51793 deps += [ "//v8:v8_shell" ]
dpranke807f6022015-03-17 23:20:56794 }
aizatskye9aba582016-03-25 22:37:16795 }
796
spang324dc57a2016-04-06 14:54:08797 if (use_ozone) {
798 deps += [ "//ui/ozone/demo" ]
799 }
800
aizatskyaf496112016-04-15 19:26:32801 if ((is_linux && !is_chromeos && !is_chromecast) || (is_win && use_drfuzz) ||
802 (use_libfuzzer && is_mac)) {
803 deps += [
804 "//testing/libfuzzer/fuzzers",
805 "//testing/libfuzzer/tests:libfuzzer_tests",
aizatsky3f560172016-06-03 23:26:06806 "//third_party/icu/fuzzers",
aizatskyaf496112016-04-15 19:26:32807 ]
808 }
809
sbc92b4d572016-02-18 03:28:23810 if (enable_nacl) {
811 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
812 }
813
agrieve473155b2015-12-28 20:23:11814 if (is_android) {
815 deps += [
816 "//build/android/gyp/test:hello_world",
817 "//build/android/incremental_install:bootstrap_java",
818 ]
nyquistb5f050b2015-09-10 05:10:35819 }
820
skyostilfe116162016-02-26 20:53:33821 if (is_linux && use_ozone) {
822 deps += [
823 "//headless",
824 "//headless:headless_tests",
825 ]
826 }
827
agrieve473155b2015-12-28 20:23:11828 if (!is_chromecast && (is_android || is_linux || is_chromeos)) {
829 deps += [
830 "//blimp",
831 "//blimp:blimp_tests",
aizatskyddefc992015-11-20 08:42:03832 ]
aizatskyfc46a9f2015-10-09 21:20:08833 }
dprankedb5527d72015-03-08 04:22:47834}
835
836group("gn_mojo_targets") {
837 testonly = true
838 if (is_linux && !is_chromeos) {
839 # TODO(GYP): Figure out if any of these should be in gn_all
840 # and figure out how cross-platform they are
841 deps = [
amistryd4aa70d2016-06-23 07:52:37842 "//ipc:ipc_tests",
msw1bb9c6c2015-05-06 21:35:44843 "//mojo:tests",
dprankedb5527d72015-03-08 04:22:47844 ]
dprankedb5527d72015-03-08 04:22:47845 }
846}
847
848group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03849 deps = [
dprankeb6128d02015-05-01 16:40:30850 "//build/config/sanitizers:options_sources",
dprankedb5527d72015-03-08 04:22:47851 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
852 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dpranked62d8512015-03-02 03:06:03853 ]
dpranked2fb5222015-09-10 22:39:05854
855 if (!is_ios) {
856 deps += [
dpranked2fb5222015-09-10 22:39:05857 "//v8:postmortem-metadata",
dpranke244f9732015-11-20 05:38:10858 "//v8:v8_snapshot",
dpranked2fb5222015-09-10 22:39:05859 ]
860 }
dpranked62d8512015-03-02 03:06:03861}
862
tfarinacb2638b2015-05-12 03:24:15863if (!is_ios) {
864 # This group includes all of the targets needed to build and test Blink,
865 # including running the layout tests (see below).
866 group("blink_tests") {
867 testonly = true
868
869 deps = [
agrieve993374cf2016-04-13 00:05:39870 "//content/shell:content_shell",
tfarinacb2638b2015-05-12 03:24:15871 "//third_party/WebKit/public:all_blink",
agrieve993374cf2016-04-13 00:05:39872 "//tools/imagediff",
tfarinacb2638b2015-05-12 03:24:15873 ]
874
875 # NOTE: The following deps are needed to run the layout tests
876 # (run-webkit-tests) but there is no GN target for the layout tests,
877 # so we need to specify the dependencies here instead.
878 if (is_android) {
879 deps += [
agrieve62ab00282016-04-05 02:03:45880 "//breakpad:breakpad_unittests",
agrieve993374cf2016-04-13 00:05:39881 "//breakpad:dump_syms",
882 "//breakpad:microdump_stackwalk",
883 "//breakpad:minidump_dump",
884 "//breakpad:minidump_stackwalk",
885 "//breakpad:symupload",
886 "//tools/android/forwarder",
ojan94989c72015-07-17 21:56:42887 ]
tfarinacb2638b2015-05-12 03:24:15888 }
889
890 if (is_win) {
891 deps += [
jochen73e711c2015-06-03 10:01:46892 "//components/test_runner:layout_test_helper",
brettw0d3b1df2015-12-03 00:10:01893 "//content/shell:content_shell_crash_service",
tfarinacb2638b2015-05-12 03:24:15894 ]
895 }
896
897 if (!is_win && !is_android) {
Gordana.Cmiljanovicf243e9a2015-05-26 22:14:47898 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15899 }
900
901 if (is_mac) {
902 deps += [
903 "//breakpad:dump_syms($host_toolchain)",
jochen73e711c2015-06-03 10:01:46904 "//components/test_runner:layout_test_helper",
tfarinacb2638b2015-05-12 03:24:15905 ]
906 }
907
908 if (is_linux) {
909 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
910 }
911 }
912}
913
dpranke6abd8652015-08-28 03:21:11914# Add a dummy target for compatibility w/ GYP
915group("chromium_swarm_tests") {
916}
917
dpranke2302dfa2015-09-29 02:21:52918group("chromium_builder_perf") {
919 testonly = true
920
thakisca8a4282016-06-10 17:59:30921 if (!is_ios && !is_android && !is_chromecast) {
dpranke2302dfa2015-09-29 02:21:52922 deps = [
923 "//cc:cc_perftests",
dpranke2302dfa2015-09-29 02:21:52924 "//chrome/test:load_library_perf_tests",
dpranke2302dfa2015-09-29 02:21:52925 "//gpu:gpu_perftests",
926 "//media:media_perftests",
kbr1e58e782016-05-27 17:21:19927 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
dpranke2302dfa2015-09-29 02:21:52928 ]
929
930 if (!is_chromeos) {
931 deps += [ "//chrome/test:performance_browser_tests" ]
932 }
933 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:04934 if (is_official_build) {
935 # In GN builds, this is controlled by the 'linux_dump_symbols'
936 # flag, which defaults to 1 for official builds. For now,
937 # we skip the separate flag and just key off of is_official_build.
938 deps += [ "//chrome:linux_symbols" ]
939 }
dpranke2302dfa2015-09-29 02:21:52940
941 if (!is_chromeos) {
942 deps += [ "//tools/perf/clear_system_cache" ]
943 }
944 }
945
946 if (is_win) {
947 deps += [
hansa3d3aa4d2016-05-04 22:12:52948 "//chrome/installer/mini_installer:mini_installer",
jmadilla42eba2a2016-06-07 18:58:29949 "//third_party/angle/src/tests:angle_perftests",
dpranke2302dfa2015-09-29 02:21:52950 ]
dpranke2302dfa2015-09-29 02:21:52951 } else {
dprankeec10b3932015-10-02 17:58:23952 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52953 }
954 }
955}
agrieve017b91f2016-02-29 20:15:06956
thakis3f7d4fc2016-06-10 18:47:50957if (!is_ios && !is_android && !is_chromecast) {
958 group("chromium_builder_asan") {
959 testonly = true
960
961 deps = [
962 "//chrome:chrome",
963 "//content/shell:content_shell",
964 "//v8:d8",
965 ]
966 if (!is_win) {
967 deps += [
968 "//net:dns_fuzz_stub",
969 "//net:hpack_fuzz_wrapper",
970 "//skia:filter_fuzz_stub",
971 ]
972 }
973 if (enable_ipc_fuzzer && !is_component_build) {
974 deps += [ "//tools/ipc_fuzzer:ipc_fuzzer_all" ]
975 }
976 if (!is_chromeos) {
977 deps += [
978 "//third_party/pdfium/samples:pdfium_test",
979 "//v8:v8_shell($host_toolchain)",
980 ]
981 }
982 if (is_clang) {
983 deps += [ "//build/sanitizers:copy_llvm_symbolizer" ]
984 }
985 if (is_win && symbol_level == 2 && target_cpu == "x86" && is_syzyasan) {
986 deps += [
987 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
988 # TODO(GYP): Add this once it exists, https://crbug.com/619086
989 # "//content/shell:content_shell_syzyasan
990 ]
991 if (is_multi_dll_chrome) {
992 deps += [ "//chrome/tools/build/win/syzygy:chrome_child_dll_syzygy" ]
993 }
994 }
995 }
996}
997
brettw6df3e8c2016-04-14 21:07:13998# For compatibility with GYP. The linux_chromium_chromeos_rel_ng and
999# linux_chromium_chromeos_compile_rel_ng bots reference this target as
1000# something to build, but all targets for those bots to compile are set
1001# up differently.
1002# TODO bug 601920: Remove reference to aura_builder on bot config and delete
1003# this group.
1004group("aura_builder") {
1005}
1006
agrieve95ba4442016-04-25 15:47:131007if (is_android) {
1008 group("optimize_gn_gen") {
1009 deps = [
1010 # These run expensive scripts in non-default toolchains. Generally, host
1011 # toolchain targets are loaded in the later part of the run, and the
1012 # result is they push out the end of generation. By preloading these, the
1013 # scripts can be parallelized with the rest of the load.
1014 "//build/config/linux(//build/toolchain/linux:clang_x64)",
1015 "//build/config/posix(//build/toolchain/linux:clang_x64)",
1016
1017 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot
1018 # generation.
1019 "//build/config/linux(//build/toolchain/linux:clang_x86)",
1020 "//build/config/posix(//build/toolchain/linux:clang_x86)",
1021 ]
1022 }
1023}
1024
agrieve017b91f2016-02-29 20:15:061025# Because of the source assignment filter, many targets end up over-filtering
1026# their sources if the output directory contains a platform name. Assert that
1027# this doesn't happen. http://crbug.com/548283
1028template("assert_valid_out_dir") {
1029 # List copied from //build/config/BUILDCONFIG.gn.
1030 set_sources_assignment_filter([
1031 "*\bandroid/*",
1032 "*\bchromeos/*",
1033 "*\bcocoa/*",
1034 "*\bios/*",
1035 "*\blinux/*",
1036 "*\bmac/*",
1037 "*\bposix/*",
1038 "*\bwin/*",
1039 ])
1040 assert(target_name != "") # Mark as used.
1041 sources = invoker.actual_sources
1042 assert(
1043 sources == invoker.actual_sources,
1044 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
1045}
1046
1047assert_valid_out_dir("_unused") {
1048 actual_sources = [ "$root_build_dir/foo" ]
1049}