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 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
| 6 import("//cc/cc.gni") |
6 import("//testing/test.gni") | 7 import("//testing/test.gni") |
7 | 8 |
8 component("cc") { | 9 component("cc") { |
9 sources = [ | 10 sources = [ |
10 "animation/animation.cc", | |
11 "animation/animation.h", | |
12 "animation/animation_curve.cc", | |
13 "animation/animation_curve.h", | |
14 "animation/animation_delegate.h", | |
15 "animation/animation_events.cc", | |
16 "animation/animation_events.h", | |
17 "animation/animation_host.cc", | |
18 "animation/animation_host.h", | |
19 "animation/animation_id_provider.cc", | |
20 "animation/animation_id_provider.h", | |
21 "animation/animation_player.cc", | |
22 "animation/animation_player.h", | |
23 "animation/animation_timeline.cc", | |
24 "animation/animation_timeline.h", | |
25 "animation/element_animations.cc", | |
26 "animation/element_animations.h", | |
27 "animation/keyframed_animation_curve.cc", | |
28 "animation/keyframed_animation_curve.h", | |
29 "animation/scroll_offset_animation_curve.cc", | |
30 "animation/scroll_offset_animation_curve.h", | |
31 "animation/scroll_offset_animations.cc", | |
32 "animation/scroll_offset_animations.h", | |
33 "animation/scroll_offset_animations_impl.cc", | |
34 "animation/scroll_offset_animations_impl.h", | |
35 "animation/timing_function.cc", | |
36 "animation/timing_function.h", | |
37 "animation/transform_operation.cc", | |
38 "animation/transform_operation.h", | |
39 "animation/transform_operations.cc", | |
40 "animation/transform_operations.h", | |
41 "blimp/client_picture_cache.h", | 11 "blimp/client_picture_cache.h", |
42 "blimp/compositor_proto_state.cc", | 12 "blimp/compositor_proto_state.cc", |
43 "blimp/compositor_proto_state.h", | 13 "blimp/compositor_proto_state.h", |
44 "blimp/compositor_state_deserializer.cc", | 14 "blimp/compositor_state_deserializer.cc", |
45 "blimp/compositor_state_deserializer.h", | 15 "blimp/compositor_state_deserializer.h", |
46 "blimp/deserialized_content_layer_client.cc", | 16 "blimp/deserialized_content_layer_client.cc", |
47 "blimp/deserialized_content_layer_client.h", | 17 "blimp/deserialized_content_layer_client.h", |
48 "blimp/engine_picture_cache.h", | 18 "blimp/engine_picture_cache.h", |
49 "blimp/image_serialization_processor.h", | 19 "blimp/image_serialization_processor.h", |
50 "blimp/layer_factory.h", | 20 "blimp/layer_factory.h", |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 "//media", | 560 "//media", |
591 "//third_party/libyuv", | 561 "//third_party/libyuv", |
592 "//ui/events:events_base", | 562 "//ui/events:events_base", |
593 "//ui/gfx", | 563 "//ui/gfx", |
594 "//ui/gfx/geometry", | 564 "//ui/gfx/geometry", |
595 "//ui/gl", | 565 "//ui/gl", |
596 ] | 566 ] |
597 | 567 |
598 defines = [ "CC_IMPLEMENTATION=1" ] | 568 defines = [ "CC_IMPLEMENTATION=1" ] |
599 | 569 |
600 if (!is_debug && (is_win || is_android)) { | |
601 configs -= [ "//build/config/compiler:default_optimization" ] | |
602 configs += [ "//build/config/compiler:optimize_max" ] | |
603 } | |
604 | |
605 if (enable_vulkan) { | 570 if (enable_vulkan) { |
606 sources += [ | 571 sources += [ |
607 "output/vulkan_renderer.cc", | 572 "output/vulkan_renderer.cc", |
608 "output/vulkan_renderer.h", | 573 "output/vulkan_renderer.h", |
609 ] | 574 ] |
610 | 575 |
611 deps += [ "//gpu/vulkan" ] | 576 deps += [ "//gpu/vulkan" ] |
612 } | 577 } |
613 } | 578 } |
614 | 579 |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 "test/test_tile_task_runner.cc", | 747 "test/test_tile_task_runner.cc", |
783 "test/test_tile_task_runner.h", | 748 "test/test_tile_task_runner.h", |
784 "test/test_web_graphics_context_3d.cc", | 749 "test/test_web_graphics_context_3d.cc", |
785 "test/test_web_graphics_context_3d.h", | 750 "test/test_web_graphics_context_3d.h", |
786 ] | 751 ] |
787 | 752 |
788 configs += [ "//build/config:precompiled_headers" ] | 753 configs += [ "//build/config:precompiled_headers" ] |
789 | 754 |
790 public_deps = [ | 755 public_deps = [ |
791 ":cc", | 756 ":cc", |
| 757 "//cc/animation", |
792 "//gpu:test_support", | 758 "//gpu:test_support", |
793 ] | 759 ] |
794 deps = [ | 760 deps = [ |
795 "//base", | 761 "//base", |
796 "//base/test:test_support", | 762 "//base/test:test_support", |
797 "//base/third_party/dynamic_annotations", | 763 "//base/third_party/dynamic_annotations", |
798 "//cc/proto", | 764 "//cc/proto", |
799 "//cc/surfaces", | 765 "//cc/surfaces", |
800 "//cc/surfaces:surface_id", | 766 "//cc/surfaces:surface_id", |
801 "//gpu/command_buffer/client:gles2_c_lib", | 767 "//gpu/command_buffer/client:gles2_c_lib", |
(...skipping 13 matching lines...) Expand all Loading... |
815 ] | 781 ] |
816 if (!is_android) { | 782 if (!is_android) { |
817 data_deps = [ | 783 data_deps = [ |
818 "//third_party/mesa:osmesa", | 784 "//third_party/mesa:osmesa", |
819 ] | 785 ] |
820 } | 786 } |
821 } | 787 } |
822 | 788 |
823 test("cc_unittests") { | 789 test("cc_unittests") { |
824 sources = [ | 790 sources = [ |
825 "animation/animation_host_unittest.cc", | |
826 "animation/animation_player_unittest.cc", | |
827 "animation/animation_timeline_unittest.cc", | |
828 "animation/animation_unittest.cc", | |
829 "animation/element_animations_unittest.cc", | |
830 "animation/keyframed_animation_curve_unittest.cc", | |
831 "animation/scroll_offset_animation_curve_unittest.cc", | |
832 "animation/transform_operations_unittest.cc", | |
833 "base/contiguous_container_unittest.cc", | 791 "base/contiguous_container_unittest.cc", |
834 "base/delayed_unique_notifier_unittest.cc", | 792 "base/delayed_unique_notifier_unittest.cc", |
835 "base/float_quad_unittest.cc", | 793 "base/float_quad_unittest.cc", |
836 "base/histograms_unittest.cc", | 794 "base/histograms_unittest.cc", |
837 "base/index_rect_unittest.cc", | 795 "base/index_rect_unittest.cc", |
838 "base/list_container_unittest.cc", | 796 "base/list_container_unittest.cc", |
839 "base/math_util_unittest.cc", | 797 "base/math_util_unittest.cc", |
840 "base/random_access_list_container_unittest.cc", | 798 "base/random_access_list_container_unittest.cc", |
841 "base/region_unittest.cc", | 799 "base/region_unittest.cc", |
842 "base/rolling_time_delta_history_unittest.cc", | 800 "base/rolling_time_delta_history_unittest.cc", |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
963 "trees/layer_tree_host_unittest_record_gpu_histogram.cc", | 921 "trees/layer_tree_host_unittest_record_gpu_histogram.cc", |
964 "trees/layer_tree_host_unittest_scroll.cc", | 922 "trees/layer_tree_host_unittest_scroll.cc", |
965 "trees/layer_tree_host_unittest_video.cc", | 923 "trees/layer_tree_host_unittest_video.cc", |
966 "trees/layer_tree_impl_unittest.cc", | 924 "trees/layer_tree_impl_unittest.cc", |
967 "trees/occlusion_tracker_unittest.cc", | 925 "trees/occlusion_tracker_unittest.cc", |
968 "trees/occlusion_unittest.cc", | 926 "trees/occlusion_unittest.cc", |
969 "trees/property_tree_unittest.cc", | 927 "trees/property_tree_unittest.cc", |
970 "trees/swap_promise_manager_unittest.cc", | 928 "trees/swap_promise_manager_unittest.cc", |
971 "trees/tree_synchronizer_unittest.cc", | 929 "trees/tree_synchronizer_unittest.cc", |
972 | 930 |
| 931 # Animation test files. |
| 932 "animation/animation_host_unittest.cc", |
| 933 "animation/animation_player_unittest.cc", |
| 934 "animation/animation_timeline_unittest.cc", |
| 935 "animation/animation_unittest.cc", |
| 936 "animation/element_animations_unittest.cc", |
| 937 "animation/keyframed_animation_curve_unittest.cc", |
| 938 "animation/scroll_offset_animation_curve_unittest.cc", |
| 939 "animation/transform_operations_unittest.cc", |
| 940 |
973 # Surfaces test files. | 941 # Surfaces test files. |
974 "surfaces/direct_compositor_frame_sink_unittest.cc", | 942 "surfaces/direct_compositor_frame_sink_unittest.cc", |
975 "surfaces/display_scheduler_unittest.cc", | 943 "surfaces/display_scheduler_unittest.cc", |
976 "surfaces/display_unittest.cc", | 944 "surfaces/display_unittest.cc", |
977 "surfaces/surface_aggregator_unittest.cc", | 945 "surfaces/surface_aggregator_unittest.cc", |
978 "surfaces/surface_factory_unittest.cc", | 946 "surfaces/surface_factory_unittest.cc", |
979 "surfaces/surface_hittest_unittest.cc", | 947 "surfaces/surface_hittest_unittest.cc", |
980 "surfaces/surface_manager_ref_unittest.cc", | 948 "surfaces/surface_manager_ref_unittest.cc", |
981 "surfaces/surface_manager_unittest.cc", | 949 "surfaces/surface_manager_unittest.cc", |
982 "surfaces/surface_sequence_generator_unittest.cc", | 950 "surfaces/surface_sequence_generator_unittest.cc", |
983 "surfaces/surface_unittest.cc", | 951 "surfaces/surface_unittest.cc", |
984 "surfaces/surfaces_pixeltest.cc", | 952 "surfaces/surfaces_pixeltest.cc", |
985 | 953 |
986 # Setup. | 954 # Setup. |
987 "test/cc_test_suite.cc", | 955 "test/cc_test_suite.cc", |
988 "test/run_all_unittests.cc", | 956 "test/run_all_unittests.cc", |
989 ] | 957 ] |
990 | 958 |
991 configs += [ "//build/config:precompiled_headers" ] | 959 configs += [ "//build/config:precompiled_headers" ] |
992 if (!is_android) { | 960 if (!is_android) { |
993 data = [ | 961 data = [ |
994 "test/data/", | 962 "test/data/", |
995 ] | 963 ] |
996 } | 964 } |
997 | 965 |
998 deps = [ | 966 deps = [ |
999 ":cc", | 967 ":cc", |
1000 ":test_support", | 968 ":test_support", |
1001 "//base/test:test_support", | 969 "//base/test:test_support", |
| 970 "//cc/animation", |
1002 "//cc/ipc", | 971 "//cc/ipc", |
1003 "//cc/ipc:test_interfaces", | 972 "//cc/ipc:test_interfaces", |
1004 "//cc/proto", | 973 "//cc/proto", |
1005 "//cc/surfaces", | 974 "//cc/surfaces", |
1006 "//cc/surfaces:surface_id", | 975 "//cc/surfaces:surface_id", |
1007 "//gpu", | 976 "//gpu", |
1008 "//gpu:test_support", | 977 "//gpu:test_support", |
1009 "//gpu/command_buffer/client:gles2_interface", | 978 "//gpu/command_buffer/client:gles2_interface", |
1010 "//gpu/command_buffer/common:gles2_utils", | 979 "//gpu/command_buffer/common:gles2_utils", |
1011 "//media", | 980 "//media", |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1043 "tiles/tile_manager_perftest.cc", | 1012 "tiles/tile_manager_perftest.cc", |
1044 "trees/layer_tree_host_common_perftest.cc", | 1013 "trees/layer_tree_host_common_perftest.cc", |
1045 "trees/layer_tree_host_perftest.cc", | 1014 "trees/layer_tree_host_perftest.cc", |
1046 ] | 1015 ] |
1047 | 1016 |
1048 deps = [ | 1017 deps = [ |
1049 ":cc", | 1018 ":cc", |
1050 ":test_support", | 1019 ":test_support", |
1051 "//base", | 1020 "//base", |
1052 "//base/test:test_support", | 1021 "//base/test:test_support", |
| 1022 "//cc/animation", |
1053 "//cc/ipc", | 1023 "//cc/ipc", |
1054 "//cc/ipc:interfaces", | 1024 "//cc/ipc:interfaces", |
1055 "//cc/surfaces", | 1025 "//cc/surfaces", |
1056 "//cc/surfaces:surface_id", | 1026 "//cc/surfaces:surface_id", |
1057 "//gpu", | 1027 "//gpu", |
1058 "//gpu:test_support", | 1028 "//gpu:test_support", |
1059 "//gpu/command_buffer/common:gles2_utils", | 1029 "//gpu/command_buffer/common:gles2_utils", |
1060 "//media", | 1030 "//media", |
1061 "//mojo/edk/system", | 1031 "//mojo/edk/system", |
1062 "//mojo/public/cpp/bindings", | 1032 "//mojo/public/cpp/bindings", |
(...skipping 13 matching lines...) Expand all Loading... |
1076 data = [ | 1046 data = [ |
1077 "test/data/", | 1047 "test/data/", |
1078 | 1048 |
1079 # Needed for isolate script to execute. | 1049 # Needed for isolate script to execute. |
1080 "//testing/scripts/common.py", | 1050 "//testing/scripts/common.py", |
1081 "//testing/xvfb.py", | 1051 "//testing/xvfb.py", |
1082 "//testing/scripts/run_gtest_perf_test.py", | 1052 "//testing/scripts/run_gtest_perf_test.py", |
1083 "//tools/perf/generate_legacy_perf_dashboard_json.py", | 1053 "//tools/perf/generate_legacy_perf_dashboard_json.py", |
1084 ] | 1054 ] |
1085 } | 1055 } |
OLD | NEW |