blob: 04f54dacb02cc8878228f163e276171457c47aef [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
dprankefd1813272015-04-13 23:56:0011import("//build/config/crypto.gni")
rockot2f1326e2015-02-23 23:53:5112import("//build/config/features.gni")
[email protected]378b4f02014-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}
[email protected]378b4f02014-06-10 15:58:4520
brettwb84b29472014-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") {
51 testonly = true
52
53 deps = [
dprankeddc174902015-04-29 01:38:3554 ":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") {
66 testonly = true
dprankeddc174902015-04-29 01:38:3567 deps = [
dprankee2ef3822015-02-24 21:42:1868 "//base:base_unittests",
brettwa874dccb2015-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",
brettwa874dccb2015-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 ]
179 }
dprankee2ef3822015-02-24 21:42:18180
scottmg34fb7e52014-12-03 23:27:24181 deps += root_extra_deps
[email protected]fce5c3fe2014-04-10 21:13:05182
dpranke021d4c92015-02-24 02:08:25183 if (enable_extensions && !is_mac) {
dprankefd1813272015-04-13 23:56:00184 # TODO(GYP): Get this working on the mac?
rockot2f1326e2015-02-23 23:53:51185 deps += [ "//extensions/shell:app_shell_unittests" ]
186 }
187
dprankefd1813272015-04-13 23:56:00188 if (enable_media_router) {
imchengb6b09239f2015-05-15 21:41:55189 deps += [ "//chrome/browser/media/router" ]
dprankefd1813272015-04-13 23:56:00190 }
191
garykac3eddb5b2015-04-17 23:16:38192 if (enable_remoting) {
193 deps += [ "//remoting:remoting_all" ]
dprankece5eb832015-04-01 20:21:05194 }
195
dprankee2ef3822015-02-24 21:42:18196 if (toolkit_views) {
197 deps += [ "//ui/views:views_unittests" ]
James Robinson060f2e32014-09-10 22:31:37198 }
199
dprankee2ef3822015-02-24 21:42:18200 if (use_aura) {
201 deps += [ "//ui/wm:wm_unittests" ]
202 }
203
204 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47205 deps += [ "//ui/ozone" ]
[email protected]a306aaa2014-05-24 13:21:50206 }
207
dprankefd1813272015-04-13 23:56:00208 if (use_x11) {
209 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22210 }
211
tmoniuszkoe5578b922015-04-14 09:38:03212 if (enable_configuration_policy) {
213 deps += [ "//components/policy:policy_templates" ]
214 }
215
dprankefd1813272015-04-13 23:56:00216 if (v8_use_external_startup_data) {
217 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
[email protected]2d6893a2014-06-02 19:16:36218 }
219
brettw66e3feab2015-07-20 23:52:22220 if (is_win) {
221 deps += [ "//chrome/tools/build/win/syzygy:chrome_dll_syzygy" ]
222 }
223
[email protected]5a8d5162014-04-12 01:19:16224 if (is_android) {
[email protected]26046b52014-07-16 00:11:03225 deps += [
cjhopman31511332014-10-23 01:05:02226 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38227 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02228 "//build/android/rezip",
agrieve40ba6862015-07-15 02:09:05229 "//third_party/errorprone:chromium_errorprone",
pkotwicze38594d2015-09-25 00:05:10230 "//tools/android:android_tools",
pkotwicz8b9d18c2015-10-05 01:59:33231 "//tools/android/heap_profiler:heap_profiler_unittests",
dprankee2ef3822015-02-24 21:42:18232 "//tools/imagediff($host_toolchain)",
233
234 # TODO(GYP): Remove these when the components_unittests work.
235 "//components/history/core/test:test",
236 "//components/policy:policy_component_test_support",
237 "//components/policy:test_support",
238 "//components/rappor:test_support",
239 "//components/signin/core/browser:test_support",
240 "//components/sync_driver:test_support",
241 "//components/user_manager",
242 "//components/wallpaper",
243 "//content/shell/android:content_shell_apk",
244
245 # TODO(GYP): Are these needed, or will they be pulled in automatically?
[email protected]684b2292014-08-22 19:12:39246 "//third_party/android_tools:android_gcm_java",
247 "//third_party/android_tools:uiautomator_java",
248 "//third_party/android_tools:android_support_v13_java",
249 "//third_party/android_tools:android_support_v7_appcompat_java",
250 "//third_party/android_tools:android_support_v7_mediarouter_java",
dprankee2ef3822015-02-24 21:42:18251 "//third_party/mesa",
mikecase85e83ed2014-12-08 19:18:29252 "//third_party/mockito:mockito_java",
dprankee2ef3822015-02-24 21:42:18253 "//third_party/openmax_dl/dl",
dprankee2ef3822015-02-24 21:42:18254 "//ui/android:ui_java",
255
256 # TODO(GYP): Are these needed?
257 "//chrome/test:test_support_unit",
258 "//third_party/smhasher:murmurhash3",
259 "//ui/message_center:test_support",
260 ]
261 deps -= [
dprankee2ef3822015-02-24 21:42:18262 "//chrome", # TODO(GYP) ??
263 "//chrome/test:browser_tests", # TODO(GYP) ??
264 "//chrome/test:interactive_ui_tests", # TODO(GYP) ??
265 "//chrome/test:sync_integration_tests", # TODO(GYP) ??
266 "//chrome/test:unit_tests", # TODO(GYP)
brettw922d3aa2015-02-27 22:15:46267
268 # Chromedriver shouldn't be compiled on Android.
269 "//chrome/test/chromedriver:chromedriver_unittests",
dprankee2ef3822015-02-24 21:42:18270 "//extensions:extensions_browsertests",
271 "//extensions:extensions_unittests",
272 "//google_apis/gcm:gcm_unit_tests",
273 "//ipc:ipc_tests", # TODO(GYP) ??
274 "//jingle:jingle_unittests", # TODO(GYP) ??
rockot9c67e5f2015-03-12 20:01:21275 "//net:hpack_example_generator",
276 "//net:hpack_fuzz_mutator",
277 "//net:hpack_fuzz_wrapper",
278 "//net:net_perftests",
tfarina79ef072d2015-04-04 20:16:57279 "//ppapi/examples/2d",
280 "//ppapi/examples/audio",
281 "//ppapi/examples/audio_input",
282 "//ppapi/examples/compositor",
283 "//ppapi/examples/crxfs",
284 "//ppapi/examples/enumerate_devices",
285 "//ppapi/examples/file_chooser",
286 "//ppapi/examples/flash_topmost",
287 "//ppapi/examples/font",
288 "//ppapi/examples/gamepad",
289 "//ppapi/examples/gles2",
290 "//ppapi/examples/gles2_spinning_cube",
291 "//ppapi/examples/ime",
292 "//ppapi/examples/input",
293 "//ppapi/examples/media_stream_audio",
294 "//ppapi/examples/media_stream_video",
295 "//ppapi/examples/mouse_cursor",
296 "//ppapi/examples/mouse_lock",
297 "//ppapi/examples/printing",
298 "//ppapi/examples/scaling",
299 "//ppapi/examples/scripting",
300 "//ppapi/examples/stub",
301 "//ppapi/examples/threading",
302 "//ppapi/examples/url_loader",
303 "//ppapi/examples/video_capture",
304 "//ppapi/examples/video_decode",
305 "//ppapi/examples/video_effects",
306 "//ppapi/examples/video_encode",
dprankee2ef3822015-02-24 21:42:18307 "//third_party/pdfium/samples:pdfium_test",
308 "//tools/gn",
dprankefd1813272015-04-13 23:56:00309 "//tools/gn:generate_test_gn_data",
dprankee2ef3822015-02-24 21:42:18310 "//tools/gn:gn_unittests",
311 "//ui/app_list:app_list_unittests",
312 "//url:url_unittests",
[email protected]26046b52014-07-16 00:11:03313 ]
314
pkotwicz061c5a42015-09-30 02:16:54315 if (!is_chromecast) {
316 deps += [
317 "//chrome/android:chrome_public_apk",
318 "//chrome/android:chrome_public_test_apk",
319 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
pkotwicz0a2255e2015-10-06 16:29:05320 "//third_party/custom_tabs_client:custom_tabs_client_example_apk",
pkotwicz061c5a42015-09-30 02:16:54321 ]
322 }
323
cjhopmanca675d3e2014-10-24 03:50:45324 if (has_chrome_android_internal) {
dprankee2ef3822015-02-24 21:42:18325 deps += [ "//clank" ] # TODO(GYP) ??
cjhopmanca675d3e2014-10-24 03:50:45326 }
dprankedb5527d72015-03-08 04:22:47327 }
328
dprankefd1813272015-04-13 23:56:00329 if (is_linux) { # TODO(GYP): || is_android || is_bsd?
330 deps += [
331 "//breakpad:core-2-minidump",
332 "//breakpad:minidump-2-core",
333 ]
334 }
335
dpranke6293d252015-04-14 19:12:00336 if (is_chromeos) {
337 deps += [
338 "//chromeos:chromeos_unittests",
339 "//ui/chromeos:ui_chromeos_unittests",
340 ]
341 }
342
dprankefd1813272015-04-13 23:56:00343 if (is_chromeos || is_mac || is_win) {
344 deps += [
345 "//rlz:rlz_id",
346 "//rlz:rlz_lib",
347 "//rlz:rlz_unittests",
348 ]
349 }
350
dprankedb5527d72015-03-08 04:22:47351 if (is_linux) {
352 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06353 deps += [
dprankedb5527d72015-03-08 04:22:47354 "//breakpad:breakpad_unittests",
dprankedb5527d72015-03-08 04:22:47355 "//breakpad:generate_test_dump",
dprankedb5527d72015-03-08 04:22:47356 "//dbus:dbus_test_server",
dprankee2ef3822015-02-24 21:42:18357 "//dbus:dbus_unittests",
dprankedb5527d72015-03-08 04:22:47358 "//net:disk_cache_memory_test",
359 "//net:flip_in_mem_edsm_server",
360 "//net:flip_in_mem_edsm_server_unittests",
361 "//net:quic_client",
362 "//net:quic_server",
363 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18364 "//sandbox/linux:sandbox_linux_unittests",
dprankedb5527d72015-03-08 04:22:47365 "//sandbox/linux:sandbox_linux_jni_unittests",
hiroshigee6d374c2015-02-24 07:54:06366 ]
dnicoara8c6aa8e2015-03-11 23:20:32367
368 if (is_chromeos || use_ash) {
369 deps += [ "//components/session_manager/core" ]
370 }
dprankedb5527d72015-03-08 04:22:47371 }
372
sherouke1859f92015-08-05 10:19:10373 if (is_ios || is_win || (is_linux && !is_chromeos)) {
374 deps += [
375 "//base:base_i18n_perftests",
376 "//base:base_perftests",
sherouk710734d2015-09-02 19:02:58377 "//google_apis:google_apis_unittests",
sherouke1859f92015-08-05 10:19:10378 ]
379 }
380
dprankefd1813272015-04-13 23:56:00381 if (is_win || (is_linux && !is_chromeos)) {
382 # TODO(GYP): Figure out which of these should (and can) build
383 # for android/chromeos/mac/ios.
tfarina9e7cf702015-02-23 21:13:44384 deps += [
dprankedb5527d72015-03-08 04:22:47385 "//base:check_example",
dprankedb5527d72015-03-08 04:22:47386 "//base:build_utf8_validator_tables",
dprankedb5527d72015-03-08 04:22:47387 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00388 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47389 "//chrome/test:load_library_perf_tests",
dpranke76f48222015-04-01 00:00:00390 "//chrome/test:performance_browser_tests",
dprankedb5527d72015-03-08 04:22:47391 "//chrome/test:sync_performance_tests",
392 "//chrome/test/chromedriver:chromedriver",
393 "//chrome/test/chromedriver:chromedriver_tests",
394 "//chrome/tools/profile_reset:jtl_compiler",
395 "//components:components_perftests",
dprankedb5527d72015-03-08 04:22:47396 "//content/test:content_gl_tests",
397 "//content/test:content_gl_benchmark",
398 "//courgette:courgette",
399 "//courgette:courgette_fuzz",
400 "//courgette:courgette_minimal_tool",
401 "//courgette:courgette_unittests",
402 "//device:device_unittests",
403 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47404 "//gin:gin_unittests",
dprankedb5527d72015-03-08 04:22:47405 "//google_apis/gcm:mcs_probe",
dprankedb5527d72015-03-08 04:22:47406 "//gpu:gpu_perftests",
dprankefd1813272015-04-13 23:56:00407 "//gpu:gl_tests",
dprankedb5527d72015-03-08 04:22:47408 "//ipc:ipc_perftests",
dprankedb5527d72015-03-08 04:22:47409 "//media:media_perftests",
dprankedb5527d72015-03-08 04:22:47410 "//media/cast:generate_barcode_video",
411 "//media/cast:generate_timecode_audio",
dprankedb5527d72015-03-08 04:22:47412 "//net:crash_cache",
413 "//net:crl_set_dump",
414 "//net:dns_fuzz_stub",
dprankefd1813272015-04-13 23:56:00415 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47416 "//net:gdig",
417 "//net:get_server_time",
dprankedb5527d72015-03-08 04:22:47418 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
dprankefd1813272015-04-13 23:56:00419 "//net:run_testserver",
dprankedb5527d72015-03-08 04:22:47420 "//net:stress_cache",
421 "//net:tld_cleanup",
dprankec09ccaa2015-03-27 22:00:38422 "//ppapi:pepper_hash_for_uma",
dprankefd1813272015-04-13 23:56:00423 "//ppapi:ppapi_perftests",
dprankedb5527d72015-03-08 04:22:47424 "//sync:run_sync_testserver",
cwallez4c57af32015-09-03 14:54:49425 "//third_party/angle/src/tests:angle_end2end_tests",
426 "//third_party/angle/src/tests:angle_unittests",
dprankedb5527d72015-03-08 04:22:47427 "//third_party/codesighs:maptsvdifftool",
dprankedb5527d72015-03-08 04:22:47428 "//third_party/leveldatabase:env_chromium_unittests",
429 "//third_party/libaddressinput:libaddressinput_unittests",
dprankefd1813272015-04-13 23:56:00430 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47431 "//ui/compositor:compositor_unittests",
432 ]
433
434 if (enable_extensions) {
435 deps += [ "//extensions/shell:app_shell" ]
436 }
437
438 if (enable_nacl) {
dprankefd1813272015-04-13 23:56:00439 deps += [ "//components/nacl:nacl_loader_unittests" ]
dprankedb5527d72015-03-08 04:22:47440 }
441
mostynb2196a462015-08-20 17:22:10442 if (media_use_ffmpeg) {
443 deps += [ "//media:ffmpeg_regression_tests" ]
444 }
445
dprankedb5527d72015-03-08 04:22:47446 if (use_ash) {
447 deps += [
benf97b2572015-09-25 23:12:53448 "//ash:ash_shell_with_content",
dprankedb5527d72015-03-08 04:22:47449 "//ash:ash_unittests",
450 ]
451 }
452
453 if (use_aura) {
454 deps += [
455 "//ui/aura:aura_unittests",
456 "//ui/aura:bench",
457 "//ui/aura:demo",
458 ]
459 }
dprankefd1813272015-04-13 23:56:00460 }
461
462 if (is_linux && !is_chromeos) {
463 deps += [
464 # TODO(GYP): Figure out which of these should (and can) build
465 # under which other conditions.
466 "//build/sanitizers:copy_llvm_symbolizer",
467 "//chrome/test:chrome_app_unittests",
468 "//cloud_print:cloud_print_unittests",
469 "//components/network_hints/browser",
dprankefd1813272015-04-13 23:56:00470 "//content/public/app:browser",
471 "//content/public/app:child",
472
473 # TODO(GYP): Remove this when the gles2 tests work
474 "//gpu/command_buffer/client:gles2_implementation_no_check",
475
476 "//gpu/khronos_glcts_support:khronos_glcts_test", # TODO(GYP) crbug.com/471903 to make this complete.
477 "//media/cast:cast_benchmarks",
478 "//media/cast:tap_proxy",
jam00802992015-05-20 03:37:19479 "//mojo/application/public/cpp",
dprankefd1813272015-04-13 23:56:00480 "//skia:filter_fuzz_stub",
481 "//skia:image_operations_bench",
482 "//sync/tools:sync_client",
483 "//sync/tools:sync_listen_notifications",
484 "//testing/gmock:gmock_main",
jam76bcf0c2015-10-02 21:01:28485
486 # TODO(use-new-edk):
487 #"//mojo/edk/test:mojo_public_system_perftests",
dprankefd1813272015-04-13 23:56:00488 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests",
dprankefd1813272015-04-13 23:56:00489 "//ui/keyboard:keyboard_unittests",
490 "//ui/message_center:message_center_unittests",
491 "//ui/snapshot:snapshot_unittests",
492 "//ui/views/examples:views_examples_with_content_exe",
493
dprankefd1813272015-04-13 23:56:00494 "//third_party/codesighs:nm2tsv",
495 "//third_party/sqlite:sqlite_shell",
496 ]
497
dprankeec10b3932015-10-02 17:58:23498 deps += [
499 "//breakpad:dump_syms($host_toolchain)",
500 "//breakpad:microdump_stackwalk($host_toolchain)",
501 "//breakpad:minidump_dump($host_toolchain)",
502 "//breakpad:minidump_stackwalk($host_toolchain)",
503 ]
dprankefd1813272015-04-13 23:56:00504
505 if (!is_debug && !is_component_build) {
506 deps += [ "//chrome/tools/service_discovery_sniffer" ]
507 }
508
509 if (toolkit_views) {
510 deps += [ "//ui/app_list:app_list_demo" ]
511 }
dprankedb5527d72015-03-08 04:22:47512
513 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44514 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59515 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44516 }
dprankedb5527d72015-03-08 04:22:47517 }
518 }
519
520 if (is_mac) {
521 deps += [
522 "//breakpad:crash_inspector",
523 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44524 "//third_party/apple_sample_code",
525 "//third_party/molokocacao",
526 ]
527
dprankee2ef3822015-02-24 21:42:18528 # TODO(GYP): Remove these when the targets below work and these
529 # are pulled in automatically.
530 deps += [
531 "//cc/blink",
Brett Wilson817fec02015-08-22 20:36:49532 "//components/ui/zoom",
dprankee2ef3822015-02-24 21:42:18533 "//content",
534 "//content/test:test_support",
535 "//device/battery",
536 "//device/bluetooth",
537 "//device/nfc",
538 "//device/usb",
539 "//device/vibration",
540 "//media/blink",
541 "//pdf",
542 "//storage/browser",
543 "//third_party/brotli",
544 "//third_party/flac",
tfarinae4a03f8f2015-05-18 05:55:26545 "//third_party/hunspell",
dprankee2ef3822015-02-24 21:42:18546 "//third_party/iccjpeg",
547 "//third_party/libphonenumber",
548 "//third_party/ots",
549 "//third_party/qcms",
550 "//third_party/smhasher:murmurhash3",
dprankee2ef3822015-02-24 21:42:18551 "//third_party/webrtc/system_wrappers",
tfarina42aa0172015-08-13 21:12:40552 "//ui/app_list:app_list_unittests",
tfarinaeda26472015-08-12 19:30:15553 "//ui/gfx:gfx_unittests",
dprankee2ef3822015-02-24 21:42:18554 "//ui/native_theme",
555 "//ui/snapshot",
556 "//ui/surface",
557 ]
558
dprankecf8465db72014-11-10 23:51:22559 # TODO(dpranke): These are as-yet untriaged but need at least the above.
dpranke43760592014-11-08 02:59:57560 deps -= [
dprankee2ef3822015-02-24 21:42:18561 "//chrome", # TODO(GYP)
562 "//chrome/test:browser_tests", # TODO(GYP)
563 "//chrome/test:interactive_ui_tests", # TODO(GYP)
564 "//chrome/test:sync_integration_tests", # TODO(GYP)
565 "//chrome/test:unit_tests", # TODO(GYP)
dprankef6ca89c52015-03-30 22:01:38566 "//components:components_browsertests", # TODO(GYP)
dprankee2ef3822015-02-24 21:42:18567 "//components:components_unittests", # TODO(GYP)
568 "//content/test:content_browsertests", # TODO(GYP)
569 "//content/test:content_perftests", # TODO(GYP)
dprankeb0713542015-07-31 21:07:21570 "//device:device_unittests", # TODO(GYP)
dprankee2ef3822015-02-24 21:42:18571 "//extensions:extensions_browsertests", # TODO(GYP)
572 "//extensions:extensions_unittests", # TODO(GYP)
dprankeb0713542015-07-31 21:07:21573 "//mojo", # TODO(GYP)
574 "//mojo/application/public/cpp", # TODO(GYP)
tfarinacb2638b2015-05-12 03:24:15575
576 # TODO(GYP): Re-enable this as soon as we can link Blink binaries on mac.
577 "//third_party/WebKit/Source/platform:heap_unittests",
578 "//third_party/WebKit/Source/platform:platform_unittests",
579 "//third_party/WebKit/Source/web:webkit_unit_tests",
dprankecf8465db72014-11-10 23:51:22580 ]
dprankefd1813272015-04-13 23:56:00581 }
582
583 if (is_win) {
584 deps += [
585 "//base:pe_image_test",
grt734e87b2015-07-06 19:36:43586 "//chrome/installer/setup:setup_unittests",
dprankefd1813272015-04-13 23:56:00587 "//chrome_elf:chrome_elf_unittests",
588 "//chrome_elf:dll_hash_main",
sdefresne8ba0b88c2015-09-18 10:33:13589 "//components/crash/content/tools:crash_service",
dprankefd1813272015-04-13 23:56:00590 "//components/wifi:wifi_test",
591 "//net:quic_client",
592 "//net:quic_server",
593 "//sandbox/win:pocdll",
594 "//sandbox/win:sandbox_poc",
595 "//sandbox/win:sbox_integration_tests",
596 "//sandbox/win:sbox_unittests",
597 "//sandbox/win:sbox_validation_tests",
598 "//testing/gtest:gtest_main",
599 "//third_party/codesighs:msmap2tsv",
600 "//third_party/pdfium/samples:pdfium_diff",
601 "//ui/metro_viewer",
602 ]
dprankee2ef3822015-02-24 21:42:18603 deps -= [
604 "//crypto:crypto_unittests", # TODO(GYP)
605 "//net:net_unittests", # TODO(GYP)
606 ]
sherouk53f0f1a2015-08-03 15:59:35607 } else if (!is_android && !is_ios) {
dpranke6293d252015-04-14 19:12:00608 deps += [ "//breakpad:symupload" ]
mohsenf837da7c2014-12-09 19:01:34609 }
[email protected]f0e7ff882013-12-26 21:23:09610}
brettw533c50422015-02-26 17:49:16611
dpranked62d8512015-03-02 03:06:03612group("gn_only") {
dprankedb5527d72015-03-08 04:22:47613 testonly = true
614
dpranke2a294622015-08-07 05:23:01615 deps = []
616
sherouk53f0f1a2015-08-03 15:59:35617 if (!is_ios) {
dpranke2a294622015-08-07 05:23:01618 deps += [ "//mandoline:all" ]
sherouk53f0f1a2015-08-03 15:59:35619 }
isherman0f89b43eb2015-04-11 00:02:45620
621 if (!is_android && !is_ios) {
622 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
623 }
624
dprankedb5527d72015-03-08 04:22:47625 if (is_linux && !is_chromeos) {
626 # TODO(GYP): Figure out if any of these should be in gn_all
627 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45628 deps += [
dprankedb5527d72015-03-08 04:22:47629 ":gn_mojo_targets",
dtrainor4ae32722015-09-26 00:14:12630 "//blimp:blimp_tests",
dprankedb5527d72015-03-08 04:22:47631 "//chrome/browser/resources:extension_resource_demo",
632 "//chrome/installer/util:strings",
633 "//chrome:main_dll",
634 "//chrome/test:load_library_perf_tests",
635 "//chrome/tools/convert_dict",
636 "//components/constrained_window:unit_tests",
637 "//components/enhanced_bookmarks:test_support",
dprankedb5527d72015-03-08 04:22:47638 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45639 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47640 "//components/rappor:unit_tests",
641 "//components/sessions:unit_tests",
642 "//media/blink:media_blink_unittests",
dprankedb5527d72015-03-08 04:22:47643 "//media/cast:udp_proxy",
dprankedb5527d72015-03-08 04:22:47644 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
645 "//storage/browser:dump_file_system",
646 "//third_party/angle:libANGLE",
647 "//third_party/angle:libEGL",
648 "//third_party/angle:libGLESv2",
649 "//third_party/cld_2:cld_2_dynamic_data_tool",
650 "//third_party/leveldatabase:leveldb_arena_test",
651 "//third_party/leveldatabase:leveldb_bloom_test",
652 "//third_party/leveldatabase:leveldb_db_test",
653 "//third_party/leveldatabase:leveldb_crc32c_test",
654 "//third_party/leveldatabase:leveldb_cache_test",
655 "//third_party/leveldatabase:leveldb_env_test",
656 "//third_party/leveldatabase:leveldb_write_batch_test",
657 "//third_party/leveldatabase:leveldb_filter_block_test",
658 "//third_party/leveldatabase:leveldb_version_edit_test",
659 "//third_party/leveldatabase:leveldb_db_bench",
660 "//third_party/leveldatabase:leveldb_log_test",
661 "//third_party/leveldatabase:leveldb_corruption_test",
662 "//third_party/leveldatabase:leveldb_table_test",
663 "//third_party/leveldatabase:leveldb_skiplist_test",
664 "//third_party/leveldatabase:leveldb_filename_test",
665 "//third_party/leveldatabase:leveldb_dbformat_test",
thestig93786e62015-08-05 04:03:29666 "//third_party/pdfium/third_party:fx_freetype",
dprankedb5527d72015-03-08 04:22:47667 "//third_party/libjpeg_turbo:simd",
dprankedb5527d72015-03-08 04:22:47668 "//third_party/libsrtp:replay_driver",
669 "//third_party/libsrtp:roc_driver",
670 "//third_party/libsrtp:rtpw",
671 "//third_party/libsrtp:rdbx_driver",
672 "//third_party/libsrtp:srtp_driver",
673 "//third_party/libsrtp:srtp_driver",
674 "//third_party/libsrtp:srtp_test_kernel_driver",
675 "//third_party/libsrtp:srtp_test_cipher_driver",
676 "//third_party/libsrtp:srtp_test_datatypes_driver",
677 "//third_party/libsrtp:srtp_test_aes_calc",
678 "//third_party/libsrtp:srtp_test_env",
679 "//third_party/libsrtp:srtp_test_rand_gen",
680 "//third_party/libsrtp:srtp_test_sha1_driver",
681 "//third_party/libsrtp:srtp_test_stat_driver",
682 "//third_party/opus:opus_compare",
683 "//third_party/opus:opus_demo",
684 "//third_party/opus:test_opus_decode",
685 "//third_party/opus:test_opus_encode",
686 "//third_party/opus:test_opus_api",
687 "//third_party/opus:test_opus_padding",
688 "//third_party/webrtc/system_wrappers:field_trial_default",
689 "//third_party/webrtc/system_wrappers:metrics_default",
690 "//ui/display/types",
691 "//ui/shell_dialogs:shell_dialogs_unittests",
692 "//ui/views/examples:views_examples_exe",
dprankedb5527d72015-03-08 04:22:47693 ]
dprankeb0713542015-07-31 21:07:21694
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16695 if (target_cpu == "x86" || target_cpu == "x64") {
mcgrathr916aafa2015-09-15 00:06:53696 deps += [
697 "//third_party/libjpeg_turbo:simd_asm",
698 "//native_client/src/trusted/platform_qualify:vcpuid",
699 ]
Gordana.Cmiljanovic85746ff12015-04-28 08:17:16700 }
dprankedb5527d72015-03-08 04:22:47701 if (enable_nacl) {
702 deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ]
703 }
704 if (use_ozone) {
705 deps += [ "//ui/ozone/demo" ]
706 }
707 if (is_android) {
708 deps += [ "//build/android/gyp/test:hello_world" ]
709 }
dpranke807f602b2015-03-17 23:20:56710
711 if (is_linux && current_toolchain == host_toolchain) {
712 deps += [ "//v8:d8" ]
713 }
dprankedb5527d72015-03-08 04:22:47714 }
dprankeb0713542015-07-31 21:07:21715
nyquistb5f050b2015-09-10 05:10:35716 if (is_android) {
nyquist7af11b72015-09-10 20:18:14717 deps += [ "//blimp" ]
nyquistb5f050b2015-09-10 05:10:35718 }
719
dprankeb0713542015-07-31 21:07:21720 if (is_mac) {
721 deps -= [ "//mandoline:all" ] # TODO(GYP)
722 }
dprankedb5527d72015-03-08 04:22:47723}
724
725group("gn_mojo_targets") {
726 testonly = true
727 if (is_linux && !is_chromeos) {
728 # TODO(GYP): Figure out if any of these should be in gn_all
729 # and figure out how cross-platform they are
730 deps = [
dprankedb5527d72015-03-08 04:22:47731 "//ipc/mojo:ipc_mojo_perftests",
dprankedb5527d72015-03-08 04:22:47732 "//media/mojo/services:cdm_service",
733 "//media/mojo:tests",
msw1bb9c6c2015-05-06 21:35:44734 "//mojo:tests",
pkotwicz8b9d18c2015-10-05 01:59:33735
jam76bcf0c2015-10-02 21:01:28736 # TODO(use-new-edk):
737 #"//mojo/edk/js/test:js_integration_tests",
738 #"//mojo/edk/js/tests:js_to_cpp_bindings_python",
dprankedb5527d72015-03-08 04:22:47739 "//third_party/mojo/src/mojo/edk/js/test:js_integration_tests",
dprankedb5527d72015-03-08 04:22:47740 ]
dprankedb5527d72015-03-08 04:22:47741 }
742}
743
744group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03745 deps = [
dprankeb6128d02015-05-01 16:40:30746 "//build/config/sanitizers:options_sources",
747
dprankedb5527d72015-03-08 04:22:47748 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
749 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
dprankeb6128d02015-05-01 16:40:30750
751 "//ui/resources:repack_ui_test_mac_locale_pack",
dpranked62d8512015-03-02 03:06:03752 ]
dpranked2fb5222015-09-10 22:39:05753
754 if (!is_ios) {
755 deps += [
756 "//v8:v8_snapshot",
757 "//v8:postmortem-metadata",
758 ]
759 }
dpranked62d8512015-03-02 03:06:03760}
761
tfarinacb2638b2015-05-12 03:24:15762if (!is_ios) {
763 # This group includes all of the targets needed to build and test Blink,
764 # including running the layout tests (see below).
765 group("blink_tests") {
766 testonly = true
767
768 deps = [
769 "//third_party/WebKit/public:all_blink",
770 ]
771
772 # NOTE: The following deps are needed to run the layout tests
773 # (run-webkit-tests) but there is no GN target for the layout tests,
774 # so we need to specify the dependencies here instead.
775 if (is_android) {
776 deps += [
777 "//breakpad:dump_syms($host_toolchain)",
778 "//breakpad:minidump_stackwalk($host_toolchain)",
779 "//content/shell/android:content_shell_apk",
ojan94989c72015-07-17 21:56:42780 "//tools/imagediff($host_toolchain)",
tfarinacb2638b2015-05-12 03:24:15781 ]
782 } else {
ojan94989c72015-07-17 21:56:42783 deps += [
784 "//content/shell:content_shell",
785 "//tools/imagediff",
786 ]
tfarinacb2638b2015-05-12 03:24:15787 }
788
789 if (is_win) {
790 deps += [
jochen73e711c2015-06-03 10:01:46791 "//components/test_runner:layout_test_helper",
tfarina795e01a2015-05-15 19:29:57792 "//content/shell:crash_service",
tfarinacb2638b2015-05-12 03:24:15793 ]
794 }
795
796 if (!is_win && !is_android) {
Gordana.Cmiljanovicf243e9a2015-05-26 22:14:47797 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
tfarinacb2638b2015-05-12 03:24:15798 }
799
800 if (is_mac) {
801 deps += [
802 "//breakpad:dump_syms($host_toolchain)",
jochen73e711c2015-06-03 10:01:46803 "//components/test_runner:layout_test_helper",
tfarinacb2638b2015-05-12 03:24:15804 ]
805 }
806
807 if (is_linux) {
808 deps += [ "//breakpad:dump_syms($host_toolchain)" ]
809 }
810 }
811}
812
dpranke6abd8652015-08-28 03:21:11813# Add a dummy target for compatibility w/ GYP
814group("chromium_swarm_tests") {
815}
816
dpranke2302dfa2015-09-29 02:21:52817group("chromium_builder_perf") {
818 testonly = true
819
820 # TODO(GYP): Make this target work on the mac.
821 if (!is_ios && !is_android && !is_chromecast && !is_mac) {
822 deps = [
823 "//cc:cc_perftests",
824 "//chrome",
825 "//chrome/test:load_library_perf_tests",
826 "//chrome/test:sync_performance_tests",
827 "//gpu:gpu_perftests",
828 "//media:media_perftests",
829 "//media/midi:midi_unittests",
830 "//tools/telemetry:bitmaptools",
831 ]
832
833 if (!is_chromeos) {
834 deps += [ "//chrome/test:performance_browser_tests" ]
835 }
836 if (is_linux && !is_chromeos) {
837 deps += [ "//chrome:linux_symbols" ]
838
839 if (!is_chromeos) {
840 deps += [ "//tools/perf/clear_system_cache" ]
841 }
842 }
843
844 if (is_win) {
845 deps += [
846 "//content/shell:crash_service",
847 # "//gpu:angle_perftests", TODO(GYP): crbug.com/537008
848 ]
849
850 if (target_cpu == "x86") {
851 deps += [
852 # "//content/shell:crash_service_win64", TODO(GYP): crbug.com/537009
853 ]
854 }
855 } else {
dprankeec10b3932015-10-02 17:58:23856 deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
dpranke2302dfa2015-09-29 02:21:52857 }
858 }
859}