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