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