OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 component("cc") { | 5 component("cc") { |
6 sources = [ | 6 sources = [ |
7 "animation/animation.cc", | 7 "animation/animation.cc", |
8 "animation/animation.h", | 8 "animation/animation.h", |
9 "animation/animation_curve.cc", | 9 "animation/animation_curve.cc", |
10 "animation/animation_curve.h", | 10 "animation/animation_curve.h", |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 | 451 |
452 if (is_win) { | 452 if (is_win) { |
453 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 453 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
454 cflags = [ "/wd4267" ] # size_t -> int | 454 cflags = [ "/wd4267" ] # size_t -> int |
455 } | 455 } |
456 | 456 |
457 deps = [ | 457 deps = [ |
458 "//base", | 458 "//base", |
459 "//base/third_party/dynamic_annotations", | 459 "//base/third_party/dynamic_annotations", |
460 "//gpu", | 460 "//gpu", |
461 #"//media", TODO(GYP) | 461 "//media", |
462 "//skia", | 462 "//skia", |
463 "//ui/events:events_base", | 463 "//ui/events:events_base", |
464 "//ui/gfx", | 464 "//ui/gfx", |
465 "//ui/gfx/geometry", | 465 "//ui/gfx/geometry", |
466 "//ui/gl", | 466 "//ui/gl", |
467 ] | 467 ] |
468 forward_dependent_configs_from = [ | 468 forward_dependent_configs_from = [ |
469 "//skia", | 469 "//skia", |
470 ] | 470 ] |
471 | 471 |
472 defined = [ "CC_IMPLEMENTATION=1" ] | 472 defined = [ "CC_IMPLEMENTATION=1" ] |
473 | 473 |
474 if (!is_debug && is_win) { | 474 if (!is_debug && is_win) { |
475 configs -= [ "//build/config/compiler:optimize" ] | 475 configs -= [ "//build/config/compiler:optimize" ] |
476 configs += [ "//build/config/compiler:optimize_max" ] | 476 configs += [ "//build/config/compiler:optimize_max" ] |
477 } | 477 } |
478 } | 478 } |
479 | 479 |
480 component("cc_surfaces") { | |
481 sources = [ | |
482 "surfaces/surface.cc", | |
483 "surfaces/surface.h", | |
484 "surfaces/surface_aggregator.cc", | |
485 "surfaces/surface_aggregator.h", | |
486 "surfaces/surface_manager.cc", | |
487 "surfaces/surface_manager.h", | |
488 "surfaces/surfaces_export.h", | |
489 ] | |
490 | |
491 defines = [ "CC_SURFACES_IMPLEMENTATION=1" ] | |
492 | |
493 deps = [ | |
494 ":cc", | |
495 "//base", | |
496 "//base/third_party/dynamic_annotations", | |
497 "//skia", | |
498 "//ui/gfx", | |
499 "//ui/gfx/geometry", | |
500 ] | |
501 } | |
502 | |
503 source_set("test_support") { | 480 source_set("test_support") { |
504 sources = [ | 481 sources = [ |
505 "test/animation_test_common.cc", | 482 "test/animation_test_common.cc", |
506 "test/animation_test_common.h", | 483 "test/animation_test_common.h", |
507 "test/begin_frame_args_test.cc", | 484 "test/begin_frame_args_test.cc", |
508 "test/begin_frame_args_test.h", | 485 "test/begin_frame_args_test.h", |
509 "test/fake_content_layer.cc", | 486 "test/fake_content_layer.cc", |
510 "test/fake_content_layer.h", | 487 "test/fake_content_layer.h", |
511 "test/fake_content_layer_client.cc", | 488 "test/fake_content_layer_client.cc", |
512 "test/fake_content_layer_client.h", | 489 "test/fake_content_layer_client.h", |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 "//testing/gtest", | 612 "//testing/gtest", |
636 # TODO(GYP) | 613 # TODO(GYP) |
637 #"//third_party/mesa/mesa.gyp:osmesa", | 614 #"//third_party/mesa/mesa.gyp:osmesa", |
638 "//ui/gfx", | 615 "//ui/gfx", |
639 "//ui/gfx/geometry", | 616 "//ui/gfx/geometry", |
640 "//ui/gfx:gfx_test_support", | 617 "//ui/gfx:gfx_test_support", |
641 "//ui/gl", | 618 "//ui/gl", |
642 ] | 619 ] |
643 } | 620 } |
644 | 621 |
645 # TODO(GYP) make these tests link when all deps are resolved. | |
646 if (false) { | |
647 | |
648 test("cc_unittests") { | 622 test("cc_unittests") { |
649 sources = [ | 623 sources = [ |
650 "animation/animation_unittest.cc", | 624 "animation/animation_unittest.cc", |
651 "animation/keyframed_animation_curve_unittest.cc", | 625 "animation/keyframed_animation_curve_unittest.cc", |
652 "animation/layer_animation_controller_unittest.cc", | 626 "animation/layer_animation_controller_unittest.cc", |
653 "animation/scroll_offset_animation_curve_unittest.cc", | 627 "animation/scroll_offset_animation_curve_unittest.cc", |
654 "animation/scrollbar_animation_controller_linear_fade_unittest.cc", | 628 "animation/scrollbar_animation_controller_linear_fade_unittest.cc", |
655 "animation/scrollbar_animation_controller_thinning_unittest.cc", | 629 "animation/scrollbar_animation_controller_thinning_unittest.cc", |
656 "animation/transform_operations_unittest.cc", | 630 "animation/transform_operations_unittest.cc", |
657 "base/float_quad_unittest.cc", | 631 "base/float_quad_unittest.cc", |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 "surfaces/surface_unittest.cc", | 736 "surfaces/surface_unittest.cc", |
763 "surfaces/surfaces_pixeltest.cc", | 737 "surfaces/surfaces_pixeltest.cc", |
764 | 738 |
765 # Setup. | 739 # Setup. |
766 "test/run_all_unittests.cc", | 740 "test/run_all_unittests.cc", |
767 "test/cc_test_suite.cc", | 741 "test/cc_test_suite.cc", |
768 ] | 742 ] |
769 | 743 |
770 deps = [ | 744 deps = [ |
771 ":cc", | 745 ":cc", |
772 ":cc_surfaces", | |
773 ":test_support", | 746 ":test_support", |
774 "//base/test:test_support", | 747 "//base/test:test_support", |
| 748 "//cc/surfaces", |
775 "//gpu", | 749 "//gpu", |
776 "//gpu:gpu_unittest_utils", | 750 "//gpu:gpu_unittest_utils", |
777 # TODO(GYP) | 751 "//media", |
778 #"//media", | |
779 "//testing/gmock", | 752 "//testing/gmock", |
780 "//testing/gtest", | 753 "//testing/gtest", |
781 "//ui/events:events_base", | 754 "//ui/events:events_base", |
782 "//ui/gfx", | 755 "//ui/gfx", |
783 "//ui/gfx/geometry", | 756 "//ui/gfx/geometry", |
784 ] | 757 ] |
785 } | 758 } |
786 | 759 |
787 test("cc_perftests") { | 760 test("cc_perftests") { |
788 # TODO(GYP) | 761 sources = [ |
| 762 "layers/layer_perftest.cc", |
| 763 "layers/picture_layer_impl_perftest.cc", |
| 764 "resources/picture_layer_tiling_perftest.cc", |
| 765 "resources/picture_pile_impl_perftest.cc", |
| 766 "resources/raster_worker_pool_perftest.cc", |
| 767 "resources/task_graph_runner_perftest.cc", |
| 768 "resources/tile_manager_perftest.cc", |
| 769 "test/cc_test_suite.cc", |
| 770 "test/run_all_perftests.cc", |
| 771 "trees/layer_tree_host_common_perftest.cc", |
| 772 "trees/layer_tree_host_perftest.cc", |
| 773 "trees/occlusion_tracker_perftest.cc", |
| 774 ] |
| 775 |
| 776 deps = [ |
| 777 ":cc", |
| 778 ":test_support", |
| 779 "//base", |
| 780 "//gpu", |
| 781 "//gpu:gpu_unittest_utils", |
| 782 "//media", |
| 783 "//skia", |
| 784 "//testing/gmock", |
| 785 "//testing/gtest", |
| 786 "//testing/perf", |
| 787 "//ui/gfx", |
| 788 "//ui/gfx/geometry", |
| 789 ] |
789 } | 790 } |
790 | |
791 } # if false | |
OLD | NEW |