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