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