| 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 cc_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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 "trees/tree_synchronizer.h", | 533 "trees/tree_synchronizer.h", |
| 564 ] | 534 ] |
| 565 | 535 |
| 566 if (current_cpu == "x86" || current_cpu == "x64") { | 536 if (current_cpu == "x86" || current_cpu == "x64") { |
| 567 sources += [ | 537 sources += [ |
| 568 "raster/texture_compressor_etc1_sse.cc", | 538 "raster/texture_compressor_etc1_sse.cc", |
| 569 "raster/texture_compressor_etc1_sse.h", | 539 "raster/texture_compressor_etc1_sse.h", |
| 570 ] | 540 ] |
| 571 } | 541 } |
| 572 | 542 |
| 573 configs += [ "//build/config:precompiled_headers" ] | 543 configs = [ "//build/config:precompiled_headers" ] |
| 574 | 544 |
| 575 public_deps = [ | 545 public_deps = [ |
| 576 "//cc/base", | 546 "//cc/base", |
| 577 "//skia", | 547 "//skia", |
| 578 ] | 548 ] |
| 579 deps = [ | 549 deps = [ |
| 580 "//base", | 550 "//base", |
| 581 "//base/third_party/dynamic_annotations", | 551 "//base/third_party/dynamic_annotations", |
| 582 "//cc/proto", | 552 "//cc/proto", |
| 583 "//cc/surfaces:surface_id", | 553 "//cc/surfaces:surface_id", |
| 584 "//gpu", | 554 "//gpu", |
| 585 "//gpu/command_buffer/client:gles2_implementation", | 555 "//gpu/command_buffer/client:gles2_implementation", |
| 586 "//gpu/command_buffer/client:gles2_interface", | 556 "//gpu/command_buffer/client:gles2_interface", |
| 587 "//gpu/ipc:gl_in_process_context", | 557 "//gpu/ipc:gl_in_process_context", |
| 588 "//gpu/skia_bindings:skia_bindings", | 558 "//gpu/skia_bindings:skia_bindings", |
| 589 "//media", | 559 "//media", |
| 590 "//third_party/libyuv", | 560 "//third_party/libyuv", |
| 591 "//ui/events:events_base", | 561 "//ui/events:events_base", |
| 592 "//ui/gfx", | 562 "//ui/gfx", |
| 593 "//ui/gfx/geometry", | 563 "//ui/gfx/geometry", |
| 594 "//ui/gl", | 564 "//ui/gl", |
| 595 ] | 565 ] |
| 596 | 566 |
| 597 defines = [ "CC_IMPLEMENTATION=1" ] | 567 defines = [ "CC_IMPLEMENTATION=1" ] |
| 598 | 568 |
| 599 if (!is_debug && (is_win || is_android)) { | |
| 600 configs -= [ "//build/config/compiler:default_optimization" ] | |
| 601 configs += [ "//build/config/compiler:optimize_max" ] | |
| 602 } | |
| 603 | |
| 604 if (enable_vulkan) { | 569 if (enable_vulkan) { |
| 605 sources += [ | 570 sources += [ |
| 606 "output/vulkan_renderer.cc", | 571 "output/vulkan_renderer.cc", |
| 607 "output/vulkan_renderer.h", | 572 "output/vulkan_renderer.h", |
| 608 ] | 573 ] |
| 609 | 574 |
| 610 deps += [ "//gpu/vulkan" ] | 575 deps += [ "//gpu/vulkan" ] |
| 611 } | 576 } |
| 612 } | 577 } |
| 613 | 578 |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 779 "test/test_tile_task_runner.cc", | 744 "test/test_tile_task_runner.cc", |
| 780 "test/test_tile_task_runner.h", | 745 "test/test_tile_task_runner.h", |
| 781 "test/test_web_graphics_context_3d.cc", | 746 "test/test_web_graphics_context_3d.cc", |
| 782 "test/test_web_graphics_context_3d.h", | 747 "test/test_web_graphics_context_3d.h", |
| 783 ] | 748 ] |
| 784 | 749 |
| 785 configs += [ "//build/config:precompiled_headers" ] | 750 configs += [ "//build/config:precompiled_headers" ] |
| 786 | 751 |
| 787 public_deps = [ | 752 public_deps = [ |
| 788 ":cc", | 753 ":cc", |
| 754 "//cc/animation", |
| 789 "//gpu:test_support", | 755 "//gpu:test_support", |
| 790 ] | 756 ] |
| 791 deps = [ | 757 deps = [ |
| 792 "//base", | 758 "//base", |
| 793 "//base/test:test_support", | 759 "//base/test:test_support", |
| 794 "//base/third_party/dynamic_annotations", | 760 "//base/third_party/dynamic_annotations", |
| 795 "//cc/proto", | 761 "//cc/proto", |
| 796 "//cc/surfaces", | 762 "//cc/surfaces", |
| 797 "//cc/surfaces:surface_id", | 763 "//cc/surfaces:surface_id", |
| 798 "//gpu/command_buffer/client:gles2_c_lib", | 764 "//gpu/command_buffer/client:gles2_c_lib", |
| (...skipping 13 matching lines...) Expand all Loading... |
| 812 ] | 778 ] |
| 813 if (!is_android) { | 779 if (!is_android) { |
| 814 data_deps = [ | 780 data_deps = [ |
| 815 "//third_party/mesa:osmesa", | 781 "//third_party/mesa:osmesa", |
| 816 ] | 782 ] |
| 817 } | 783 } |
| 818 } | 784 } |
| 819 | 785 |
| 820 test("cc_unittests") { | 786 test("cc_unittests") { |
| 821 sources = [ | 787 sources = [ |
| 822 "animation/animation_host_unittest.cc", | |
| 823 "animation/animation_player_unittest.cc", | |
| 824 "animation/animation_timeline_unittest.cc", | |
| 825 "animation/animation_unittest.cc", | |
| 826 "animation/element_animations_unittest.cc", | |
| 827 "animation/keyframed_animation_curve_unittest.cc", | |
| 828 "animation/scroll_offset_animation_curve_unittest.cc", | |
| 829 "animation/transform_operations_unittest.cc", | |
| 830 "base/contiguous_container_unittest.cc", | 788 "base/contiguous_container_unittest.cc", |
| 831 "base/delayed_unique_notifier_unittest.cc", | 789 "base/delayed_unique_notifier_unittest.cc", |
| 832 "base/float_quad_unittest.cc", | 790 "base/float_quad_unittest.cc", |
| 833 "base/histograms_unittest.cc", | 791 "base/histograms_unittest.cc", |
| 834 "base/index_rect_unittest.cc", | 792 "base/index_rect_unittest.cc", |
| 835 "base/list_container_unittest.cc", | 793 "base/list_container_unittest.cc", |
| 836 "base/math_util_unittest.cc", | 794 "base/math_util_unittest.cc", |
| 837 "base/random_access_list_container_unittest.cc", | 795 "base/random_access_list_container_unittest.cc", |
| 838 "base/region_unittest.cc", | 796 "base/region_unittest.cc", |
| 839 "base/rolling_time_delta_history_unittest.cc", | 797 "base/rolling_time_delta_history_unittest.cc", |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 960 "trees/layer_tree_host_unittest_record_gpu_histogram.cc", | 918 "trees/layer_tree_host_unittest_record_gpu_histogram.cc", |
| 961 "trees/layer_tree_host_unittest_scroll.cc", | 919 "trees/layer_tree_host_unittest_scroll.cc", |
| 962 "trees/layer_tree_host_unittest_video.cc", | 920 "trees/layer_tree_host_unittest_video.cc", |
| 963 "trees/layer_tree_impl_unittest.cc", | 921 "trees/layer_tree_impl_unittest.cc", |
| 964 "trees/occlusion_tracker_unittest.cc", | 922 "trees/occlusion_tracker_unittest.cc", |
| 965 "trees/occlusion_unittest.cc", | 923 "trees/occlusion_unittest.cc", |
| 966 "trees/property_tree_unittest.cc", | 924 "trees/property_tree_unittest.cc", |
| 967 "trees/swap_promise_manager_unittest.cc", | 925 "trees/swap_promise_manager_unittest.cc", |
| 968 "trees/tree_synchronizer_unittest.cc", | 926 "trees/tree_synchronizer_unittest.cc", |
| 969 | 927 |
| 928 # Animation test files. |
| 929 "animation/animation_host_unittest.cc", |
| 930 "animation/animation_player_unittest.cc", |
| 931 "animation/animation_timeline_unittest.cc", |
| 932 "animation/animation_unittest.cc", |
| 933 "animation/element_animations_unittest.cc", |
| 934 "animation/keyframed_animation_curve_unittest.cc", |
| 935 "animation/scroll_offset_animation_curve_unittest.cc", |
| 936 "animation/transform_operations_unittest.cc", |
| 937 |
| 970 # Surfaces test files. | 938 # Surfaces test files. |
| 971 "surfaces/direct_compositor_frame_sink_unittest.cc", | 939 "surfaces/direct_compositor_frame_sink_unittest.cc", |
| 972 "surfaces/display_scheduler_unittest.cc", | 940 "surfaces/display_scheduler_unittest.cc", |
| 973 "surfaces/display_unittest.cc", | 941 "surfaces/display_unittest.cc", |
| 974 "surfaces/surface_aggregator_unittest.cc", | 942 "surfaces/surface_aggregator_unittest.cc", |
| 975 "surfaces/surface_factory_unittest.cc", | 943 "surfaces/surface_factory_unittest.cc", |
| 976 "surfaces/surface_hittest_unittest.cc", | 944 "surfaces/surface_hittest_unittest.cc", |
| 977 "surfaces/surface_manager_ref_unittest.cc", | 945 "surfaces/surface_manager_ref_unittest.cc", |
| 978 "surfaces/surface_manager_unittest.cc", | 946 "surfaces/surface_manager_unittest.cc", |
| 979 "surfaces/surface_sequence_generator_unittest.cc", | 947 "surfaces/surface_sequence_generator_unittest.cc", |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1073 data = [ | 1041 data = [ |
| 1074 "test/data/", | 1042 "test/data/", |
| 1075 | 1043 |
| 1076 # Needed for isolate script to execute. | 1044 # Needed for isolate script to execute. |
| 1077 "//testing/scripts/common.py", | 1045 "//testing/scripts/common.py", |
| 1078 "//testing/xvfb.py", | 1046 "//testing/xvfb.py", |
| 1079 "//testing/scripts/run_gtest_perf_test.py", | 1047 "//testing/scripts/run_gtest_perf_test.py", |
| 1080 "//tools/perf/generate_legacy_perf_dashboard_json.py", | 1048 "//tools/perf/generate_legacy_perf_dashboard_json.py", |
| 1081 ] | 1049 ] |
| 1082 } | 1050 } |
| OLD | NEW |