OLD | NEW |
---|---|
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # This is the root build file for GN. GN will start processing by loading this | 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 | 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 | 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 | 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. | 9 # file to your new one or GN won't know about it. |
10 | 10 |
11 import("//build/config/features.gni") | |
brettw
2015/02/23 18:36:21
Sadness... oh well. We can optimize this later if
Dirk Pranke
2015/02/23 19:17:43
Yeah ...
| |
11 import("//build/config/ui.gni") | 12 import("//build/config/ui.gni") |
13 | |
12 if (is_android) { | 14 if (is_android) { |
13 import("//build/config/android/config.gni") | 15 import("//build/config/android/config.gni") |
14 } | 16 } |
15 | 17 |
16 declare_args() { | 18 declare_args() { |
17 # A list of extra dependencies to add to the root target. This allows a | 19 # A list of extra dependencies to add to the root target. This allows a |
18 # checkout to add additional targets without explicitly changing any checked- | 20 # checkout to add additional targets without explicitly changing any checked- |
19 # in files. | 21 # in files. |
20 root_extra_deps = [] | 22 root_extra_deps = [] |
21 } | 23 } |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
295 "//ui/views", | 297 "//ui/views", |
296 "//ui/views/controls/webview", | 298 "//ui/views/controls/webview", |
297 "//ui/web_dialogs", | 299 "//ui/web_dialogs", |
298 ] | 300 ] |
299 } | 301 } |
300 | 302 |
301 if (is_mac || is_ios) { | 303 if (is_mac || is_ios) { |
302 deps -= [ "//ui/touch_selection" ] | 304 deps -= [ "//ui/touch_selection" ] |
303 } | 305 } |
304 } | 306 } |
307 | |
308 group("gyp_all") { | |
brettw
2015/02/23 18:36:21
I don't have a strong objection to this, but it se
Dirk Pranke
2015/02/23 19:17:43
Yes. Mostly it exists for symmetry w/ gyp_all, but
| |
309 testonly = true | |
310 | |
311 # TODO(GYP): This target should describe everything that is built by a GYP | |
312 # build but not yet by a GN build, i.e., these are the targets that still | |
313 # need to be ported to GN. Eventually this target should be identical to | |
314 # gn_all. | |
315 | |
316 deps = [ | |
317 ":gn_all", | |
318 # "//chrome/test:chromedriver_unittests", # TODO(GYP) | |
319 # "//components:components_browsertests", # TODO(GYP) | |
320 # "//components/nacl:nacl_loader_unittests", # TODO(GYP) | |
321 # "//google_apis:google_apis_unittests", # TODO(GYP) | |
322 # "//ui/compositor:compositor_unittests", # TODO(GYP) | |
323 # "//device:device_unittests", # TODO(GYP) | |
324 # "//ppapi:ppapi_unittests", # TODO(GYP) | |
325 # "//remoting:remoting_unittests", # TODO(GYP) | |
326 ] | |
327 } | |
328 | |
329 # The "gn_all" target matches the "gn_all" target in build/all.gyp. | |
330 # It is not (yet!) the same as building "all". | |
331 # TODO(GYP): Make it be basically the same as building all, or at least | |
332 # be sure that we don't want any of the stuff listed in gn_all to | |
333 # be built by default. | |
334 | |
335 # In GN, a "group" is a dummy target that just lists other targets. | |
336 group("gn_all") { | |
337 testonly = true | |
338 | |
339 deps = [ | |
340 "//base:base_unittests", | |
341 "//cc:cc_unittests", | |
342 "//chrome", | |
343 "//chrome/test:browser_tests", | |
344 "//chrome/test:interactive_ui_tests", | |
345 "//chrome/test:sync_integration_tests", | |
346 "//chrome/test:unit_tests", | |
347 "//components:components_unittests", | |
348 "//content/shell:content_shell", | |
349 "//content/test:content_browsertests", | |
350 "//content/test:content_perftests", | |
351 "//content/test:content_unittests", | |
352 "//crypto:crypto_unittests", | |
353 "//extensions:extensions_browsertests", | |
354 "//extensions:extensions_unittests", | |
355 "//google_apis/gcm:gcm_unit_tests", | |
356 "//gpu:gpu_unittests", | |
357 "//ipc:ipc_tests", | |
358 "//ipc/mojo:ipc_mojo_unittests", | |
359 "//jingle:jingle_unittests", | |
360 "//media:media_unittests", | |
361 "//media/mojo", | |
362 "//media/cast:cast_unittests", | |
363 "//mojo", | |
364 "//mojo/common:mojo_common_unittests", | |
365 "//mojo/services/html_viewer:tests", | |
366 "//net:net_unittests", | |
367 "//ppapi/examples", | |
368 "//printing:printing_unittests", | |
369 "//sql:sql_unittests", | |
370 "//sync:sync_unit_tests", | |
371 | |
372 # TODO(GYP): the Blink test targets should be public, but | |
373 # currently aren't. all_blink pulls them in, though. | |
374 # "//third_party/WebKit/Source/platform:heap_unittests", | |
375 # "//third_party/WebKit/Source/platform:platform_unittests", | |
376 # "//third_party/WebKit/Source/wtf:wtf_unittests", | |
377 "//third_party/WebKit/public:all_blink", | |
378 "//third_party/cacheinvalidation:cacheinvalidation_unittests", | |
379 | |
380 # TODO(GYP): This is needed only w/ cld_version==1. What configs set that? | |
381 "//third_party/cld", | |
382 | |
383 # TODO(GYP): This is needed only w/ use_system_fontconfig==0. | |
384 # What configs set that? | |
385 "//third_party/fontconfig", | |
386 | |
387 # TODO(GYP): This will be pulled in automatically when enable_webrtc==true. | |
388 # For now pull it in manually so that it doesn't regress. | |
389 "//third_party/libsrtp", | |
390 "//third_party/mojo/src/mojo/edk/system:mojo_system_unittests", | |
391 "//third_party/mojo/src/mojo/edk/test:mojo_public_bindings_unittests", | |
392 "//third_party/mojo/src/mojo/edk/test:mojo_public_environment_unittests", | |
393 "//third_party/mojo/src/mojo/edk/test:mojo_public_system_unittests", | |
394 "//third_party/mojo/src/mojo/edk/test:mojo_public_utility_unittests", | |
395 "//third_party/pdfium/samples:pdfium_test", | |
396 | |
397 # TODO(GYP): Verify that this is no longer needed. | |
398 "//third_party/smhasher:pmurhash", | |
399 | |
400 # TODO(GYP): This will be pulled in automatically when enable_webrtc==true. | |
401 # For now pull it in manually so that it doesn't regress. | |
402 "//third_party/usrsctp", | |
403 "//tools/imagediff", | |
404 "//tools/gn", | |
405 "//tools/gn:gn_unittests", | |
406 "//ui/accessibility:accessibility_unittests", | |
407 "//ui/app_list:app_list_unittests", | |
408 "//ui/base:ui_base_unittests", | |
409 "//ui/display:display_unittests", | |
410 "//ui/events:events_unittests", | |
411 "//ui/gfx:gfx_unittests", | |
412 "//ui/touch_selection:ui_touch_selection_unittests", | |
413 "//ui/views:views_unittests", | |
414 "//url:url_unittests", | |
415 "//skia:skia_unittests", | |
416 ] | |
417 | |
418 deps += root_extra_deps | |
419 | |
420 if (!is_win) { | |
421 deps += [ "//breakpad:symupload" ] | |
422 } | |
423 | |
424 if (use_x11) { | |
425 deps += [ "//tools/xdisplaycheck" ] | |
426 } | |
427 | |
428 if (use_aura) { | |
429 deps += [ "//ui/wm:wm_unittests" ] | |
430 } | |
431 | |
432 if (use_ozone) { | |
433 deps += [ | |
434 "//ui/ozone", # TODO(GYP) Needed?? | |
435 "//ui/ozone/demo", # TODO(GYP) Needed?? | |
436 ] | |
437 } | |
438 | |
439 if (is_win || is_mac || is_chromeos) { | |
440 # RLZ works on these platforms. | |
441 # TODO(GYP): Is this target needed, or pulled in automatically? | |
442 deps += [ "//rlz:rlz_lib" ] | |
443 } | |
444 | |
445 if (is_android) { | |
446 deps += [ | |
447 "//base/android/linker:chromium_android_linker", | |
448 "//build/android/gyp/test:hello_world", | |
449 "//build/android/rezip", | |
450 "//chrome/android:chrome_shell_apk", | |
451 "//chrome/test/chromedriver/test/webview_shell:chromedriver_webview_shell_ apk", | |
452 "//tools/imagediff($host_toolchain)", | |
453 | |
454 # TODO(GYP): Remove these when the components_unittests work. | |
455 "//components/history/core/test:test", | |
456 "//components/policy:policy_component_test_support", | |
457 "//components/policy:test_support", | |
458 "//components/rappor:test_support", | |
459 "//components/signin/core/browser:test_support", | |
460 "//components/sync_driver:test_support", | |
461 "//components/user_manager", | |
462 "//components/wallpaper", | |
463 "//content/shell/android:content_shell_apk", | |
464 | |
465 # TODO(GYP): Are these needed, or will they be pulled in automatically? | |
466 "//third_party/android_tools:android_gcm_java", | |
467 "//third_party/android_tools:uiautomator_java", | |
468 "//third_party/android_tools:android_support_v13_java", | |
469 "//third_party/android_tools:android_support_v7_appcompat_java", | |
470 "//third_party/android_tools:android_support_v7_mediarouter_java", | |
471 "//third_party/mesa", | |
472 "//third_party/mockito:mockito_java", | |
473 "//third_party/openmax_dl/dl", | |
474 "//third_party/speex", | |
475 "//ui/android:ui_java", | |
476 | |
477 # TODO(GYP): Are these needed? | |
478 "//chrome/test:test_support_unit", | |
479 "//third_party/smhasher:murmurhash3", | |
480 "//ui/message_center:test_support", | |
481 ] | |
482 deps -= [ | |
483 "//breakpad:symupload", # TODO(GYP) ?? | |
484 "//chrome", # TODO(GYP) ?? | |
485 "//chrome/test:browser_tests", # TODO(GYP) ?? | |
486 "//chrome/test:interactive_ui_tests", # TODO(GYP) ?? | |
487 "//chrome/test:sync_integration_tests", # TODO(GYP) ?? | |
488 "//chrome/test:unit_tests", # TODO(GYP) | |
489 "//extensions:extensions_browsertests", | |
490 "//extensions:extensions_unittests", | |
491 "//google_apis/gcm:gcm_unit_tests", | |
492 "//ipc:ipc_tests", # TODO(GYP) ?? | |
493 "//jingle:jingle_unittests", # TODO(GYP) ?? | |
494 "//net:net_unittests", | |
495 "//ppapi/examples", | |
496 "//third_party/fontconfig", # TODO(GYP) ?? | |
497 "//third_party/pdfium/samples:pdfium_test", | |
498 "//tools/gn", | |
499 "//tools/gn:gn_unittests", | |
500 "//ui/app_list:app_list_unittests", | |
501 "//ui/views:views_unittests", | |
502 "//url:url_unittests", | |
503 ] | |
504 | |
505 if (has_chrome_android_internal) { | |
506 deps += [ "//clank" ] # TODO(GYP) ?? | |
507 } | |
508 } else if (is_linux) { | |
509 deps += [ | |
510 "//dbus:dbus_unittests", | |
511 "//sandbox/linux:sandbox_linux_unittests", | |
512 ] | |
513 } else if (is_mac) { | |
514 deps += [ | |
515 # TODO(GYP): Remove these when the targets below work and these | |
516 # are pulled in automatically. | |
517 "//cc/blink", | |
518 "//components/ui/zoom:ui_zoom", | |
519 "//content", | |
520 "//content/test:test_support", | |
521 "//device/battery", | |
522 "//device/bluetooth", | |
523 "//device/nfc", | |
524 "//device/usb", | |
525 "//device/vibration", | |
526 "//media/blink", | |
527 "//pdf", | |
528 "//storage/browser", | |
529 "//third_party/brotli", | |
530 "//third_party/flac", | |
531 "//third_party/hunspell", | |
532 "//third_party/iccjpeg", | |
533 "//third_party/libphonenumber", | |
534 "//third_party/ots", | |
535 "//third_party/qcms", | |
536 "//third_party/smhasher:murmurhash3", | |
537 "//third_party/speex", | |
538 "//third_party/webrtc/system_wrappers", | |
539 "//ui/native_theme", | |
540 "//ui/snapshot", | |
541 "//ui/surface", | |
542 ] | |
543 | |
544 deps -= [ | |
545 "//chrome", # TODO(GYP) | |
546 "//chrome/test:browser_tests", # TODO(GYP) | |
547 "//chrome/test:interactive_ui_tests", # TODO(GYP) | |
548 "//chrome/test:sync_integration_tests", # TODO(GYP) | |
549 "//chrome/test:unit_tests", # TODO(GYP) | |
550 "//components:components_unittests", # TODO(GYP) | |
551 "//content/test:content_browsertests", # TODO(GYP) | |
552 "//content/test:content_perftests", # TODO(GYP) | |
553 "//content/test:content_unittests", # TODO(GYP) | |
554 "//extensions:extensions_browsertests", # TODO(GYP) | |
555 "//extensions:extensions_unittests", # TODO(GYP) | |
556 "//mojo/services/html_viewer:tests", # TODO(GYP) | |
557 "//net:net_unittests", # TODO(GYP) | |
558 "//third_party/fontconfig", # TODO(GYP) ?? | |
559 "//third_party/usrsctp", # TODO(GYP) | |
560 "//ui/app_list:app_list_unittests", # TODO(GYP) | |
561 "//ui/gfx:gfx_unittests", # TODO(GYP) | |
562 "//ui/views:views_unittests", # TODO(GYP) | |
563 ] | |
564 } else if (is_win) { | |
565 deps += [ "//ui/metro_viewer" ] | |
566 deps -= [ | |
567 "//crypto:crypto_unittests", # TODO(GYP) | |
568 "//net:net_unittests", # TODO(GYP) | |
569 "//third_party/fontconfig", # TODO(GYP) ?? | |
570 ] | |
571 } | |
572 } | |
OLD | NEW |