[go: nahoru, domu]

blob: d1782a8b2b928ded9545764e30abe474cc8884dd [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")
dprankee2ef3822015-02-24 21:42:1815
cjhopmanca675d3e2014-10-24 03:50:4516if (is_android) {
17 import("//build/config/android/config.gni")
18}
tfarina@chromium.org378b4f02014-06-10 15:58:4519
brettwb84b2942014-10-22 22:58:4520declare_args() {
21 # A list of extra dependencies to add to the root target. This allows a
22 # checkout to add additional targets without explicitly changing any checked-
23 # in files.
24 root_extra_deps = []
25}
26
dpranked62d8512015-03-02 03:06:0327# The "gn_all" target should list every root target (target that
28# nothing else depends on) built by both GN and GYP. One should
29# be able to run 'ninja gn_all gn_only gn_groups' and then run
30# 'ninja' a second time and have the second ninja invocation do nothing.
31#
32# In addition, the "gn_all" target serves to pull in all of the other
33# build files needed for the build.
34#
35# TODO(GYP): make sure that the above is true and there are scripts run
36# on the bots that enforce this.
dprankeff30e3d2015-02-24 06:52:3937
dprankee2ef3822015-02-24 21:42:1838group("gn_all") {
39 testonly = true
40
41 deps = [
42 "//base:base_unittests",
43 "//cc:cc_unittests",
44 "//chrome",
45 "//chrome/test:browser_tests",
46 "//chrome/test:interactive_ui_tests",
47 "//chrome/test:sync_integration_tests",
48 "//chrome/test:unit_tests",
brettw922d3aa2015-02-27 22:15:4649 "//chrome/test/chromedriver:chromedriver_unittests",
dprankef6ca89c52015-03-30 22:01:3850 "//components:components_browsertests",
dprankee2ef3822015-02-24 21:42:1851 "//components:components_unittests",
52 "//content/shell:content_shell",
53 "//content/test:content_browsertests",
54 "//content/test:content_perftests",
55 "//content/test:content_unittests",
56 "//crypto:crypto_unittests",
scheibcfdca0e2015-04-01 05:27:5857 "//device:device_unittests",
dprankee2ef3822015-02-24 21:42:1858 "//extensions:extensions_browsertests",
59 "//extensions:extensions_unittests",
60 "//google_apis/gcm:gcm_unit_tests",
61 "//gpu:gpu_unittests",
62 "//ipc:ipc_tests",
63 "//ipc/mojo:ipc_mojo_unittests",
64 "//jingle:jingle_unittests",
beneabf815b2015-04-20 19:11:5865 "//mandoline:mandoline_all",
dprankee2ef3822015-02-24 21:42:1866 "//media:media_unittests",
dprankee2ef3822015-02-24 21:42:1867 "//media/cast:cast_unittests",
68 "//mojo",
dprankec09ccaa2015-03-27 22:00:3869 "//mojo/application",
dprankee2ef3822015-02-24 21:42:1870 "//mojo/common:mojo_common_unittests",
rockot9c67e5f2015-03-12 20:01:2171 "//net:hpack_example_generator",
72 "//net:hpack_fuzz_mutator",
73 "//net:hpack_fuzz_wrapper",
74 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:1875 "//net:net_unittests",
brettw31f4de692015-03-04 17:24:4576 "//ppapi:ppapi_unittests",
tfarina79ef072d2015-04-04 20:16:5777 "//ppapi/examples/2d",
78 "//ppapi/examples/audio",
79 "//ppapi/examples/audio_input",
80 "//ppapi/examples/compositor",
81 "//ppapi/examples/crxfs",
82 "//ppapi/examples/enumerate_devices",
83 "//ppapi/examples/file_chooser",
84 "//ppapi/examples/flash_topmost",
85 "//ppapi/examples/font",
86 "//ppapi/examples/gamepad",
87 "//ppapi/examples/gles2",
88 "//ppapi/examples/gles2_spinning_cube",
89 "//ppapi/examples/ime",
90 "//ppapi/examples/input",
91 "//ppapi/examples/media_stream_audio",
92 "//ppapi/examples/media_stream_video",
93 "//ppapi/examples/mouse_cursor",
94 "//ppapi/examples/mouse_lock",
95 "//ppapi/examples/printing",
96 "//ppapi/examples/scaling",
97 "//ppapi/examples/scripting",
98 "//ppapi/examples/stub",
99 "//ppapi/examples/threading",
100 "//ppapi/examples/url_loader",
101 "//ppapi/examples/video_capture",
102 "//ppapi/examples/video_decode",
103 "//ppapi/examples/video_effects",
104 "//ppapi/examples/video_encode",
dprankee2ef3822015-02-24 21:42:18105 "//printing:printing_unittests",
106 "//skia:skia_unittests",
107 "//sql:sql_unittests",
108 "//sync:sync_unit_tests",
dpranked62d8512015-03-02 03:06:03109 "//third_party/WebKit/public:blink_tests",
dprankee2ef3822015-02-24 21:42:18110 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
dprankee2ef3822015-02-24 21:42:18111 "//third_party/codesighs",
dprankee2ef3822015-02-24 21:42:18112 "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",
113 "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",
114 "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",
115 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",
116 "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
117 "//third_party/pdfium/samples:pdfium_test",
dprankee2ef3822015-02-24 21:42:18118 "//third_party/smhasher:pmurhash",
dprankee2ef3822015-02-24 21:42:18119 "//tools/imagediff($host_toolchain)",
120 "//tools/gn",
121 "//tools/gn:gn_unittests",
dprankefd1813272015-04-13 23:56:00122 "//tools/gn:generate_test_gn_data",
dprankee2ef3822015-02-24 21:42:18123 "//tools/telemetry:bitmaptools($host_toolchain)",
124 "//ui/accessibility:accessibility_unittests",
125 "//ui/app_list:app_list_unittests",
126 "//ui/base:ui_base_unittests",
127 "//ui/display:display_unittests",
128 "//ui/events:events_unittests",
129 "//ui/gfx:gfx_unittests",
130 "//ui/touch_selection:ui_touch_selection_unittests",
131 "//url:url_unittests",
132 ]
133
scottmg34fb7e52014-12-03 23:27:24134 deps += root_extra_deps
brettw@chromium.orgfce5c3fe2014-04-10 21:13:05135
dpranke021d4c92015-02-24 02:08:25136 if (enable_extensions && !is_mac) {
dprankefd1813272015-04-13 23:56:00137 # TODO(GYP): Get this working on the mac?
rockot2f1326e2015-02-23 23:53:51138 deps += [ "//extensions/shell:app_shell_unittests" ]
dprankefd1813272015-04-13 23:56:00139 }
140
dprankefd1813272015-04-13 23:56:00141 if (enable_media_router) {
142 deps += [
143 "//chrome/browser/media/router/",
144 "//chrome/browser/media/router:unit_tests",
145 ]
rockot2f1326e2015-02-23 23:53:51146 }
147
garykac3eddb5b2015-04-17 23:16:38148 if (enable_remoting) {
149 deps += [ "//remoting:remoting_all" ]
James Robinson060f2e32014-09-10 22:31:37150 }
151
dprankee2ef3822015-02-24 21:42:18152 if (toolkit_views) {
153 deps += [ "//ui/views:views_unittests" ]
brettw@chromium.org6b9028ab2014-07-23 17:15:38154 }
155
dprankee2ef3822015-02-24 21:42:18156 if (use_aura) {
157 deps += [ "//ui/wm:wm_unittests" ]
158 }
159
160 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47161 deps += [ "//ui/ozone" ]
tfarina@chromium.orga306aaa2014-05-24 13:21:50162 }
163
dprankefd1813272015-04-13 23:56:00164 if (use_x11) {
165 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22166 }
167
tmoniuszkoe5578b922015-04-14 09:38:03168 if (enable_configuration_policy) {
169 deps += [ "//components/policy:policy_templates" ]
170 }
171
dprankefd1813272015-04-13 23:56:00172 if (v8_use_external_startup_data) {
173 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
brettw@chromium.org137dff6d2014-06-12 19:35:55174 }
175
dpranke@chromium.org5a8d5162014-04-12 01:19:16176 if (is_android) {
cjhopman@chromium.org26046b52014-07-16 00:11:03177 deps += [
cjhopman31511332014-10-23 01:05:02178 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38179 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02180 "//build/android/rezip",
hiroshigee6d374c2015-02-24 07:54:06181 "//chrome/android:chrome_shell_apk",
hiroshigee6d374c2015-02-24 07:54:06182 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
dprankee2ef3822015-02-24 21:42:18183 "//tools/imagediff($host_toolchain)",
184
185 # TODO(GYP): Remove these when the components_unittests work.
186 "//components/history/core/test:test",
187 "//components/policy:policy_component_test_support",
188 "//components/policy:test_support",
189 "//components/rappor:test_support",
190 "//components/signin/core/browser:test_support",
191 "//components/sync_driver:test_support",
192 "//components/user_manager",
193 "//components/wallpaper",
194 "//content/shell/android:content_shell_apk",
195
196 # TODO(GYP): Are these needed, or will they be pulled in automatically?
cjhopman@chromium.org684b2292014-08-22 19:12:39197 "//third_party/android_tools:android_gcm_java",
198 "//third_party/android_tools:uiautomator_java",
199 "//third_party/android_tools:android_support_v13_java",
200 "//third_party/android_tools:android_support_v7_appcompat_java",
201 "//third_party/android_tools:android_support_v7_mediarouter_java",
dprankee2ef3822015-02-24 21:42:18202 "//third_party/mesa",
mikecase85e83ed2014-12-08 19:18:29203 "//third_party/mockito:mockito_java",
dprankee2ef3822015-02-24 21:42:18204 "//third_party/openmax_dl/dl",
205 "//third_party/speex",
206 "//ui/android:ui_java",
207
208 # TODO(GYP): Are these needed?
209 "//chrome/test:test_support_unit",
210 "//third_party/smhasher:murmurhash3",
211 "//ui/message_center:test_support",
212 ]
213 deps -= [
dprankee2ef3822015-02-24 21:42:18214 "//chrome", # TODO(GYP) ??
215 "//chrome/test:browser_tests", # TODO(GYP) ??
216 "//chrome/test:interactive_ui_tests", # TODO(GYP) ??
217 "//chrome/test:sync_integration_tests", # TODO(GYP) ??
218 "//chrome/test:unit_tests", # TODO(GYP)
brettw922d3aa2015-02-27 22:15:46219
220 # Chromedriver shouldn't be compiled on Android.
221 "//chrome/test/chromedriver:chromedriver_unittests",
dprankee2ef3822015-02-24 21:42:18222 "//extensions:extensions_browsertests",
223 "//extensions:extensions_unittests",
224 "//google_apis/gcm:gcm_unit_tests",
225 "//ipc:ipc_tests", # TODO(GYP) ??
226 "//jingle:jingle_unittests", # TODO(GYP) ??
rockot9c67e5f2015-03-12 20:01:21227 "//net:hpack_example_generator",
228 "//net:hpack_fuzz_mutator",
229 "//net:hpack_fuzz_wrapper",
230 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18231 "//net:net_unittests",
tfarina79ef072d2015-04-04 20:16:57232 "//ppapi/examples/2d",
233 "//ppapi/examples/audio",
234 "//ppapi/examples/audio_input",
235 "//ppapi/examples/compositor",
236 "//ppapi/examples/crxfs",
237 "//ppapi/examples/enumerate_devices",
238 "//ppapi/examples/file_chooser",
239 "//ppapi/examples/flash_topmost",
240 "//ppapi/examples/font",
241 "//ppapi/examples/gamepad",
242 "//ppapi/examples/gles2",
243 "//ppapi/examples/gles2_spinning_cube",
244 "//ppapi/examples/ime",
245 "//ppapi/examples/input",
246 "//ppapi/examples/media_stream_audio",
247 "//ppapi/examples/media_stream_video",
248 "//ppapi/examples/mouse_cursor",
249 "//ppapi/examples/mouse_lock",
250 "//ppapi/examples/printing",
251 "//ppapi/examples/scaling",
252 "//ppapi/examples/scripting",
253 "//ppapi/examples/stub",
254 "//ppapi/examples/threading",
255 "//ppapi/examples/url_loader",
256 "//ppapi/examples/video_capture",
257 "//ppapi/examples/video_decode",
258 "//ppapi/examples/video_effects",
259 "//ppapi/examples/video_encode",
dprankee2ef3822015-02-24 21:42:18260 "//third_party/pdfium/samples:pdfium_test",
261 "//tools/gn",
dprankefd1813272015-04-13 23:56:00262 "//tools/gn:generate_test_gn_data",
dprankee2ef3822015-02-24 21:42:18263 "//tools/gn:gn_unittests",
264 "//ui/app_list:app_list_unittests",
265 "//url:url_unittests",
cjhopman@chromium.org26046b52014-07-16 00:11:03266 ]
267
cjhopmanca675d3e2014-10-24 03:50:45268 if (has_chrome_android_internal) {
dprankee2ef3822015-02-24 21:42:18269 deps += [ "//clank" ] # TODO(GYP) ??
cjhopmanca675d3e2014-10-24 03:50:45270 }
dprankefd1813272015-04-13 23:56:00271 }
272
273 if (is_linux) { # TODO(GYP): || is_android || is_bsd?
274 deps += [
275 "//breakpad:core-2-minidump",
276 "//breakpad:minidump-2-core",
277 ]
278 }
279
dpranke6293d252015-04-14 19:12:00280 if (is_chromeos) {
281 deps += [
282 "//chromeos:chromeos_unittests",
283 "//ui/chromeos:ui_chromeos_unittests",
284 ]
285 }
286
dprankefd1813272015-04-13 23:56:00287 if (is_chromeos || is_mac || is_win) {
288 deps += [
289 "//rlz:rlz_id",
290 "//rlz:rlz_lib",
291 "//rlz:rlz_unittests",
292 ]
dprankedb5527d72015-03-08 04:22:47293 }
294
295 if (is_linux) {
296 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06297 deps += [
dprankedb5527d72015-03-08 04:22:47298 "//breakpad:breakpad_unittests",
dprankedb5527d72015-03-08 04:22:47299 "//breakpad:generate_test_dump",
dprankedb5527d72015-03-08 04:22:47300 "//dbus:dbus_test_server",
dprankee2ef3822015-02-24 21:42:18301 "//dbus:dbus_unittests",
dprankedb5527d72015-03-08 04:22:47302 "//net:disk_cache_memory_test",
303 "//net:flip_in_mem_edsm_server",
304 "//net:flip_in_mem_edsm_server_unittests",
305 "//net:quic_client",
306 "//net:quic_server",
307 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18308 "//sandbox/linux:sandbox_linux_unittests",
dprankedb5527d72015-03-08 04:22:47309 "//sandbox/linux:sandbox_linux_jni_unittests",
hiroshigee6d374c2015-02-24 07:54:06310 ]
dnicoara8c6aa8e2015-03-11 23:20:32311
312 if (is_chromeos || use_ash) {
313 deps += [ "//components/session_manager/core" ]
314 }
dprankedb5527d72015-03-08 04:22:47315 }
316
dprankefd1813272015-04-13 23:56:00317 if (is_win || (is_linux && !is_chromeos)) {
318 # TODO(GYP): Figure out which of these should (and can) build
319 # for android/chromeos/mac/ios.
tfarina9e7cf702015-02-23 21:13:44320 deps += [
dprankedb5527d72015-03-08 04:22:47321 "//base:base_perftests",
322 "//base:base_i18n_perftests",
323 "//base:check_example",
324 "//base:protect_file_posix",
325 "//base:build_utf8_validator_tables",
dprankedb5527d72015-03-08 04:22:47326 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00327 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47328 "//chrome/test:load_library_perf_tests",
dpranke76f48222015-04-01 00:00:00329 "//chrome/test:performance_browser_tests",
dprankedb5527d72015-03-08 04:22:47330 "//chrome/test:sync_performance_tests",
331 "//chrome/test/chromedriver:chromedriver",
332 "//chrome/test/chromedriver:chromedriver_tests",
333 "//chrome/tools/profile_reset:jtl_compiler",
334 "//components:components_perftests",
dprankedb5527d72015-03-08 04:22:47335 "//content/test:content_gl_tests",
336 "//content/test:content_gl_benchmark",
337 "//courgette:courgette",
338 "//courgette:courgette_fuzz",
339 "//courgette:courgette_minimal_tool",
340 "//courgette:courgette_unittests",
341 "//device:device_unittests",
342 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47343 "//gin:gin_unittests",
344 "//google_apis:google_apis_unittests",
345 "//google_apis/gcm:mcs_probe",
346 "//gpu:angle_unittests",
dprankedb5527d72015-03-08 04:22:47347 "//gpu:gpu_perftests",
dprankefd1813272015-04-13 23:56:00348 "//gpu:gl_tests",
dprankedb5527d72015-03-08 04:22:47349 "//ipc:ipc_perftests",
350 "//media:ffmpeg_regression_tests", # TODO(GYP) this should be conditional on media_use_ffmpeg
351 "//media:media_perftests",
dprankedb5527d72015-03-08 04:22:47352 "//media/cast:generate_barcode_video",
353 "//media/cast:generate_timecode_audio",
dprankedb5527d72015-03-08 04:22:47354 "//net:crash_cache",
355 "//net:crl_set_dump",
356 "//net:dns_fuzz_stub",
dprankefd1813272015-04-13 23:56:00357 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47358 "//net:gdig",
359 "//net:get_server_time",
dprankedb5527d72015-03-08 04:22:47360 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
dprankefd1813272015-04-13 23:56:00361 "//net:run_testserver",
dprankedb5527d72015-03-08 04:22:47362 "//net:stress_cache",
363 "//net:tld_cleanup",
dprankec09ccaa2015-03-27 22:00:38364 "//ppapi:pepper_hash_for_uma",
dprankefd1813272015-04-13 23:56:00365 "//ppapi:ppapi_perftests",
dprankedb5527d72015-03-08 04:22:47366 "//sync:run_sync_testserver",
367 "//sync:sync_endtoend_tests",
dprankedb5527d72015-03-08 04:22:47368 "//third_party/codesighs:maptsvdifftool",
dprankedb5527d72015-03-08 04:22:47369 "//third_party/leveldatabase:env_chromium_unittests",
370 "//third_party/libaddressinput:libaddressinput_unittests",
dprankefd1813272015-04-13 23:56:00371 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47372 "//ui/compositor:compositor_unittests",
373 ]
374
375 if (enable_extensions) {
376 deps += [ "//extensions/shell:app_shell" ]
377 }
378
379 if (enable_nacl) {
dprankefd1813272015-04-13 23:56:00380 deps += [ "//components/nacl:nacl_loader_unittests" ]
dprankedb5527d72015-03-08 04:22:47381 }
382
dprankefd1813272015-04-13 23:56:00383 if (enable_nacl && enable_remoting) {
384 deps += [ "//remoting:remoting_key_tester" ]
dprankedb5527d72015-03-08 04:22:47385 }
386
387 if (use_ash) {
388 deps += [
389 "//ash:ash_shell",
390 "//ash:ash_shell_unittests",
391 "//ash:ash_unittests",
392 ]
393 }
394
395 if (use_aura) {
396 deps += [
397 "//ui/aura:aura_unittests",
398 "//ui/aura:bench",
399 "//ui/aura:demo",
400 ]
401 }
dprankefd1813272015-04-13 23:56:00402 }
403
404 if (is_linux && !is_chromeos) {
405 deps += [
406 # TODO(GYP): Figure out which of these should (and can) build
407 # under which other conditions.
408 "//build/sanitizers:copy_llvm_symbolizer",
409 "//chrome/test:chrome_app_unittests",
410 "//cloud_print:cloud_print_unittests",
411 "//components/network_hints/browser",
412 "//components/webui_generator",
413 "//content/public/app:browser",
414 "//content/public/app:child",
415
416 # TODO(GYP): Remove this when the gles2 tests work
417 "//gpu/command_buffer/client:gles2_implementation_no_check",
418
419 "//gpu/khronos_glcts_support:khronos_glcts_test", # TODO(GYP) crbug.com/471903 to make this complete.
420 "//media/cast:cast_benchmarks",
421 "//media/cast:tap_proxy",
422 "//mojo/application",
423 "//skia:filter_fuzz_stub",
424 "//skia:image_operations_bench",
425 "//sync/tools:sync_client",
426 "//sync/tools:sync_listen_notifications",
427 "//testing/gmock:gmock_main",
428 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests",
429 "//tools/perf/clear_system_cache",
430 "//ui/keyboard:keyboard_unittests",
431 "//ui/message_center:message_center_unittests",
432 "//ui/snapshot:snapshot_unittests",
433 "//ui/views/examples:views_examples_with_content_exe",
434
435 # "//v8:v8_snapshot", # TODO(GYP): visibility?
436 # "//v8:postmortem-metadata", # TODO(GYP): visibility?
437
438 "//third_party/codesighs:nm2tsv",
439 "//third_party/sqlite:sqlite_shell",
440 ]
441
442 if (current_toolchain == host_toolchain) {
443 # Do not build the breakpad utilities in cross-compiles.
444 deps += [
445 "//breakpad:dump_syms",
446 "//breakpad:microdump_stackwalk",
447 "//breakpad:minidump_dump",
448 "//breakpad:minidump_stackwalk",
449 ]
450 }
451
452 if (!is_debug && !is_component_build) {
453 deps += [ "//chrome/tools/service_discovery_sniffer" ]
454 }
455
456 if (toolkit_views) {
457 deps += [ "//ui/app_list:app_list_demo" ]
458 }
dprankedb5527d72015-03-08 04:22:47459
460 if (use_x11) {
wtc6e2e29c2015-03-13 01:09:44461 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59462 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44463 }
dprankedb5527d72015-03-08 04:22:47464 }
465 }
466
467 if (is_mac) {
468 deps += [
469 "//breakpad:crash_inspector",
470 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44471 "//third_party/apple_sample_code",
472 "//third_party/molokocacao",
473 ]
474
dprankee2ef3822015-02-24 21:42:18475 # TODO(GYP): Remove these when the targets below work and these
476 # are pulled in automatically.
477 deps += [
478 "//cc/blink",
479 "//components/ui/zoom:ui_zoom",
480 "//content",
481 "//content/test:test_support",
482 "//device/battery",
483 "//device/bluetooth",
484 "//device/nfc",
485 "//device/usb",
486 "//device/vibration",
487 "//media/blink",
488 "//pdf",
489 "//storage/browser",
490 "//third_party/brotli",
491 "//third_party/flac",
492 "//third_party/hunspell",
493 "//third_party/iccjpeg",
494 "//third_party/libphonenumber",
495 "//third_party/ots",
496 "//third_party/qcms",
497 "//third_party/smhasher:murmurhash3",
498 "//third_party/speex",
499 "//third_party/webrtc/system_wrappers",
500 "//ui/native_theme",
501 "//ui/snapshot",
502 "//ui/surface",
503 ]
504
dprankecf8465db72014-11-10 23:51:22505 # TODO(dpranke): These are as-yet untriaged but need at least the above.
dpranke43760592014-11-08 02:59:57506 deps -= [
dprankee2ef3822015-02-24 21:42:18507 "//chrome", # TODO(GYP)
508 "//chrome/test:browser_tests", # TODO(GYP)
509 "//chrome/test:interactive_ui_tests", # TODO(GYP)
510 "//chrome/test:sync_integration_tests", # TODO(GYP)
511 "//chrome/test:unit_tests", # TODO(GYP)
dprankef6ca89c52015-03-30 22:01:38512 "//components:components_browsertests", # TODO(GYP)
dprankee2ef3822015-02-24 21:42:18513 "//components:components_unittests", # TODO(GYP)
514 "//content/test:content_browsertests", # TODO(GYP)
515 "//content/test:content_perftests", # TODO(GYP)
516 "//content/test:content_unittests", # TODO(GYP)
517 "//extensions:extensions_browsertests", # TODO(GYP)
518 "//extensions:extensions_unittests", # TODO(GYP)
519 "//net:net_unittests", # TODO(GYP)
dprankee2ef3822015-02-24 21:42:18520 "//ui/app_list:app_list_unittests", # TODO(GYP)
521 "//ui/gfx:gfx_unittests", # TODO(GYP)
mohsen29fd4052014-12-08 21:06:46522 ]
dprankefd1813272015-04-13 23:56:00523 }
524
525 if (is_win) {
526 deps += [
527 "//base:pe_image_test",
528 "//chrome_elf:chrome_elf_unittests",
529 "//chrome_elf:dll_hash_main",
530
531 # "//components/crash/tools:crash_service", TODO(GYP) - doesn't fully build yet.
532 "//components/wifi:wifi_test",
533 "//net:quic_client",
534 "//net:quic_server",
535 "//sandbox/win:pocdll",
536 "//sandbox/win:sandbox_poc",
537 "//sandbox/win:sbox_integration_tests",
538 "//sandbox/win:sbox_unittests",
539 "//sandbox/win:sbox_validation_tests",
540 "//testing/gtest:gtest_main",
541 "//third_party/codesighs:msmap2tsv",
542 "//third_party/pdfium/samples:pdfium_diff",
543 "//ui/metro_viewer",
544 ]
dprankee2ef3822015-02-24 21:42:18545 deps -= [
546 "//crypto:crypto_unittests", # TODO(GYP)
547 "//net:net_unittests", # TODO(GYP)
548 ]
dpranke6293d252015-04-14 19:12:00549 } else if (!is_android) {
550 deps += [ "//breakpad:symupload" ]
mohsenf837da7c2014-12-09 19:01:34551 }
dpranke18e57432015-02-27 21:46:47552}
553
dpranked62d8512015-03-02 03:06:03554group("gn_only") {
dprankedb5527d72015-03-08 04:22:47555 testonly = true
556
isherman0f89b43eb2015-04-11 00:02:45557 deps = []
558
559 if (!is_android && !is_ios) {
560 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
561 }
562
dprankedb5527d72015-03-08 04:22:47563 if (is_linux && !is_chromeos) {
564 # TODO(GYP): Figure out if any of these should be in gn_all
565 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45566 deps += [
dprankedb5527d72015-03-08 04:22:47567 ":gn_mojo_targets",
568 "//chrome/browser/resources:extension_resource_demo",
569 "//chrome/installer/util:strings",
570 "//chrome:main_dll",
571 "//chrome/test:load_library_perf_tests",
572 "//chrome/tools/convert_dict",
573 "//components/constrained_window:unit_tests",
574 "//components/enhanced_bookmarks:test_support",
dprankedb5527d72015-03-08 04:22:47575 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45576 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47577 "//components/rappor:unit_tests",
578 "//components/sessions:unit_tests",
579 "//media/blink:media_blink_unittests",
580 "//media/base:base_for_cast_ios",
581 "//media/cast:udp_proxy",
582 "//native_client/src/trusted/platform_qualify:vcpuid",
583 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
584 "//storage/browser:dump_file_system",
585 "//third_party/angle:libANGLE",
586 "//third_party/angle:libEGL",
587 "//third_party/angle:libGLESv2",
588 "//third_party/cld_2:cld_2_dynamic_data_tool",
589 "//third_party/leveldatabase:leveldb_arena_test",
590 "//third_party/leveldatabase:leveldb_bloom_test",
591 "//third_party/leveldatabase:leveldb_db_test",
592 "//third_party/leveldatabase:leveldb_crc32c_test",
593 "//third_party/leveldatabase:leveldb_cache_test",
594 "//third_party/leveldatabase:leveldb_env_test",
595 "//third_party/leveldatabase:leveldb_write_batch_test",
596 "//third_party/leveldatabase:leveldb_filter_block_test",
597 "//third_party/leveldatabase:leveldb_version_edit_test",
598 "//third_party/leveldatabase:leveldb_db_bench",
599 "//third_party/leveldatabase:leveldb_log_test",
600 "//third_party/leveldatabase:leveldb_corruption_test",
601 "//third_party/leveldatabase:leveldb_table_test",
602 "//third_party/leveldatabase:leveldb_skiplist_test",
603 "//third_party/leveldatabase:leveldb_filename_test",
604 "//third_party/leveldatabase:leveldb_dbformat_test",
605 "//third_party/pdfium/third_party:freetype",
606 "//third_party/libjingle:peerconnnection_server",
607 "//third_party/libjpeg_turbo:simd",
608 "//third_party/libjpeg_turbo:simd_asm",
609 "//third_party/libsrtp:replay_driver",
610 "//third_party/libsrtp:roc_driver",
611 "//third_party/libsrtp:rtpw",
612 "//third_party/libsrtp:rdbx_driver",
613 "//third_party/libsrtp:srtp_driver",
614 "//third_party/libsrtp:srtp_driver",
615 "//third_party/libsrtp:srtp_test_kernel_driver",
616 "//third_party/libsrtp:srtp_test_cipher_driver",
617 "//third_party/libsrtp:srtp_test_datatypes_driver",
618 "//third_party/libsrtp:srtp_test_aes_calc",
619 "//third_party/libsrtp:srtp_test_env",
620 "//third_party/libsrtp:srtp_test_rand_gen",
621 "//third_party/libsrtp:srtp_test_sha1_driver",
622 "//third_party/libsrtp:srtp_test_stat_driver",
623 "//third_party/opus:opus_compare",
624 "//third_party/opus:opus_demo",
625 "//third_party/opus:test_opus_decode",
626 "//third_party/opus:test_opus_encode",
627 "//third_party/opus:test_opus_api",
628 "//third_party/opus:test_opus_padding",
629 "//third_party/webrtc/system_wrappers:field_trial_default",
630 "//third_party/webrtc/system_wrappers:metrics_default",
631 "//ui/display/types",
632 "//ui/shell_dialogs:shell_dialogs_unittests",
633 "//ui/views/examples:views_examples_exe",
dprankedb5527d72015-03-08 04:22:47634 ]
635 if (enable_nacl) {
636 deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ]
637 }
638 if (use_ozone) {
639 deps += [ "//ui/ozone/demo" ]
640 }
641 if (is_android) {
642 deps += [ "//build/android/gyp/test:hello_world" ]
643 }
dpranke807f6022015-03-17 23:20:56644
645 if (is_linux && current_toolchain == host_toolchain) {
646 deps += [ "//v8:d8" ]
647 }
dprankedb5527d72015-03-08 04:22:47648 }
649}
650
651group("gn_mojo_targets") {
652 testonly = true
653 if (is_linux && !is_chromeos) {
654 # TODO(GYP): Figure out if any of these should be in gn_all
655 # and figure out how cross-platform they are
656 deps = [
657 "//chrome/browser/ui/webui/omnibox:mojo_bindings_python",
skyd866af32015-04-23 16:20:09658 "//components/window_manager/public/interfaces:interfaces_python",
dprankedb5527d72015-03-08 04:22:47659 "//content/public/common:mojo_bindings_python",
dprankedb5527d72015-03-08 04:22:47660 "//content/common:mojo_bindings_python",
dprankedb5527d72015-03-08 04:22:47661 "//content/test:web_ui_test_mojo_bindings_python",
662 "//device/battery:mojo_bindings_python",
dprankedb5527d72015-03-08 04:22:47663 "//device/vibration:mojo_bindings_python",
664 "//ipc/mojo:ipc_mojo_perftests",
dprankedb5527d72015-03-08 04:22:47665 "//ipc/mojo:client_channel_python",
dprankedb5527d72015-03-08 04:22:47666 "//media/mojo/interfaces:interfaces_python",
667 "//media/mojo/services:cdm_service",
668 "//media/mojo:tests",
mswdd1f7db2015-04-18 00:14:34669 "//mojo/services:apptests",
670 "//mojo/services:tests",
dprankedb5527d72015-03-08 04:22:47671 "//net/interfaces:interfaces_python",
672 "//third_party/mojo/src/mojo/edk/js/test:js_integration_tests",
dprankedb5527d72015-03-08 04:22:47673 "//third_party/mojo/src/mojo/edk/js/tests:js_to_cpp_bindings_python",
674 "//third_party/mojo/src/mojo/public/python:packaged_application",
675 "//third_party/mojo/src/mojo/public/python:packaged_bindings",
676 "//third_party/mojo/src/mojo/public/cpp/application:test_support_standalone",
dprankedb5527d72015-03-08 04:22:47677 "//third_party/mojo_services/src/accessibility/public/interfaces:interfaces_python",
dprankedb5527d72015-03-08 04:22:47678 ]
dprankedb5527d72015-03-08 04:22:47679 }
680}
681
682group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03683 deps = [
dprankedb5527d72015-03-08 04:22:47684 # "//build/config/sanitizers:options_sources",
685 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
686 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
687 # "//ui/resources:repack_ui_test_mac_locale_pack",
688 # "//v8:v8_snapshot", # TODO(GYP): visibility?
689 # "//v8:postmortem-metadata", # TODO(GYP): visibility?
dpranked62d8512015-03-02 03:06:03690 ]
691}
692
brettw533c50422015-02-26 17:49:16693if (is_linux) {
694 # This group corresponds to the list of tests run on the waterfall for
695 # desktop Linux GYP builds from testing/buildbot/chromium.linux.json. It's
696 # here to help track GYP -> GN conversion progress.
697 group("linux_default_tests") {
698 testonly = true
699 deps = [
brettw533c50422015-02-26 17:49:16700 "//base:base_unittests", # PASSES (*) 2/25/2015
701 "//cc:cc_unittests", # PASSES 2/25/2015
702 "//chrome/test:browser_tests",
703 "//chrome/test:interactive_ui_tests",
brettw922d3aa2015-02-27 22:15:46704 "//chrome/test:sync_integration_tests", # Crashes for brettw in GN and GYP.
brettw533c50422015-02-26 17:49:16705 "//chrome/test:unit_tests", # PASSES 2/25/2015
brettw922d3aa2015-02-27 22:15:46706 "//chrome/test/chromedriver:chromedriver_unittests", # PASSES 2/25/2015
brettw690c96672015-04-21 16:19:54707 "//components:components_browsertests", # PASSES 4/17/2015
brettw77b58722015-02-27 23:35:06708 "//components:components_unittests", # PASSES 2/27/2015
brettw533c50422015-02-26 17:49:16709 "//content/test:content_browsertests",
710 "//content/test:content_unittests", # PASSES 2/25/2015
711 "//crypto:crypto_unittests", # PASSES 2/25/2015
712 "//dbus:dbus_unittests", # PASSES 2/25/2015
tfarina466754f2015-03-09 23:39:29713 "//device:device_unittests", # PASSES 3/07/2015
brettw533c50422015-02-26 17:49:16714 "//extensions:extensions_browsertests", # PASSES 2/25/2015
715 "//extensions:extensions_unittests", # PASSES 2/25/2015
716 "//extensions/shell:app_shell_unittests", # PASSES 2/25/2015
717 "//google_apis/gcm:gcm_unit_tests", # PASSES 2/25/2015
718 "//google_apis:google_apis_unittests", # PASSES 2/25/2015
719 "//gpu:gpu_unittests", # PASSES 2/25/2015
720 "//ipc:ipc_tests", # PASSES 2/25/2015
721 "//ipc/mojo:ipc_mojo_unittests", # PASSES 2/25/2015
722 "//jingle:jingle_unittests", # PASSES 2/25/2015
toyoshim31624ca2015-04-22 08:50:20723 "//media/cast:cast_unittests", # PASSES 2/25/2015
aboxhall60006f22015-04-22 18:27:55724 "//media:media_unittests", # PASSES 3/3/2015
brettw533c50422015-02-26 17:49:16725 "//mojo/common:mojo_common_unittests", # PASSES 2/25/2015
726 "//net:net_unittests", # PASSES 2/25/2015
brettw31f4de692015-03-04 17:24:45727 "//ppapi:ppapi_unittests", # PASSES 2/26/2015
brettw533c50422015-02-26 17:49:16728 "//printing:printing_unittests", # PASSES 2/25/2015
brettwfc2f1362015-04-17 19:00:02729 "//remoting:remoting_unittests", # PASSES 4/17/2015
brettw533c50422015-02-26 17:49:16730 "//sandbox/linux:sandbox_linux_unittests", # PASSES 2/25/2015
731 "//skia:skia_unittests", # PASSES 2/25/2015
732 "//sql:sql_unittests", # PASSES 2/25/2015
733 "//sync:sync_unit_tests", # PASSES 2/25/2015
734 "//third_party/cacheinvalidation:cacheinvalidation_unittests", # PASSES 2/25/2015
735 "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests", # PASSES 2/25/2015
736 "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests", # PASSES 2/25/2015
737 "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests", # PASSES 2/25/2015
738 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests", # PASSES 2/25/2015
brettw690c96672015-04-21 16:19:54739 "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
brettw533c50422015-02-26 17:49:16740 "//ui/accessibility:accessibility_unittests", # PASSES 2/25/2015
741 "//ui/app_list:app_list_unittests", # PASSES 2/25/2015
742 "//ui/aura:aura_unittests", # PASSES 2/25/2015
brettwfc2f1362015-04-17 19:00:02743 "//ui/base:ui_base_unittests", # PASSES 4/17/2015
brettw533c50422015-02-26 17:49:16744 "//ui/compositor:compositor_unittests", # PASSES 2/25/2015
745 "//ui/display:display_unittests", # PASSES 2/25/2015
746 "//ui/events:events_unittests", # PASSES 2/25/2015
747 "//ui/gfx:gfx_unittests", # PASSES 2/25/2015
748 "//ui/touch_selection:ui_touch_selection_unittests", # PASSES 2/25/2015
749 "//ui/views:views_unittests", # PASSES (*) 2/25/2015
750 "//ui/wm:wm_unittests", # PASSES 2/25/2015
751 "//url:url_unittests", # PASSES 2/25/2015
752
753 # Note:
754 # (*) Fails but failures match GYP build at time of testing.
755 ]
tfarina47830e32015-03-30 23:02:11756
757 if (enable_nacl) {
758 deps += [ "//components/nacl:nacl_loader_unittests" ] # PASSES 3/28/2015
759 }
brettw533c50422015-02-26 17:49:16760 }
brettw690c96672015-04-21 16:19:54761} else if (is_win) {
762 group("windows_default_tests") {
763 testonly = true
764 deps = [
765 "//ash:ash_unittests", # FAILS 4/20/2015
brettw9a19ddb2015-04-24 19:30:50766 "//base:base_unittests", # PASSES 4/20/2015
brettw690c96672015-04-21 16:19:54767 "//cc:cc_unittests", # PASSES 4/17/2015
768 "//chrome_elf:chrome_elf_unittests", # FAILS 4/20/2015
brettw2a647722015-04-24 21:51:42769 "//chrome/app_installer:app_installer_unittests",
brettw690c96672015-04-21 16:19:54770 "//chrome/test:browser_tests",
771 "//chrome/test:interactive_ui_tests",
772 "//chrome/test:sync_integration_tests", # Note: need to turn off incremental linking for debug.
773 "//chrome/test:unit_tests",
774 "//chrome/test/chromedriver:chromedriver_unittests", # PASSES 4/20/2015
775 "//components:components_browsertests",
776 "//components:components_unittests", # PASSES 4/17/2015
777 "//courgette:courgette_unittests", # PASSES 4/20/2015
778 "//content/test:content_browsertests",
779 "//content/test:content_unittests", # PASSES 4/17/2015
780 "//crypto:crypto_unittests", # PASSES 4/17/2015
781 "//device:device_unittests", # PASSES 4/17/2015
782 "//extensions:extensions_browsertests", # PASSES 4/17/2015
783 "//extensions:extensions_unittests", # PASSES 4/17/2015
784 "//extensions/shell:app_shell_unittests", # Doesn't compile in 64-bit
785 "//google_apis/gcm:gcm_unit_tests", # PASSES 4/17/2015
786 "//google_apis:google_apis_unittests", # PASSES 4/17/2015
787 "//gpu:gpu_unittests", # PASSES 4/17/2015
788 "//ipc:ipc_tests", # PASSES 4/17/2015
789 "//ipc/mojo:ipc_mojo_unittests", # PASSES 4/17/2015
790 "//jingle:jingle_unittests", # PASSES 4/17/2015
791 "//media/cast:cast_unittests", # PASSES 4/17/2015
792 "//media:media_unittests", # PASSES 4/17/2015
793 "//mojo/common:mojo_common_unittests", # PASSES 4/17/2015
794 "//net:net_unittests", # PASSES 4/17/2015
795 "//ppapi:ppapi_unittests", # PASSES 4/17/2015
796 "//printing:printing_unittests", # PASSES 4/17/2015
797 "//remoting:remoting_unittests", # PASSES 4/17/2015
798 "//sandbox/win:sbox_integration_tests", # PASSES 4/20/2015
799 "//sandbox/win:sbox_unittests", # PASSES 4/20/2015
800 "//sandbox/win:sbox_validation_tests", # PASSES 4/20/2015
801 "//skia:skia_unittests", # PASSES 4/17/2015
802 "//sql:sql_unittests", # PASSES 4/17/2015
803 "//sync:sync_unit_tests", # PASSES 4/20/2015
804 "//third_party/cacheinvalidation:cacheinvalidation_unittests", # PASSES 4/20/2015
805 "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests", # Seems to hang?
806 "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests", # FAILS
807 "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests", # PASSES 4/20/2015
808 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests", # PASSES 4/20/2015
809 "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests", # PASSES 4/20/2015
810 "//ui/accessibility:accessibility_unittests", # PASSES 4/20/2015
811 "//ui/app_list:app_list_unittests", # PASSES 4/20/2015
812 "//ui/aura:aura_unittests", # PASSES 4/17/2015
813 "//ui/base:ui_base_unittests", # PASSES 4/20/2015
814 "//ui/compositor:compositor_unittests", # PASSES 4/20/2015
815 "//ui/display:display_unittests", # PASSES 4/20/2015
816 "//ui/events:events_unittests", # PASSES 4/20/2015
817 "//ui/gfx:gfx_unittests", # PASSES (with assertion failure?) 4/20/2015
818 "//ui/message_center:message_center_unittests", # PASSES 4/20/2015
819 "//ui/touch_selection:ui_touch_selection_unittests", # PASSES 4/20/2015
brettw2a647722015-04-24 21:51:42820 "//ui/views:views_unittests", # TooltipControllerTest failures
821 "//ui/wm:wm_unittests", # PASSES 4/21/2015
brettw690c96672015-04-21 16:19:54822 "//url:url_unittests", # PASSES 4/17/2015
823
824 # TODO(GYP) installer_util_unittests
825 # TODO(GYP) app_installer_unittests
826 # TODO(GYP) nacl_integration
827 # TODO(GYP) telemetry_perf_unittests
828 # TODO(GYP) telemetry_unittests
829 ]
830 }
brettw533c50422015-02-26 17:49:16831}