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