[go: nahoru, domu]

blob: 71a68a78fb6925cd8e6cd05237b134797573d46b [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
dprankefd1813272015-04-13 23:56:0011import("//build/config/crypto.gni")
rockot2f1326e2015-02-23 23:53:5112import("//build/config/features.gni")
tfarina@chromium.org378b4f02014-06-10 15:58:4513import("//build/config/ui.gni")
dprankefd1813272015-04-13 23:56:0014import("//build/module_args/v8.gni")
mostynb2196a462015-08-20 17:22:1015import("//media/media_options.gni")
dprankee2ef3822015-02-24 21:42:1816
cjhopmanca675d3e2014-10-24 03:50:4517if (is_android) {
18 import("//build/config/android/config.gni")
19}
tfarina@chromium.org378b4f02014-06-10 15:58:4520
brettwb84b2942014-10-22 22:58:4521declare_args() {
22 # A list of extra dependencies to add to the root target. This allows a
23 # checkout to add additional targets without explicitly changing any checked-
24 # in files.
25 root_extra_deps = []
26}
27
dprankeb6128d02015-05-01 16:40:3028# This file defines the following four main targets:
dpranked62d8512015-03-02 03:06:0329#
dprankeddc174902015-04-29 01:38:3530# "both_gn_and_gyp" should list every root target (target that nothing else
31# depends on) built by GN that is also built in the GYP build.
dpranked62d8512015-03-02 03:06:0332#
dprankeddc174902015-04-29 01:38:3533# "gn_all" should (transitively) cause everything to be built; if you run
34# 'ninja gn_all' and then 'ninja all', the second build should do no work.
35#
36# "gn_only" should list every root target that is *not* intended to be built
37# in a GYP build. Because GN has different rules for deciding what an 'all'
38# build is, this may end up including targets that are actually defined in a
39# GYP build but not dependencies of GYP's "all" (and so not actually built).
40#
dprankeb6128d02015-05-01 16:40:3041# "gn_visibility": targets that are normally not visible to top-level targets,
42# but are built anyway by "all". Since we don't want any such targets, we
43# have this placeholder to make sure hidden targets that aren't otherwise
44# depended on yet are accounted for.
45#
dprankeddc174902015-04-29 01:38:3546# TODO(GYP): crbug.com/481694. Make sure that the above is true and there are
47# scripts run on the bots that enforce this. Once the GYP migration is over,
48# we can collapse all of these targets as desired.
dprankeff30e3d2015-02-24 06:52:3949
dprankee2ef3822015-02-24 21:42:1850group("gn_all") {
dprankeddc174902015-04-29 01:38:3551 testonly = true
52
53 deps = [
54 ":both_gn_and_gyp",
55 ":gn_only",
dprankeb6128d02015-05-01 16:40:3056 ":gn_visibility",
dprankeddc174902015-04-29 01:38:3557 ]
58}
59
60# The "both_gn_and_gyp" target should reflect every target that is built
61# in both the GN and GYP builds, and ideally it should match the
62# "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line.
63#
64# TODO(GYP): Add build steps that check and enforce this on the bots.
65group("both_gn_and_gyp") {
dprankee2ef3822015-02-24 21:42:1866 testonly = true
dprankee2ef3822015-02-24 21:42:1867 deps = [
68 "//base:base_unittests",
brettwa874dcc2015-08-28 23:59:1869 "//chrome/installer",
sheroukdc35ba272015-09-22 14:09:3770 "//components:components_unittests",
sheroukce1c7d72015-08-24 15:21:5971 "//net:net_unittests",
sherouk2866d662015-08-24 16:29:4472 "//skia:skia_unittests",
brettwa874dcc2015-08-28 23:59:1873 "//sql:sql_unittests",
sherouk3eee4a82015-09-01 10:42:3374 "//sync:sync_unit_tests",
sherouk4fb74d42015-08-24 15:58:4175 "//ui/base:ui_base_unittests",
sherouk84a45ff2015-09-01 13:31:3976 "//ui/gfx:gfx_unittests",
sherouk4fb74d42015-08-24 15:58:4177 "//url:url_unittests",
dprankee2ef3822015-02-24 21:42:1878 ]
dpranke2a294622015-08-07 05:23:0179
sherouk53f0f1a2015-08-03 15:59:3580 if (!is_ios) {
dpranke2a294622015-08-07 05:23:0181 # TODO(GYP): Figure out which of these should actually build on iOS,
82 # and whether there should be other targets that are iOS-only and missing.
sherouk53f0f1a2015-08-03 15:59:3583 deps += [
84 "//cc:cc_unittests",
85 "//chrome",
86 "//chrome/test:browser_tests",
87 "//chrome/test:interactive_ui_tests",
88 "//chrome/test:sync_integration_tests",
89 "//chrome/test:unit_tests",
90 "//chrome/test/chromedriver:chromedriver_unittests",
91 "//components:components_browsertests",
sherouk53f0f1a2015-08-03 15:59:3592 "//content/shell:content_shell",
93 "//content/test:content_browsertests",
94 "//content/test:content_perftests",
95 "//content/test:content_unittests",
96 "//crypto:crypto_unittests",
97 "//device:device_unittests",
98 "//extensions:extensions_browsertests",
99 "//extensions:extensions_unittests",
100 "//google_apis/gcm:gcm_unit_tests",
101 "//gpu:gpu_unittests",
dprankedbdd9d82015-08-12 21:18:18102 "//gpu/gles2_conform_support:gles2_conform_test",
sherouk53f0f1a2015-08-03 15:59:35103 "//ipc:ipc_tests",
104 "//ipc/mojo:ipc_mojo_unittests",
105 "//jingle:jingle_unittests",
106 "//media:media_unittests",
107 "//media/cast:cast_unittests",
108 "//media/midi:midi_unittests",
109 "//mojo",
110 "//mojo/application/public/cpp",
111 "//mojo/common:mojo_common_unittests",
112 "//net:hpack_example_generator",
113 "//net:hpack_fuzz_mutator",
114 "//net:hpack_fuzz_wrapper",
115 "//net:net_perftests",
sherouk53f0f1a2015-08-03 15:59:35116 "//ppapi:ppapi_unittests",
117 "//ppapi/examples/2d",
118 "//ppapi/examples/audio",
119 "//ppapi/examples/audio_input",
120 "//ppapi/examples/compositor",
121 "//ppapi/examples/crxfs",
122 "//ppapi/examples/enumerate_devices",
123 "//ppapi/examples/file_chooser",
124 "//ppapi/examples/flash_topmost",
125 "//ppapi/examples/font",
126 "//ppapi/examples/gamepad",
127 "//ppapi/examples/gles2",
128 "//ppapi/examples/gles2_spinning_cube",
129 "//ppapi/examples/ime",
130 "//ppapi/examples/input",
131 "//ppapi/examples/media_stream_audio",
132 "//ppapi/examples/media_stream_video",
133 "//ppapi/examples/mouse_cursor",
134 "//ppapi/examples/mouse_lock",
135 "//ppapi/examples/printing",
136 "//ppapi/examples/scaling",
137 "//ppapi/examples/scripting",
138 "//ppapi/examples/stub",
139 "//ppapi/examples/threading",
140 "//ppapi/examples/url_loader",
141 "//ppapi/examples/video_capture",
142 "//ppapi/examples/video_decode",
143 "//ppapi/examples/video_effects",
144 "//ppapi/examples/video_encode",
145 "//printing:printing_unittests",
sherouk53f0f1a2015-08-03 15:59:35146 "//third_party/WebKit/Source/platform:heap_unittests",
147 "//third_party/WebKit/Source/platform:platform_unittests",
148 "//third_party/WebKit/Source/web:webkit_unit_tests",
149 "//third_party/WebKit/Source/wtf:wtf_unittests",
150 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
151 "//third_party/codesighs",
jam76bcf0c2015-10-02 21:01:28152
153 # TODO(use-new-edk):
154 #"//mojo/edk/system:mojo_system_unittests",
155 #"//mojo/edk/test:mojo_public_bindings_unittests",
156 #"//mojo/edk/test:mojo_public_environment_unittests",
157 #"//mojo/edk/test:mojo_public_system_unittests",
158 #"//mojo/edk/test:mojo_public_utility_unittests",
sherouk53f0f1a2015-08-03 15:59:35159 "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",
160 "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",
161 "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",
162 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",
163 "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
164 "//third_party/pdfium/samples:pdfium_test",
165 "//third_party/smhasher:pmurhash",
166 "//tools/imagediff($host_toolchain)",
167 "//tools/gn",
168 "//tools/gn:gn_unittests",
169 "//tools/gn:generate_test_gn_data",
mswf90a6802015-09-30 18:16:36170 "//tools/perf/clear_system_cache",
sherouk53f0f1a2015-08-03 15:59:35171 "//tools/telemetry:bitmaptools($host_toolchain)",
172 "//ui/accessibility:accessibility_unittests",
173 "//ui/app_list:app_list_unittests",
sherouk53f0f1a2015-08-03 15:59:35174 "//ui/display:display_unittests",
175 "//ui/events:events_unittests",
sherouk53f0f1a2015-08-03 15:59:35176 "//ui/gl:gl_unittests",
177 "//ui/touch_selection:ui_touch_selection_unittests",
sherouk53f0f1a2015-08-03 15:59:35178 ]
sdefresne998e8582015-10-07 13:36:45179 } else {
180 deps += [ "//ios/net:ios_net_unittests" ]
sherouk53f0f1a2015-08-03 15:59:35181 }
dprankee2ef3822015-02-24 21:42:18182
scottmg34fb7e52014-12-03 23:27:24183 deps += root_extra_deps
brettw@chromium.orgfce5c3fe2014-04-10 21:13:05184
dpranke021d4c92015-02-24 02:08:25185 if (enable_extensions && !is_mac) {
dprankefd1813272015-04-13 23:56:00186 # TODO(GYP): Get this working on the mac?
rockot2f1326e2015-02-23 23:53:51187 deps += [ "//extensions/shell:app_shell_unittests" ]
dprankefd1813272015-04-13 23:56:00188 }
189
dprankefd1813272015-04-13 23:56:00190 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55191 deps += [ "//chrome/browser/media/router" ]
rockot2f1326e2015-02-23 23:53:51192 }
193
garykac3eddb5b2015-04-17 23:16:38194 if (enable_remoting) {
195 deps += [ "//remoting:remoting_all" ]
James Robinson060f2e32014-09-10 22:31:37196 }
197
dprankee2ef3822015-02-24 21:42:18198 if (toolkit_views) {
199 deps += [ "//ui/views:views_unittests" ]
brettw@chromium.org6b9028ab2014-07-23 17:15:38200 }
201
dprankee2ef3822015-02-24 21:42:18202 if (use_aura) {
203 deps += [ "//ui/wm:wm_unittests" ]
204 }
205
206 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47207 deps += [ "//ui/ozone" ]
tfarina@chromium.orga306aaa2014-05-24 13:21:50208 }
209
dprankefd1813272015-04-13 23:56:00210 if (use_x11) {
211 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22212 }
213
tmoniuszkoe5578b922015-04-14 09:38:03214 if (enable_configuration_policy) {
215 deps += [ "//components/policy:policy_templates" ]
216 }
217
dprankefd1813272015-04-13 23:56:00218 if (v8_use_external_startup_data) {
219 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
brettw@chromium.org137dff6d2014-06-12 19:35:55220 }
221
brettw66e3feab2015-07-20 23:52:22222 if (is_win) {
223 deps += [ "//chrome/tools/build/win/syzygy:chrome_dll_syzygy" ]
224 }
225
dpranke@chromium.org5a8d5162014-04-12 01:19:16226 if (is_android) {
cjhopman@chromium.org26046b52014-07-16 00:11:03227 deps += [
cjhopman31511332014-10-23 01:05:02228 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38229 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02230 "//build/android/rezip",
agrieve40ba6862015-07-15 02:09:05231 "//third_party/errorprone:chromium_errorprone",
pkotwicze38594d2015-09-25 00:05:10232 "//tools/android:android_tools",
pkotwicz8b9d18c2015-10-05 01:59:33233 "//tools/android/heap_profiler:heap_profiler_unittests",
dprankee2ef3822015-02-24 21:42:18234 "//tools/imagediff($host_toolchain)",
235
236 # TODO(GYP): Remove these when the components_unittests work.
237 "//components/history/core/test:test",
238 "//components/policy:policy_component_test_support",
239 "//components/policy:test_support",
240 "//components/rappor:test_support",
241 "//components/signin/core/browser:test_support",
242 "//components/sync_driver:test_support",
243 "//components/user_manager",
244 "//components/wallpaper",
245 "//content/shell/android:content_shell_apk",
246
247 # TODO(GYP): Are these needed, or will they be pulled in automatically?
cjhopman@chromium.org684b2292014-08-22 19:12:39248 "//third_party/android_tools:android_gcm_java",
249 "//third_party/android_tools:uiautomator_java",
250 "//third_party/android_tools:android_support_v13_java",
251 "//third_party/android_tools:android_support_v7_appcompat_java",
252 "//third_party/android_tools:android_support_v7_mediarouter_java",
dprankee2ef3822015-02-24 21:42:18253 "//third_party/mesa",
mikecase85e83ed2014-12-08 19:18:29254 "//third_party/mockito:mockito_java",
dprankee2ef3822015-02-24 21:42:18255 "//third_party/openmax_dl/dl",
dprankee2ef3822015-02-24 21:42:18256 "//ui/android:ui_java",
257
258 # TODO(GYP): Are these needed?
259 "//chrome/test:test_support_unit",
260 "//third_party/smhasher:murmurhash3",
261 "//ui/message_center:test_support",
262 ]
263 deps -= [
dprankee2ef3822015-02-24 21:42:18264 "//chrome", # TODO(GYP) ??
265 "//chrome/test:browser_tests", # TODO(GYP) ??
266 "//chrome/test:interactive_ui_tests", # TODO(GYP) ??
267 "//chrome/test:sync_integration_tests", # TODO(GYP) ??
268 "//chrome/test:unit_tests", # TODO(GYP)
brettw922d3aa2015-02-27 22:15:46269
270 # Chromedriver shouldn't be compiled on Android.
271 "//chrome/test/chromedriver:chromedriver_unittests",
dprankee2ef3822015-02-24 21:42:18272 "//extensions:extensions_browsertests",
273 "//extensions:extensions_unittests",
274 "//google_apis/gcm:gcm_unit_tests",
275 "//ipc:ipc_tests", # TODO(GYP) ??
276 "//jingle:jingle_unittests", # TODO(GYP) ??
rockot9c67e5f2015-03-12 20:01:21277 "//net:hpack_example_generator",
278 "//net:hpack_fuzz_mutator",
279 "//net:hpack_fuzz_wrapper",
280 "//net:net_perftests",
tfarina79ef072d2015-04-04 20:16:57281 "//ppapi/examples/2d",
282 "//ppapi/examples/audio",
283 "//ppapi/examples/audio_input",
284 "//ppapi/examples/compositor",
285 "//ppapi/examples/crxfs",
286 "//ppapi/examples/enumerate_devices",
287 "//ppapi/examples/file_chooser",
288 "//ppapi/examples/flash_topmost",
289 "//ppapi/examples/font",
290 "//ppapi/examples/gamepad",
291 "//ppapi/examples/gles2",
292 "//ppapi/examples/gles2_spinning_cube",
293 "//ppapi/examples/ime",
294 "//ppapi/examples/input",
295 "//ppapi/examples/media_stream_audio",
296 "//ppapi/examples/media_stream_video",
297 "//ppapi/examples/mouse_cursor",
298 "//ppapi/examples/mouse_lock",
299 "//ppapi/examples/printing",
300 "//ppapi/examples/scaling",
301 "//ppapi/examples/scripting",
302 "//ppapi/examples/stub",
303 "//ppapi/examples/threading",
304 "//ppapi/examples/url_loader",
305 "//ppapi/examples/video_capture",
306 "//ppapi/examples/video_decode",
307 "//ppapi/examples/video_effects",
308 "//ppapi/examples/video_encode",
dprankee2ef3822015-02-24 21:42:18309 "//third_party/pdfium/samples:pdfium_test",
310 "//tools/gn",
dprankefd1813272015-04-13 23:56:00311 "//tools/gn:generate_test_gn_data",
dprankee2ef3822015-02-24 21:42:18312 "//tools/gn:gn_unittests",
313 "//ui/app_list:app_list_unittests",
314 "//url:url_unittests",
cjhopman@chromium.org26046b52014-07-16 00:11:03315 ]
316
pkotwicz061c5a42015-09-30 02:16:54317 if (!is_chromecast) {
318 deps += [
319 "//chrome/android:chrome_public_apk",
320 "//chrome/android:chrome_public_test_apk",
321 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
pkotwicz0a2255e2015-10-06 16:29:05322 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54323 ]
324 }
325
cjhopmanca675d3e2014-10-24 03:50:45326 if (has_chrome_android_internal) {
dprankee2ef3822015-02-24 21:42:18327 deps += [ "//clank" ] # TODO(GYP) ??
cjhopmanca675d3e2014-10-24 03:50:45328 }
dprankefd1813272015-04-13 23:56:00329 }
330
331 if (is_linux) { # TODO(GYP): || is_android || is_bsd?
332 deps += [
333 "//breakpad:core-2-minidump",
334 "//breakpad:minidump-2-core",
335 ]
336 }
337
dpranke6293d252015-04-14 19:12:00338 if (is_chromeos) {
339 deps += [
340 "//chromeos:chromeos_unittests",
341 "//ui/chromeos:ui_chromeos_unittests",
342 ]
343 }
344
dprankefd1813272015-04-13 23:56:00345 if (is_chromeos || is_mac || is_win) {
346 deps += [
347 "//rlz:rlz_id",
348 "//rlz:rlz_lib",
349 "//rlz:rlz_unittests",
350 ]
dprankedb5527d72015-03-08 04:22:47351 }
352
353 if (is_linux) {
354 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06355 deps += [
dprankedb5527d72015-03-08 04:22:47356 "//breakpad:breakpad_unittests",
dprankedb5527d72015-03-08 04:22:47357 "//breakpad:generate_test_dump",
dprankedb5527d72015-03-08 04:22:47358 "//dbus:dbus_test_server",
dprankee2ef3822015-02-24 21:42:18359 "//dbus:dbus_unittests",
dprankedb5527d72015-03-08 04:22:47360 "//net:disk_cache_memory_test",
361 "//net:flip_in_mem_edsm_server",
362 "//net:flip_in_mem_edsm_server_unittests",
363 "//net:quic_client",
364 "//net:quic_server",
365 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18366 "//sandbox/linux:sandbox_linux_unittests",
dprankedb5527d72015-03-08 04:22:47367 "//sandbox/linux:sandbox_linux_jni_unittests",
hiroshigee6d374c2015-02-24 07:54:06368 ]
dnicoara8c6aa8e2015-03-11 23:20:32369
370 if (is_chromeos || use_ash) {
371 deps += [ "//components/session_manager/core" ]
372 }
dprankedb5527d72015-03-08 04:22:47373 }
374
sherouke1859f92015-08-05 10:19:10375 if (is_ios || is_win || (is_linux && !is_chromeos)) {
376 deps += [
377 "//base:base_i18n_perftests",
378 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58379 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10380 ]
381 }
382
dprankefd1813272015-04-13 23:56:00383 if (is_win || (is_linux && !is_chromeos)) {
384 # TODO(GYP): Figure out which of these should (and can) build
385 # for android/chromeos/mac/ios.
tfarina9e7cf702015-02-23 21:13:44386 deps += [
dprankedb5527d72015-03-08 04:22:47387 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47388 "//base:build_utf8_validator_tables",
dprankedb5527d72015-03-08 04:22:47389 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00390 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47391 "//chrome/test:load_library_perf_tests",
dpranke76f48222015-04-01 00:00:00392 "//chrome/test:performance_browser_tests",
dprankedb5527d72015-03-08 04:22:47393 "//chrome/test:sync_performance_tests",
394 "//chrome/test/chromedriver:chromedriver",
395 "//chrome/test/chromedriver:chromedriver_tests",
396 "//chrome/tools/profile_reset:jtl_compiler",
397 "//components:components_perftests",
dprankedb5527d72015-03-08 04:22:47398 "//content/test:content_gl_tests",
399 "//content/test:content_gl_benchmark",
400 "//courgette:courgette",
401 "//courgette:courgette_fuzz",
402 "//courgette:courgette_minimal_tool",
403 "//courgette:courgette_unittests",
404 "//device:device_unittests",
405 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47406 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47407 "//google_apis/gcm:mcs_probe",
dprankedb5527d72015-03-08 04:22:47408 "//gpu:gpu_perftests",
dprankefd1813272015-04-13 23:56:00409 "//gpu:gl_tests",
dprankedb5527d72015-03-08 04:22:47410 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47411 "//media:media_perftests",
dprankedb5527d72015-03-08 04:22:47412 "//media/cast:generate_barcode_video",
413 "//media/cast:generate_timecode_audio",
dprankedb5527d72015-03-08 04:22:47414 "//net:crash_cache",
415 "//net:crl_set_dump",
416 "//net:dns_fuzz_stub",
dprankefd1813272015-04-13 23:56:00417 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47418 "//net:gdig",
419 "//net:get_server_time",
dprankedb5527d72015-03-08 04:22:47420 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
dprankefd1813272015-04-13 23:56:00421 "//net:run_testserver",
dprankedb5527d72015-03-08 04:22:47422 "//net:stress_cache",
423 "//net:tld_cleanup",
dprankec09ccaa2015-03-27 22:00:38424 "//ppapi:pepper_hash_for_uma",
dprankefd1813272015-04-13 23:56:00425 "//ppapi:ppapi_perftests",
dprankedb5527d72015-03-08 04:22:47426 "//sync:run_sync_testserver",
cwallez4c57af32015-09-03 14:54:49427 "//third_party/angle/src/tests:angle_end2end_tests",
428 "//third_party/angle/src/tests:angle_unittests",
dprankedb5527d72015-03-08 04:22:47429 "//third_party/codesighs:maptsvdifftool",
dprankedb5527d72015-03-08 04:22:47430 "//third_party/leveldatabase:env_chromium_unittests",
431 "//third_party/libaddressinput:libaddressinput_unittests",
dprankefd1813272015-04-13 23:56:00432 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47433 "//ui/compositor:compositor_unittests",
434 ]
435
436 if (enable_extensions) {
437 deps += [ "//extensions/shell:app_shell" ]
438 }
439
440 if (enable_nacl) {
dprankefd1813272015-04-13 23:56:00441 deps += [ "//components/nacl:nacl_loader_unittests" ]
dprankedb5527d72015-03-08 04:22:47442 }
443
mostynb2196a462015-08-20 17:22:10444 if (media_use_ffmpeg) {
445 deps += [ "//media:ffmpeg_regression_tests" ]
446 }
447
dprankedb5527d72015-03-08 04:22:47448 if (use_ash) {
449 deps += [
benf97b2572015-09-25 23:12:53450 "//ash:ash_shell_with_content",
dprankedb5527d72015-03-08 04:22:47451 "//ash:ash_unittests",
452 ]
453 }
454
455 if (use_aura) {
456 deps += [
457 "//ui/aura:aura_unittests",
458 "//ui/aura:bench",
459 "//ui/aura:demo",
460 ]
461 }
dprankefd1813272015-04-13 23:56:00462 }
463
464 if (is_linux && !is_chromeos) {
465 deps += [
466 # TODO(GYP): Figure out which of these should (and can) build
467 # under which other conditions.
468 "//build/sanitizers:copy_llvm_symbolizer",
469 "//chrome/test:chrome_app_unittests",
470 "//cloud_print:cloud_print_unittests",
471 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00472 "//content/public/app:browser",
473 "//content/public/app:child",
474
475 # TODO(GYP): Remove this when the gles2 tests work
476 "//gpu/command_buffer/client:gles2_implementation_no_check",
477
478 "//gpu/khronos_glcts_support:khronos_glcts_test", # TODO(GYP) crbug.com/471903 to make this complete.
479 "//media/cast:cast_benchmarks",
480 "//media/cast:tap_proxy",
jam00802992015-05-20 03:37:19481 "//mojo/application/public/cpp",
dprankefd1813272015-04-13 23:56:00482 "//skia:filter_fuzz_stub",
483 "//skia:image_operations_bench",
484 "//sync/tools:sync_client",
485 "//sync/tools:sync_listen_notifications",
486 "//testing/gmock:gmock_main",
jam76bcf0c2015-10-02 21:01:28487
488 # TODO(use-new-edk):
489 #"//mojo/edk/test:mojo_public_system_perftests",
dprankefd1813272015-04-13 23:56:00490 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests",
dprankefd1813272015-04-13 23:56:00491 "//ui/keyboard:keyboard_unittests",
492 "//ui/message_center:message_center_unittests",
493 "//ui/snapshot:snapshot_unittests",
494 "//ui/views/examples:views_examples_with_content_exe",
495
dprankefd1813272015-04-13 23:56:00496 "//third_party/codesighs:nm2tsv",
497 "//third_party/sqlite:sqlite_shell",
498 ]
499
dprankeec10b3932015-10-02 17:58:23500 deps += [
501 "//breakpad:dump_syms($host_toolchain)",
502 "//breakpad:microdump_stackwalk($host_toolchain)",
503 "//breakpad:minidump_dump($host_toolchain)",
504 "//breakpad:minidump_stackwalk($host_toolchain)",
505 ]
dprankefd1813272015-04-13 23:56:00506
507 if (!is_debug && !is_component_build) {
508 deps += [ "//chrome/tools/service_discovery_sniffer" ]
509 }
510
511 if (toolkit_views) {
512 deps += [ "//ui/app_list:app_list_demo" ]
513 }
dprankedb5527d72015-03-08 04:22:47514
515 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44516 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59517 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44518 }
dprankedb5527d72015-03-08 04:22:47519 }
520 }
521
522 if (is_mac) {
523 deps += [
524 "//breakpad:crash_inspector",
525 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44526 "//third_party/apple_sample_code",
527 "//third_party/molokocacao",
528 ]
529
dprankee2ef3822015-02-24 21:42:18530 # TODO(GYP): Remove these when the targets below work and these
531 # are pulled in automatically.
532 deps += [
533 "//cc/blink",
Brett Wilson817fec02015-08-22 20:36:49534 "//components/ui/zoom",
dprankee2ef3822015-02-24 21:42:18535 "//content",
536 "//content/test:test_support",
537 "//device/battery",
538 "//device/bluetooth",
539 "//device/nfc",
540 "//device/usb",
541 "//device/vibration",
542 "//media/blink",
543 "//pdf",
544 "//storage/browser",
545 "//third_party/brotli",
546 "//third_party/flac",
tfarinae4a03f8f2015-05-18 05:55:26547 "//third_party/hunspell",
dprankee2ef3822015-02-24 21:42:18548 "//third_party/iccjpeg",
549 "//third_party/libphonenumber",
550 "//third_party/ots",
551 "//third_party/qcms",
552 "//third_party/smhasher:murmurhash3",
dprankee2ef3822015-02-24 21:42:18553 "//third_party/webrtc/system_wrappers",
tfarina42aa0172015-08-13 21:12:40554 "//ui/app_list:app_list_unittests",
tfarinaeda26472015-08-12 19:30:15555 "//ui/gfx:gfx_unittests",
dprankee2ef3822015-02-24 21:42:18556 "//ui/native_theme",
557 "//ui/snapshot",
558 "//ui/surface",
559 ]
560
dprankecf8465db72014-11-10 23:51:22561 # TODO(dpranke): These are as-yet untriaged but need at least the above.
dpranke43760592014-11-08 02:59:57562 deps -= [
dprankee2ef3822015-02-24 21:42:18563 "//chrome", # TODO(GYP)
564 "//chrome/test:browser_tests", # TODO(GYP)
565 "//chrome/test:interactive_ui_tests", # TODO(GYP)
566 "//chrome/test:sync_integration_tests", # TODO(GYP)
567 "//chrome/test:unit_tests", # TODO(GYP)
dprankef6ca89c52015-03-30 22:01:38568 "//components:components_browsertests", # TODO(GYP)
dprankee2ef3822015-02-24 21:42:18569 "//components:components_unittests", # TODO(GYP)
570 "//content/test:content_browsertests", # TODO(GYP)
571 "//content/test:content_perftests", # TODO(GYP)
dprankeb0713542015-07-31 21:07:21572 "//device:device_unittests", # TODO(GYP)
dprankee2ef3822015-02-24 21:42:18573 "//extensions:extensions_browsertests", # TODO(GYP)
574 "//extensions:extensions_unittests", # TODO(GYP)
dprankeb0713542015-07-31 21:07:21575 "//mojo", # TODO(GYP)
576 "//mojo/application/public/cpp", # TODO(GYP)
tfarinacb2638b2015-05-12 03:24:15577
578 # TODO(GYP): Re-enable this as soon as we can link Blink binaries on mac.
579 "//third_party/WebKit/Source/platform:heap_unittests",
580 "//third_party/WebKit/Source/platform:platform_unittests",
581 "//third_party/WebKit/Source/web:webkit_unit_tests",
mohsen29fd4052014-12-08 21:06:46582 ]
dprankefd1813272015-04-13 23:56:00583 }
584
585 if (is_win) {
586 deps += [
587 "//base:pe_image_test",
grt734e87b2015-07-06 19:36:43588 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00589 "//chrome_elf:chrome_elf_unittests",
590 "//chrome_elf:dll_hash_main",
sdefresne8ba0b88c2015-09-18 10:33:13591 "//components/crash/content/tools:crash_service",
dprankefd1813272015-04-13 23:56:00592 "//components/wifi:wifi_test",
593 "//net:quic_client",
594 "//net:quic_server",
595 "//sandbox/win:pocdll",
596 "//sandbox/win:sandbox_poc",
597 "//sandbox/win:sbox_integration_tests",
598 "//sandbox/win:sbox_unittests",
599 "//sandbox/win:sbox_validation_tests",
600 "//testing/gtest:gtest_main",
601 "//third_party/codesighs:msmap2tsv",
602 "//third_party/pdfium/samples:pdfium_diff",
603 "//ui/metro_viewer",
604 ]
dprankee2ef3822015-02-24 21:42:18605 deps -= [
606 "//crypto:crypto_unittests", # TODO(GYP)
607 "//net:net_unittests", # TODO(GYP)
608 ]
sherouk53f0f1a2015-08-03 15:59:35609 } else if (!is_android && !is_ios) {
dpranke6293d252015-04-14 19:12:00610 deps += [ "//breakpad:symupload" ]
mohsenf837da7c2014-12-09 19:01:34611 }
dpranke18e57432015-02-27 21:46:47612}
613
dpranked62d8512015-03-02 03:06:03614group("gn_only") {
dprankedb5527d72015-03-08 04:22:47615 testonly = true
616
dpranke2a294622015-08-07 05:23:01617 deps = []
618
sherouk53f0f1a2015-08-03 15:59:35619 if (!is_ios) {
dpranke2a294622015-08-07 05:23:01620 deps += [ "//mandoline:all" ]
sherouk53f0f1a2015-08-03 15:59:35621 }
isherman0f89b43eb2015-04-11 00:02:45622
623 if (!is_android && !is_ios) {
624 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
625 }
626
dprankedb5527d72015-03-08 04:22:47627 if (is_linux && !is_chromeos) {
628 # TODO(GYP): Figure out if any of these should be in gn_all
629 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45630 deps += [
dprankedb5527d72015-03-08 04:22:47631 ":gn_mojo_targets",
dtrainor4ae32722015-09-26 00:14:12632 "//blimp:blimp_tests",
dprankedb5527d72015-03-08 04:22:47633 "//chrome/browser/resources:extension_resource_demo",
634 "//chrome/installer/util:strings",
635 "//chrome:main_dll",
636 "//chrome/test:load_library_perf_tests",
637 "//chrome/tools/convert_dict",
638 "//components/constrained_window:unit_tests",
639 "//components/enhanced_bookmarks:test_support",
dprankedb5527d72015-03-08 04:22:47640 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45641 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47642 "//components/rappor:unit_tests",
643 "//components/sessions:unit_tests",
644 "//media/blink:media_blink_unittests",
dprankedb5527d72015-03-08 04:22:47645 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47646 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
647 "//storage/browser:dump_file_system",
648 "//third_party/angle:libANGLE",
649 "//third_party/angle:libEGL",
650 "//third_party/angle:libGLESv2",
651 "//third_party/cld_2:cld_2_dynamic_data_tool",
652 "//third_party/leveldatabase:leveldb_arena_test",
653 "//third_party/leveldatabase:leveldb_bloom_test",
654 "//third_party/leveldatabase:leveldb_db_test",
655 "//third_party/leveldatabase:leveldb_crc32c_test",
656 "//third_party/leveldatabase:leveldb_cache_test",
657 "//third_party/leveldatabase:leveldb_env_test",
658 "//third_party/leveldatabase:leveldb_write_batch_test",
659 "//third_party/leveldatabase:leveldb_filter_block_test",
660 "//third_party/leveldatabase:leveldb_version_edit_test",
661 "//third_party/leveldatabase:leveldb_db_bench",
662 "//third_party/leveldatabase:leveldb_log_test",
663 "//third_party/leveldatabase:leveldb_corruption_test",
664 "//third_party/leveldatabase:leveldb_table_test",
665 "//third_party/leveldatabase:leveldb_skiplist_test",
666 "//third_party/leveldatabase:leveldb_filename_test",
667 "//third_party/leveldatabase:leveldb_dbformat_test",
thestig93786e62015-08-05 04:03:29668 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47669 "//third_party/libjpeg_turbo:simd",
dprankedb5527d72015-03-08 04:22:47670 "//third_party/libsrtp:replay_driver",
671 "//third_party/libsrtp:roc_driver",
672 "//third_party/libsrtp:rtpw",
673 "//third_party/libsrtp:rdbx_driver",
674 "//third_party/libsrtp:srtp_driver",
675 "//third_party/libsrtp:srtp_driver",
676 "//third_party/libsrtp:srtp_test_kernel_driver",
677 "//third_party/libsrtp:srtp_test_cipher_driver",
678 "//third_party/libsrtp:srtp_test_datatypes_driver",
679 "//third_party/libsrtp:srtp_test_aes_calc",
680 "//third_party/libsrtp:srtp_test_env",
681 "//third_party/libsrtp:srtp_test_rand_gen",
682 "//third_party/libsrtp:srtp_test_sha1_driver",
683 "//third_party/libsrtp:srtp_test_stat_driver",
684 "//third_party/opus:opus_compare",
685 "//third_party/opus:opus_demo",
686 "//third_party/opus:test_opus_decode",
687 "//third_party/opus:test_opus_encode",
688 "//third_party/opus:test_opus_api",
689 "//third_party/opus:test_opus_padding",
690 "//third_party/webrtc/system_wrappers:field_trial_default",
691 "//third_party/webrtc/system_wrappers:metrics_default",
692 "//ui/display/types",
693 "//ui/shell_dialogs:shell_dialogs_unittests",
694 "//ui/views/examples:views_examples_exe",
dprankedb5527d72015-03-08 04:22:47695 ]
dprankeb0713542015-07-31 21:07:21696
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16697 if (target_cpu == "x86" || target_cpu == "x64") {
mcgrathr916aafa2015-09-15 00:06:53698 deps += [
699 "//third_party/libjpeg_turbo:simd_asm",
700 "//native_client/src/trusted/platform_qualify:vcpuid",
701 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16702 }
dprankedb5527d72015-03-08 04:22:47703 if (enable_nacl) {
704 deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ]
705 }
706 if (use_ozone) {
707 deps += [ "//ui/ozone/demo" ]
708 }
709 if (is_android) {
710 deps += [ "//build/android/gyp/test:hello_world" ]
711 }
dpranke807f6022015-03-17 23:20:56712
713 if (is_linux && current_toolchain == host_toolchain) {
714 deps += [ "//v8:d8" ]
715 }
nyquist6aeec5142015-09-10 03:38:52716 }
717
nyquistb5f050b2015-09-10 05:10:35718 if (is_android) {
nyquist7af11b72015-09-10 20:18:14719 deps += [ "//blimp" ]
nyquistb5f050b2015-09-10 05:10:35720 }
721
dprankeb0713542015-07-31 21:07:21722 if (is_mac) {
723 deps -= [ "//mandoline:all" ] # TODO(GYP)
724 }
dprankedb5527d72015-03-08 04:22:47725}
726
727group("gn_mojo_targets") {
728 testonly = true
729 if (is_linux && !is_chromeos) {
730 # TODO(GYP): Figure out if any of these should be in gn_all
731 # and figure out how cross-platform they are
732 deps = [
dprankedb5527d72015-03-08 04:22:47733 "//ipc/mojo:ipc_mojo_perftests",
dprankedb5527d72015-03-08 04:22:47734 "//media/mojo/services:cdm_service",
735 "//media/mojo:tests",
msw1bb9c6c2015-05-06 21:35:44736 "//mojo:tests",
pkotwicz8b9d18c2015-10-05 01:59:33737
jam76bcf0c2015-10-02 21:01:28738 # TODO(use-new-edk):
739 #"//mojo/edk/js/test:js_integration_tests",
740 #"//mojo/edk/js/tests:js_to_cpp_bindings_python",
dprankedb5527d72015-03-08 04:22:47741 "//third_party/mojo/src/mojo/edk/js/test:js_integration_tests",
dprankedb5527d72015-03-08 04:22:47742 ]
dprankedb5527d72015-03-08 04:22:47743 }
744}
745
746group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03747 deps = [
dprankeb6128d02015-05-01 16:40:30748 "//build/config/sanitizers:options_sources",
749
dprankedb5527d72015-03-08 04:22:47750 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
751 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dprankeb6128d02015-05-01 16:40:30752
753 "//ui/resources:repack_ui_test_mac_locale_pack",
dpranked62d8512015-03-02 03:06:03754 ]
dpranked2fb5222015-09-10 22:39:05755
756 if (!is_ios) {
757 deps += [
758 "//v8:v8_snapshot",
759 "//v8:postmortem-metadata",
760 ]
761 }
dpranked62d8512015-03-02 03:06:03762}
763
tfarinacb2638b2015-05-12 03:24:15764if (!is_ios) {
765 # This group includes all of the targets needed to build and test Blink,
766 # including running the layout tests (see below).
767 group("blink_tests") {
768 testonly = true
769
770 deps = [
771 "//third_party/WebKit/public:all_blink",
772 ]
773
774 # NOTE: The following deps are needed to run the layout tests
775 # (run-webkit-tests) but there is no GN target for the layout tests,
776 # so we need to specify the dependencies here instead.
777 if (is_android) {
778 deps += [
779 "//breakpad:dump_syms($host_toolchain)",
780 "//breakpad:minidump_stackwalk($host_toolchain)",
781 "//content/shell/android:content_shell_apk",
ojan94989c72015-07-17 21:56:42782 "//tools/imagediff($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15783 ]
784 } else {
ojan94989c72015-07-17 21:56:42785 deps += [
786 "//content/shell:content_shell",
787 "//tools/imagediff",
788 ]
tfarinacb2638b2015-05-12 03:24:15789 }
790
791 if (is_win) {
792 deps += [
jochen73e711c2015-06-03 10:01:46793 "//components/test_runner:layout_test_helper",
tfarina795e01a2015-05-15 19:29:57794 "//content/shell:crash_service",
tfarinacb2638b2015-05-12 03:24:15795 ]
796 }
797
798 if (!is_win && !is_android) {
Gordana.Cmiljanovicf243e9a2015-05-26 22:14:47799 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15800 }
801
802 if (is_mac) {
803 deps += [
804 "//breakpad:dump_syms($host_toolchain)",
jochen73e711c2015-06-03 10:01:46805 "//components/test_runner:layout_test_helper",
tfarinacb2638b2015-05-12 03:24:15806 ]
807 }
808
809 if (is_linux) {
810 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
811 }
812 }
813}
814
dpranke6abd8652015-08-28 03:21:11815# Add a dummy target for compatibility w/ GYP
816group("chromium_swarm_tests") {
817}
818
dpranke2302dfa2015-09-29 02:21:52819group("chromium_builder_perf") {
820 testonly = true
821
822 # TODO(GYP): Make this target work on the mac.
823 if (!is_ios && !is_android && !is_chromecast && !is_mac) {
824 deps = [
825 "//cc:cc_perftests",
826 "//chrome",
827 "//chrome/test:load_library_perf_tests",
828 "//chrome/test:sync_performance_tests",
829 "//gpu:gpu_perftests",
830 "//media:media_perftests",
831 "//media/midi:midi_unittests",
832 "//tools/telemetry:bitmaptools",
833 ]
834
835 if (!is_chromeos) {
836 deps += [ "//chrome/test:performance_browser_tests" ]
837 }
838 if (is_linux && !is_chromeos) {
839 deps += [ "//chrome:linux_symbols" ]
840
841 if (!is_chromeos) {
842 deps += [ "//tools/perf/clear_system_cache" ]
843 }
844 }
845
846 if (is_win) {
847 deps += [
848 "//content/shell:crash_service",
849 # "//gpu:angle_perftests", TODO(GYP): crbug.com/537008
850 ]
851
852 if (target_cpu == "x86") {
853 deps += [
854 # "//content/shell:crash_service_win64", TODO(GYP): crbug.com/537009
855 ]
856 }
857 } else {
dprankeec10b3932015-10-02 17:58:23858 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52859 }
860 }
861}