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