[go: nahoru, domu]

blob: fc5ecd4d1fdb4d3fa5594ad16bd8ec057ace9897 [file] [log] [blame]
brettw@chromium.orgf0e7ff882013-12-26 21:23:091# 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.
4
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.
10
dprankefd1813272015-04-13 23:56:0011import("//build/config/crypto.gni")
rockot2f1326e2015-02-23 23:53:5112import("//build/config/features.gni")
tfarina@chromium.org378b4f02014-06-10 15:58:4513import("//build/config/ui.gni")
dprankefd1813272015-04-13 23:56:0014import("//build/module_args/v8.gni")
dprankece5eb832015-04-01 20:21:0515import("//remoting/remoting_host.gni")
dprankee2ef3822015-02-24 21:42:1816
cjhopmanca675d3e2014-10-24 03:50:4517if (is_android) {
18 import("//build/config/android/config.gni")
19}
tfarina@chromium.org378b4f02014-06-10 15:58:4520
brettwb84b2942014-10-22 22:58:4521declare_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 = []
26}
27
dpranked62d8512015-03-02 03:06:0328# 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.
32#
33# In addition, the "gn_all" target serves to pull in all of the other
34# build files needed for the build.
35#
36# TODO(GYP): make sure that the above is true and there are scripts run
37# on the bots that enforce this.
dprankeff30e3d2015-02-24 06:52:3938
dprankee2ef3822015-02-24 21:42:1839group("gn_all") {
40 testonly = true
41
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",
brettw922d3aa2015-02-27 22:15:4650 "//chrome/test/chromedriver:chromedriver_unittests",
dprankef6ca89c52015-03-30 22:01:3851 "//components:components_browsertests",
dprankee2ef3822015-02-24 21:42:1852 "//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",
scheibcfdca0e2015-04-01 05:27:5858 "//device:device_unittests",
dprankee2ef3822015-02-24 21:42:1859 "//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 "//media:media_unittests",
dprankee2ef3822015-02-24 21:42:1867 "//media/cast:cast_unittests",
68 "//mojo",
dprankec09ccaa2015-03-27 22:00:3869 "//mojo/application",
dprankee2ef3822015-02-24 21:42:1870 "//mojo/common:mojo_common_unittests",
rockot9c67e5f2015-03-12 20:01:2171 "//net:hpack_example_generator",
72 "//net:hpack_fuzz_mutator",
73 "//net:hpack_fuzz_wrapper",
74 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:1875 "//net:net_unittests",
brettw31f4de692015-03-04 17:24:4576 "//ppapi:ppapi_unittests",
tfarina79ef072d2015-04-04 20:16:5777 "//ppapi/examples/2d",
78 "//ppapi/examples/audio",
79 "//ppapi/examples/audio_input",
80 "//ppapi/examples/compositor",
81 "//ppapi/examples/crxfs",
82 "//ppapi/examples/enumerate_devices",
83 "//ppapi/examples/file_chooser",
84 "//ppapi/examples/flash_topmost",
85 "//ppapi/examples/font",
86 "//ppapi/examples/gamepad",
87 "//ppapi/examples/gles2",
88 "//ppapi/examples/gles2_spinning_cube",
89 "//ppapi/examples/ime",
90 "//ppapi/examples/input",
91 "//ppapi/examples/media_stream_audio",
92 "//ppapi/examples/media_stream_video",
93 "//ppapi/examples/mouse_cursor",
94 "//ppapi/examples/mouse_lock",
95 "//ppapi/examples/printing",
96 "//ppapi/examples/scaling",
97 "//ppapi/examples/scripting",
98 "//ppapi/examples/stub",
99 "//ppapi/examples/threading",
100 "//ppapi/examples/url_loader",
101 "//ppapi/examples/video_capture",
102 "//ppapi/examples/video_decode",
103 "//ppapi/examples/video_effects",
104 "//ppapi/examples/video_encode",
dprankee2ef3822015-02-24 21:42:18105 "//printing:printing_unittests",
106 "//skia:skia_unittests",
107 "//sql:sql_unittests",
108 "//sync:sync_unit_tests",
dpranked62d8512015-03-02 03:06:03109 "//third_party/WebKit/public:blink_tests",
dprankee2ef3822015-02-24 21:42:18110 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
dprankee2ef3822015-02-24 21:42:18111 "//third_party/codesighs",
dprankee2ef3822015-02-24 21:42:18112 "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",
113 "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",
114 "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",
115 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",
116 "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
117 "//third_party/pdfium/samples:pdfium_test",
dprankee2ef3822015-02-24 21:42:18118 "//third_party/smhasher:pmurhash",
dprankee2ef3822015-02-24 21:42:18119 "//tools/imagediff($host_toolchain)",
120 "//tools/gn",
121 "//tools/gn:gn_unittests",
dprankefd1813272015-04-13 23:56:00122 "//tools/gn:generate_test_gn_data",
dprankee2ef3822015-02-24 21:42:18123 "//tools/telemetry:bitmaptools($host_toolchain)",
124 "//ui/accessibility:accessibility_unittests",
125 "//ui/app_list:app_list_unittests",
126 "//ui/base:ui_base_unittests",
127 "//ui/display:display_unittests",
128 "//ui/events:events_unittests",
129 "//ui/gfx:gfx_unittests",
130 "//ui/touch_selection:ui_touch_selection_unittests",
131 "//url:url_unittests",
132 ]
133
scottmg34fb7e52014-12-03 23:27:24134 deps += root_extra_deps
brettw@chromium.orgfce5c3fe2014-04-10 21:13:05135
dpranke021d4c92015-02-24 02:08:25136 if (enable_extensions && !is_mac) {
dprankefd1813272015-04-13 23:56:00137 # TODO(GYP): Get this working on the mac?
rockot2f1326e2015-02-23 23:53:51138 deps += [ "//extensions/shell:app_shell_unittests" ]
139 }
140
dprankefd1813272015-04-13 23:56:00141 if (enable_me2me_host) {
142 deps += [ "//remoting/host:remoting_me2me_host" ]
143 }
144
145 if (enable_media_router) {
146 deps += [
147 "//chrome/browser/media/router/",
148 "//chrome/browser/media/router:unit_tests",
149 ]
150 }
151
dprankece5eb832015-04-01 20:21:05152 if (enable_remoting_host) {
153 deps += [
154 "//remoting:remoting_unittests",
155 "//remoting:remoting_perftests",
156 "//remoting/host",
157 "//remoting/host:remoting_start_host",
158 "//remoting/host/it2me:remote_assistance_host",
159 ]
160 }
161
dprankee2ef3822015-02-24 21:42:18162 if (toolkit_views) {
163 deps += [ "//ui/views:views_unittests" ]
James Robinson060f2e32014-09-10 22:31:37164 }
165
dprankee2ef3822015-02-24 21:42:18166 if (use_aura) {
167 deps += [ "//ui/wm:wm_unittests" ]
168 }
169
170 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47171 deps += [ "//ui/ozone" ]
tfarina@chromium.orga306aaa2014-05-24 13:21:50172 }
173
dprankefd1813272015-04-13 23:56:00174 if (use_x11) {
175 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22176 }
177
tmoniuszkoe5578b922015-04-14 09:38:03178 if (enable_configuration_policy) {
179 deps += [ "//components/policy:policy_templates" ]
180 }
181
dprankefd1813272015-04-13 23:56:00182 if (v8_use_external_startup_data) {
183 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
brettw@chromium.org2d6893a2014-06-02 19:16:36184 }
185
dpranke@chromium.org5a8d5162014-04-12 01:19:16186 if (is_android) {
cjhopman@chromium.org26046b52014-07-16 00:11:03187 deps += [
cjhopman31511332014-10-23 01:05:02188 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38189 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02190 "//build/android/rezip",
hiroshigee6d374c2015-02-24 07:54:06191 "//chrome/android:chrome_shell_apk",
hiroshigee6d374c2015-02-24 07:54:06192 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
dprankee2ef3822015-02-24 21:42:18193 "//tools/imagediff($host_toolchain)",
194
195 # TODO(GYP): Remove these when the components_unittests work.
196 "//components/history/core/test:test",
197 "//components/policy:policy_component_test_support",
198 "//components/policy:test_support",
199 "//components/rappor:test_support",
200 "//components/signin/core/browser:test_support",
201 "//components/sync_driver:test_support",
202 "//components/user_manager",
203 "//components/wallpaper",
204 "//content/shell/android:content_shell_apk",
205
206 # TODO(GYP): Are these needed, or will they be pulled in automatically?
cjhopman@chromium.org684b2292014-08-22 19:12:39207 "//third_party/android_tools:android_gcm_java",
208 "//third_party/android_tools:uiautomator_java",
209 "//third_party/android_tools:android_support_v13_java",
210 "//third_party/android_tools:android_support_v7_appcompat_java",
211 "//third_party/android_tools:android_support_v7_mediarouter_java",
dprankee2ef3822015-02-24 21:42:18212 "//third_party/mesa",
mikecase85e83ed2014-12-08 19:18:29213 "//third_party/mockito:mockito_java",
dprankee2ef3822015-02-24 21:42:18214 "//third_party/openmax_dl/dl",
215 "//third_party/speex",
216 "//ui/android:ui_java",
217
218 # TODO(GYP): Are these needed?
219 "//chrome/test:test_support_unit",
220 "//third_party/smhasher:murmurhash3",
221 "//ui/message_center:test_support",
222 ]
223 deps -= [
dprankee2ef3822015-02-24 21:42:18224 "//chrome", # TODO(GYP) ??
225 "//chrome/test:browser_tests", # TODO(GYP) ??
226 "//chrome/test:interactive_ui_tests", # TODO(GYP) ??
227 "//chrome/test:sync_integration_tests", # TODO(GYP) ??
228 "//chrome/test:unit_tests", # TODO(GYP)
brettw922d3aa2015-02-27 22:15:46229
230 # Chromedriver shouldn't be compiled on Android.
231 "//chrome/test/chromedriver:chromedriver_unittests",
dprankee2ef3822015-02-24 21:42:18232 "//extensions:extensions_browsertests",
233 "//extensions:extensions_unittests",
234 "//google_apis/gcm:gcm_unit_tests",
235 "//ipc:ipc_tests", # TODO(GYP) ??
236 "//jingle:jingle_unittests", # TODO(GYP) ??
rockot9c67e5f2015-03-12 20:01:21237 "//net:hpack_example_generator",
238 "//net:hpack_fuzz_mutator",
239 "//net:hpack_fuzz_wrapper",
240 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18241 "//net:net_unittests",
tfarina79ef072d2015-04-04 20:16:57242 "//ppapi/examples/2d",
243 "//ppapi/examples/audio",
244 "//ppapi/examples/audio_input",
245 "//ppapi/examples/compositor",
246 "//ppapi/examples/crxfs",
247 "//ppapi/examples/enumerate_devices",
248 "//ppapi/examples/file_chooser",
249 "//ppapi/examples/flash_topmost",
250 "//ppapi/examples/font",
251 "//ppapi/examples/gamepad",
252 "//ppapi/examples/gles2",
253 "//ppapi/examples/gles2_spinning_cube",
254 "//ppapi/examples/ime",
255 "//ppapi/examples/input",
256 "//ppapi/examples/media_stream_audio",
257 "//ppapi/examples/media_stream_video",
258 "//ppapi/examples/mouse_cursor",
259 "//ppapi/examples/mouse_lock",
260 "//ppapi/examples/printing",
261 "//ppapi/examples/scaling",
262 "//ppapi/examples/scripting",
263 "//ppapi/examples/stub",
264 "//ppapi/examples/threading",
265 "//ppapi/examples/url_loader",
266 "//ppapi/examples/video_capture",
267 "//ppapi/examples/video_decode",
268 "//ppapi/examples/video_effects",
269 "//ppapi/examples/video_encode",
dprankee2ef3822015-02-24 21:42:18270 "//third_party/pdfium/samples:pdfium_test",
271 "//tools/gn",
dprankefd1813272015-04-13 23:56:00272 "//tools/gn:generate_test_gn_data",
dprankee2ef3822015-02-24 21:42:18273 "//tools/gn:gn_unittests",
274 "//ui/app_list:app_list_unittests",
275 "//url:url_unittests",
cjhopman@chromium.org26046b52014-07-16 00:11:03276 ]
277
cjhopmanca675d3e2014-10-24 03:50:45278 if (has_chrome_android_internal) {
dprankee2ef3822015-02-24 21:42:18279 deps += [ "//clank" ] # TODO(GYP) ??
cjhopmanca675d3e2014-10-24 03:50:45280 }
dprankedb5527d72015-03-08 04:22:47281 }
282
dprankefd1813272015-04-13 23:56:00283 if (is_linux) { # TODO(GYP): || is_android || is_bsd?
284 deps += [
285 "//breakpad:core-2-minidump",
286 "//breakpad:minidump-2-core",
287 ]
288 }
289
290 if (is_chromeos || is_mac || is_win) {
291 deps += [
292 "//rlz:rlz_id",
293 "//rlz:rlz_lib",
294 "//rlz:rlz_unittests",
295 ]
296 }
297
dprankedb5527d72015-03-08 04:22:47298 if (is_linux) {
299 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06300 deps += [
dprankedb5527d72015-03-08 04:22:47301 "//breakpad:breakpad_unittests",
dprankedb5527d72015-03-08 04:22:47302 "//breakpad:generate_test_dump",
dprankedb5527d72015-03-08 04:22:47303 "//dbus:dbus_test_server",
dprankee2ef3822015-02-24 21:42:18304 "//dbus:dbus_unittests",
dprankedb5527d72015-03-08 04:22:47305 "//net:disk_cache_memory_test",
306 "//net:flip_in_mem_edsm_server",
307 "//net:flip_in_mem_edsm_server_unittests",
308 "//net:quic_client",
309 "//net:quic_server",
310 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18311 "//sandbox/linux:sandbox_linux_unittests",
dprankedb5527d72015-03-08 04:22:47312 "//sandbox/linux:sandbox_linux_jni_unittests",
hiroshigee6d374c2015-02-24 07:54:06313 ]
dnicoara8c6aa8e2015-03-11 23:20:32314
315 if (is_chromeos || use_ash) {
316 deps += [ "//components/session_manager/core" ]
317 }
dprankedb5527d72015-03-08 04:22:47318 }
319
dprankefd1813272015-04-13 23:56:00320 if (is_win || (is_linux && !is_chromeos)) {
321 # TODO(GYP): Figure out which of these should (and can) build
322 # for android/chromeos/mac/ios.
tfarina9e7cf702015-02-23 21:13:44323 deps += [
dprankedb5527d72015-03-08 04:22:47324 "//base:base_perftests",
325 "//base:base_i18n_perftests",
326 "//base:check_example",
327 "//base:protect_file_posix",
328 "//base:build_utf8_validator_tables",
dprankedb5527d72015-03-08 04:22:47329 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00330 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47331 "//chrome/test:load_library_perf_tests",
dpranke76f48222015-04-01 00:00:00332 "//chrome/test:performance_browser_tests",
dprankedb5527d72015-03-08 04:22:47333 "//chrome/test:sync_performance_tests",
334 "//chrome/test/chromedriver:chromedriver",
335 "//chrome/test/chromedriver:chromedriver_tests",
336 "//chrome/tools/profile_reset:jtl_compiler",
337 "//components:components_perftests",
dprankedb5527d72015-03-08 04:22:47338 "//content/test:content_gl_tests",
339 "//content/test:content_gl_benchmark",
340 "//courgette:courgette",
341 "//courgette:courgette_fuzz",
342 "//courgette:courgette_minimal_tool",
343 "//courgette:courgette_unittests",
344 "//device:device_unittests",
345 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47346 "//gin:gin_unittests",
347 "//google_apis:google_apis_unittests",
348 "//google_apis/gcm:mcs_probe",
349 "//gpu:angle_unittests",
dprankedb5527d72015-03-08 04:22:47350 "//gpu:gpu_perftests",
dprankefd1813272015-04-13 23:56:00351 "//gpu:gl_tests",
dprankedb5527d72015-03-08 04:22:47352 "//ipc:ipc_perftests",
353 "//media:ffmpeg_regression_tests", # TODO(GYP) this should be conditional on media_use_ffmpeg
354 "//media:media_perftests",
dprankedb5527d72015-03-08 04:22:47355 "//media/cast:generate_barcode_video",
356 "//media/cast:generate_timecode_audio",
dprankedb5527d72015-03-08 04:22:47357 "//net:crash_cache",
358 "//net:crl_set_dump",
359 "//net:dns_fuzz_stub",
dprankefd1813272015-04-13 23:56:00360 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47361 "//net:gdig",
362 "//net:get_server_time",
dprankedb5527d72015-03-08 04:22:47363 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
dprankefd1813272015-04-13 23:56:00364 "//net:run_testserver",
dprankedb5527d72015-03-08 04:22:47365 "//net:stress_cache",
366 "//net:tld_cleanup",
dprankec09ccaa2015-03-27 22:00:38367 "//ppapi:pepper_hash_for_uma",
dprankefd1813272015-04-13 23:56:00368 "//ppapi:ppapi_perftests",
dprankedb5527d72015-03-08 04:22:47369 "//sync:run_sync_testserver",
370 "//sync:sync_endtoend_tests",
dprankedb5527d72015-03-08 04:22:47371 "//third_party/codesighs:maptsvdifftool",
dprankedb5527d72015-03-08 04:22:47372 "//third_party/leveldatabase:env_chromium_unittests",
373 "//third_party/libaddressinput:libaddressinput_unittests",
dprankefd1813272015-04-13 23:56:00374 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47375 "//ui/compositor:compositor_unittests",
376 ]
377
378 if (enable_extensions) {
379 deps += [ "//extensions/shell:app_shell" ]
380 }
381
382 if (enable_nacl) {
dprankefd1813272015-04-13 23:56:00383 deps += [ "//components/nacl:nacl_loader_unittests" ]
dprankedb5527d72015-03-08 04:22:47384 }
385
dprankefd1813272015-04-13 23:56:00386 if (enable_nacl && enable_remoting) {
387 deps += [ "//remoting:remoting_key_tester" ]
dprankedb5527d72015-03-08 04:22:47388 }
389
390 if (use_ash) {
391 deps += [
392 "//ash:ash_shell",
393 "//ash:ash_shell_unittests",
394 "//ash:ash_unittests",
395 ]
396 }
397
398 if (use_aura) {
399 deps += [
400 "//ui/aura:aura_unittests",
401 "//ui/aura:bench",
402 "//ui/aura:demo",
403 ]
404 }
dprankefd1813272015-04-13 23:56:00405 }
406
407 if (is_linux && !is_chromeos) {
408 deps += [
409 # TODO(GYP): Figure out which of these should (and can) build
410 # under which other conditions.
411 "//build/sanitizers:copy_llvm_symbolizer",
412 "//chrome/test:chrome_app_unittests",
413 "//cloud_print:cloud_print_unittests",
414 "//components/network_hints/browser",
415 "//components/webui_generator",
416 "//content/public/app:browser",
417 "//content/public/app:child",
418
419 # TODO(GYP): Remove this when the gles2 tests work
420 "//gpu/command_buffer/client:gles2_implementation_no_check",
421
422 "//gpu/khronos_glcts_support:khronos_glcts_test", # TODO(GYP) crbug.com/471903 to make this complete.
423 "//media/cast:cast_benchmarks",
424 "//media/cast:tap_proxy",
425 "//mojo/application",
426 "//skia:filter_fuzz_stub",
427 "//skia:image_operations_bench",
428 "//sync/tools:sync_client",
429 "//sync/tools:sync_listen_notifications",
430 "//testing/gmock:gmock_main",
431 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests",
432 "//tools/perf/clear_system_cache",
433 "//ui/keyboard:keyboard_unittests",
434 "//ui/message_center:message_center_unittests",
435 "//ui/snapshot:snapshot_unittests",
436 "//ui/views/examples:views_examples_with_content_exe",
437
438 # "//v8:v8_snapshot", # TODO(GYP): visibility?
439 # "//v8:postmortem-metadata", # TODO(GYP): visibility?
440
441 "//third_party/codesighs:nm2tsv",
442 "//third_party/sqlite:sqlite_shell",
443 ]
444
445 if (current_toolchain == host_toolchain) {
446 # Do not build the breakpad utilities in cross-compiles.
447 deps += [
448 "//breakpad:dump_syms",
449 "//breakpad:microdump_stackwalk",
450 "//breakpad:minidump_dump",
451 "//breakpad:minidump_stackwalk",
452 ]
453 }
454
455 if (!is_debug && !is_component_build) {
456 deps += [ "//chrome/tools/service_discovery_sniffer" ]
457 }
458
459 if (toolkit_views) {
460 deps += [ "//ui/app_list:app_list_demo" ]
461 }
dprankedb5527d72015-03-08 04:22:47462
463 if (use_x11) {
464 deps += [ "//media:player_x11" ]
wtc6e2e29c2015-03-13 01:09:44465 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59466 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44467 }
dprankedb5527d72015-03-08 04:22:47468 }
469 }
470
471 if (is_mac) {
472 deps += [
473 "//breakpad:crash_inspector",
474 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44475 "//third_party/apple_sample_code",
476 "//third_party/molokocacao",
477 ]
478
dprankee2ef3822015-02-24 21:42:18479 # TODO(GYP): Remove these when the targets below work and these
480 # are pulled in automatically.
481 deps += [
482 "//cc/blink",
483 "//components/ui/zoom:ui_zoom",
484 "//content",
485 "//content/test:test_support",
486 "//device/battery",
487 "//device/bluetooth",
488 "//device/nfc",
489 "//device/usb",
490 "//device/vibration",
491 "//media/blink",
492 "//pdf",
493 "//storage/browser",
494 "//third_party/brotli",
495 "//third_party/flac",
496 "//third_party/hunspell",
497 "//third_party/iccjpeg",
498 "//third_party/libphonenumber",
499 "//third_party/ots",
500 "//third_party/qcms",
501 "//third_party/smhasher:murmurhash3",
502 "//third_party/speex",
503 "//third_party/webrtc/system_wrappers",
504 "//ui/native_theme",
505 "//ui/snapshot",
506 "//ui/surface",
507 ]
508
dprankecf8465db72014-11-10 23:51:22509 # TODO(dpranke): These are as-yet untriaged but need at least the above.
dpranke43760592014-11-08 02:59:57510 deps -= [
dprankee2ef3822015-02-24 21:42:18511 "//chrome", # TODO(GYP)
512 "//chrome/test:browser_tests", # TODO(GYP)
513 "//chrome/test:interactive_ui_tests", # TODO(GYP)
514 "//chrome/test:sync_integration_tests", # TODO(GYP)
515 "//chrome/test:unit_tests", # TODO(GYP)
dprankef6ca89c52015-03-30 22:01:38516 "//components:components_browsertests", # TODO(GYP)
dprankee2ef3822015-02-24 21:42:18517 "//components:components_unittests", # TODO(GYP)
518 "//content/test:content_browsertests", # TODO(GYP)
519 "//content/test:content_perftests", # TODO(GYP)
520 "//content/test:content_unittests", # TODO(GYP)
521 "//extensions:extensions_browsertests", # TODO(GYP)
522 "//extensions:extensions_unittests", # TODO(GYP)
523 "//net:net_unittests", # TODO(GYP)
dprankee2ef3822015-02-24 21:42:18524 "//ui/app_list:app_list_unittests", # TODO(GYP)
525 "//ui/gfx:gfx_unittests", # TODO(GYP)
dprankecf8465db72014-11-10 23:51:22526 ]
dprankefd1813272015-04-13 23:56:00527 }
528
529 if (is_win) {
530 deps += [
531 "//base:pe_image_test",
532 "//chrome_elf:chrome_elf_unittests",
533 "//chrome_elf:dll_hash_main",
534
535 # "//components/crash/tools:crash_service", TODO(GYP) - doesn't fully build yet.
536 "//components/wifi:wifi_test",
537 "//net:quic_client",
538 "//net:quic_server",
539 "//sandbox/win:pocdll",
540 "//sandbox/win:sandbox_poc",
541 "//sandbox/win:sbox_integration_tests",
542 "//sandbox/win:sbox_unittests",
543 "//sandbox/win:sbox_validation_tests",
544 "//testing/gtest:gtest_main",
545 "//third_party/codesighs:msmap2tsv",
546 "//third_party/pdfium/samples:pdfium_diff",
547 "//ui/metro_viewer",
548 ]
dprankee2ef3822015-02-24 21:42:18549 deps -= [
550 "//crypto:crypto_unittests", # TODO(GYP)
551 "//net:net_unittests", # TODO(GYP)
552 ]
dprankefd1813272015-04-13 23:56:00553 } else {
554 if (!is_android) {
555 # TODO(GYP): Make this work on android also.
556 deps += [ "//breakpad:symupload" ]
557 }
mohsenf837da7c2014-12-09 19:01:34558 }
brettw@chromium.orgf0e7ff882013-12-26 21:23:09559}
brettw533c50422015-02-26 17:49:16560
dpranked62d8512015-03-02 03:06:03561group("gn_only") {
dprankedb5527d72015-03-08 04:22:47562 testonly = true
563
isherman0f89b43eb2015-04-11 00:02:45564 deps = []
565
566 if (!is_android && !is_ios) {
567 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
568 }
569
dprankedb5527d72015-03-08 04:22:47570 if (is_linux && !is_chromeos) {
571 # TODO(GYP): Figure out if any of these should be in gn_all
572 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45573 deps += [
dprankedb5527d72015-03-08 04:22:47574 ":gn_mojo_targets",
575 "//chrome/browser/resources:extension_resource_demo",
576 "//chrome/installer/util:strings",
577 "//chrome:main_dll",
578 "//chrome/test:load_library_perf_tests",
579 "//chrome/tools/convert_dict",
580 "//components/constrained_window:unit_tests",
581 "//components/enhanced_bookmarks:test_support",
dprankedb5527d72015-03-08 04:22:47582 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45583 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47584 "//components/rappor:unit_tests",
585 "//components/sessions:unit_tests",
586 "//media/blink:media_blink_unittests",
587 "//media/base:base_for_cast_ios",
588 "//media/cast:udp_proxy",
589 "//native_client/src/trusted/platform_qualify:vcpuid",
590 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
591 "//storage/browser:dump_file_system",
592 "//third_party/angle:libANGLE",
593 "//third_party/angle:libEGL",
594 "//third_party/angle:libGLESv2",
595 "//third_party/cld_2:cld_2_dynamic_data_tool",
596 "//third_party/leveldatabase:leveldb_arena_test",
597 "//third_party/leveldatabase:leveldb_bloom_test",
598 "//third_party/leveldatabase:leveldb_db_test",
599 "//third_party/leveldatabase:leveldb_crc32c_test",
600 "//third_party/leveldatabase:leveldb_cache_test",
601 "//third_party/leveldatabase:leveldb_env_test",
602 "//third_party/leveldatabase:leveldb_write_batch_test",
603 "//third_party/leveldatabase:leveldb_filter_block_test",
604 "//third_party/leveldatabase:leveldb_version_edit_test",
605 "//third_party/leveldatabase:leveldb_db_bench",
606 "//third_party/leveldatabase:leveldb_log_test",
607 "//third_party/leveldatabase:leveldb_corruption_test",
608 "//third_party/leveldatabase:leveldb_table_test",
609 "//third_party/leveldatabase:leveldb_skiplist_test",
610 "//third_party/leveldatabase:leveldb_filename_test",
611 "//third_party/leveldatabase:leveldb_dbformat_test",
612 "//third_party/pdfium/third_party:freetype",
613 "//third_party/libjingle:peerconnnection_server",
614 "//third_party/libjpeg_turbo:simd",
615 "//third_party/libjpeg_turbo:simd_asm",
616 "//third_party/libsrtp:replay_driver",
617 "//third_party/libsrtp:roc_driver",
618 "//third_party/libsrtp:rtpw",
619 "//third_party/libsrtp:rdbx_driver",
620 "//third_party/libsrtp:srtp_driver",
621 "//third_party/libsrtp:srtp_driver",
622 "//third_party/libsrtp:srtp_test_kernel_driver",
623 "//third_party/libsrtp:srtp_test_cipher_driver",
624 "//third_party/libsrtp:srtp_test_datatypes_driver",
625 "//third_party/libsrtp:srtp_test_aes_calc",
626 "//third_party/libsrtp:srtp_test_env",
627 "//third_party/libsrtp:srtp_test_rand_gen",
628 "//third_party/libsrtp:srtp_test_sha1_driver",
629 "//third_party/libsrtp:srtp_test_stat_driver",
630 "//third_party/opus:opus_compare",
631 "//third_party/opus:opus_demo",
632 "//third_party/opus:test_opus_decode",
633 "//third_party/opus:test_opus_encode",
634 "//third_party/opus:test_opus_api",
635 "//third_party/opus:test_opus_padding",
636 "//third_party/webrtc/system_wrappers:field_trial_default",
637 "//third_party/webrtc/system_wrappers:metrics_default",
638 "//ui/display/types",
639 "//ui/shell_dialogs:shell_dialogs_unittests",
640 "//ui/views/examples:views_examples_exe",
dprankedb5527d72015-03-08 04:22:47641 ]
642 if (enable_nacl) {
643 deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ]
644 }
645 if (use_ozone) {
646 deps += [ "//ui/ozone/demo" ]
647 }
648 if (is_android) {
649 deps += [ "//build/android/gyp/test:hello_world" ]
650 }
dpranke807f6022015-03-17 23:20:56651
652 if (is_linux && current_toolchain == host_toolchain) {
653 deps += [ "//v8:d8" ]
654 }
dprankedb5527d72015-03-08 04:22:47655 }
656}
657
658group("gn_mojo_targets") {
659 testonly = true
660 if (is_linux && !is_chromeos) {
661 # TODO(GYP): Figure out if any of these should be in gn_all
662 # and figure out how cross-platform they are
663 deps = [
664 "//chrome/browser/ui/webui/omnibox:mojo_bindings_python",
665 "//chrome/browser/ui/webui/omnibox:mojo_bindings_dart",
666 "//content/public/common:mojo_bindings_dart",
667 "//content/public/common:mojo_bindings_python",
668 "//content/common:mojo_bindings_dart",
669 "//content/common:mojo_bindings_python",
670 "//content/test:web_ui_test_mojo_bindings_dart",
671 "//content/test:web_ui_test_mojo_bindings_python",
672 "//device/battery:mojo_bindings_python",
673 "//device/battery:mojo_bindings_dart",
674 "//device/vibration:mojo_bindings_dart",
675 "//device/vibration:mojo_bindings_python",
676 "//ipc/mojo:ipc_mojo_perftests",
677 "//ipc/mojo:client_channel_dart",
678 "//ipc/mojo:client_channel_python",
679 "//media/mojo/interfaces:interfaces_dart",
680 "//media/mojo/interfaces:interfaces_python",
681 "//media/mojo/services:cdm_service",
682 "//media/mojo:tests",
683 "//net/interfaces:interfaces_dart",
684 "//net/interfaces:interfaces_python",
685 "//third_party/mojo/src/mojo/edk/js/test:js_integration_tests",
686 "//third_party/mojo/src/mojo/edk/js/tests:js_to_cpp_bindings_dart",
687 "//third_party/mojo/src/mojo/edk/js/tests:js_to_cpp_bindings_python",
688 "//third_party/mojo/src/mojo/public/python:packaged_application",
689 "//third_party/mojo/src/mojo/public/python:packaged_bindings",
690 "//third_party/mojo/src/mojo/public/cpp/application:test_support_standalone",
691 "//third_party/mojo_services/src/accessibility/public/interfaces:interfaces_dart",
692 "//third_party/mojo_services/src/accessibility/public/interfaces:interfaces_python",
693 "//third_party/mojo_services/src/window_manager/public/interfaces:interfaces_dart",
694 "//third_party/mojo_services/src/window_manager/public/interfaces:interfaces_python",
695 ]
696
697 if (!is_debug) {
698 deps += [
mswdb4f05ad2015-04-10 17:25:11699 "//mojo/services/html_viewer:apptests",
dprankedb5527d72015-03-08 04:22:47700 "//mojo/services/html_viewer:tests",
701 "//mojo/services/network:apptests",
702 ]
703 }
704 }
705}
706
707group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03708 deps = [
dprankedb5527d72015-03-08 04:22:47709 # "//build/config/sanitizers:options_sources",
710 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
711 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
712 # "//ui/resources:repack_ui_test_mac_locale_pack",
713 # "//v8:v8_snapshot", # TODO(GYP): visibility?
714 # "//v8:postmortem-metadata", # TODO(GYP): visibility?
dpranked62d8512015-03-02 03:06:03715 ]
716}
717
brettw533c50422015-02-26 17:49:16718if (is_linux) {
719 # This group corresponds to the list of tests run on the waterfall for
720 # desktop Linux GYP builds from testing/buildbot/chromium.linux.json. It's
721 # here to help track GYP -> GN conversion progress.
722 group("linux_default_tests") {
723 testonly = true
724 deps = [
brettw533c50422015-02-26 17:49:16725 # components_browsertests TODO(GYP)
brettw533c50422015-02-26 17:49:16726
727 "//base:base_unittests", # PASSES (*) 2/25/2015
728 "//cc:cc_unittests", # PASSES 2/25/2015
729 "//chrome/test:browser_tests",
730 "//chrome/test:interactive_ui_tests",
brettw922d3aa2015-02-27 22:15:46731 "//chrome/test:sync_integration_tests", # Crashes for brettw in GN and GYP.
brettw533c50422015-02-26 17:49:16732 "//chrome/test:unit_tests", # PASSES 2/25/2015
brettw922d3aa2015-02-27 22:15:46733 "//chrome/test/chromedriver:chromedriver_unittests", # PASSES 2/25/2015
brettw77b58722015-02-27 23:35:06734 "//components:components_unittests", # PASSES 2/27/2015
brettw533c50422015-02-26 17:49:16735 "//content/test:content_browsertests",
736 "//content/test:content_unittests", # PASSES 2/25/2015
737 "//crypto:crypto_unittests", # PASSES 2/25/2015
738 "//dbus:dbus_unittests", # PASSES 2/25/2015
tfarina466754f2015-03-09 23:39:29739 "//device:device_unittests", # PASSES 3/07/2015
brettw533c50422015-02-26 17:49:16740 "//extensions:extensions_browsertests", # PASSES 2/25/2015
741 "//extensions:extensions_unittests", # PASSES 2/25/2015
742 "//extensions/shell:app_shell_unittests", # PASSES 2/25/2015
743 "//google_apis/gcm:gcm_unit_tests", # PASSES 2/25/2015
744 "//google_apis:google_apis_unittests", # PASSES 2/25/2015
745 "//gpu:gpu_unittests", # PASSES 2/25/2015
746 "//ipc:ipc_tests", # PASSES 2/25/2015
747 "//ipc/mojo:ipc_mojo_unittests", # PASSES 2/25/2015
748 "//jingle:jingle_unittests", # PASSES 2/25/2015
749 "//media/cast:cast_unittests", # PASSES 2/25/2015
agoode21dbd122015-03-05 02:40:50750 "//media:media_unittests", # PASSES 3/3/2015
brettw533c50422015-02-26 17:49:16751 "//mojo/common:mojo_common_unittests", # PASSES 2/25/2015
752 "//net:net_unittests", # PASSES 2/25/2015
brettw31f4de692015-03-04 17:24:45753 "//ppapi:ppapi_unittests", # PASSES 2/26/2015
brettw533c50422015-02-26 17:49:16754 "//printing:printing_unittests", # PASSES 2/25/2015
brettw31f4de692015-03-04 17:24:45755 "//remoting:remoting_unittests", # Some crashes.
brettw533c50422015-02-26 17:49:16756 "//sandbox/linux:sandbox_linux_unittests", # PASSES 2/25/2015
757 "//skia:skia_unittests", # PASSES 2/25/2015
758 "//sql:sql_unittests", # PASSES 2/25/2015
759 "//sync:sync_unit_tests", # PASSES 2/25/2015
760 "//third_party/cacheinvalidation:cacheinvalidation_unittests", # PASSES 2/25/2015
761 "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests", # PASSES 2/25/2015
762 "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests", # PASSES 2/25/2015
763 "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests", # PASSES 2/25/2015
764 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests", # PASSES 2/25/2015
765 "//ui/accessibility:accessibility_unittests", # PASSES 2/25/2015
766 "//ui/app_list:app_list_unittests", # PASSES 2/25/2015
767 "//ui/aura:aura_unittests", # PASSES 2/25/2015
768 "//ui/base:ui_base_unittests", # TODO(GYP) ResourceBundleTest.* fails.
769 "//ui/compositor:compositor_unittests", # PASSES 2/25/2015
770 "//ui/display:display_unittests", # PASSES 2/25/2015
771 "//ui/events:events_unittests", # PASSES 2/25/2015
772 "//ui/gfx:gfx_unittests", # PASSES 2/25/2015
773 "//ui/touch_selection:ui_touch_selection_unittests", # PASSES 2/25/2015
774 "//ui/views:views_unittests", # PASSES (*) 2/25/2015
775 "//ui/wm:wm_unittests", # PASSES 2/25/2015
776 "//url:url_unittests", # PASSES 2/25/2015
777
778 # Note:
779 # (*) Fails but failures match GYP build at time of testing.
780 ]
tfarina47830e32015-03-30 23:02:11781
782 if (enable_nacl) {
783 deps += [ "//components/nacl:nacl_loader_unittests" ] # PASSES 3/28/2015
784 }
brettw533c50422015-02-26 17:49:16785 }
786}