blob: 5b73c3c2ab3d551fdefee708c618e79552faf72c [file] [log] [blame]
[email protected]f0e7ff882013-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")
[email protected]378b4f02014-06-10 15:58:4514import("//build/config/ui.gni")
dpranked4da5ab42015-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}
[email protected]378b4f02014-06-10 15:58:4523
brettwb84b29472014-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") {
64 testonly = true
65
66 deps = [
dprankeddc174902015-04-29 01:38:3567 ":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)" ]
111 }
112 if (is_chrome_branded) {
113 deps += [ "//remoting/host:remoting_host_installation" ]
114 }
115 }
dpranke33e626e2016-06-23 04:41:32116
117 group("chrome_official_builder") {
118 testonly = true
119
120 deps = [
121 ":chrome_official_builder_no_unittests",
122 "//base:base_unittests",
123 "//chrome/test:browser_tests",
124 "//chrome/test:sync_integration_tests",
125 "//ipc:ipc_tests",
126 "//media:media_unittests",
127 "//media/midi:midi_unittests",
128 "//net:net_unittests",
129 "//printing:printing_unittests",
130 "//sql:sql_unittests",
131 "//sync:sync_unit_tests",
132 "//ui/base:ui_base_unittests",
133 "//ui/gfx:gfx_unittests",
134 "//ui/touch_selection:ui_touch_selection_unittests",
135 "//ui/views:views_unittests",
136 "//url:url_unittests",
137 ]
138 }
dpranke1d5b70692016-06-20 21:09:04139}
140
dprankef92633b2016-04-28 04:33:34141if (is_chromeos) {
142 group("chromiumos_preflight") {
143 testonly = true
144 deps = [
145 "//breakpad:minidump_stackwalk($host_toolchain)",
146 "//chrome",
147 "//chrome/test/chromedriver",
dprankef92633b2016-04-28 04:33:34148 "//media:media_unittests",
markdittmer6e70beb82016-05-02 05:40:47149 "//media/gpu:video_decode_accelerator_unittest",
150 "//media/gpu:video_encode_accelerator_unittest",
dprankef92633b2016-04-28 04:33:34151 "//ppapi/examples/video_decode",
152 "//sandbox/linux:chrome_sandbox",
153 "//sandbox/linux:sandbox_linux_unittests",
154
stevenjbd570b1f2016-04-29 22:57:36155 # Blocked on https://github.com/catapult-project/catapult/issues/2297
dprankef92633b2016-04-28 04:33:34156 #"//third_party/catapult/telemetry:bitmaptools",
dprankef92633b2016-04-28 04:33:34157 "//tools/perf/clear_system_cache",
158 ]
159 }
160}
161
dprankeddc174902015-04-29 01:38:35162# The "both_gn_and_gyp" target should reflect every target that is built
163# in both the GN and GYP builds, and ideally it should match the
164# "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line.
dprankeddc174902015-04-29 01:38:35165group("both_gn_and_gyp") {
166 testonly = true
dprankeddc174902015-04-29 01:38:35167 deps = [
dprankee2ef3822015-02-24 21:42:18168 "//base:base_unittests",
brettwa874dcc2015-08-28 23:59:18169 "//chrome/installer",
sheroukdc35ba272015-09-22 14:09:37170 "//components:components_unittests",
sheroukce1c7d72015-08-24 15:21:59171 "//net:net_unittests",
sherouk2866d662015-08-24 16:29:44172 "//skia:skia_unittests",
brettwa874dcc2015-08-28 23:59:18173 "//sql:sql_unittests",
sherouk3eee4a82015-09-01 10:42:33174 "//sync:sync_unit_tests",
ochangcc11d0e2016-04-26 19:58:26175 "//tools/ipc_fuzzer:ipc_fuzzer_all",
sherouk4fb74d42015-08-24 15:58:41176 "//ui/base:ui_base_unittests",
sherouk84a45ff2015-09-01 13:31:39177 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:41178 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:18179 ]
dpranke2a294622015-08-07 05:23:01180
sdefresne21832bf92016-03-30 22:01:02181 if (!is_android && !is_chromecast) {
182 deps += [
183 "//crypto:crypto_unittests",
184 "//google_apis/gcm:gcm_unit_tests",
185 ]
186 }
187
slance9d62f2015-11-04 01:15:01188 if (!is_ios && !is_android && !is_chromecast) {
sherouk53f0f1a2015-08-03 15:59:35189 deps += [
sherouk53f0f1a2015-08-03 15:59:35190 "//chrome",
191 "//chrome/test:browser_tests",
192 "//chrome/test:interactive_ui_tests",
193 "//chrome/test:sync_integration_tests",
sherouk53f0f1a2015-08-03 15:59:35194 "//chrome/test/chromedriver:chromedriver_unittests",
jamescookfbbf9112016-06-14 16:24:49195 "//extensions:extensions_browsertests",
196 "//extensions:extensions_unittests",
dprankedbdd9d82015-08-12 21:18:18197 "//gpu/gles2_conform_support:gles2_conform_test",
stevenjb604316362016-05-06 22:10:26198 "//gpu/khronos_glcts_support:khronos_glcts_test",
sherouk53f0f1a2015-08-03 15:59:35199 "//jingle:jingle_unittests",
sherouk53f0f1a2015-08-03 15:59:35200 "//net:hpack_example_generator",
201 "//net:hpack_fuzz_mutator",
202 "//net:hpack_fuzz_wrapper",
sherouk53f0f1a2015-08-03 15:59:35203 "//ppapi:ppapi_unittests",
204 "//ppapi/examples/2d",
205 "//ppapi/examples/audio",
206 "//ppapi/examples/audio_input",
207 "//ppapi/examples/compositor",
208 "//ppapi/examples/crxfs",
209 "//ppapi/examples/enumerate_devices",
210 "//ppapi/examples/file_chooser",
211 "//ppapi/examples/flash_topmost",
212 "//ppapi/examples/font",
213 "//ppapi/examples/gamepad",
214 "//ppapi/examples/gles2",
215 "//ppapi/examples/gles2_spinning_cube",
216 "//ppapi/examples/ime",
217 "//ppapi/examples/input",
218 "//ppapi/examples/media_stream_audio",
219 "//ppapi/examples/media_stream_video",
220 "//ppapi/examples/mouse_cursor",
221 "//ppapi/examples/mouse_lock",
222 "//ppapi/examples/printing",
223 "//ppapi/examples/scaling",
224 "//ppapi/examples/scripting",
225 "//ppapi/examples/stub",
226 "//ppapi/examples/threading",
227 "//ppapi/examples/url_loader",
228 "//ppapi/examples/video_capture",
229 "//ppapi/examples/video_decode",
230 "//ppapi/examples/video_effects",
231 "//ppapi/examples/video_encode",
232 "//printing:printing_unittests",
brettweb7dc65852016-05-24 01:19:43233 "//sync/tools:sync_client",
234 "//sync/tools:sync_listen_notifications",
sherouk53f0f1a2015-08-03 15:59:35235 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
236 "//third_party/codesighs",
pkotwicz558d5252015-10-19 21:09:55237 "//third_party/pdfium/samples:pdfium_test",
charliea00055282016-01-26 00:15:15238 "//tools/battor_agent",
charliea5daef2bb2016-01-29 00:13:25239 "//tools/battor_agent:battor_agent_unittests",
pkotwicz558d5252015-10-19 21:09:55240 "//tools/gn",
dpranke244f973d62015-11-20 05:38:10241 "//tools/gn:gn_unittests",
pkotwicz558d5252015-10-19 21:09:55242 "//tools/perf/clear_system_cache",
243 "//ui/accessibility:accessibility_unittests",
pkotwicz558d5252015-10-19 21:09:55244 ]
245 }
246
247 if (!is_ios) {
248 # TODO(GYP): Figure out which of these should actually build on iOS,
249 # and whether there should be other targets that are iOS-only and missing.
250 deps += [
251 "//cc:cc_unittests",
stipc6de0f492016-06-01 20:05:03252 "//chrome/test:telemetry_perf_unittests",
pkotwicz558d5252015-10-19 21:09:55253 "//chrome/test:unit_tests",
254 "//components:components_browsertests",
255 "//content/shell:content_shell",
256 "//content/test:content_browsertests",
257 "//content/test:content_perftests",
258 "//content/test:content_unittests",
259 "//device:device_unittests",
260 "//gpu:gpu_unittests",
markdittmerd88b8352016-04-08 15:28:45261 "//gpu/ipc/service:gpu_ipc_service_unittests",
pkotwicz558d5252015-10-19 21:09:55262 "//ipc:ipc_tests",
pkotwicz558d5252015-10-19 21:09:55263 "//media:media_unittests",
miu45b848fe2015-11-26 01:23:29264 "//media/cast:cast_unittests",
pkotwicz558d5252015-10-19 21:09:55265 "//media/midi:midi_unittests",
266 "//mojo",
pkotwicz558d5252015-10-19 21:09:55267 "//mojo/common:mojo_common_unittests",
rockotc637caf9b2016-02-10 09:57:08268 "//mojo/edk/system:mojo_system_unittests",
269 "//mojo/edk/test:mojo_public_bindings_unittests",
rockotc637caf9b2016-02-10 09:57:08270 "//mojo/edk/test:mojo_public_system_unittests",
pkotwicz558d5252015-10-19 21:09:55271 "//net:net_perftests",
benf709a3092016-04-12 22:38:22272 "//services/shell/public/cpp",
Dirk Pranke49802732015-12-10 01:36:41273 "//third_party/WebKit/Source/platform:blink_heap_unittests",
274 "//third_party/WebKit/Source/platform:blink_platform_unittests",
dpranke244f973d62015-11-20 05:38:10275 "//third_party/WebKit/Source/web:webkit_unit_tests",
276 "//third_party/WebKit/Source/wtf:wtf_unittests",
nednguyenc42bf912016-01-27 01:39:28277 "//third_party/catapult/telemetry:bitmaptools($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35278 "//third_party/smhasher:pmurhash",
279 "//tools/imagediff($host_toolchain)",
sherouk53f0f1a2015-08-03 15:59:35280 "//ui/display:display_unittests",
281 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35282 "//ui/gl:gl_unittests",
283 "//ui/touch_selection:ui_touch_selection_unittests",
markdittmer67b71ea2016-03-03 22:40:03284 "//url/ipc:url_ipc_unittests",
sherouk53f0f1a2015-08-03 15:59:35285 ]
sdefresne998e8582015-10-07 13:36:45286 } else {
sdefresne88abe362016-06-01 10:40:11287 deps += [ "//ios:all" ]
sherouk53f0f1a2015-08-03 15:59:35288 }
dprankee2ef3822015-02-24 21:42:18289
scottmg34fb7e52014-12-03 23:27:24290 deps += root_extra_deps
[email protected]fce5c3fe2014-04-10 21:13:05291
tfarina4aa9edc2015-10-26 22:14:02292 if (enable_extensions) {
jamescookfbbf9112016-06-14 16:24:49293 deps += [ "//extensions/shell:app_shell_unittests" ]
rockot2f1326e2015-02-23 23:53:51294 }
295
dprankefd1813272015-04-13 23:56:00296 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55297 deps += [ "//chrome/browser/media/router" ]
dprankefd1813272015-04-13 23:56:00298 }
299
garykac3eddb5b2015-04-17 23:16:38300 if (enable_remoting) {
301 deps += [ "//remoting:remoting_all" ]
dprankece5eb832015-04-01 20:21:05302 }
303
dprankee2ef3822015-02-24 21:42:18304 if (toolkit_views) {
ellyjones41c21fe2016-06-09 17:10:19305 deps += [
306 "//ui/views:views_unittests",
307 "//ui/views/examples:views_examples_exe",
308 "//ui/views/examples:views_examples_with_content_exe",
309 ]
James Robinson060f2e32014-09-10 22:31:37310 }
311
dprankee2ef3822015-02-24 21:42:18312 if (use_aura) {
mswda0133e62016-02-16 20:50:02313 deps += [
jamescookfbbf9112016-06-14 16:24:49314 "//ash:ash_shell_with_content",
315 "//ash:ash_unittests",
tapted87ca2d62016-05-19 20:48:49316 "//ui/app_list:app_list_unittests",
317 "//ui/app_list/presenter:app_list_presenter_unittests",
mswda0133e62016-02-16 20:50:02318 "//ui/aura:aura_unittests",
mswda0133e62016-02-16 20:50:02319 "//ui/aura:demo",
320 "//ui/wm:wm_unittests",
321 ]
dprankee2ef3822015-02-24 21:42:18322 }
323
324 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47325 deps += [ "//ui/ozone" ]
[email protected]a306aaa2014-05-24 13:21:50326 }
327
dprankefd1813272015-04-13 23:56:00328 if (use_x11) {
329 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22330 }
331
tmoniuszkoe5578b922015-04-14 09:38:03332 if (enable_configuration_policy) {
333 deps += [ "//components/policy:policy_templates" ]
334 }
335
dprankefd1813272015-04-13 23:56:00336 if (v8_use_external_startup_data) {
337 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
[email protected]2d6893a2014-06-02 19:16:36338 }
339
brettw66e3feab2015-07-20 23:52:22340 if (is_win) {
brettwf986f9572015-10-07 17:18:15341 deps += [
342 "//chrome/installer/gcapi",
343 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
344 ]
brettw66e3feab2015-07-20 23:52:22345 }
346
[email protected]5a8d5162014-04-12 01:19:16347 if (is_android) {
[email protected]26046b52014-07-16 00:11:03348 deps += [
pkotwicze2dae8b2015-11-03 20:12:55349 "//base:base_junit_tests",
dpranke244f973d62015-11-20 05:38:10350 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38351 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02352 "//build/android/rezip",
pkotwicz2dd67962016-05-10 00:21:08353 "//chrome/android/webapk/shell_apk:webapk",
pkotwicze2dae8b2015-11-03 20:12:55354 "//components/invalidation/impl:components_invalidation_impl_junit_tests",
355 "//components/policy/android:components_policy_junit_tests",
356 "//content/public/android:content_junit_tests",
pkotwicz8adff4e2015-12-17 21:55:45357 "//content/shell/android:content_shell_apk",
markdittmer6e70beb82016-05-02 05:40:47358 "//media/gpu:video_decode_accelerator_unittest",
pkotwicze2dae8b2015-11-03 20:12:55359 "//net/android:net_junit_tests",
jbudorick5ef42902016-04-07 04:17:11360 "//testing/android/junit:junit_unit_tests",
wnwen41f70b92016-06-22 14:48:56361 "//third_party/android_async_task:android_async_task_java",
agrieve40ba6862015-07-15 02:09:05362 "//third_party/errorprone:chromium_errorprone",
pkotwicz8adff4e2015-12-17 21:55:45363 "//third_party/smhasher:murmurhash3",
pkotwicze38594d2015-09-25 00:05:10364 "//tools/android:android_tools",
pkotwicz6b5571b2015-12-08 21:54:49365 "//tools/android:memconsumer",
mikecasef5e98302016-03-11 18:38:34366 "//tools/android:push_apps_to_background",
jbudorickdfc01f62016-06-01 15:42:12367 "//tools/android/audio_focus_grabber:audio_focus_grabber_apk",
368 "//tools/android/customtabs_benchmark:customtabs_benchmark_apk",
pkotwicz8b9d18c2015-10-05 01:59:33369 "//tools/android/heap_profiler:heap_profiler_unittests",
dgn28050da2015-10-19 10:16:43370 "//tools/android/kerberos/SpnegoAuthenticator:spnego_authenticator_apk",
pkotwicz077093762015-12-21 16:47:15371 "//tools/cygprofile:cygprofile_unittests",
newt9e226032016-01-26 01:30:15372 "//ui/android:ui_junit_tests",
dprankee2ef3822015-02-24 21:42:18373 ]
374 deps -= [
rockot9c67e5f2015-03-12 20:01:21375 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18376 "//url:url_unittests",
[email protected]26046b52014-07-16 00:11:03377 ]
378
pkotwicz92e2e2312015-12-15 22:29:46379 if (!is_component_build) {
380 deps += [
agrievee23386b2016-01-05 04:47:58381 "//components/cronet/android:cronet_package",
jbudorickdfc01f62016-06-01 15:42:12382 "//components/cronet/android:cronet_perf_test_apk",
pkotwicz92e2e2312015-12-15 22:29:46383 "//components/cronet/android:cronet_sample_apk",
384 "//components/cronet/android:cronet_sample_test_apk",
385 "//components/cronet/android:cronet_test_apk",
386 "//components/cronet/android:cronet_test_instrumentation_apk",
387 "//components/cronet/android:cronet_unittests",
388 ]
389 }
390
pkotwicz061c5a42015-09-30 02:16:54391 if (!is_chromecast) {
392 deps += [
michaelbaicbcc7e62015-11-12 04:29:53393 "//android_webview",
agrieveb08e2f5b2015-12-29 01:17:30394 "//android_webview/test",
mikecase49971fc2016-03-21 21:18:05395 "//android_webview/tools/system_webview_shell",
pkotwicze2dae8b2015-11-03 20:12:55396 "//chrome/android:chrome_junit_tests",
pkotwicz061c5a42015-09-30 02:16:54397 "//chrome/android:chrome_public_apk",
398 "//chrome/android:chrome_public_test_apk",
jbudorickdfc01f62016-06-01 15:42:12399 "//chrome/android:chrome_sync_shell_test_apk",
pkotwicz061c5a42015-09-30 02:16:54400 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
agrieve473155b42015-12-28 20:23:11401 "//content/shell/android:content_shell_test_apk",
pkotwicz0a2255e2015-10-06 16:29:05402 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54403 ]
404 }
405
pkotwicz06a4b4b42015-10-29 23:11:11406 if (target_cpu != "x64") {
jbudorickdfc01f62016-06-01 15:42:12407 deps += [
408 "//content/shell/android:chromium_linker_test_apk",
409 "//third_party/android_platform:android_relocation_packer_unittests($host_toolchain)",
410 ]
pkotwicz06a4b4b42015-10-29 23:11:11411 }
412
cjhopmanca675d3e2014-10-24 03:50:45413 if (has_chrome_android_internal) {
brettwf9427f92016-05-05 23:18:55414 deps += [ "//clank" ]
cjhopmanca675d3e2014-10-24 03:50:45415 }
dprankedb5527d72015-03-08 04:22:47416 }
417
brettwf9427f92016-05-05 23:18:55418 if (is_linux || is_android) {
dprankefd1813272015-04-13 23:56:00419 deps += [
pkotwicza4d233b22015-11-02 18:20:38420 "//breakpad:breakpad_unittests",
dprankefd1813272015-04-13 23:56:00421 "//breakpad:core-2-minidump",
pkotwicza4d233b22015-11-02 18:20:38422 "//breakpad:generate_test_dump",
dprankefd1813272015-04-13 23:56:00423 "//breakpad:minidump-2-core",
424 ]
425 }
426
dpranke6293d252015-04-14 19:12:00427 if (is_chromeos) {
428 deps += [
429 "//chromeos:chromeos_unittests",
yoshiki8e2ddbb2016-03-10 07:11:22430 "//ui/arc:ui_arc_unittests",
dpranke6293d252015-04-14 19:12:00431 "//ui/chromeos:ui_chromeos_unittests",
432 ]
433 }
434
dprankefd1813272015-04-13 23:56:00435 if (is_chromeos || is_mac || is_win) {
436 deps += [
437 "//rlz:rlz_id",
438 "//rlz:rlz_lib",
439 "//rlz:rlz_unittests",
440 ]
441 }
442
dprankedb5527d72015-03-08 04:22:47443 if (is_linux) {
444 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06445 deps += [
dpranke2bc89212015-11-18 00:24:43446 "//chrome:manpage",
447 "//chrome:xdg_mime",
dprankedb5527d72015-03-08 04:22:47448 "//net:disk_cache_memory_test",
449 "//net:flip_in_mem_edsm_server",
450 "//net:flip_in_mem_edsm_server_unittests",
451 "//net:quic_client",
452 "//net:quic_server",
453 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18454 "//sandbox/linux:sandbox_linux_unittests",
hiroshigee6d374c2015-02-24 07:54:06455 ]
dnicoara8c6aa8e2015-03-11 23:20:32456
mbjorgea12e5a52016-05-31 22:15:17457 if (use_dbus) {
458 deps += [
459 "//dbus:dbus_test_server",
460 "//dbus:dbus_unittests",
461 ]
462 }
463
dnicoara8c6aa8e2015-03-11 23:20:32464 if (is_chromeos || use_ash) {
465 deps += [ "//components/session_manager/core" ]
466 }
dpranke2bc89212015-11-18 00:24:43467
468 if (is_chrome_branded && is_official_build) {
469 # TODO(dpranke): add the linux_dump_symbols flag?
470 deps += [ "//chrome:linux_symbols" ]
471 }
dprankedb5527d72015-03-08 04:22:47472 }
473
sherouke1859f92015-08-05 10:19:10474 if (is_ios || is_win || (is_linux && !is_chromeos)) {
475 deps += [
476 "//base:base_i18n_perftests",
477 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58478 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10479 ]
480 }
481
thakis507c15c2016-06-01 00:26:01482 # TODO(GYP): Figure out which of these should (and can) build
483 # for chromeos/ios.
484 if (!is_chromeos && !is_ios) {
tfarina9e7cf702015-02-23 21:13:44485 deps += [
dprankedb5527d72015-03-08 04:22:47486 "//base:build_utf8_validator_tables",
dpranke244f973d62015-11-20 05:38:10487 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47488 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00489 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47490 "//components:components_perftests",
dprankedb5527d72015-03-08 04:22:47491 "//device:device_unittests",
492 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47493 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47494 "//google_apis/gcm:mcs_probe",
dprankefd1813272015-04-13 23:56:00495 "//gpu:gl_tests",
dpranke244f973d62015-11-20 05:38:10496 "//gpu:gpu_perftests",
dprankedb5527d72015-03-08 04:22:47497 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47498 "//media:media_perftests",
dprankefd1813272015-04-13 23:56:00499 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47500 "//sync:run_sync_testserver",
ynovikove3d872f32016-06-09 20:35:05501 "//third_party/angle/src/tests:angle_end2end_tests",
ynovikov25dc7aad2016-05-27 23:09:54502 "//third_party/angle/src/tests:angle_unittests",
dprankedb5527d72015-03-08 04:22:47503 "//third_party/codesighs:maptsvdifftool",
dprankefd1813272015-04-13 23:56:00504 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47505 "//ui/compositor:compositor_unittests",
506 ]
507
agrieve473155b42015-12-28 20:23:11508 if (!is_android) {
509 deps += [
510 "//chrome/test:load_library_perf_tests",
511 "//chrome/test:sync_performance_tests",
512 "//chrome/test/chromedriver:chromedriver",
513 "//chrome/test/chromedriver:chromedriver_tests",
514 "//courgette:courgette",
515 "//courgette:courgette_fuzz",
516 "//courgette:courgette_minimal_tool",
517 "//courgette:courgette_unittests",
stevenjb7b6fd642016-05-18 18:15:30518 "//media/cast:generate_barcode_video",
519 "//media/cast:generate_timecode_audio",
agrieve473155b42015-12-28 20:23:11520 "//net:crash_cache",
521 "//net:crl_set_dump",
522 "//net:dns_fuzz_stub",
523 "//net:gdig",
524 "//net:get_server_time",
525 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
526 "//net:run_testserver",
527 "//net:stress_cache",
528 "//net:tld_cleanup",
529 "//ppapi:pepper_hash_for_uma",
530 "//ppapi:ppapi_perftests",
agrieve473155b42015-12-28 20:23:11531 "//third_party/leveldatabase:env_chromium_unittests",
532 "//third_party/libaddressinput:libaddressinput_unittests",
533 ]
534 }
dpranke7e19b472015-11-13 00:49:33535
jamescookfbbf9112016-06-14 16:24:49536 if (enable_extensions) {
537 deps += [ "//extensions/shell:app_shell" ]
538 }
539
dprankedb5527d72015-03-08 04:22:47540 if (enable_nacl) {
brettwf4b4a4282015-12-16 00:41:13541 deps += [ "//components/nacl/loader:nacl_loader_unittests" ]
dpranke2bc89212015-11-18 00:24:43542
543 if (is_linux) {
544 # TODO(dpranke): Figure out what platforms should actually have this.
545 deps += [
brettwf4b4a4282015-12-16 00:41:13546 "//components/nacl/loader:helper_nonsfi",
547 "//components/nacl/loader:nacl_helper",
jbudorick3c0ef43092016-02-03 23:40:16548 "//components/nacl/loader:nacl_helper_nonsfi_unittests",
dpranke2bc89212015-11-18 00:24:43549 ]
550 }
dprankedb5527d72015-03-08 04:22:47551 }
552
xhwangfa2d9d472015-12-18 23:31:18553 if (media_use_ffmpeg && !is_android) {
mostynb2196a462015-08-20 17:22:10554 deps += [ "//media:ffmpeg_regression_tests" ]
555 }
dprankefd1813272015-04-13 23:56:00556 }
557
agrieve473155b42015-12-28 20:23:11558 if (is_android || (is_linux && !is_chromeos)) {
dprankefd1813272015-04-13 23:56:00559 deps += [
agrieve473155b42015-12-28 20:23:11560 "//breakpad:dump_syms($host_toolchain)",
561 "//breakpad:microdump_stackwalk($host_toolchain)",
562 "//breakpad:minidump_dump($host_toolchain)",
563 "//breakpad:minidump_stackwalk($host_toolchain)",
dprankefd1813272015-04-13 23:56:00564 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00565 "//content/public/app:browser",
566 "//content/public/app:child",
rockotc637caf9b2016-02-10 09:57:08567 "//mojo/edk/test:mojo_public_system_perftests",
benf709a3092016-04-12 22:38:22568 "//services/shell/public/cpp",
dprankefd1813272015-04-13 23:56:00569 "//testing/gmock:gmock_main",
dpranke244f973d62015-11-20 05:38:10570 "//third_party/codesighs:nm2tsv",
dprankefd1813272015-04-13 23:56:00571 ]
572
agrieve473155b42015-12-28 20:23:11573 if (!is_android) {
574 deps += [
agrieve473155b42015-12-28 20:23:11575 "//chrome/test:chrome_app_unittests",
brettwf9427f92016-05-05 23:18:55576 "//gpu/khronos_glcts_support:khronos_glcts_test",
agrieve473155b42015-12-28 20:23:11577 "//media/cast:cast_benchmarks",
578 "//media/cast:tap_proxy",
579 "//skia:filter_fuzz_stub",
580 "//skia:image_operations_bench",
agrieve473155b42015-12-28 20:23:11581 "//third_party/sqlite:sqlite_shell",
582 "//ui/keyboard:keyboard_unittests",
583 "//ui/message_center:message_center_unittests",
584 "//ui/snapshot:snapshot_unittests",
agrieve473155b42015-12-28 20:23:11585 ]
dprankefd1813272015-04-13 23:56:00586
agrieve473155b42015-12-28 20:23:11587 if (!is_debug && !is_component_build) {
588 deps += [ "//chrome/tools/service_discovery_sniffer" ]
589 }
yutakbfb4d1672016-06-13 07:42:59590
591 if (is_clang) {
592 deps += [ "//build/sanitizers:copy_llvm_symbolizer" ]
593 }
dprankefd1813272015-04-13 23:56:00594 }
595
taptedd13e0cd2016-05-13 08:26:56596 if (enable_app_list) {
dprankefd1813272015-04-13 23:56:00597 deps += [ "//ui/app_list:app_list_demo" ]
598 }
dprankedb5527d72015-03-08 04:22:47599
600 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44601 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59602 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44603 }
dprankedb5527d72015-03-08 04:22:47604 }
605 }
606
607 if (is_mac) {
608 deps += [
609 "//breakpad:crash_inspector",
610 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44611 "//third_party/apple_sample_code",
612 "//third_party/molokocacao",
613 ]
dpranke43760592014-11-08 02:59:57614 deps -= [
brettw011138d2015-10-21 03:05:38615 # Mojo in GN contains some things which are never compiled in GYP on Mac,
616 # so compilation fails on Mac. They need porting.
brettwe1d40652015-10-23 23:06:10617 "//mojo",
dprankecf8465db72014-11-10 23:51:22618 ]
dprankefd1813272015-04-13 23:56:00619 }
620
621 if (is_win) {
622 deps += [
623 "//base:pe_image_test",
anantaf2e54a92016-05-28 00:39:16624 "//chrome/install_static:install_static_unittests",
grt734e87b2015-07-06 19:36:43625 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00626 "//chrome_elf:chrome_elf_unittests",
627 "//chrome_elf:dll_hash_main",
dprankefd1813272015-04-13 23:56:00628 "//components/wifi:wifi_test",
629 "//net:quic_client",
630 "//net:quic_server",
631 "//sandbox/win:pocdll",
632 "//sandbox/win:sandbox_poc",
633 "//sandbox/win:sbox_integration_tests",
634 "//sandbox/win:sbox_unittests",
635 "//sandbox/win:sbox_validation_tests",
636 "//testing/gtest:gtest_main",
637 "//third_party/codesighs:msmap2tsv",
638 "//third_party/pdfium/samples:pdfium_diff",
dprankefd1813272015-04-13 23:56:00639 ]
dprankee2ef3822015-02-24 21:42:18640 deps -= [
641 "//crypto:crypto_unittests", # TODO(GYP)
642 "//net:net_unittests", # TODO(GYP)
643 ]
fdorayfb048bff2016-04-28 22:07:36644
645 if (!(is_component_build && is_debug && target_cpu == "x86")) {
646 deps +=
647 [ "//chrome/installer/mini_installer:next_version_mini_installer" ]
648 }
sherouk53f0f1a2015-08-03 15:59:35649 } else if (!is_android && !is_ios) {
miu45b848fe2015-11-26 01:23:29650 deps += [ "//breakpad:symupload($host_toolchain)" ]
mohsenf837da7c2014-12-09 19:01:34651 }
rsesek985bd812016-04-26 21:06:15652
slance9d62f2015-11-04 01:15:01653 if (is_chromecast) {
654 deps += [ "//chromecast:cast_shell" ]
655 }
miu45b848fe2015-11-26 01:23:29656
dpranked43eab42015-12-15 23:10:44657 if (is_mac) { # TODO(GYP) || is_ios
miu45b848fe2015-11-26 01:23:29658 deps += [ "//media/cast:cast_h264_vt_encoder_unittests" ]
659 }
hbos17a7b4a22015-12-07 10:49:45660
rsesek985bd812016-04-26 21:06:15661 if (is_mac || is_win) {
662 deps += [
663 "//third_party/crashpad/crashpad/handler:crashpad_handler",
664 "//third_party/crashpad/crashpad/tools:crashpad_database_util",
665 ]
666 }
667
hbos17a7b4a22015-12-07 10:49:45668 if (use_openh264) {
669 deps += [
670 "//third_party/openh264:common",
671 "//third_party/openh264:encoder",
672 "//third_party/openh264:processing",
673 ]
674 }
[email protected]f0e7ff882013-12-26 21:23:09675}
brettw533c50422015-02-26 17:49:16676
dpranked62d8512015-03-02 03:06:03677group("gn_only") {
dprankedb5527d72015-03-08 04:22:47678 testonly = true
679
dpranke2a294622015-08-07 05:23:01680 deps = []
681
amistry4dcd7c42015-12-16 04:53:10682 if (!is_ios) {
xhwangf69024d12016-06-16 17:52:29683 deps += [
684 "//media/mojo:media_mojo_unittests",
685 "//mojo/common:mojo_common_perftests",
686 ]
amistry4dcd7c42015-12-16 04:53:10687 }
688
scheib35dc9202016-04-26 22:35:43689 if (!is_android && !is_ios) {
690 deps += [ "//content/browser/bluetooth/tools:bluetooth_metrics_hash" ]
691 }
692
dpranke244f973d62015-11-20 05:38:10693 if (!is_android && !is_ios && !is_chromeos) {
isherman0f89b43eb2015-04-11 00:02:45694 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
695 }
696
ben8f4e95ad2015-12-01 18:35:58697 if (is_win || is_linux) {
sky70471b22016-01-14 16:20:54698 deps += [
kylecharbd601e5a2016-03-31 13:11:35699 "//components/mus/demo",
rockot6a2b0422016-03-09 17:14:59700 "//components/mus/ws:tests",
sky70471b22016-01-14 16:20:54701 "//mash:all",
bena5d1cd42016-04-29 22:59:53702 "//media/mojo/services:media_mojo_shell_unittests",
skyfcde3a42016-02-09 20:27:44703 "//mojo",
benee648f62016-05-12 23:04:50704 "//services/navigation",
qyearsley88bc4802016-05-17 18:02:34705 "//ui/views/mus:views_mus_interactive_ui_tests",
bena5d1cd42016-04-29 22:59:53706 "//ui/views/mus:views_mus_unittests",
sky70471b22016-01-14 16:20:54707 ]
sky97b65592015-11-02 20:08:25708 }
709
stevenjb7b6fd642016-05-18 18:15:30710 if (is_linux && !is_chromeos && !is_chromecast) {
dprankedb5527d72015-03-08 04:22:47711 # TODO(GYP): Figure out if any of these should be in gn_all
712 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45713 deps += [
dprankedb5527d72015-03-08 04:22:47714 ":gn_mojo_targets",
715 "//chrome/browser/resources:extension_resource_demo",
716 "//chrome/installer/util:strings",
dprankedb5527d72015-03-08 04:22:47717 "//chrome/tools/convert_dict",
718 "//components/constrained_window:unit_tests",
erg4652931e2016-04-27 22:15:40719 "//components/filesystem:filesystem_service_unittests",
ergf1f689f2016-03-22 00:51:20720 "//components/leveldb:leveldb_service_unittests",
dprankedb5527d72015-03-08 04:22:47721 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45722 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47723 "//components/rappor:unit_tests",
724 "//components/sessions:unit_tests",
725 "//media/blink:media_blink_unittests",
stevenjb7b6fd642016-05-18 18:15:30726 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47727 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
728 "//storage/browser:dump_file_system",
729 "//third_party/angle:libANGLE",
730 "//third_party/angle:libEGL",
731 "//third_party/angle:libGLESv2",
dprankedb5527d72015-03-08 04:22:47732 "//third_party/leveldatabase:leveldb_arena_test",
733 "//third_party/leveldatabase:leveldb_bloom_test",
dprankedb5527d72015-03-08 04:22:47734 "//third_party/leveldatabase:leveldb_cache_test",
dprankedb5527d72015-03-08 04:22:47735 "//third_party/leveldatabase:leveldb_corruption_test",
dpranke244f973d62015-11-20 05:38:10736 "//third_party/leveldatabase:leveldb_crc32c_test",
737 "//third_party/leveldatabase:leveldb_db_bench",
738 "//third_party/leveldatabase:leveldb_db_test",
dprankedb5527d72015-03-08 04:22:47739 "//third_party/leveldatabase:leveldb_dbformat_test",
dpranke244f973d62015-11-20 05:38:10740 "//third_party/leveldatabase:leveldb_env_test",
741 "//third_party/leveldatabase:leveldb_filename_test",
742 "//third_party/leveldatabase:leveldb_filter_block_test",
743 "//third_party/leveldatabase:leveldb_log_test",
744 "//third_party/leveldatabase:leveldb_skiplist_test",
745 "//third_party/leveldatabase:leveldb_table_test",
746 "//third_party/leveldatabase:leveldb_version_edit_test",
747 "//third_party/leveldatabase:leveldb_write_batch_test",
dprankedb5527d72015-03-08 04:22:47748 "//third_party/libjpeg_turbo:simd",
dpranke244f973d62015-11-20 05:38:10749 "//third_party/libsrtp:rdbx_driver",
dprankedb5527d72015-03-08 04:22:47750 "//third_party/libsrtp:replay_driver",
751 "//third_party/libsrtp:roc_driver",
752 "//third_party/libsrtp:rtpw",
dprankedb5527d72015-03-08 04:22:47753 "//third_party/libsrtp:srtp_driver",
754 "//third_party/libsrtp:srtp_driver",
dpranke244f973d62015-11-20 05:38:10755 "//third_party/libsrtp:srtp_test_aes_calc",
dprankedb5527d72015-03-08 04:22:47756 "//third_party/libsrtp:srtp_test_cipher_driver",
757 "//third_party/libsrtp:srtp_test_datatypes_driver",
dprankedb5527d72015-03-08 04:22:47758 "//third_party/libsrtp:srtp_test_env",
dpranke244f973d62015-11-20 05:38:10759 "//third_party/libsrtp:srtp_test_kernel_driver",
dprankedb5527d72015-03-08 04:22:47760 "//third_party/libsrtp:srtp_test_rand_gen",
761 "//third_party/libsrtp:srtp_test_sha1_driver",
762 "//third_party/libsrtp:srtp_test_stat_driver",
763 "//third_party/opus:opus_compare",
764 "//third_party/opus:opus_demo",
dpranke244f973d62015-11-20 05:38:10765 "//third_party/opus:test_opus_api",
dprankedb5527d72015-03-08 04:22:47766 "//third_party/opus:test_opus_decode",
767 "//third_party/opus:test_opus_encode",
dprankedb5527d72015-03-08 04:22:47768 "//third_party/opus:test_opus_padding",
dpranke244f973d62015-11-20 05:38:10769 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47770 "//third_party/webrtc/system_wrappers:field_trial_default",
771 "//third_party/webrtc/system_wrappers:metrics_default",
772 "//ui/display/types",
773 "//ui/shell_dialogs:shell_dialogs_unittests",
dprankedb5527d72015-03-08 04:22:47774 ]
dprankeb0713542015-07-31 21:07:21775
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16776 if (target_cpu == "x86" || target_cpu == "x64") {
agrieve473155b42015-12-28 20:23:11777 if (!is_android) {
778 deps += [ "//chrome/test:load_library_perf_tests" ]
779 }
mcgrathr916aafa2015-09-15 00:06:53780 deps += [
mcgrathr916aafa2015-09-15 00:06:53781 "//native_client/src/trusted/platform_qualify:vcpuid",
dpranke244f973d62015-11-20 05:38:10782 "//third_party/libjpeg_turbo:simd_asm",
mcgrathr916aafa2015-09-15 00:06:53783 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16784 }
dpranke807f602b2015-03-17 23:20:56785 if (is_linux && current_toolchain == host_toolchain) {
jochen11513aa02016-05-11 09:59:51786 deps += [ "//v8:v8_shell" ]
dpranke807f602b2015-03-17 23:20:56787 }
dprankedb5527d72015-03-08 04:22:47788 }
dprankeb0713542015-07-31 21:07:21789
spang324dc57a2016-04-06 14:54:08790 if (use_ozone) {
791 deps += [ "//ui/ozone/demo" ]
792 }
793
aizatskyaf496112016-04-15 19:26:32794 if ((is_linux && !is_chromeos && !is_chromecast) || (is_win && use_drfuzz) ||
795 (use_libfuzzer && is_mac)) {
796 deps += [
797 "//testing/libfuzzer/fuzzers",
798 "//testing/libfuzzer/tests:libfuzzer_tests",
aizatsky3f560172016-06-03 23:26:06799 "//third_party/icu/fuzzers",
aizatskyaf496112016-04-15 19:26:32800 ]
801 }
802
sbc92b4d572016-02-18 03:28:23803 if (enable_nacl) {
804 deps += [ "//native_client_sdk/src:nacl_core_sdk" ]
805 }
806
agrieve473155b42015-12-28 20:23:11807 if (is_android) {
808 deps += [
809 "//build/android/gyp/test:hello_world",
810 "//build/android/incremental_install:bootstrap_java",
811 ]
nyquistb5f050b2015-09-10 05:10:35812 }
813
skyostilfe116162016-02-26 20:53:33814 if (is_linux && use_ozone) {
815 deps += [
816 "//headless",
817 "//headless:headless_tests",
818 ]
819 }
820
agrieve473155b42015-12-28 20:23:11821 if (!is_chromecast && (is_android || is_linux || is_chromeos)) {
822 deps += [
823 "//blimp",
824 "//blimp:blimp_tests",
825 ]
dprankeb0713542015-07-31 21:07:21826 }
dprankedb5527d72015-03-08 04:22:47827}
828
829group("gn_mojo_targets") {
830 testonly = true
831 if (is_linux && !is_chromeos) {
832 # TODO(GYP): Figure out if any of these should be in gn_all
833 # and figure out how cross-platform they are
834 deps = [
amistryd4aa70d2016-06-23 07:52:37835 "//ipc:ipc_tests",
msw1bb9c6c2015-05-06 21:35:44836 "//mojo:tests",
dprankedb5527d72015-03-08 04:22:47837 ]
dprankedb5527d72015-03-08 04:22:47838 }
839}
840
841group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03842 deps = [
dprankeb6128d02015-05-01 16:40:30843 "//build/config/sanitizers:options_sources",
dprankedb5527d72015-03-08 04:22:47844 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
845 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dpranked62d8512015-03-02 03:06:03846 ]
dpranked2fb5222015-09-10 22:39:05847
848 if (!is_ios) {
849 deps += [
dpranked2fb5222015-09-10 22:39:05850 "//v8:postmortem-metadata",
dpranke244f973d62015-11-20 05:38:10851 "//v8:v8_snapshot",
dpranked2fb5222015-09-10 22:39:05852 ]
853 }
dpranked62d8512015-03-02 03:06:03854}
855
tfarinacb2638b2015-05-12 03:24:15856if (!is_ios) {
857 # This group includes all of the targets needed to build and test Blink,
858 # including running the layout tests (see below).
859 group("blink_tests") {
860 testonly = true
861
862 deps = [
agrieve993374cf2016-04-13 00:05:39863 "//content/shell:content_shell",
tfarinacb2638b2015-05-12 03:24:15864 "//third_party/WebKit/public:all_blink",
agrieve993374cf2016-04-13 00:05:39865 "//tools/imagediff",
tfarinacb2638b2015-05-12 03:24:15866 ]
867
868 # NOTE: The following deps are needed to run the layout tests
869 # (run-webkit-tests) but there is no GN target for the layout tests,
870 # so we need to specify the dependencies here instead.
871 if (is_android) {
872 deps += [
agrieve62ab00282016-04-05 02:03:45873 "//breakpad:breakpad_unittests",
agrieve993374cf2016-04-13 00:05:39874 "//breakpad:dump_syms",
875 "//breakpad:microdump_stackwalk",
876 "//breakpad:minidump_dump",
877 "//breakpad:minidump_stackwalk",
878 "//breakpad:symupload",
879 "//tools/android/forwarder",
ojan94989c72015-07-17 21:56:42880 ]
tfarinacb2638b2015-05-12 03:24:15881 }
882
883 if (is_win) {
884 deps += [
jochen73e711c2015-06-03 10:01:46885 "//components/test_runner:layout_test_helper",
brettw0d3b1df2015-12-03 00:10:01886 "//content/shell:content_shell_crash_service",
tfarinacb2638b2015-05-12 03:24:15887 ]
888 }
889
890 if (!is_win && !is_android) {
Gordana.Cmiljanovicf243e9a2015-05-26 22:14:47891 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15892 }
893
894 if (is_mac) {
895 deps += [
896 "//breakpad:dump_syms($host_toolchain)",
jochen73e711c2015-06-03 10:01:46897 "//components/test_runner:layout_test_helper",
tfarinacb2638b2015-05-12 03:24:15898 ]
899 }
900
901 if (is_linux) {
902 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
903 }
904 }
905}
906
dpranke6abd8652015-08-28 03:21:11907# Add a dummy target for compatibility w/ GYP
908group("chromium_swarm_tests") {
909}
910
dpranke2302dfa2015-09-29 02:21:52911group("chromium_builder_perf") {
912 testonly = true
913
thakisca8a42882016-06-10 17:59:30914 if (!is_ios && !is_android && !is_chromecast) {
dpranke2302dfa2015-09-29 02:21:52915 deps = [
916 "//cc:cc_perftests",
dpranke2302dfa2015-09-29 02:21:52917 "//chrome/test:load_library_perf_tests",
dpranke2302dfa2015-09-29 02:21:52918 "//gpu:gpu_perftests",
919 "//media:media_perftests",
kbr1e58e782016-05-27 17:21:19920 "//tools/perf/chrome_telemetry_build:telemetry_chrome_test",
dpranke2302dfa2015-09-29 02:21:52921 ]
922
923 if (!is_chromeos) {
924 deps += [ "//chrome/test:performance_browser_tests" ]
925 }
926 if (is_linux && !is_chromeos) {
dpranke9aed5d582015-11-22 23:22:04927 if (is_official_build) {
928 # In GN builds, this is controlled by the 'linux_dump_symbols'
929 # flag, which defaults to 1 for official builds. For now,
930 # we skip the separate flag and just key off of is_official_build.
931 deps += [ "//chrome:linux_symbols" ]
932 }
dpranke2302dfa2015-09-29 02:21:52933
934 if (!is_chromeos) {
935 deps += [ "//tools/perf/clear_system_cache" ]
936 }
937 }
938
939 if (is_win) {
940 deps += [
hansa3d3aa4d2016-05-04 22:12:52941 "//chrome/installer/mini_installer:mini_installer",
jmadilla42eba2a2016-06-07 18:58:29942 "//third_party/angle/src/tests:angle_perftests",
dpranke2302dfa2015-09-29 02:21:52943 ]
dpranke2302dfa2015-09-29 02:21:52944 } else {
dprankeec10b3932015-10-02 17:58:23945 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52946 }
947 }
948}
agrieve017b91f2016-02-29 20:15:06949
thakis3f7d4fc2016-06-10 18:47:50950if (!is_ios && !is_android && !is_chromecast) {
951 group("chromium_builder_asan") {
952 testonly = true
953
954 deps = [
955 "//chrome:chrome",
956 "//content/shell:content_shell",
957 "//v8:d8",
958 ]
959 if (!is_win) {
960 deps += [
961 "//net:dns_fuzz_stub",
962 "//net:hpack_fuzz_wrapper",
963 "//skia:filter_fuzz_stub",
964 ]
965 }
966 if (enable_ipc_fuzzer && !is_component_build) {
967 deps += [ "//tools/ipc_fuzzer:ipc_fuzzer_all" ]
968 }
969 if (!is_chromeos) {
970 deps += [
971 "//third_party/pdfium/samples:pdfium_test",
972 "//v8:v8_shell($host_toolchain)",
973 ]
974 }
975 if (is_clang) {
976 deps += [ "//build/sanitizers:copy_llvm_symbolizer" ]
977 }
978 if (is_win && symbol_level == 2 && target_cpu == "x86" && is_syzyasan) {
979 deps += [
980 "//chrome/tools/build/win/syzygy:chrome_dll_syzygy",
981 # TODO(GYP): Add this once it exists, https://crbug.com/619086
982 # "//content/shell:content_shell_syzyasan
983 ]
984 if (is_multi_dll_chrome) {
985 deps += [ "//chrome/tools/build/win/syzygy:chrome_child_dll_syzygy" ]
986 }
987 }
988 }
989}
990
brettw6df3e8c42016-04-14 21:07:13991# For compatibility with GYP. The linux_chromium_chromeos_rel_ng and
992# linux_chromium_chromeos_compile_rel_ng bots reference this target as
993# something to build, but all targets for those bots to compile are set
994# up differently.
995# TODO bug 601920: Remove reference to aura_builder on bot config and delete
996# this group.
997group("aura_builder") {
998}
999
agrieve95ba4442016-04-25 15:47:131000if (is_android) {
1001 group("optimize_gn_gen") {
1002 deps = [
1003 # These run expensive scripts in non-default toolchains. Generally, host
1004 # toolchain targets are loaded in the later part of the run, and the
1005 # result is they push out the end of generation. By preloading these, the
1006 # scripts can be parallelized with the rest of the load.
1007 "//build/config/linux(//build/toolchain/linux:clang_x64)",
1008 "//build/config/posix(//build/toolchain/linux:clang_x64)",
1009
1010 # Include x86 toolchains as well since V8 uses them for 32-bit snapshot
1011 # generation.
1012 "//build/config/linux(//build/toolchain/linux:clang_x86)",
1013 "//build/config/posix(//build/toolchain/linux:clang_x86)",
1014 ]
1015 }
1016}
1017
agrieve017b91f2016-02-29 20:15:061018# Because of the source assignment filter, many targets end up over-filtering
1019# their sources if the output directory contains a platform name. Assert that
1020# this doesn't happen. http://crbug.com/548283
1021template("assert_valid_out_dir") {
1022 # List copied from //build/config/BUILDCONFIG.gn.
1023 set_sources_assignment_filter([
1024 "*\bandroid/*",
1025 "*\bchromeos/*",
1026 "*\bcocoa/*",
1027 "*\bios/*",
1028 "*\blinux/*",
1029 "*\bmac/*",
1030 "*\bposix/*",
1031 "*\bwin/*",
1032 ])
1033 assert(target_name != "") # Mark as used.
1034 sources = invoker.actual_sources
1035 assert(
1036 sources == invoker.actual_sources,
1037 "Do not use a platform name in your output directory (found \"$root_build_dir\"). http://crbug.com/548283")
1038}
1039
1040assert_valid_out_dir("_unused") {
1041 actual_sources = [ "$root_build_dir/foo" ]
1042}