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