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