Fix dcheck in message port code on Mandoline shutdown.
[chromium-blink-merge.git] / BUILD.gn
blob1cda6523dc00558d685fb18adbf291acb1360d17
1 # 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.
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.
11 import("//build/config/crypto.gni")
12 import("//build/config/features.gni")
13 import("//build/config/ui.gni")
14 import("//build/module_args/v8.gni")
16 if (is_android) {
17   import("//build/config/android/config.gni")
20 declare_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 = []
27 # This file defines the following four main targets:
29 # "both_gn_and_gyp" should list every root target (target that nothing else
30 # depends on) built by GN that is also built in the GYP build.
32 # "gn_all" should (transitively) cause everything to be built; if you run
33 # 'ninja gn_all' and then 'ninja all', the second build should do no work.
35 # "gn_only" should list every root target that is *not* intended to be built
36 # in a GYP build. Because GN has different rules for deciding what an 'all'
37 # build is, this may end up including targets that are actually defined in a
38 # GYP build but not dependencies of GYP's "all" (and so not actually built).
40 # "gn_visibility": targets that are normally not visible to top-level targets,
41 # but are built anyway by "all". Since we don't want any such targets, we
42 # have this placeholder to make sure hidden targets that aren't otherwise
43 # depended on yet are accounted for.
45 # TODO(GYP): crbug.com/481694. Make sure that the above is true and there are
46 # scripts run on the bots that enforce this. Once the GYP migration is over,
47 # we can collapse all of these targets as desired.
49 group("gn_all") {
50   testonly = true
52   deps = [
53     ":both_gn_and_gyp",
54     ":gn_only",
55     ":gn_visibility",
56   ]
59 # The "both_gn_and_gyp" target should reflect every target that is built
60 # in both the GN and GYP builds, and ideally it should match the
61 # "both_gn_and_gyp" target in build/gn_migration.gypi line-for-line.
63 # TODO(GYP): Add build steps that check and enforce this on the bots.
64 group("both_gn_and_gyp") {
65   testonly = true
66   deps = [
67     "//base:base_unittests",
68   ]
69   if (!is_ios) {
70     deps += [
71       "//cc:cc_unittests",
72       "//chrome",
73       "//chrome/test:browser_tests",
74       "//chrome/test:interactive_ui_tests",
75       "//chrome/test:sync_integration_tests",
76       "//chrome/test:unit_tests",
77       "//chrome/test/chromedriver:chromedriver_unittests",
78       "//components:components_browsertests",
79       "//components:components_unittests",
80       "//content/shell:content_shell",
81       "//content/test:content_browsertests",
82       "//content/test:content_perftests",
83       "//content/test:content_unittests",
84       "//crypto:crypto_unittests",
85       "//device:device_unittests",
86       "//extensions:extensions_browsertests",
87       "//extensions:extensions_unittests",
88       "//google_apis/gcm:gcm_unit_tests",
89       "//gpu:gpu_unittests",
90       "//ipc:ipc_tests",
91       "//ipc/mojo:ipc_mojo_unittests",
92       "//jingle:jingle_unittests",
93       "//media:media_unittests",
94       "//media/cast:cast_unittests",
95       "//media/midi:midi_unittests",
96       "//mojo",
97       "//mojo/application/public/cpp",
98       "//mojo/common:mojo_common_unittests",
99       "//net:hpack_example_generator",
100       "//net:hpack_fuzz_mutator",
101       "//net:hpack_fuzz_wrapper",
102       "//net:net_perftests",
103       "//net:net_unittests",
104       "//ppapi:ppapi_unittests",
105       "//ppapi/examples/2d",
106       "//ppapi/examples/audio",
107       "//ppapi/examples/audio_input",
108       "//ppapi/examples/compositor",
109       "//ppapi/examples/crxfs",
110       "//ppapi/examples/enumerate_devices",
111       "//ppapi/examples/file_chooser",
112       "//ppapi/examples/flash_topmost",
113       "//ppapi/examples/font",
114       "//ppapi/examples/gamepad",
115       "//ppapi/examples/gles2",
116       "//ppapi/examples/gles2_spinning_cube",
117       "//ppapi/examples/ime",
118       "//ppapi/examples/input",
119       "//ppapi/examples/media_stream_audio",
120       "//ppapi/examples/media_stream_video",
121       "//ppapi/examples/mouse_cursor",
122       "//ppapi/examples/mouse_lock",
123       "//ppapi/examples/printing",
124       "//ppapi/examples/scaling",
125       "//ppapi/examples/scripting",
126       "//ppapi/examples/stub",
127       "//ppapi/examples/threading",
128       "//ppapi/examples/url_loader",
129       "//ppapi/examples/video_capture",
130       "//ppapi/examples/video_decode",
131       "//ppapi/examples/video_effects",
132       "//ppapi/examples/video_encode",
133       "//printing:printing_unittests",
134       "//skia:skia_unittests",
135       "//sql:sql_unittests",
136       "//sync:sync_unit_tests",
137       "//third_party/WebKit/Source/platform:heap_unittests",
138       "//third_party/WebKit/Source/platform:platform_unittests",
139       "//third_party/WebKit/Source/web:webkit_unit_tests",
140       "//third_party/WebKit/Source/wtf:wtf_unittests",
141       "//third_party/cacheinvalidation:cacheinvalidation_unittests",
142       "//third_party/codesighs",
143       "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",
144       "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",
145       "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",
146       "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",
147       "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
148       "//third_party/pdfium/samples:pdfium_test",
149       "//third_party/smhasher:pmurhash",
150       "//tools/imagediff($host_toolchain)",
151       "//tools/gn",
152       "//tools/gn:gn_unittests",
153       "//tools/gn:generate_test_gn_data",
154       "//tools/telemetry:bitmaptools($host_toolchain)",
155       "//ui/accessibility:accessibility_unittests",
156       "//ui/app_list:app_list_unittests",
157       "//ui/base:ui_base_unittests",
158       "//ui/display:display_unittests",
159       "//ui/events:events_unittests",
160       "//ui/gfx:gfx_unittests",
161       "//ui/gl:gl_unittests",
162       "//ui/touch_selection:ui_touch_selection_unittests",
163       "//url:url_unittests",
164     ]
165   }
167   deps += root_extra_deps
169   if (enable_extensions && !is_mac) {
170     # TODO(GYP): Get this working on the mac?
171     deps += [ "//extensions/shell:app_shell_unittests" ]
172   }
174   if (enable_media_router) {
175     deps += [ "//chrome/browser/media/router" ]
176   }
178   if (enable_remoting) {
179     deps += [ "//remoting:remoting_all" ]
180   }
182   if (toolkit_views) {
183     deps += [ "//ui/views:views_unittests" ]
184   }
186   if (use_aura) {
187     deps += [ "//ui/wm:wm_unittests" ]
188   }
190   if (use_ozone) {
191     deps += [ "//ui/ozone" ]
192   }
194   if (use_x11) {
195     deps += [ "//tools/xdisplaycheck" ]
196   }
198   if (enable_configuration_policy) {
199     deps += [ "//components/policy:policy_templates" ]
200   }
202   if (v8_use_external_startup_data) {
203     deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
204   }
206   if (is_win) {
207     deps += [ "//chrome/tools/build/win/syzygy:chrome_dll_syzygy" ]
208   }
210   if (is_android) {
211     deps += [
212       "//base/android/linker:chromium_android_linker",
213       "//build/android/gyp/test:hello_world",
214       "//build/android/rezip",
215       "//chrome/android:chrome_public_apk",
216       "//chrome/android:chrome_public_test_apk",
217       "//chrome/android:chrome_shell_apk",
218       "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
219       "//third_party/errorprone:chromium_errorprone",
220       "//tools/imagediff($host_toolchain)",
222       # TODO(GYP): Remove these when the components_unittests work.
223       "//components/history/core/test:test",
224       "//components/policy:policy_component_test_support",
225       "//components/policy:test_support",
226       "//components/rappor:test_support",
227       "//components/signin/core/browser:test_support",
228       "//components/sync_driver:test_support",
229       "//components/user_manager",
230       "//components/wallpaper",
231       "//content/shell/android:content_shell_apk",
233       # TODO(GYP): Are these needed, or will they be pulled in automatically?
234       "//third_party/android_tools:android_gcm_java",
235       "//third_party/android_tools:uiautomator_java",
236       "//third_party/android_tools:android_support_v13_java",
237       "//third_party/android_tools:android_support_v7_appcompat_java",
238       "//third_party/android_tools:android_support_v7_mediarouter_java",
239       "//third_party/mesa",
240       "//third_party/mockito:mockito_java",
241       "//third_party/openmax_dl/dl",
242       "//ui/android:ui_java",
244       # TODO(GYP): Are these needed?
245       "//chrome/test:test_support_unit",
246       "//third_party/smhasher:murmurhash3",
247       "//ui/message_center:test_support",
248     ]
249     deps -= [
250       "//chrome",  # TODO(GYP) ??
251       "//chrome/test:browser_tests",  # TODO(GYP) ??
252       "//chrome/test:interactive_ui_tests",  # TODO(GYP) ??
253       "//chrome/test:sync_integration_tests",  # TODO(GYP) ??
254       "//chrome/test:unit_tests",  # TODO(GYP)
256       # Chromedriver shouldn't be compiled on Android.
257       "//chrome/test/chromedriver:chromedriver_unittests",
258       "//extensions:extensions_browsertests",
259       "//extensions:extensions_unittests",
260       "//google_apis/gcm:gcm_unit_tests",
261       "//ipc:ipc_tests",  # TODO(GYP) ??
262       "//jingle:jingle_unittests",  # TODO(GYP) ??
263       "//net:hpack_example_generator",
264       "//net:hpack_fuzz_mutator",
265       "//net:hpack_fuzz_wrapper",
266       "//net:net_perftests",
267       "//ppapi/examples/2d",
268       "//ppapi/examples/audio",
269       "//ppapi/examples/audio_input",
270       "//ppapi/examples/compositor",
271       "//ppapi/examples/crxfs",
272       "//ppapi/examples/enumerate_devices",
273       "//ppapi/examples/file_chooser",
274       "//ppapi/examples/flash_topmost",
275       "//ppapi/examples/font",
276       "//ppapi/examples/gamepad",
277       "//ppapi/examples/gles2",
278       "//ppapi/examples/gles2_spinning_cube",
279       "//ppapi/examples/ime",
280       "//ppapi/examples/input",
281       "//ppapi/examples/media_stream_audio",
282       "//ppapi/examples/media_stream_video",
283       "//ppapi/examples/mouse_cursor",
284       "//ppapi/examples/mouse_lock",
285       "//ppapi/examples/printing",
286       "//ppapi/examples/scaling",
287       "//ppapi/examples/scripting",
288       "//ppapi/examples/stub",
289       "//ppapi/examples/threading",
290       "//ppapi/examples/url_loader",
291       "//ppapi/examples/video_capture",
292       "//ppapi/examples/video_decode",
293       "//ppapi/examples/video_effects",
294       "//ppapi/examples/video_encode",
295       "//third_party/pdfium/samples:pdfium_test",
296       "//tools/gn",
297       "//tools/gn:generate_test_gn_data",
298       "//tools/gn:gn_unittests",
299       "//ui/app_list:app_list_unittests",
300       "//url:url_unittests",
301     ]
303     if (has_chrome_android_internal) {
304       deps += [ "//clank" ]  # TODO(GYP) ??
305     }
306   }
308   if (is_linux) {  # TODO(GYP): || is_android || is_bsd?
309     deps += [
310       "//breakpad:core-2-minidump",
311       "//breakpad:minidump-2-core",
312     ]
313   }
315   if (is_chromeos) {
316     deps += [
317       "//chromeos:chromeos_unittests",
318       "//ui/chromeos:ui_chromeos_unittests",
319     ]
320   }
322   if (is_chromeos || is_mac || is_win) {
323     deps += [
324       "//rlz:rlz_id",
325       "//rlz:rlz_lib",
326       "//rlz:rlz_unittests",
327     ]
328   }
330   if (is_linux) {
331     # The following are definitely linux-only.
332     deps += [
333       "//breakpad:breakpad_unittests",
334       "//breakpad:generate_test_dump",
335       "//dbus:dbus_test_server",
336       "//dbus:dbus_unittests",
337       "//net:disk_cache_memory_test",
338       "//net:flip_in_mem_edsm_server",
339       "//net:flip_in_mem_edsm_server_unittests",
340       "//net:quic_client",
341       "//net:quic_server",
342       "//sandbox/linux:chrome_sandbox",
343       "//sandbox/linux:sandbox_linux_unittests",
344       "//sandbox/linux:sandbox_linux_jni_unittests",
345     ]
347     if (is_chromeos || use_ash) {
348       deps += [ "//components/session_manager/core" ]
349     }
350   }
352   if (is_win || (is_linux && !is_chromeos)) {
353     # TODO(GYP): Figure out which of these should (and can) build
354     # for android/chromeos/mac/ios.
355     deps += [
356       "//base:base_perftests",
357       "//base:base_i18n_perftests",
358       "//base:check_example",
359       "//base:build_utf8_validator_tables",
360       "//cc:cc_perftests",
361       "//cc/blink:cc_blink_unittests",
362       "//chrome/test:load_library_perf_tests",
363       "//chrome/test:performance_browser_tests",
364       "//chrome/test:sync_performance_tests",
365       "//chrome/test/chromedriver:chromedriver",
366       "//chrome/test/chromedriver:chromedriver_tests",
367       "//chrome/tools/profile_reset:jtl_compiler",
368       "//components:components_perftests",
369       "//content/test:content_gl_tests",
370       "//content/test:content_gl_benchmark",
371       "//courgette:courgette",
372       "//courgette:courgette_fuzz",
373       "//courgette:courgette_minimal_tool",
374       "//courgette:courgette_unittests",
375       "//device:device_unittests",
376       "//gin:gin_shell",
377       "//gin:gin_unittests",
378       "//google_apis:google_apis_unittests",
379       "//google_apis/gcm:mcs_probe",
380       "//gpu:angle_unittests",
381       "//gpu:gpu_perftests",
382       "//gpu:gl_tests",
383       "//ipc:ipc_perftests",
384       "//media:ffmpeg_regression_tests",  # TODO(GYP) this should be conditional on media_use_ffmpeg
385       "//media:media_perftests",
386       "//media/cast:generate_barcode_video",
387       "//media/cast:generate_timecode_audio",
388       "//net:crash_cache",
389       "//net:crl_set_dump",
390       "//net:dns_fuzz_stub",
391       "//net:dump_cache",
392       "//net:gdig",
393       "//net:get_server_time",
394       "//net:net_watcher",  # TODO(GYP): This should be conditional on use_v8_in_net
395       "//net:run_testserver",
396       "//net:stress_cache",
397       "//net:tld_cleanup",
398       "//ppapi:pepper_hash_for_uma",
399       "//ppapi:ppapi_perftests",
400       "//sync:run_sync_testserver",
401       "//third_party/codesighs:maptsvdifftool",
402       "//third_party/leveldatabase:env_chromium_unittests",
403       "//third_party/libaddressinput:libaddressinput_unittests",
404       "//third_party/libphonenumber:libphonenumber_unittests",
405       "//ui/compositor:compositor_unittests",
406     ]
408     if (enable_extensions) {
409       deps += [ "//extensions/shell:app_shell" ]
410     }
412     if (enable_nacl) {
413       deps += [ "//components/nacl:nacl_loader_unittests" ]
414     }
416     if (enable_nacl && enable_remoting) {
417       deps += [ "//remoting:remoting_key_tester" ]
418     }
420     if (use_ash) {
421       deps += [
422         "//ash:ash_shell",
423         "//ash:ash_shell_unittests",
424         "//ash:ash_unittests",
425       ]
426     }
428     if (use_aura) {
429       deps += [
430         "//ui/aura:aura_unittests",
431         "//ui/aura:bench",
432         "//ui/aura:demo",
433       ]
434     }
435   }
437   if (is_linux && !is_chromeos) {
438     deps += [
439       # TODO(GYP): Figure out which of these should (and can) build
440       # under which other conditions.
441       "//build/sanitizers:copy_llvm_symbolizer",
442       "//chrome/test:chrome_app_unittests",
443       "//cloud_print:cloud_print_unittests",
444       "//components/network_hints/browser",
445       "//content/public/app:browser",
446       "//content/public/app:child",
448       # TODO(GYP): Remove this when the gles2 tests work
449       "//gpu/command_buffer/client:gles2_implementation_no_check",
451       "//gpu/khronos_glcts_support:khronos_glcts_test",  # TODO(GYP) crbug.com/471903 to make this complete.
452       "//media/cast:cast_benchmarks",
453       "//media/cast:tap_proxy",
454       "//mojo/application/public/cpp",
455       "//skia:filter_fuzz_stub",
456       "//skia:image_operations_bench",
457       "//sync/tools:sync_client",
458       "//sync/tools:sync_listen_notifications",
459       "//testing/gmock:gmock_main",
460       "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests",
461       "//tools/perf/clear_system_cache",
462       "//ui/keyboard:keyboard_unittests",
463       "//ui/message_center:message_center_unittests",
464       "//ui/snapshot:snapshot_unittests",
465       "//ui/views/examples:views_examples_with_content_exe",
467       # "//v8:v8_snapshot",  # TODO(GYP): visibility?
468       # "//v8:postmortem-metadata",  # TODO(GYP): visibility?
470       "//third_party/codesighs:nm2tsv",
471       "//third_party/sqlite:sqlite_shell",
472     ]
474     if (current_toolchain == host_toolchain) {
475       # Do not build the breakpad utilities in cross-compiles.
476       deps += [
477         "//breakpad:dump_syms",
478         "//breakpad:microdump_stackwalk",
479         "//breakpad:minidump_dump",
480         "//breakpad:minidump_stackwalk",
481       ]
482     }
484     if (!is_debug && !is_component_build) {
485       deps += [ "//chrome/tools/service_discovery_sniffer" ]
486     }
488     if (toolkit_views) {
489       deps += [ "//ui/app_list:app_list_demo" ]
490     }
492     if (use_x11) {
493       if (target_cpu != "arm") {
494         deps += [ "//gpu/tools/compositor_model_bench" ]
495       }
496     }
497   }
499   if (is_mac) {
500     deps += [
501       "//breakpad:crash_inspector",
502       "//breakpad:dump_syms",
503       "//third_party/apple_sample_code",
504       "//third_party/molokocacao",
505     ]
507     # TODO(GYP): Remove these when the targets below work and these
508     # are pulled in automatically.
509     deps += [
510       "//cc/blink",
511       "//components/ui/zoom:ui_zoom",
512       "//content",
513       "//content/test:test_support",
514       "//device/battery",
515       "//device/bluetooth",
516       "//device/nfc",
517       "//device/usb",
518       "//device/vibration",
519       "//media/blink",
520       "//pdf",
521       "//storage/browser",
522       "//third_party/brotli",
523       "//third_party/flac",
524       "//third_party/hunspell",
525       "//third_party/iccjpeg",
526       "//third_party/libphonenumber",
527       "//third_party/ots",
528       "//third_party/qcms",
529       "//third_party/smhasher:murmurhash3",
530       "//third_party/webrtc/system_wrappers",
531       "//ui/native_theme",
532       "//ui/snapshot",
533       "//ui/surface",
534     ]
536     # TODO(dpranke): These are as-yet untriaged but need at least the above.
537     deps -= [
538       "//chrome",  # TODO(GYP)
539       "//chrome/test:browser_tests",  # TODO(GYP)
540       "//chrome/test:interactive_ui_tests",  # TODO(GYP)
541       "//chrome/test:sync_integration_tests",  # TODO(GYP)
542       "//chrome/test:unit_tests",  # TODO(GYP)
543       "//components:components_browsertests",  # TODO(GYP)
544       "//components:components_unittests",  # TODO(GYP)
545       "//content/test:content_browsertests",  # TODO(GYP)
546       "//content/test:content_perftests",  # TODO(GYP)
547       "//device:device_unittests",  # TODO(GYP)
548       "//extensions:extensions_browsertests",  # TODO(GYP)
549       "//extensions:extensions_unittests",  # TODO(GYP)
550       "//mojo",  # TODO(GYP)
551       "//mojo/application/public/cpp",  # TODO(GYP)
553       # TODO(GYP): Re-enable this as soon as we can link Blink binaries on mac.
554       "//third_party/WebKit/Source/platform:heap_unittests",
555       "//third_party/WebKit/Source/platform:platform_unittests",
556       "//third_party/WebKit/Source/web:webkit_unit_tests",
557       "//ui/app_list:app_list_unittests",  # TODO(GYP)
558       "//ui/gfx:gfx_unittests",  # TODO(GYP)
559     ]
560   }
562   if (is_win) {
563     deps += [
564       "//base:pe_image_test",
565       "//chrome/installer/setup:setup_unittests",
566       "//chrome_elf:chrome_elf_unittests",
567       "//chrome_elf:dll_hash_main",
568       "//components/crash/tools:crash_service",
569       "//components/wifi:wifi_test",
570       "//net:quic_client",
571       "//net:quic_server",
572       "//sandbox/win:pocdll",
573       "//sandbox/win:sandbox_poc",
574       "//sandbox/win:sbox_integration_tests",
575       "//sandbox/win:sbox_unittests",
576       "//sandbox/win:sbox_validation_tests",
577       "//testing/gtest:gtest_main",
578       "//third_party/codesighs:msmap2tsv",
579       "//third_party/pdfium/samples:pdfium_diff",
580       "//ui/metro_viewer",
581     ]
582     deps -= [
583       "//crypto:crypto_unittests",  # TODO(GYP)
584       "//net:net_unittests",  # TODO(GYP)
585     ]
586   } else if (!is_android && !is_ios) {
587     deps += [ "//breakpad:symupload" ]
588   }
590   if (!is_ios) {
591     deps += [ "//gpu/skia_runner:skia_runner" ]
592   }
595 group("gn_only") {
596   testonly = true
598   if (!is_ios) {
599     deps = [
600       "//mandoline:all",
601     ]
602   }
604   if (!is_android && !is_ios) {
605     deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
606   }
608   if (is_linux && !is_chromeos) {
609     # TODO(GYP): Figure out if any of these should be in gn_all
610     # and figure out how cross-platform they are
611     deps += [
612       ":gn_mojo_targets",
613       "//chrome/browser/resources:extension_resource_demo",
614       "//chrome/installer/util:strings",
615       "//chrome:main_dll",
616       "//chrome/test:load_library_perf_tests",
617       "//chrome/tools/convert_dict",
618       "//components/constrained_window:unit_tests",
619       "//components/enhanced_bookmarks:test_support",
620       "//components/metrics:serialization",
621       "//components/password_manager/content/renderer:browser_tests",
622       "//components/rappor:unit_tests",
623       "//components/sessions:unit_tests",
624       "//media/blink:media_blink_unittests",
625       "//media/cast:udp_proxy",
626       "//native_client/src/trusted/platform_qualify:vcpuid",
627       "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
628       "//storage/browser:dump_file_system",
629       "//third_party/angle:libANGLE",
630       "//third_party/angle:libEGL",
631       "//third_party/angle:libGLESv2",
632       "//third_party/cld_2:cld_2_dynamic_data_tool",
633       "//third_party/leveldatabase:leveldb_arena_test",
634       "//third_party/leveldatabase:leveldb_bloom_test",
635       "//third_party/leveldatabase:leveldb_db_test",
636       "//third_party/leveldatabase:leveldb_crc32c_test",
637       "//third_party/leveldatabase:leveldb_cache_test",
638       "//third_party/leveldatabase:leveldb_env_test",
639       "//third_party/leveldatabase:leveldb_write_batch_test",
640       "//third_party/leveldatabase:leveldb_filter_block_test",
641       "//third_party/leveldatabase:leveldb_version_edit_test",
642       "//third_party/leveldatabase:leveldb_db_bench",
643       "//third_party/leveldatabase:leveldb_log_test",
644       "//third_party/leveldatabase:leveldb_corruption_test",
645       "//third_party/leveldatabase:leveldb_table_test",
646       "//third_party/leveldatabase:leveldb_skiplist_test",
647       "//third_party/leveldatabase:leveldb_filename_test",
648       "//third_party/leveldatabase:leveldb_dbformat_test",
649       "//third_party/pdfium/third_party:freetype",
650       "//third_party/libjingle:peerconnnection_server",
651       "//third_party/libjpeg_turbo:simd",
652       "//third_party/libsrtp:replay_driver",
653       "//third_party/libsrtp:roc_driver",
654       "//third_party/libsrtp:rtpw",
655       "//third_party/libsrtp:rdbx_driver",
656       "//third_party/libsrtp:srtp_driver",
657       "//third_party/libsrtp:srtp_driver",
658       "//third_party/libsrtp:srtp_test_kernel_driver",
659       "//third_party/libsrtp:srtp_test_cipher_driver",
660       "//third_party/libsrtp:srtp_test_datatypes_driver",
661       "//third_party/libsrtp:srtp_test_aes_calc",
662       "//third_party/libsrtp:srtp_test_env",
663       "//third_party/libsrtp:srtp_test_rand_gen",
664       "//third_party/libsrtp:srtp_test_sha1_driver",
665       "//third_party/libsrtp:srtp_test_stat_driver",
666       "//third_party/opus:opus_compare",
667       "//third_party/opus:opus_demo",
668       "//third_party/opus:test_opus_decode",
669       "//third_party/opus:test_opus_encode",
670       "//third_party/opus:test_opus_api",
671       "//third_party/opus:test_opus_padding",
672       "//third_party/webrtc/system_wrappers:field_trial_default",
673       "//third_party/webrtc/system_wrappers:metrics_default",
674       "//ui/display/types",
675       "//ui/shell_dialogs:shell_dialogs_unittests",
676       "//ui/views/examples:views_examples_exe",
677     ]
679     if (target_cpu == "x86" || target_cpu == "x64") {
680       deps += [ "//third_party/libjpeg_turbo:simd_asm" ]
681     }
682     if (enable_nacl) {
683       deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ]
684     }
685     if (use_ozone) {
686       deps += [ "//ui/ozone/demo" ]
687     }
688     if (is_android) {
689       deps += [ "//build/android/gyp/test:hello_world" ]
690     }
692     if (is_linux && current_toolchain == host_toolchain) {
693       deps += [ "//v8:d8" ]
694     }
695   }
697   if (is_mac) {
698     deps -= [ "//mandoline:all" ]  # TODO(GYP)
699   }
702 group("gn_mojo_targets") {
703   testonly = true
704   if (is_linux && !is_chromeos) {
705     # TODO(GYP): Figure out if any of these should be in gn_all
706     # and figure out how cross-platform they are
707     deps = [
708       "//chrome/browser/ui/webui/omnibox:mojo_bindings_python",
709       "//content/public/common:mojo_bindings_python",
710       "//content/common:mojo_bindings_python",
711       "//content/test:web_ui_test_mojo_bindings_python",
712       "//device/battery:mojo_bindings_python",
713       "//device/vibration:mojo_bindings_python",
714       "//ipc/mojo:ipc_mojo_perftests",
715       "//ipc/mojo:client_channel_python",
716       "//media/mojo/interfaces:interfaces_python",
717       "//media/mojo/services:cdm_service",
718       "//media/mojo:tests",
719       "//mojo:tests",
720       "//net/interfaces:interfaces_python",
721       "//third_party/mojo/src/mojo/edk/js/test:js_integration_tests",
722       "//third_party/mojo/src/mojo/edk/js/tests:js_to_cpp_bindings_python",
723       "//third_party/mojo/src/mojo/public/python:packaged_application",
724       "//third_party/mojo/src/mojo/public/python:packaged_bindings",
725       "//third_party/mojo_services/src/accessibility/public/interfaces:interfaces_python",
726     ]
727   }
730 group("gn_visibility") {
731   deps = [
732     "//build/config/sanitizers:options_sources",
734     # "//third_party/pdfium:pdfium_embeddertests",  # TODO(GYP): visibility?
735     # "//third_party/pdfium:pdfium_unittests",  # TODO(GYP): visibility?
737     "//ui/resources:repack_ui_test_mac_locale_pack",
739     # "//v8:v8_snapshot",  # TODO(GYP): visibility?
740     # "//v8:postmortem-metadata",  # TODO(GYP): visibility?
741   ]
744 if (!is_ios) {
745   # This group includes all of the targets needed to build and test Blink,
746   # including running the layout tests (see below).
747   group("blink_tests") {
748     testonly = true
750     deps = [
751       "//third_party/WebKit/public:all_blink",
752     ]
754     # NOTE: The following deps are needed to run the layout tests
755     # (run-webkit-tests) but there is no GN target for the layout tests,
756     # so we need to specify the dependencies here instead.
757     if (is_android) {
758       deps += [
759         "//breakpad:dump_syms($host_toolchain)",
760         "//breakpad:minidump_stackwalk($host_toolchain)",
761         "//content/shell/android:content_shell_apk",
762         "//tools/imagediff($host_toolchain)",
763       ]
764     } else {
765       deps += [
766         "//content/shell:content_shell",
767         "//tools/imagediff",
768       ]
769     }
771     if (is_win) {
772       deps += [
773         "//components/test_runner:layout_test_helper",
774         "//content/shell:crash_service",
775       ]
776     }
778     if (!is_win && !is_android) {
779       deps += [ "//breakpad:minidump_stackwalk($host_toolchain)" ]
780     }
782     if (is_mac) {
783       deps += [
784         "//breakpad:dump_syms($host_toolchain)",
785         "//components/test_runner:layout_test_helper",
786       ]
787     }
789     if (is_linux) {
790       deps += [ "//breakpad:dump_syms($host_toolchain)" ]
791     }
792   }
795 if (is_linux) {
796   # This group corresponds to the list of tests run on the waterfall for
797   # desktop Linux GYP builds from testing/buildbot/chromium.linux.json. It's
798   # here to help track GYP -> GN conversion progress.
799   group("linux_default_tests") {
800     testonly = true
801     deps = [
802       "//base:base_unittests",  # PASSES (*) 2/25/2015
803       "//cc:cc_unittests",  # PASSES 2/25/2015
804       "//chrome/test:browser_tests",
805       "//chrome/test:interactive_ui_tests",
806       "//chrome/test:sync_integration_tests",  # Crashes for brettw in GN and GYP.
807       "//chrome/test:unit_tests",  # PASSES 2/25/2015
808       "//chrome/test/chromedriver:chromedriver_unittests",  # PASSES 2/25/2015
809       "//components:components_browsertests",  # PASSES 4/17/2015
810       "//components:components_unittests",  # PASSES 2/27/2015
811       "//content/test:content_browsertests",
812       "//content/test:content_unittests",  # PASSES 2/25/2015
813       "//crypto:crypto_unittests",  # PASSES 2/25/2015
814       "//dbus:dbus_unittests",  # PASSES 2/25/2015
815       "//device:device_unittests",  # PASSES 3/07/2015
816       "//extensions:extensions_browsertests",  # PASSES 2/25/2015
817       "//extensions:extensions_unittests",  # PASSES 2/25/2015
818       "//extensions/shell:app_shell_unittests",  # PASSES 2/25/2015
819       "//google_apis/gcm:gcm_unit_tests",  # PASSES 2/25/2015
820       "//google_apis:google_apis_unittests",  # PASSES 2/25/2015
821       "//gpu:gpu_unittests",  # PASSES 2/25/2015
822       "//ipc:ipc_tests",  # PASSES 2/25/2015
823       "//ipc/mojo:ipc_mojo_unittests",  # PASSES 2/25/2015
824       "//jingle:jingle_unittests",  # PASSES 2/25/2015
825       "//media:media_unittests",  # PASSES 3/3/2015
826       "//media/cast:cast_unittests",  # PASSES 2/25/2015
827       "//media/midi:midi_unittests",  # PASSES 4/10/2015
828       "//mojo/common:mojo_common_unittests",  # PASSES 2/25/2015
829       "//net:net_unittests",  # PASSES 2/25/2015
830       "//ppapi:ppapi_unittests",  # PASSES 2/26/2015
831       "//printing:printing_unittests",  # PASSES 2/25/2015
832       "//remoting:remoting_unittests",  # PASSES 4/17/2015
833       "//sandbox/linux:sandbox_linux_unittests",  # PASSES 2/25/2015
834       "//skia:skia_unittests",  # PASSES 2/25/2015
835       "//sql:sql_unittests",  # PASSES 2/25/2015
836       "//sync:sync_unit_tests",  # PASSES 2/25/2015
837       "//third_party/cacheinvalidation:cacheinvalidation_unittests",  # PASSES 2/25/2015
838       "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",  # PASSES 2/25/2015
839       "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",  # PASSES 2/25/2015
840       "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",  # PASSES 2/25/2015
841       "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",  # PASSES 2/25/2015
842       "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
843       "//ui/accessibility:accessibility_unittests",  # PASSES 2/25/2015
844       "//ui/app_list:app_list_unittests",  # PASSES 2/25/2015
845       "//ui/aura:aura_unittests",  # PASSES 2/25/2015
846       "//ui/base:ui_base_unittests",  # PASSES 4/17/2015
847       "//ui/compositor:compositor_unittests",  # PASSES 2/25/2015
848       "//ui/display:display_unittests",  # PASSES 2/25/2015
849       "//ui/events:events_unittests",  # PASSES 2/25/2015
850       "//ui/gfx:gfx_unittests",  # PASSES 2/25/2015
851       "//ui/gl:gl_unittests",
852       "//ui/touch_selection:ui_touch_selection_unittests",  # PASSES 2/25/2015
853       "//ui/views:views_unittests",  # PASSES (*) 2/25/2015
854       "//ui/wm:wm_unittests",  # PASSES 2/25/2015
855       "//url:url_unittests",  # PASSES 2/25/2015
857       # Note:
858       # (*) Fails but failures match GYP build at time of testing.
859     ]
861     if (enable_nacl) {
862       deps += [ "//components/nacl:nacl_loader_unittests" ]  # PASSES 3/28/2015
863     }
864   }
865 } else if (is_win) {
866   group("windows_default_tests") {
867     testonly = true
868     deps = [
869       "//ash:ash_unittests",  # FAILS 4/20/2015
870       "//base:base_unittests",  # PASSES 4/20/2015
871       "//cc:cc_unittests",  # PASSES 4/17/2015
872       "//chrome_elf:chrome_elf_unittests",  # FAILS 4/20/2015
873       "//chrome/installer/util:installer_util_unittests",
874       "//chrome/installer/setup:setup_unittests",
875       "//chrome/test:browser_tests",
876       "//chrome/test:interactive_ui_tests",
877       "//chrome/test:sync_integration_tests",  # Note: need to turn off incremental linking for debug.
878       "//chrome/test:unit_tests",
879       "//chrome/test/chromedriver:chromedriver_unittests",  # PASSES 4/20/2015
880       "//components:components_browsertests",  # PASSES 4/24/2015
881       "//components:components_unittests",  # PASSES 4/17/2015
882       "//courgette:courgette_unittests",  # PASSES 4/20/2015
883       "//content/test:content_browsertests",
884       "//content/test:content_unittests",  # PASSES 4/17/2015
885       "//crypto:crypto_unittests",  # PASSES 4/17/2015
886       "//device:device_unittests",  # PASSES 4/17/2015
887       "//extensions:extensions_browsertests",  # PASSES 4/17/2015
888       "//extensions:extensions_unittests",  # PASSES 4/17/2015
889       "//extensions/shell:app_shell_unittests",  # Doesn't compile in 64-bit
890       "//google_apis/gcm:gcm_unit_tests",  # PASSES 4/17/2015
891       "//google_apis:google_apis_unittests",  # PASSES 4/17/2015
892       "//gpu:gpu_unittests",  # PASSES 4/17/2015
893       "//ipc:ipc_tests",  # PASSES 4/17/2015
894       "//ipc/mojo:ipc_mojo_unittests",  # PASSES 4/17/2015
895       "//jingle:jingle_unittests",  # PASSES 4/17/2015
896       "//media/cast:cast_unittests",  # PASSES 4/17/2015
897       "//media:media_unittests",  # PASSES 4/17/2015
898       "//mojo/common:mojo_common_unittests",  # PASSES 4/17/2015
899       "//net:net_unittests",  # PASSES 4/17/2015
900       "//ppapi:ppapi_unittests",  # PASSES 4/17/2015
901       "//printing:printing_unittests",  # PASSES 4/17/2015
902       "//remoting:remoting_unittests",  # PASSES 4/17/2015
903       "//sandbox/win:sbox_integration_tests",  # PASSES 4/20/2015
904       "//sandbox/win:sbox_unittests",  # PASSES 4/20/2015
905       "//sandbox/win:sbox_validation_tests",  # PASSES 4/20/2015
906       "//skia:skia_unittests",  # PASSES 4/17/2015
907       "//sql:sql_unittests",  # PASSES 4/17/2015
908       "//sync:sync_unit_tests",  # PASSES 4/20/2015
909       "//third_party/cacheinvalidation:cacheinvalidation_unittests",  # PASSES 4/20/2015
910       "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",  # Seems to hang?
911       "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",  # FAILS
912       "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",  # PASSES 4/20/2015
913       "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",  # PASSES 4/20/2015
914       "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",  # PASSES 4/20/2015
915       "//ui/accessibility:accessibility_unittests",  # PASSES 4/20/2015
916       "//ui/app_list:app_list_unittests",  # PASSES 4/20/2015
917       "//ui/aura:aura_unittests",  # PASSES 4/17/2015
918       "//ui/base:ui_base_unittests",  # PASSES 4/20/2015
919       "//ui/compositor:compositor_unittests",  # PASSES 4/20/2015
920       "//ui/display:display_unittests",  # PASSES 4/20/2015
921       "//ui/events:events_unittests",  # PASSES 4/20/2015
922       "//ui/gfx:gfx_unittests",  # PASSES (with assertion failure?) 4/20/2015
923       "//ui/gl:gl_unittests",
924       "//ui/message_center:message_center_unittests",  # PASSES 4/20/2015
925       "//ui/touch_selection:ui_touch_selection_unittests",  # PASSES 4/20/2015
926       "//ui/views:views_unittests",  # TooltipControllerTest failures
927       "//ui/wm:wm_unittests",  # PASSES 4/21/2015
928       "//url:url_unittests",  # PASSES 4/17/2015
930       # TODO(GYP) nacl_integration
931       # TODO(GYP) telemetry_perf_unittests
932       # TODO(GYP) telemetry_unittests
933     ]
934   }