ScreenOrientationController to start observing even without an internal display.
[chromium-blink-merge.git] / BUILD.gn
blobcf1bd2bdd83a448fdf9d2cceecaedd2ba4ae8d7d
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
5 # This is the root build file for GN. GN will start processing by loading this
6 # file, and recursively load all dependencies until all dependencies are either
7 # resolved or known not to exist (which will cause the build to fail). So if
8 # you add a new build file, there must be some path of dependencies from this
9 # file to your new one or GN won't know about it.
11 import("//build/config/crypto.gni")
12 import("//build/config/features.gni")
13 import("//build/config/ui.gni")
14 import("//build/module_args/v8.gni")
15 import("//remoting/remoting_host.gni")
17 if (is_android) {
18   import("//build/config/android/config.gni")
21 declare_args() {
22   # A list of extra dependencies to add to the root target. This allows a
23   # checkout to add additional targets without explicitly changing any checked-
24   # in files.
25   root_extra_deps = []
28 # The "gn_all" target should list every root target (target that
29 # nothing else depends on) built by both GN and GYP. One should
30 # be able to run 'ninja gn_all gn_only gn_groups' and then run
31 # 'ninja' a second time and have the second ninja invocation do nothing.
33 # In addition, the "gn_all" target serves to pull in all of the other
34 # build files needed for the build.
36 # TODO(GYP): make sure that the above is true and there are scripts run
37 # on the bots that enforce this.
39 group("gn_all") {
40   testonly = true
42   deps = [
43     "//base:base_unittests",
44     "//cc:cc_unittests",
45     "//chrome",
46     "//chrome/test:browser_tests",
47     "//chrome/test:interactive_ui_tests",
48     "//chrome/test:sync_integration_tests",
49     "//chrome/test:unit_tests",
50     "//chrome/test/chromedriver:chromedriver_unittests",
51     "//components:components_browsertests",
52     "//components:components_unittests",
53     "//content/shell:content_shell",
54     "//content/test:content_browsertests",
55     "//content/test:content_perftests",
56     "//content/test:content_unittests",
57     "//crypto:crypto_unittests",
58     "//device:device_unittests",
59     "//extensions:extensions_browsertests",
60     "//extensions:extensions_unittests",
61     "//google_apis/gcm:gcm_unit_tests",
62     "//gpu:gpu_unittests",
63     "//ipc:ipc_tests",
64     "//ipc/mojo:ipc_mojo_unittests",
65     "//jingle:jingle_unittests",
66     "//mandoline",
67     "//media:media_unittests",
68     "//media/cast:cast_unittests",
69     "//mojo",
70     "//mojo/application",
71     "//mojo/common:mojo_common_unittests",
72     "//net:hpack_example_generator",
73     "//net:hpack_fuzz_mutator",
74     "//net:hpack_fuzz_wrapper",
75     "//net:net_perftests",
76     "//net:net_unittests",
77     "//ppapi:ppapi_unittests",
78     "//ppapi/examples/2d",
79     "//ppapi/examples/audio",
80     "//ppapi/examples/audio_input",
81     "//ppapi/examples/compositor",
82     "//ppapi/examples/crxfs",
83     "//ppapi/examples/enumerate_devices",
84     "//ppapi/examples/file_chooser",
85     "//ppapi/examples/flash_topmost",
86     "//ppapi/examples/font",
87     "//ppapi/examples/gamepad",
88     "//ppapi/examples/gles2",
89     "//ppapi/examples/gles2_spinning_cube",
90     "//ppapi/examples/ime",
91     "//ppapi/examples/input",
92     "//ppapi/examples/media_stream_audio",
93     "//ppapi/examples/media_stream_video",
94     "//ppapi/examples/mouse_cursor",
95     "//ppapi/examples/mouse_lock",
96     "//ppapi/examples/printing",
97     "//ppapi/examples/scaling",
98     "//ppapi/examples/scripting",
99     "//ppapi/examples/stub",
100     "//ppapi/examples/threading",
101     "//ppapi/examples/url_loader",
102     "//ppapi/examples/video_capture",
103     "//ppapi/examples/video_decode",
104     "//ppapi/examples/video_effects",
105     "//ppapi/examples/video_encode",
106     "//printing:printing_unittests",
107     "//skia:skia_unittests",
108     "//sql:sql_unittests",
109     "//sync:sync_unit_tests",
110     "//third_party/WebKit/public:blink_tests",
111     "//third_party/cacheinvalidation:cacheinvalidation_unittests",
112     "//third_party/codesighs",
113     "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",
114     "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",
115     "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",
116     "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",
117     "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
118     "//third_party/pdfium/samples:pdfium_test",
119     "//third_party/smhasher:pmurhash",
120     "//tools/imagediff($host_toolchain)",
121     "//tools/gn",
122     "//tools/gn:gn_unittests",
123     "//tools/gn:generate_test_gn_data",
124     "//tools/telemetry:bitmaptools($host_toolchain)",
125     "//ui/accessibility:accessibility_unittests",
126     "//ui/app_list:app_list_unittests",
127     "//ui/base:ui_base_unittests",
128     "//ui/display:display_unittests",
129     "//ui/events:events_unittests",
130     "//ui/gfx:gfx_unittests",
131     "//ui/touch_selection:ui_touch_selection_unittests",
132     "//url:url_unittests",
133   ]
135   deps += root_extra_deps
137   if (enable_extensions && !is_mac) {
138     # TODO(GYP): Get this working on the mac?
139     deps += [ "//extensions/shell:app_shell_unittests" ]
140   }
142   if (enable_me2me_host) {
143     deps += [ "//remoting/host:remoting_me2me_host" ]
144   }
146   if (enable_media_router) {
147     deps += [
148       "//chrome/browser/media/router/",
149       "//chrome/browser/media/router:unit_tests",
150     ]
151   }
153   if (enable_remoting_host) {
154     deps += [
155       "//remoting:remoting_unittests",
156       "//remoting:remoting_perftests",
157       "//remoting/host",
158       "//remoting/host:remoting_start_host",
159       "//remoting/host/it2me:remote_assistance_host",
160     ]
161   }
163   if (toolkit_views) {
164     deps += [ "//ui/views:views_unittests" ]
165   }
167   if (use_aura) {
168     deps += [ "//ui/wm:wm_unittests" ]
169   }
171   if (use_ozone) {
172     deps += [ "//ui/ozone" ]
173   }
175   if (use_x11) {
176     deps += [ "//tools/xdisplaycheck" ]
177   }
179   if (enable_configuration_policy) {
180     deps += [ "//components/policy:policy_templates" ]
181   }
183   if (v8_use_external_startup_data) {
184     deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
185   }
187   if (is_android) {
188     deps += [
189       "//base/android/linker:chromium_android_linker",
190       "//build/android/gyp/test:hello_world",
191       "//build/android/rezip",
192       "//chrome/android:chrome_shell_apk",
193       "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
194       "//tools/imagediff($host_toolchain)",
196       # TODO(GYP): Remove these when the components_unittests work.
197       "//components/history/core/test:test",
198       "//components/policy:policy_component_test_support",
199       "//components/policy:test_support",
200       "//components/rappor:test_support",
201       "//components/signin/core/browser:test_support",
202       "//components/sync_driver:test_support",
203       "//components/user_manager",
204       "//components/wallpaper",
205       "//content/shell/android:content_shell_apk",
207       # TODO(GYP): Are these needed, or will they be pulled in automatically?
208       "//third_party/android_tools:android_gcm_java",
209       "//third_party/android_tools:uiautomator_java",
210       "//third_party/android_tools:android_support_v13_java",
211       "//third_party/android_tools:android_support_v7_appcompat_java",
212       "//third_party/android_tools:android_support_v7_mediarouter_java",
213       "//third_party/mesa",
214       "//third_party/mockito:mockito_java",
215       "//third_party/openmax_dl/dl",
216       "//third_party/speex",
217       "//ui/android:ui_java",
219       # TODO(GYP): Are these needed?
220       "//chrome/test:test_support_unit",
221       "//third_party/smhasher:murmurhash3",
222       "//ui/message_center:test_support",
223     ]
224     deps -= [
225       "//chrome",  # TODO(GYP) ??
226       "//chrome/test:browser_tests",  # TODO(GYP) ??
227       "//chrome/test:interactive_ui_tests",  # TODO(GYP) ??
228       "//chrome/test:sync_integration_tests",  # TODO(GYP) ??
229       "//chrome/test:unit_tests",  # TODO(GYP)
231       # Chromedriver shouldn't be compiled on Android.
232       "//chrome/test/chromedriver:chromedriver_unittests",
233       "//extensions:extensions_browsertests",
234       "//extensions:extensions_unittests",
235       "//google_apis/gcm:gcm_unit_tests",
236       "//ipc:ipc_tests",  # TODO(GYP) ??
237       "//jingle:jingle_unittests",  # TODO(GYP) ??
238       "//net:hpack_example_generator",
239       "//net:hpack_fuzz_mutator",
240       "//net:hpack_fuzz_wrapper",
241       "//net:net_perftests",
242       "//net:net_unittests",
243       "//ppapi/examples/2d",
244       "//ppapi/examples/audio",
245       "//ppapi/examples/audio_input",
246       "//ppapi/examples/compositor",
247       "//ppapi/examples/crxfs",
248       "//ppapi/examples/enumerate_devices",
249       "//ppapi/examples/file_chooser",
250       "//ppapi/examples/flash_topmost",
251       "//ppapi/examples/font",
252       "//ppapi/examples/gamepad",
253       "//ppapi/examples/gles2",
254       "//ppapi/examples/gles2_spinning_cube",
255       "//ppapi/examples/ime",
256       "//ppapi/examples/input",
257       "//ppapi/examples/media_stream_audio",
258       "//ppapi/examples/media_stream_video",
259       "//ppapi/examples/mouse_cursor",
260       "//ppapi/examples/mouse_lock",
261       "//ppapi/examples/printing",
262       "//ppapi/examples/scaling",
263       "//ppapi/examples/scripting",
264       "//ppapi/examples/stub",
265       "//ppapi/examples/threading",
266       "//ppapi/examples/url_loader",
267       "//ppapi/examples/video_capture",
268       "//ppapi/examples/video_decode",
269       "//ppapi/examples/video_effects",
270       "//ppapi/examples/video_encode",
271       "//third_party/pdfium/samples:pdfium_test",
272       "//tools/gn",
273       "//tools/gn:generate_test_gn_data",
274       "//tools/gn:gn_unittests",
275       "//ui/app_list:app_list_unittests",
276       "//url:url_unittests",
277     ]
279     if (has_chrome_android_internal) {
280       deps += [ "//clank" ]  # TODO(GYP) ??
281     }
282   }
284   if (is_linux) {  # TODO(GYP): || is_android || is_bsd?
285     deps += [
286       "//breakpad:core-2-minidump",
287       "//breakpad:minidump-2-core",
288     ]
289   }
291   if (is_chromeos) {
292     deps += [
293       "//chromeos:chromeos_unittests",
294       "//ui/chromeos:ui_chromeos_unittests",
295     ]
296   }
298   if (is_chromeos || is_mac || is_win) {
299     deps += [
300       "//rlz:rlz_id",
301       "//rlz:rlz_lib",
302       "//rlz:rlz_unittests",
303     ]
304   }
306   if (is_linux) {
307     # The following are definitely linux-only.
308     deps += [
309       "//breakpad:breakpad_unittests",
310       "//breakpad:generate_test_dump",
311       "//dbus:dbus_test_server",
312       "//dbus:dbus_unittests",
313       "//net:disk_cache_memory_test",
314       "//net:flip_in_mem_edsm_server",
315       "//net:flip_in_mem_edsm_server_unittests",
316       "//net:quic_client",
317       "//net:quic_server",
318       "//sandbox/linux:chrome_sandbox",
319       "//sandbox/linux:sandbox_linux_unittests",
320       "//sandbox/linux:sandbox_linux_jni_unittests",
321     ]
323     if (is_chromeos || use_ash) {
324       deps += [ "//components/session_manager/core" ]
325     }
326   }
328   if (is_win || (is_linux && !is_chromeos)) {
329     # TODO(GYP): Figure out which of these should (and can) build
330     # for android/chromeos/mac/ios.
331     deps += [
332       "//base:base_perftests",
333       "//base:base_i18n_perftests",
334       "//base:check_example",
335       "//base:protect_file_posix",
336       "//base:build_utf8_validator_tables",
337       "//cc:cc_perftests",
338       "//cc/blink:cc_blink_unittests",
339       "//chrome/test:load_library_perf_tests",
340       "//chrome/test:performance_browser_tests",
341       "//chrome/test:sync_performance_tests",
342       "//chrome/test/chromedriver:chromedriver",
343       "//chrome/test/chromedriver:chromedriver_tests",
344       "//chrome/tools/profile_reset:jtl_compiler",
345       "//components:components_perftests",
346       "//content/test:content_gl_tests",
347       "//content/test:content_gl_benchmark",
348       "//courgette:courgette",
349       "//courgette:courgette_fuzz",
350       "//courgette:courgette_minimal_tool",
351       "//courgette:courgette_unittests",
352       "//device:device_unittests",
353       "//gin:gin_shell",
354       "//gin:gin_unittests",
355       "//google_apis:google_apis_unittests",
356       "//google_apis/gcm:mcs_probe",
357       "//gpu:angle_unittests",
358       "//gpu:gpu_perftests",
359       "//gpu:gl_tests",
360       "//ipc:ipc_perftests",
361       "//media:ffmpeg_regression_tests",  # TODO(GYP) this should be conditional on media_use_ffmpeg
362       "//media:media_perftests",
363       "//media/cast:generate_barcode_video",
364       "//media/cast:generate_timecode_audio",
365       "//net:crash_cache",
366       "//net:crl_set_dump",
367       "//net:dns_fuzz_stub",
368       "//net:dump_cache",
369       "//net:gdig",
370       "//net:get_server_time",
371       "//net:net_watcher",  # TODO(GYP): This should be conditional on use_v8_in_net
372       "//net:run_testserver",
373       "//net:stress_cache",
374       "//net:tld_cleanup",
375       "//ppapi:pepper_hash_for_uma",
376       "//ppapi:ppapi_perftests",
377       "//sync:run_sync_testserver",
378       "//sync:sync_endtoend_tests",
379       "//third_party/codesighs:maptsvdifftool",
380       "//third_party/leveldatabase:env_chromium_unittests",
381       "//third_party/libaddressinput:libaddressinput_unittests",
382       "//third_party/libphonenumber:libphonenumber_unittests",
383       "//ui/compositor:compositor_unittests",
384     ]
386     if (enable_extensions) {
387       deps += [ "//extensions/shell:app_shell" ]
388     }
390     if (enable_nacl) {
391       deps += [ "//components/nacl:nacl_loader_unittests" ]
392     }
394     if (enable_nacl && enable_remoting) {
395       deps += [ "//remoting:remoting_key_tester" ]
396     }
398     if (use_ash) {
399       deps += [
400         "//ash:ash_shell",
401         "//ash:ash_shell_unittests",
402         "//ash:ash_unittests",
403       ]
404     }
406     if (use_aura) {
407       deps += [
408         "//ui/aura:aura_unittests",
409         "//ui/aura:bench",
410         "//ui/aura:demo",
411       ]
412     }
413   }
415   if (is_linux && !is_chromeos) {
416     deps += [
417       # TODO(GYP): Figure out which of these should (and can) build
418       # under which other conditions.
419       "//build/sanitizers:copy_llvm_symbolizer",
420       "//chrome/test:chrome_app_unittests",
421       "//cloud_print:cloud_print_unittests",
422       "//components/network_hints/browser",
423       "//components/webui_generator",
424       "//content/public/app:browser",
425       "//content/public/app:child",
427       # TODO(GYP): Remove this when the gles2 tests work
428       "//gpu/command_buffer/client:gles2_implementation_no_check",
430       "//gpu/khronos_glcts_support:khronos_glcts_test",  # TODO(GYP) crbug.com/471903 to make this complete.
431       "//media/cast:cast_benchmarks",
432       "//media/cast:tap_proxy",
433       "//mojo/application",
434       "//skia:filter_fuzz_stub",
435       "//skia:image_operations_bench",
436       "//sync/tools:sync_client",
437       "//sync/tools:sync_listen_notifications",
438       "//testing/gmock:gmock_main",
439       "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests",
440       "//tools/perf/clear_system_cache",
441       "//ui/keyboard:keyboard_unittests",
442       "//ui/message_center:message_center_unittests",
443       "//ui/snapshot:snapshot_unittests",
444       "//ui/views/examples:views_examples_with_content_exe",
446       # "//v8:v8_snapshot",  # TODO(GYP): visibility?
447       # "//v8:postmortem-metadata",  # TODO(GYP): visibility?
449       "//third_party/codesighs:nm2tsv",
450       "//third_party/sqlite:sqlite_shell",
451     ]
453     if (current_toolchain == host_toolchain) {
454       # Do not build the breakpad utilities in cross-compiles.
455       deps += [
456         "//breakpad:dump_syms",
457         "//breakpad:microdump_stackwalk",
458         "//breakpad:minidump_dump",
459         "//breakpad:minidump_stackwalk",
460       ]
461     }
463     if (!is_debug && !is_component_build) {
464       deps += [ "//chrome/tools/service_discovery_sniffer" ]
465     }
467     if (toolkit_views) {
468       deps += [ "//ui/app_list:app_list_demo" ]
469     }
471     if (use_x11) {
472       deps += [ "//media:player_x11" ]
473       if (target_cpu != "arm") {
474         deps += [ "//gpu/tools/compositor_model_bench" ]
475       }
476     }
477   }
479   if (is_mac) {
480     deps += [
481       "//breakpad:crash_inspector",
482       "//breakpad:dump_syms",
483       "//third_party/apple_sample_code",
484       "//third_party/molokocacao",
485     ]
487     # TODO(GYP): Remove these when the targets below work and these
488     # are pulled in automatically.
489     deps += [
490       "//cc/blink",
491       "//components/ui/zoom:ui_zoom",
492       "//content",
493       "//content/test:test_support",
494       "//device/battery",
495       "//device/bluetooth",
496       "//device/nfc",
497       "//device/usb",
498       "//device/vibration",
499       "//media/blink",
500       "//pdf",
501       "//storage/browser",
502       "//third_party/brotli",
503       "//third_party/flac",
504       "//third_party/hunspell",
505       "//third_party/iccjpeg",
506       "//third_party/libphonenumber",
507       "//third_party/ots",
508       "//third_party/qcms",
509       "//third_party/smhasher:murmurhash3",
510       "//third_party/speex",
511       "//third_party/webrtc/system_wrappers",
512       "//ui/native_theme",
513       "//ui/snapshot",
514       "//ui/surface",
515     ]
517     # TODO(dpranke): These are as-yet untriaged but need at least the above.
518     deps -= [
519       "//chrome",  # TODO(GYP)
520       "//chrome/test:browser_tests",  # TODO(GYP)
521       "//chrome/test:interactive_ui_tests",  # TODO(GYP)
522       "//chrome/test:sync_integration_tests",  # TODO(GYP)
523       "//chrome/test:unit_tests",  # TODO(GYP)
524       "//components:components_browsertests",  # TODO(GYP)
525       "//components:components_unittests",  # TODO(GYP)
526       "//content/test:content_browsertests",  # TODO(GYP)
527       "//content/test:content_perftests",  # TODO(GYP)
528       "//content/test:content_unittests",  # TODO(GYP)
529       "//extensions:extensions_browsertests",  # TODO(GYP)
530       "//extensions:extensions_unittests",  # TODO(GYP)
531       "//net:net_unittests",  # TODO(GYP)
532       "//ui/app_list:app_list_unittests",  # TODO(GYP)
533       "//ui/gfx:gfx_unittests",  # TODO(GYP)
534     ]
535   }
537   if (is_win) {
538     deps += [
539       "//base:pe_image_test",
540       "//chrome_elf:chrome_elf_unittests",
541       "//chrome_elf:dll_hash_main",
543       # "//components/crash/tools:crash_service", TODO(GYP) - doesn't fully build yet.
544       "//components/wifi:wifi_test",
545       "//net:quic_client",
546       "//net:quic_server",
547       "//sandbox/win:pocdll",
548       "//sandbox/win:sandbox_poc",
549       "//sandbox/win:sbox_integration_tests",
550       "//sandbox/win:sbox_unittests",
551       "//sandbox/win:sbox_validation_tests",
552       "//testing/gtest:gtest_main",
553       "//third_party/codesighs:msmap2tsv",
554       "//third_party/pdfium/samples:pdfium_diff",
555       "//ui/metro_viewer",
556     ]
557     deps -= [
558       "//crypto:crypto_unittests",  # TODO(GYP)
559       "//net:net_unittests",  # TODO(GYP)
560     ]
561   } else if (!is_android) {
562     deps += [ "//breakpad:symupload" ]
563   }
566 group("gn_only") {
567   testonly = true
569   deps = []
571   if (!is_android && !is_ios) {
572     deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
573   }
575   if (is_linux && !is_chromeos) {
576     # TODO(GYP): Figure out if any of these should be in gn_all
577     # and figure out how cross-platform they are
578     deps += [
579       ":gn_mojo_targets",
580       "//chrome/browser/resources:extension_resource_demo",
581       "//chrome/installer/util:strings",
582       "//chrome:main_dll",
583       "//chrome/test:load_library_perf_tests",
584       "//chrome/tools/convert_dict",
585       "//components/constrained_window:unit_tests",
586       "//components/enhanced_bookmarks:test_support",
587       "//components/metrics:serialization",
588       "//components/password_manager/content/renderer:browser_tests",
589       "//components/rappor:unit_tests",
590       "//components/sessions:unit_tests",
591       "//media/blink:media_blink_unittests",
592       "//media/base:base_for_cast_ios",
593       "//media/cast:udp_proxy",
594       "//native_client/src/trusted/platform_qualify:vcpuid",
595       "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
596       "//storage/browser:dump_file_system",
597       "//third_party/angle:libANGLE",
598       "//third_party/angle:libEGL",
599       "//third_party/angle:libGLESv2",
600       "//third_party/cld_2:cld_2_dynamic_data_tool",
601       "//third_party/leveldatabase:leveldb_arena_test",
602       "//third_party/leveldatabase:leveldb_bloom_test",
603       "//third_party/leveldatabase:leveldb_db_test",
604       "//third_party/leveldatabase:leveldb_crc32c_test",
605       "//third_party/leveldatabase:leveldb_cache_test",
606       "//third_party/leveldatabase:leveldb_env_test",
607       "//third_party/leveldatabase:leveldb_write_batch_test",
608       "//third_party/leveldatabase:leveldb_filter_block_test",
609       "//third_party/leveldatabase:leveldb_version_edit_test",
610       "//third_party/leveldatabase:leveldb_db_bench",
611       "//third_party/leveldatabase:leveldb_log_test",
612       "//third_party/leveldatabase:leveldb_corruption_test",
613       "//third_party/leveldatabase:leveldb_table_test",
614       "//third_party/leveldatabase:leveldb_skiplist_test",
615       "//third_party/leveldatabase:leveldb_filename_test",
616       "//third_party/leveldatabase:leveldb_dbformat_test",
617       "//third_party/pdfium/third_party:freetype",
618       "//third_party/libjingle:peerconnnection_server",
619       "//third_party/libjpeg_turbo:simd",
620       "//third_party/libjpeg_turbo:simd_asm",
621       "//third_party/libsrtp:replay_driver",
622       "//third_party/libsrtp:roc_driver",
623       "//third_party/libsrtp:rtpw",
624       "//third_party/libsrtp:rdbx_driver",
625       "//third_party/libsrtp:srtp_driver",
626       "//third_party/libsrtp:srtp_driver",
627       "//third_party/libsrtp:srtp_test_kernel_driver",
628       "//third_party/libsrtp:srtp_test_cipher_driver",
629       "//third_party/libsrtp:srtp_test_datatypes_driver",
630       "//third_party/libsrtp:srtp_test_aes_calc",
631       "//third_party/libsrtp:srtp_test_env",
632       "//third_party/libsrtp:srtp_test_rand_gen",
633       "//third_party/libsrtp:srtp_test_sha1_driver",
634       "//third_party/libsrtp:srtp_test_stat_driver",
635       "//third_party/opus:opus_compare",
636       "//third_party/opus:opus_demo",
637       "//third_party/opus:test_opus_decode",
638       "//third_party/opus:test_opus_encode",
639       "//third_party/opus:test_opus_api",
640       "//third_party/opus:test_opus_padding",
641       "//third_party/webrtc/system_wrappers:field_trial_default",
642       "//third_party/webrtc/system_wrappers:metrics_default",
643       "//ui/display/types",
644       "//ui/shell_dialogs:shell_dialogs_unittests",
645       "//ui/views/examples:views_examples_exe",
646     ]
647     if (enable_nacl) {
648       deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ]
649     }
650     if (use_ozone) {
651       deps += [ "//ui/ozone/demo" ]
652     }
653     if (is_android) {
654       deps += [ "//build/android/gyp/test:hello_world" ]
655     }
657     if (is_linux && current_toolchain == host_toolchain) {
658       deps += [ "//v8:d8" ]
659     }
660   }
663 group("gn_mojo_targets") {
664   testonly = true
665   if (is_linux && !is_chromeos) {
666     # TODO(GYP): Figure out if any of these should be in gn_all
667     # and figure out how cross-platform they are
668     deps = [
669       "//chrome/browser/ui/webui/omnibox:mojo_bindings_python",
670       "//chrome/browser/ui/webui/omnibox:mojo_bindings_dart",
671       "//content/public/common:mojo_bindings_dart",
672       "//content/public/common:mojo_bindings_python",
673       "//content/common:mojo_bindings_dart",
674       "//content/common:mojo_bindings_python",
675       "//content/test:web_ui_test_mojo_bindings_dart",
676       "//content/test:web_ui_test_mojo_bindings_python",
677       "//device/battery:mojo_bindings_python",
678       "//device/battery:mojo_bindings_dart",
679       "//device/vibration:mojo_bindings_dart",
680       "//device/vibration:mojo_bindings_python",
681       "//ipc/mojo:ipc_mojo_perftests",
682       "//ipc/mojo:client_channel_dart",
683       "//ipc/mojo:client_channel_python",
684       "//media/mojo/interfaces:interfaces_dart",
685       "//media/mojo/interfaces:interfaces_python",
686       "//media/mojo/services:cdm_service",
687       "//media/mojo:tests",
688       "//net/interfaces:interfaces_dart",
689       "//net/interfaces:interfaces_python",
690       "//third_party/mojo/src/mojo/edk/js/test:js_integration_tests",
691       "//third_party/mojo/src/mojo/edk/js/tests:js_to_cpp_bindings_dart",
692       "//third_party/mojo/src/mojo/edk/js/tests:js_to_cpp_bindings_python",
693       "//third_party/mojo/src/mojo/public/python:packaged_application",
694       "//third_party/mojo/src/mojo/public/python:packaged_bindings",
695       "//third_party/mojo/src/mojo/public/cpp/application:test_support_standalone",
696       "//third_party/mojo_services/src/accessibility/public/interfaces:interfaces_dart",
697       "//third_party/mojo_services/src/accessibility/public/interfaces:interfaces_python",
698       "//third_party/mojo_services/src/window_manager/public/interfaces:interfaces_dart",
699       "//third_party/mojo_services/src/window_manager/public/interfaces:interfaces_python",
700     ]
702     if (!is_debug) {
703       deps += [
704         "//mojo/services/html_viewer:apptests",
705         "//mojo/services/html_viewer:tests",
706         "//mojo/services/network:apptests",
707       ]
708     }
709   }
712 group("gn_visibility") {
713   deps = [
714     # "//build/config/sanitizers:options_sources",
715     # "//third_party/pdfium:pdfium_embeddertests",  # TODO(GYP): visibility?
716     # "//third_party/pdfium:pdfium_unittests",  # TODO(GYP): visibility?
717     # "//ui/resources:repack_ui_test_mac_locale_pack",
718     # "//v8:v8_snapshot",  # TODO(GYP): visibility?
719     # "//v8:postmortem-metadata",  # TODO(GYP): visibility?
720   ]
723 if (is_linux) {
724   # This group corresponds to the list of tests run on the waterfall for
725   # desktop Linux GYP builds from testing/buildbot/chromium.linux.json. It's
726   # here to help track GYP -> GN conversion progress.
727   group("linux_default_tests") {
728     testonly = true
729     deps = [
730       # components_browsertests  TODO(GYP)
732       "//base:base_unittests",  # PASSES (*) 2/25/2015
733       "//cc:cc_unittests",  # PASSES 2/25/2015
734       "//chrome/test:browser_tests",
735       "//chrome/test:interactive_ui_tests",
736       "//chrome/test:sync_integration_tests",  # Crashes for brettw in GN and GYP.
737       "//chrome/test:unit_tests",  # PASSES 2/25/2015
738       "//chrome/test/chromedriver:chromedriver_unittests",  # PASSES 2/25/2015
739       "//components:components_unittests",  # PASSES 2/27/2015
740       "//content/test:content_browsertests",
741       "//content/test:content_unittests",  # PASSES 2/25/2015
742       "//crypto:crypto_unittests",  # PASSES 2/25/2015
743       "//dbus:dbus_unittests",  # PASSES 2/25/2015
744       "//device:device_unittests",  # PASSES 3/07/2015
745       "//extensions:extensions_browsertests",  # PASSES 2/25/2015
746       "//extensions:extensions_unittests",  # PASSES 2/25/2015
747       "//extensions/shell:app_shell_unittests",  # PASSES 2/25/2015
748       "//google_apis/gcm:gcm_unit_tests",  # PASSES 2/25/2015
749       "//google_apis:google_apis_unittests",  # PASSES 2/25/2015
750       "//gpu:gpu_unittests",  # PASSES 2/25/2015
751       "//ipc:ipc_tests",  # PASSES 2/25/2015
752       "//ipc/mojo:ipc_mojo_unittests",  # PASSES 2/25/2015
753       "//jingle:jingle_unittests",  # PASSES 2/25/2015
754       "//media/cast:cast_unittests",  # PASSES 2/25/2015
755       "//media:media_unittests",  # PASSES 3/3/2015
756       "//mojo/common:mojo_common_unittests",  # PASSES 2/25/2015
757       "//net:net_unittests",  # PASSES 2/25/2015
758       "//ppapi:ppapi_unittests",  # PASSES 2/26/2015
759       "//printing:printing_unittests",  # PASSES 2/25/2015
760       "//remoting:remoting_unittests",  # Some crashes.
761       "//sandbox/linux:sandbox_linux_unittests",  # PASSES 2/25/2015
762       "//skia:skia_unittests",  # PASSES 2/25/2015
763       "//sql:sql_unittests",  # PASSES 2/25/2015
764       "//sync:sync_unit_tests",  # PASSES 2/25/2015
765       "//third_party/cacheinvalidation:cacheinvalidation_unittests",  # PASSES 2/25/2015
766       "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",  # PASSES 2/25/2015
767       "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",  # PASSES 2/25/2015
768       "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",  # PASSES 2/25/2015
769       "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",  # PASSES 2/25/2015
770       "//ui/accessibility:accessibility_unittests",  # PASSES 2/25/2015
771       "//ui/app_list:app_list_unittests",  # PASSES 2/25/2015
772       "//ui/aura:aura_unittests",  # PASSES 2/25/2015
773       "//ui/base:ui_base_unittests",  # TODO(GYP) ResourceBundleTest.* fails.
774       "//ui/compositor:compositor_unittests",  # PASSES 2/25/2015
775       "//ui/display:display_unittests",  # PASSES 2/25/2015
776       "//ui/events:events_unittests",  # PASSES 2/25/2015
777       "//ui/gfx:gfx_unittests",  # PASSES 2/25/2015
778       "//ui/touch_selection:ui_touch_selection_unittests",  # PASSES 2/25/2015
779       "//ui/views:views_unittests",  # PASSES (*) 2/25/2015
780       "//ui/wm:wm_unittests",  # PASSES 2/25/2015
781       "//url:url_unittests",  # PASSES 2/25/2015
783       # Note:
784       # (*) Fails but failures match GYP build at time of testing.
785     ]
787     if (enable_nacl) {
788       deps += [ "//components/nacl:nacl_loader_unittests" ]  # PASSES 3/28/2015
789     }
790   }