[go: nahoru, domu]

blob: 91763004b3ae1e95e54c5dcd72ce8faff8a6f2bc [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",
dprankec09ccaa2015-03-27 22:00:3853 "//components/policy:policy_templates",
dprankee2ef3822015-02-24 21:42:1854 "//content/shell:content_shell",
55 "//content/test:content_browsertests",
56 "//content/test:content_perftests",
57 "//content/test:content_unittests",
58 "//crypto:crypto_unittests",
scheibcfdca0e2015-04-01 05:27:5859 "//device:device_unittests",
dprankee2ef3822015-02-24 21:42:1860 "//extensions:extensions_browsertests",
61 "//extensions:extensions_unittests",
62 "//google_apis/gcm:gcm_unit_tests",
63 "//gpu:gpu_unittests",
64 "//ipc:ipc_tests",
65 "//ipc/mojo:ipc_mojo_unittests",
66 "//jingle:jingle_unittests",
67 "//media:media_unittests",
dprankee2ef3822015-02-24 21:42:1868 "//media/cast:cast_unittests",
69 "//mojo",
dprankec09ccaa2015-03-27 22:00:3870 "//mojo/application",
dprankee2ef3822015-02-24 21:42:1871 "//mojo/common:mojo_common_unittests",
rockot9c67e5f2015-03-12 20:01:2172 "//net:hpack_example_generator",
73 "//net:hpack_fuzz_mutator",
74 "//net:hpack_fuzz_wrapper",
75 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:1876 "//net:net_unittests",
brettw31f4de692015-03-04 17:24:4577 "//ppapi:ppapi_unittests",
tfarina79ef072d2015-04-04 20:16:5778 "//ppapi/examples/2d",
79 "//ppapi/examples/audio",
80 "//ppapi/examples/audio_input",
81 "//ppapi/examples/compositor",
82 "//ppapi/examples/crxfs",
83 "//ppapi/examples/enumerate_devices",
84 "//ppapi/examples/file_chooser",
85 "//ppapi/examples/flash_topmost",
86 "//ppapi/examples/font",
87 "//ppapi/examples/gamepad",
88 "//ppapi/examples/gles2",
89 "//ppapi/examples/gles2_spinning_cube",
90 "//ppapi/examples/ime",
91 "//ppapi/examples/input",
92 "//ppapi/examples/media_stream_audio",
93 "//ppapi/examples/media_stream_video",
94 "//ppapi/examples/mouse_cursor",
95 "//ppapi/examples/mouse_lock",
96 "//ppapi/examples/printing",
97 "//ppapi/examples/scaling",
98 "//ppapi/examples/scripting",
99 "//ppapi/examples/stub",
100 "//ppapi/examples/threading",
101 "//ppapi/examples/url_loader",
102 "//ppapi/examples/video_capture",
103 "//ppapi/examples/video_decode",
104 "//ppapi/examples/video_effects",
105 "//ppapi/examples/video_encode",
dprankee2ef3822015-02-24 21:42:18106 "//printing:printing_unittests",
107 "//skia:skia_unittests",
108 "//sql:sql_unittests",
109 "//sync:sync_unit_tests",
dpranked62d8512015-03-02 03:06:03110 "//third_party/WebKit/public:blink_tests",
dprankee2ef3822015-02-24 21:42:18111 "//third_party/cacheinvalidation:cacheinvalidation_unittests",
dprankee2ef3822015-02-24 21:42:18112 "//third_party/codesighs",
dprankee2ef3822015-02-24 21:42:18113 "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests",
114 "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests",
115 "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests",
116 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests",
117 "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests",
118 "//third_party/pdfium/samples:pdfium_test",
dprankee2ef3822015-02-24 21:42:18119 "//third_party/smhasher:pmurhash",
dprankee2ef3822015-02-24 21:42:18120 "//tools/imagediff($host_toolchain)",
121 "//tools/gn",
122 "//tools/gn:gn_unittests",
dprankefd1813272015-04-13 23:56:00123 "//tools/gn:generate_test_gn_data",
dprankee2ef3822015-02-24 21:42:18124 "//tools/telemetry:bitmaptools($host_toolchain)",
125 "//ui/accessibility:accessibility_unittests",
126 "//ui/app_list:app_list_unittests",
127 "//ui/base:ui_base_unittests",
128 "//ui/display:display_unittests",
129 "//ui/events:events_unittests",
130 "//ui/gfx:gfx_unittests",
131 "//ui/touch_selection:ui_touch_selection_unittests",
132 "//url:url_unittests",
133 ]
134
scottmg34fb7e52014-12-03 23:27:24135 deps += root_extra_deps
brettw@chromium.orgfce5c3fe2014-04-10 21:13:05136
dpranke021d4c92015-02-24 02:08:25137 if (enable_extensions && !is_mac) {
dprankefd1813272015-04-13 23:56:00138 # TODO(GYP): Get this working on the mac?
rockot2f1326e2015-02-23 23:53:51139 deps += [ "//extensions/shell:app_shell_unittests" ]
dprankefd1813272015-04-13 23:56:00140 }
141
142 if (enable_me2me_host) {
143 deps += [ "//remoting/host:remoting_me2me_host" ]
144 }
145
146 if (enable_media_router) {
147 deps += [
148 "//chrome/browser/media/router/",
149 "//chrome/browser/media/router:unit_tests",
150 ]
rockot2f1326e2015-02-23 23:53:51151 }
152
dprankece5eb832015-04-01 20:21:05153 if (enable_remoting_host) {
154 deps += [
155 "//remoting:remoting_unittests",
156 "//remoting:remoting_perftests",
157 "//remoting/host",
158 "//remoting/host:remoting_start_host",
159 "//remoting/host/it2me:remote_assistance_host",
160 ]
James Robinson060f2e32014-09-10 22:31:37161 }
162
dprankee2ef3822015-02-24 21:42:18163 if (toolkit_views) {
164 deps += [ "//ui/views:views_unittests" ]
brettw@chromium.org6b9028ab2014-07-23 17:15:38165 }
166
dprankee2ef3822015-02-24 21:42:18167 if (use_aura) {
168 deps += [ "//ui/wm:wm_unittests" ]
169 }
170
171 if (use_ozone) {
dprankedb5527d72015-03-08 04:22:47172 deps += [ "//ui/ozone" ]
tfarina@chromium.orga306aaa2014-05-24 13:21:50173 }
174
dprankefd1813272015-04-13 23:56:00175 if (use_x11) {
176 deps += [ "//tools/xdisplaycheck" ]
kmarshalld2f3bea2015-03-11 23:42:22177 }
178
dprankefd1813272015-04-13 23:56:00179 if (v8_use_external_startup_data) {
180 deps += [ "//gin:gin_v8_snapshot_fingerprint" ]
brettw@chromium.org137dff6d2014-06-12 19:35:55181 }
182
dpranke@chromium.org5a8d5162014-04-12 01:19:16183 if (is_android) {
cjhopman@chromium.org26046b52014-07-16 00:11:03184 deps += [
cjhopman31511332014-10-23 01:05:02185 "//base/android/linker:chromium_android_linker",
cjhopman3d85c6d2014-11-18 03:39:38186 "//build/android/gyp/test:hello_world",
cjhopman31511332014-10-23 01:05:02187 "//build/android/rezip",
hiroshigee6d374c2015-02-24 07:54:06188 "//chrome/android:chrome_shell_apk",
hiroshigee6d374c2015-02-24 07:54:06189 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_apk",
dprankee2ef3822015-02-24 21:42:18190 "//tools/imagediff($host_toolchain)",
191
192 # TODO(GYP): Remove these when the components_unittests work.
193 "//components/history/core/test:test",
194 "//components/policy:policy_component_test_support",
195 "//components/policy:test_support",
196 "//components/rappor:test_support",
197 "//components/signin/core/browser:test_support",
198 "//components/sync_driver:test_support",
199 "//components/user_manager",
200 "//components/wallpaper",
201 "//content/shell/android:content_shell_apk",
202
203 # TODO(GYP): Are these needed, or will they be pulled in automatically?
cjhopman@chromium.org684b2292014-08-22 19:12:39204 "//third_party/android_tools:android_gcm_java",
205 "//third_party/android_tools:uiautomator_java",
206 "//third_party/android_tools:android_support_v13_java",
207 "//third_party/android_tools:android_support_v7_appcompat_java",
208 "//third_party/android_tools:android_support_v7_mediarouter_java",
dprankee2ef3822015-02-24 21:42:18209 "//third_party/mesa",
mikecase85e83ed2014-12-08 19:18:29210 "//third_party/mockito:mockito_java",
dprankee2ef3822015-02-24 21:42:18211 "//third_party/openmax_dl/dl",
212 "//third_party/speex",
213 "//ui/android:ui_java",
214
215 # TODO(GYP): Are these needed?
216 "//chrome/test:test_support_unit",
217 "//third_party/smhasher:murmurhash3",
218 "//ui/message_center:test_support",
219 ]
220 deps -= [
dprankee2ef3822015-02-24 21:42:18221 "//chrome", # TODO(GYP) ??
222 "//chrome/test:browser_tests", # TODO(GYP) ??
223 "//chrome/test:interactive_ui_tests", # TODO(GYP) ??
224 "//chrome/test:sync_integration_tests", # TODO(GYP) ??
225 "//chrome/test:unit_tests", # TODO(GYP)
brettw922d3aa2015-02-27 22:15:46226
227 # Chromedriver shouldn't be compiled on Android.
228 "//chrome/test/chromedriver:chromedriver_unittests",
dprankee2ef3822015-02-24 21:42:18229 "//extensions:extensions_browsertests",
230 "//extensions:extensions_unittests",
231 "//google_apis/gcm:gcm_unit_tests",
232 "//ipc:ipc_tests", # TODO(GYP) ??
233 "//jingle:jingle_unittests", # TODO(GYP) ??
rockot9c67e5f2015-03-12 20:01:21234 "//net:hpack_example_generator",
235 "//net:hpack_fuzz_mutator",
236 "//net:hpack_fuzz_wrapper",
237 "//net:net_perftests",
dprankee2ef3822015-02-24 21:42:18238 "//net:net_unittests",
tfarina79ef072d2015-04-04 20:16:57239 "//ppapi/examples/2d",
240 "//ppapi/examples/audio",
241 "//ppapi/examples/audio_input",
242 "//ppapi/examples/compositor",
243 "//ppapi/examples/crxfs",
244 "//ppapi/examples/enumerate_devices",
245 "//ppapi/examples/file_chooser",
246 "//ppapi/examples/flash_topmost",
247 "//ppapi/examples/font",
248 "//ppapi/examples/gamepad",
249 "//ppapi/examples/gles2",
250 "//ppapi/examples/gles2_spinning_cube",
251 "//ppapi/examples/ime",
252 "//ppapi/examples/input",
253 "//ppapi/examples/media_stream_audio",
254 "//ppapi/examples/media_stream_video",
255 "//ppapi/examples/mouse_cursor",
256 "//ppapi/examples/mouse_lock",
257 "//ppapi/examples/printing",
258 "//ppapi/examples/scaling",
259 "//ppapi/examples/scripting",
260 "//ppapi/examples/stub",
261 "//ppapi/examples/threading",
262 "//ppapi/examples/url_loader",
263 "//ppapi/examples/video_capture",
264 "//ppapi/examples/video_decode",
265 "//ppapi/examples/video_effects",
266 "//ppapi/examples/video_encode",
dprankee2ef3822015-02-24 21:42:18267 "//third_party/pdfium/samples:pdfium_test",
268 "//tools/gn",
dprankefd1813272015-04-13 23:56:00269 "//tools/gn:generate_test_gn_data",
dprankee2ef3822015-02-24 21:42:18270 "//tools/gn:gn_unittests",
271 "//ui/app_list:app_list_unittests",
272 "//url:url_unittests",
cjhopman@chromium.org26046b52014-07-16 00:11:03273 ]
274
cjhopmanca675d3e2014-10-24 03:50:45275 if (has_chrome_android_internal) {
dprankee2ef3822015-02-24 21:42:18276 deps += [ "//clank" ] # TODO(GYP) ??
cjhopmanca675d3e2014-10-24 03:50:45277 }
dprankefd1813272015-04-13 23:56:00278 }
279
280 if (is_linux) { # TODO(GYP): || is_android || is_bsd?
281 deps += [
282 "//breakpad:core-2-minidump",
283 "//breakpad:minidump-2-core",
284 ]
285 }
286
287 if (is_chromeos || is_mac || is_win) {
288 deps += [
289 "//rlz:rlz_id",
290 "//rlz:rlz_lib",
291 "//rlz:rlz_unittests",
292 ]
dprankedb5527d72015-03-08 04:22:47293 }
294
295 if (is_linux) {
296 # The following are definitely linux-only.
hiroshigee6d374c2015-02-24 07:54:06297 deps += [
dprankedb5527d72015-03-08 04:22:47298 "//breakpad:breakpad_unittests",
dprankedb5527d72015-03-08 04:22:47299 "//breakpad:generate_test_dump",
dprankedb5527d72015-03-08 04:22:47300 "//dbus:dbus_test_server",
dprankee2ef3822015-02-24 21:42:18301 "//dbus:dbus_unittests",
dprankedb5527d72015-03-08 04:22:47302 "//net:disk_cache_memory_test",
303 "//net:flip_in_mem_edsm_server",
304 "//net:flip_in_mem_edsm_server_unittests",
305 "//net:quic_client",
306 "//net:quic_server",
307 "//sandbox/linux:chrome_sandbox",
dprankee2ef3822015-02-24 21:42:18308 "//sandbox/linux:sandbox_linux_unittests",
dprankedb5527d72015-03-08 04:22:47309 "//sandbox/linux:sandbox_linux_jni_unittests",
hiroshigee6d374c2015-02-24 07:54:06310 ]
dnicoara8c6aa8e2015-03-11 23:20:32311
312 if (is_chromeos || use_ash) {
313 deps += [ "//components/session_manager/core" ]
314 }
dprankedb5527d72015-03-08 04:22:47315 }
316
dprankefd1813272015-04-13 23:56:00317 if (is_win || (is_linux && !is_chromeos)) {
318 # TODO(GYP): Figure out which of these should (and can) build
319 # for android/chromeos/mac/ios.
tfarina9e7cf702015-02-23 21:13:44320 deps += [
dprankedb5527d72015-03-08 04:22:47321 "//base:base_perftests",
322 "//base:base_i18n_perftests",
323 "//base:check_example",
324 "//base:protect_file_posix",
325 "//base:build_utf8_validator_tables",
dprankedb5527d72015-03-08 04:22:47326 "//cc:cc_perftests",
dprankefd1813272015-04-13 23:56:00327 "//cc/blink:cc_blink_unittests",
dprankedb5527d72015-03-08 04:22:47328 "//chrome/test:load_library_perf_tests",
dpranke76f48222015-04-01 00:00:00329 "//chrome/test:performance_browser_tests",
dprankedb5527d72015-03-08 04:22:47330 "//chrome/test:sync_performance_tests",
331 "//chrome/test/chromedriver:chromedriver",
332 "//chrome/test/chromedriver:chromedriver_tests",
333 "//chrome/tools/profile_reset:jtl_compiler",
334 "//components:components_perftests",
dprankedb5527d72015-03-08 04:22:47335 "//content/test:content_gl_tests",
336 "//content/test:content_gl_benchmark",
337 "//courgette:courgette",
338 "//courgette:courgette_fuzz",
339 "//courgette:courgette_minimal_tool",
340 "//courgette:courgette_unittests",
341 "//device:device_unittests",
342 "//gin:gin_shell",
dprankedb5527d72015-03-08 04:22:47343 "//gin:gin_unittests",
344 "//google_apis:google_apis_unittests",
345 "//google_apis/gcm:mcs_probe",
346 "//gpu:angle_unittests",
dprankedb5527d72015-03-08 04:22:47347 "//gpu:gpu_perftests",
dprankefd1813272015-04-13 23:56:00348 "//gpu:gl_tests",
dprankedb5527d72015-03-08 04:22:47349 "//ipc:ipc_perftests",
350 "//media:ffmpeg_regression_tests", # TODO(GYP) this should be conditional on media_use_ffmpeg
351 "//media:media_perftests",
dprankedb5527d72015-03-08 04:22:47352 "//media/cast:generate_barcode_video",
353 "//media/cast:generate_timecode_audio",
dprankedb5527d72015-03-08 04:22:47354 "//net:crash_cache",
355 "//net:crl_set_dump",
356 "//net:dns_fuzz_stub",
dprankefd1813272015-04-13 23:56:00357 "//net:dump_cache",
dprankedb5527d72015-03-08 04:22:47358 "//net:gdig",
359 "//net:get_server_time",
dprankedb5527d72015-03-08 04:22:47360 "//net:net_watcher", # TODO(GYP): This should be conditional on use_v8_in_net
dprankefd1813272015-04-13 23:56:00361 "//net:run_testserver",
dprankedb5527d72015-03-08 04:22:47362 "//net:stress_cache",
363 "//net:tld_cleanup",
dprankec09ccaa2015-03-27 22:00:38364 "//ppapi:pepper_hash_for_uma",
dprankefd1813272015-04-13 23:56:00365 "//ppapi:ppapi_perftests",
dprankedb5527d72015-03-08 04:22:47366 "//sync:run_sync_testserver",
367 "//sync:sync_endtoend_tests",
dprankedb5527d72015-03-08 04:22:47368 "//third_party/codesighs:maptsvdifftool",
dprankedb5527d72015-03-08 04:22:47369 "//third_party/leveldatabase:env_chromium_unittests",
370 "//third_party/libaddressinput:libaddressinput_unittests",
dprankefd1813272015-04-13 23:56:00371 "//third_party/libphonenumber:libphonenumber_unittests",
dprankedb5527d72015-03-08 04:22:47372 "//ui/compositor:compositor_unittests",
373 ]
374
375 if (enable_extensions) {
376 deps += [ "//extensions/shell:app_shell" ]
377 }
378
379 if (enable_nacl) {
dprankefd1813272015-04-13 23:56:00380 deps += [ "//components/nacl:nacl_loader_unittests" ]
dprankedb5527d72015-03-08 04:22:47381 }
382
dprankefd1813272015-04-13 23:56:00383 if (enable_nacl && enable_remoting) {
384 deps += [ "//remoting:remoting_key_tester" ]
dprankedb5527d72015-03-08 04:22:47385 }
386
387 if (use_ash) {
388 deps += [
389 "//ash:ash_shell",
390 "//ash:ash_shell_unittests",
391 "//ash:ash_unittests",
392 ]
393 }
394
395 if (use_aura) {
396 deps += [
397 "//ui/aura:aura_unittests",
398 "//ui/aura:bench",
399 "//ui/aura:demo",
400 ]
401 }
dprankefd1813272015-04-13 23:56:00402 }
403
404 if (is_linux && !is_chromeos) {
405 deps += [
406 # TODO(GYP): Figure out which of these should (and can) build
407 # under which other conditions.
408 "//build/sanitizers:copy_llvm_symbolizer",
409 "//chrome/test:chrome_app_unittests",
410 "//cloud_print:cloud_print_unittests",
411 "//components/network_hints/browser",
412 "//components/webui_generator",
413 "//content/public/app:browser",
414 "//content/public/app:child",
415
416 # TODO(GYP): Remove this when the gles2 tests work
417 "//gpu/command_buffer/client:gles2_implementation_no_check",
418
419 "//gpu/khronos_glcts_support:khronos_glcts_test", # TODO(GYP) crbug.com/471903 to make this complete.
420 "//media/cast:cast_benchmarks",
421 "//media/cast:tap_proxy",
422 "//mojo/application",
423 "//skia:filter_fuzz_stub",
424 "//skia:image_operations_bench",
425 "//sync/tools:sync_client",
426 "//sync/tools:sync_listen_notifications",
427 "//testing/gmock:gmock_main",
428 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_perftests",
429 "//tools/perf/clear_system_cache",
430 "//ui/keyboard:keyboard_unittests",
431 "//ui/message_center:message_center_unittests",
432 "//ui/snapshot:snapshot_unittests",
433 "//ui/views/examples:views_examples_with_content_exe",
434
435 # "//v8:v8_snapshot", # TODO(GYP): visibility?
436 # "//v8:postmortem-metadata", # TODO(GYP): visibility?
437
438 "//third_party/codesighs:nm2tsv",
439 "//third_party/sqlite:sqlite_shell",
440 ]
441
442 if (current_toolchain == host_toolchain) {
443 # Do not build the breakpad utilities in cross-compiles.
444 deps += [
445 "//breakpad:dump_syms",
446 "//breakpad:microdump_stackwalk",
447 "//breakpad:minidump_dump",
448 "//breakpad:minidump_stackwalk",
449 ]
450 }
451
452 if (!is_debug && !is_component_build) {
453 deps += [ "//chrome/tools/service_discovery_sniffer" ]
454 }
455
456 if (toolkit_views) {
457 deps += [ "//ui/app_list:app_list_demo" ]
458 }
dprankedb5527d72015-03-08 04:22:47459
460 if (use_x11) {
461 deps += [ "//media:player_x11" ]
wtc6e2e29c2015-03-13 01:09:44462 if (target_cpu != "arm") {
tfarina8944e6f2015-03-25 20:06:59463 deps += [ "//gpu/tools/compositor_model_bench" ]
wtc6e2e29c2015-03-13 01:09:44464 }
dprankedb5527d72015-03-08 04:22:47465 }
466 }
467
468 if (is_mac) {
469 deps += [
470 "//breakpad:crash_inspector",
471 "//breakpad:dump_syms",
tfarina9e7cf702015-02-23 21:13:44472 "//third_party/apple_sample_code",
473 "//third_party/molokocacao",
474 ]
475
dprankee2ef3822015-02-24 21:42:18476 # TODO(GYP): Remove these when the targets below work and these
477 # are pulled in automatically.
478 deps += [
479 "//cc/blink",
480 "//components/ui/zoom:ui_zoom",
481 "//content",
482 "//content/test:test_support",
483 "//device/battery",
484 "//device/bluetooth",
485 "//device/nfc",
486 "//device/usb",
487 "//device/vibration",
488 "//media/blink",
489 "//pdf",
490 "//storage/browser",
491 "//third_party/brotli",
492 "//third_party/flac",
493 "//third_party/hunspell",
494 "//third_party/iccjpeg",
495 "//third_party/libphonenumber",
496 "//third_party/ots",
497 "//third_party/qcms",
498 "//third_party/smhasher:murmurhash3",
499 "//third_party/speex",
500 "//third_party/webrtc/system_wrappers",
501 "//ui/native_theme",
502 "//ui/snapshot",
503 "//ui/surface",
504 ]
505
dprankecf8465db72014-11-10 23:51:22506 # TODO(dpranke): These are as-yet untriaged but need at least the above.
dpranke43760592014-11-08 02:59:57507 deps -= [
dprankee2ef3822015-02-24 21:42:18508 "//chrome", # TODO(GYP)
509 "//chrome/test:browser_tests", # TODO(GYP)
510 "//chrome/test:interactive_ui_tests", # TODO(GYP)
511 "//chrome/test:sync_integration_tests", # TODO(GYP)
512 "//chrome/test:unit_tests", # TODO(GYP)
dprankef6ca89c52015-03-30 22:01:38513 "//components:components_browsertests", # TODO(GYP)
dprankee2ef3822015-02-24 21:42:18514 "//components:components_unittests", # TODO(GYP)
515 "//content/test:content_browsertests", # TODO(GYP)
516 "//content/test:content_perftests", # TODO(GYP)
517 "//content/test:content_unittests", # TODO(GYP)
518 "//extensions:extensions_browsertests", # TODO(GYP)
519 "//extensions:extensions_unittests", # TODO(GYP)
520 "//net:net_unittests", # TODO(GYP)
dprankee2ef3822015-02-24 21:42:18521 "//ui/app_list:app_list_unittests", # TODO(GYP)
522 "//ui/gfx:gfx_unittests", # TODO(GYP)
mohsen29fd4052014-12-08 21:06:46523 ]
dprankefd1813272015-04-13 23:56:00524 }
525
526 if (is_win) {
527 deps += [
528 "//base:pe_image_test",
529 "//chrome_elf:chrome_elf_unittests",
530 "//chrome_elf:dll_hash_main",
531
532 # "//components/crash/tools:crash_service", TODO(GYP) - doesn't fully build yet.
533 "//components/wifi:wifi_test",
534 "//net:quic_client",
535 "//net:quic_server",
536 "//sandbox/win:pocdll",
537 "//sandbox/win:sandbox_poc",
538 "//sandbox/win:sbox_integration_tests",
539 "//sandbox/win:sbox_unittests",
540 "//sandbox/win:sbox_validation_tests",
541 "//testing/gtest:gtest_main",
542 "//third_party/codesighs:msmap2tsv",
543 "//third_party/pdfium/samples:pdfium_diff",
544 "//ui/metro_viewer",
545 ]
dprankee2ef3822015-02-24 21:42:18546 deps -= [
547 "//crypto:crypto_unittests", # TODO(GYP)
548 "//net:net_unittests", # TODO(GYP)
549 ]
dprankefd1813272015-04-13 23:56:00550 } else {
551 if (!is_android) {
552 # TODO(GYP): Make this work on android also.
553 deps += [ "//breakpad:symupload" ]
554 }
mohsenf837da7c2014-12-09 19:01:34555 }
dpranke18e57432015-02-27 21:46:47556}
557
dpranked62d8512015-03-02 03:06:03558group("gn_only") {
dprankedb5527d72015-03-08 04:22:47559 testonly = true
560
isherman0f89b43eb2015-04-11 00:02:45561 deps = []
562
563 if (!is_android && !is_ios) {
564 deps += [ "//components/proximity_auth:proximity_auth_unittests" ]
565 }
566
dprankedb5527d72015-03-08 04:22:47567 if (is_linux && !is_chromeos) {
568 # TODO(GYP): Figure out if any of these should be in gn_all
569 # and figure out how cross-platform they are
isherman0f89b43eb2015-04-11 00:02:45570 deps += [
dprankedb5527d72015-03-08 04:22:47571 ":gn_mojo_targets",
572 "//chrome/browser/resources:extension_resource_demo",
573 "//chrome/installer/util:strings",
574 "//chrome:main_dll",
575 "//chrome/test:load_library_perf_tests",
576 "//chrome/tools/convert_dict",
577 "//components/constrained_window:unit_tests",
578 "//components/enhanced_bookmarks:test_support",
dprankedb5527d72015-03-08 04:22:47579 "//components/metrics:serialization",
isherman0f89b43eb2015-04-11 00:02:45580 "//components/password_manager/content/renderer:browser_tests",
dprankedb5527d72015-03-08 04:22:47581 "//components/rappor:unit_tests",
582 "//components/sessions:unit_tests",
583 "//media/blink:media_blink_unittests",
584 "//media/base:base_for_cast_ios",
585 "//media/cast:udp_proxy",
586 "//native_client/src/trusted/platform_qualify:vcpuid",
587 "//native_client/src/trusted/debug_stub:gdb_rsp_unittest",
588 "//storage/browser:dump_file_system",
589 "//third_party/angle:libANGLE",
590 "//third_party/angle:libEGL",
591 "//third_party/angle:libGLESv2",
592 "//third_party/cld_2:cld_2_dynamic_data_tool",
593 "//third_party/leveldatabase:leveldb_arena_test",
594 "//third_party/leveldatabase:leveldb_bloom_test",
595 "//third_party/leveldatabase:leveldb_db_test",
596 "//third_party/leveldatabase:leveldb_crc32c_test",
597 "//third_party/leveldatabase:leveldb_cache_test",
598 "//third_party/leveldatabase:leveldb_env_test",
599 "//third_party/leveldatabase:leveldb_write_batch_test",
600 "//third_party/leveldatabase:leveldb_filter_block_test",
601 "//third_party/leveldatabase:leveldb_version_edit_test",
602 "//third_party/leveldatabase:leveldb_db_bench",
603 "//third_party/leveldatabase:leveldb_log_test",
604 "//third_party/leveldatabase:leveldb_corruption_test",
605 "//third_party/leveldatabase:leveldb_table_test",
606 "//third_party/leveldatabase:leveldb_skiplist_test",
607 "//third_party/leveldatabase:leveldb_filename_test",
608 "//third_party/leveldatabase:leveldb_dbformat_test",
609 "//third_party/pdfium/third_party:freetype",
610 "//third_party/libjingle:peerconnnection_server",
611 "//third_party/libjpeg_turbo:simd",
612 "//third_party/libjpeg_turbo:simd_asm",
613 "//third_party/libsrtp:replay_driver",
614 "//third_party/libsrtp:roc_driver",
615 "//third_party/libsrtp:rtpw",
616 "//third_party/libsrtp:rdbx_driver",
617 "//third_party/libsrtp:srtp_driver",
618 "//third_party/libsrtp:srtp_driver",
619 "//third_party/libsrtp:srtp_test_kernel_driver",
620 "//third_party/libsrtp:srtp_test_cipher_driver",
621 "//third_party/libsrtp:srtp_test_datatypes_driver",
622 "//third_party/libsrtp:srtp_test_aes_calc",
623 "//third_party/libsrtp:srtp_test_env",
624 "//third_party/libsrtp:srtp_test_rand_gen",
625 "//third_party/libsrtp:srtp_test_sha1_driver",
626 "//third_party/libsrtp:srtp_test_stat_driver",
627 "//third_party/opus:opus_compare",
628 "//third_party/opus:opus_demo",
629 "//third_party/opus:test_opus_decode",
630 "//third_party/opus:test_opus_encode",
631 "//third_party/opus:test_opus_api",
632 "//third_party/opus:test_opus_padding",
633 "//third_party/webrtc/system_wrappers:field_trial_default",
634 "//third_party/webrtc/system_wrappers:metrics_default",
635 "//ui/display/types",
636 "//ui/shell_dialogs:shell_dialogs_unittests",
637 "//ui/views/examples:views_examples_exe",
dprankedb5527d72015-03-08 04:22:47638 ]
639 if (enable_nacl) {
640 deps += [ "//native_client/src/trusted/service_runtime:sel_ldr" ]
641 }
642 if (use_ozone) {
643 deps += [ "//ui/ozone/demo" ]
644 }
645 if (is_android) {
646 deps += [ "//build/android/gyp/test:hello_world" ]
647 }
dpranke807f6022015-03-17 23:20:56648
649 if (is_linux && current_toolchain == host_toolchain) {
650 deps += [ "//v8:d8" ]
651 }
dprankedb5527d72015-03-08 04:22:47652 }
653}
654
655group("gn_mojo_targets") {
656 testonly = true
657 if (is_linux && !is_chromeos) {
658 # TODO(GYP): Figure out if any of these should be in gn_all
659 # and figure out how cross-platform they are
660 deps = [
661 "//chrome/browser/ui/webui/omnibox:mojo_bindings_python",
662 "//chrome/browser/ui/webui/omnibox:mojo_bindings_dart",
663 "//content/public/common:mojo_bindings_dart",
664 "//content/public/common:mojo_bindings_python",
665 "//content/common:mojo_bindings_dart",
666 "//content/common:mojo_bindings_python",
667 "//content/test:web_ui_test_mojo_bindings_dart",
668 "//content/test:web_ui_test_mojo_bindings_python",
669 "//device/battery:mojo_bindings_python",
670 "//device/battery:mojo_bindings_dart",
671 "//device/vibration:mojo_bindings_dart",
672 "//device/vibration:mojo_bindings_python",
673 "//ipc/mojo:ipc_mojo_perftests",
674 "//ipc/mojo:client_channel_dart",
675 "//ipc/mojo:client_channel_python",
676 "//media/mojo/interfaces:interfaces_dart",
677 "//media/mojo/interfaces:interfaces_python",
678 "//media/mojo/services:cdm_service",
679 "//media/mojo:tests",
680 "//net/interfaces:interfaces_dart",
681 "//net/interfaces:interfaces_python",
682 "//third_party/mojo/src/mojo/edk/js/test:js_integration_tests",
683 "//third_party/mojo/src/mojo/edk/js/tests:js_to_cpp_bindings_dart",
684 "//third_party/mojo/src/mojo/edk/js/tests:js_to_cpp_bindings_python",
685 "//third_party/mojo/src/mojo/public/python:packaged_application",
686 "//third_party/mojo/src/mojo/public/python:packaged_bindings",
687 "//third_party/mojo/src/mojo/public/cpp/application:test_support_standalone",
688 "//third_party/mojo_services/src/accessibility/public/interfaces:interfaces_dart",
689 "//third_party/mojo_services/src/accessibility/public/interfaces:interfaces_python",
690 "//third_party/mojo_services/src/window_manager/public/interfaces:interfaces_dart",
691 "//third_party/mojo_services/src/window_manager/public/interfaces:interfaces_python",
692 ]
693
694 if (!is_debug) {
695 deps += [
mswdb4f05ad2015-04-10 17:25:11696 "//mojo/services/html_viewer:apptests",
dprankedb5527d72015-03-08 04:22:47697 "//mojo/services/html_viewer:tests",
698 "//mojo/services/network:apptests",
699 ]
700 }
701 }
702}
703
704group("gn_visibility") {
dpranked62d8512015-03-02 03:06:03705 deps = [
dprankedb5527d72015-03-08 04:22:47706 # "//build/config/sanitizers:options_sources",
707 # "//third_party/pdfium:pdfium_embeddertests", # TODO(GYP): visibility?
708 # "//third_party/pdfium:pdfium_unittests", # TODO(GYP): visibility?
709 # "//ui/resources:repack_ui_test_mac_locale_pack",
710 # "//v8:v8_snapshot", # TODO(GYP): visibility?
711 # "//v8:postmortem-metadata", # TODO(GYP): visibility?
dpranked62d8512015-03-02 03:06:03712 ]
713}
714
brettw533c50422015-02-26 17:49:16715if (is_linux) {
716 # This group corresponds to the list of tests run on the waterfall for
717 # desktop Linux GYP builds from testing/buildbot/chromium.linux.json. It's
718 # here to help track GYP -> GN conversion progress.
719 group("linux_default_tests") {
720 testonly = true
721 deps = [
brettw533c50422015-02-26 17:49:16722 # components_browsertests TODO(GYP)
brettw533c50422015-02-26 17:49:16723
724 "//base:base_unittests", # PASSES (*) 2/25/2015
725 "//cc:cc_unittests", # PASSES 2/25/2015
726 "//chrome/test:browser_tests",
727 "//chrome/test:interactive_ui_tests",
brettw922d3aa2015-02-27 22:15:46728 "//chrome/test:sync_integration_tests", # Crashes for brettw in GN and GYP.
brettw533c50422015-02-26 17:49:16729 "//chrome/test:unit_tests", # PASSES 2/25/2015
brettw922d3aa2015-02-27 22:15:46730 "//chrome/test/chromedriver:chromedriver_unittests", # PASSES 2/25/2015
brettw77b58722015-02-27 23:35:06731 "//components:components_unittests", # PASSES 2/27/2015
brettw533c50422015-02-26 17:49:16732 "//content/test:content_browsertests",
733 "//content/test:content_unittests", # PASSES 2/25/2015
734 "//crypto:crypto_unittests", # PASSES 2/25/2015
735 "//dbus:dbus_unittests", # PASSES 2/25/2015
tfarina466754f2015-03-09 23:39:29736 "//device:device_unittests", # PASSES 3/07/2015
brettw533c50422015-02-26 17:49:16737 "//extensions:extensions_browsertests", # PASSES 2/25/2015
738 "//extensions:extensions_unittests", # PASSES 2/25/2015
739 "//extensions/shell:app_shell_unittests", # PASSES 2/25/2015
740 "//google_apis/gcm:gcm_unit_tests", # PASSES 2/25/2015
741 "//google_apis:google_apis_unittests", # PASSES 2/25/2015
742 "//gpu:gpu_unittests", # PASSES 2/25/2015
743 "//ipc:ipc_tests", # PASSES 2/25/2015
744 "//ipc/mojo:ipc_mojo_unittests", # PASSES 2/25/2015
745 "//jingle:jingle_unittests", # PASSES 2/25/2015
746 "//media/cast:cast_unittests", # PASSES 2/25/2015
agoode21dbd122015-03-05 02:40:50747 "//media:media_unittests", # PASSES 3/3/2015
brettw533c50422015-02-26 17:49:16748 "//mojo/common:mojo_common_unittests", # PASSES 2/25/2015
749 "//net:net_unittests", # PASSES 2/25/2015
brettw31f4de692015-03-04 17:24:45750 "//ppapi:ppapi_unittests", # PASSES 2/26/2015
brettw533c50422015-02-26 17:49:16751 "//printing:printing_unittests", # PASSES 2/25/2015
brettw31f4de692015-03-04 17:24:45752 "//remoting:remoting_unittests", # Some crashes.
brettw533c50422015-02-26 17:49:16753 "//sandbox/linux:sandbox_linux_unittests", # PASSES 2/25/2015
754 "//skia:skia_unittests", # PASSES 2/25/2015
755 "//sql:sql_unittests", # PASSES 2/25/2015
756 "//sync:sync_unit_tests", # PASSES 2/25/2015
757 "//third_party/cacheinvalidation:cacheinvalidation_unittests", # PASSES 2/25/2015
758 "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests", # PASSES 2/25/2015
759 "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests", # PASSES 2/25/2015
760 "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests", # PASSES 2/25/2015
761 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests", # PASSES 2/25/2015
762 "//ui/accessibility:accessibility_unittests", # PASSES 2/25/2015
763 "//ui/app_list:app_list_unittests", # PASSES 2/25/2015
764 "//ui/aura:aura_unittests", # PASSES 2/25/2015
765 "//ui/base:ui_base_unittests", # TODO(GYP) ResourceBundleTest.* fails.
766 "//ui/compositor:compositor_unittests", # PASSES 2/25/2015
767 "//ui/display:display_unittests", # PASSES 2/25/2015
768 "//ui/events:events_unittests", # PASSES 2/25/2015
769 "//ui/gfx:gfx_unittests", # PASSES 2/25/2015
770 "//ui/touch_selection:ui_touch_selection_unittests", # PASSES 2/25/2015
771 "//ui/views:views_unittests", # PASSES (*) 2/25/2015
772 "//ui/wm:wm_unittests", # PASSES 2/25/2015
773 "//url:url_unittests", # PASSES 2/25/2015
774
775 # Note:
776 # (*) Fails but failures match GYP build at time of testing.
777 ]
tfarina47830e32015-03-30 23:02:11778
779 if (enable_nacl) {
780 deps += [ "//components/nacl:nacl_loader_unittests" ] # PASSES 3/28/2015
781 }
brettw533c50422015-02-26 17:49:16782 }
783}