Home | History | Annotate | Download | only in cc
      1 # Copyright (c) 2012 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 {
      6   'variables': {
      7     'chromium_code': 1,
      8   },
      9   'targets': [
     10     {
     11       'target_name': 'cc',
     12       'type': '<(component)',
     13       'dependencies': [
     14         '<(DEPTH)/base/base.gyp:base',
     15         '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
     16         '<(DEPTH)/gpu/gpu.gyp:gpu',
     17         '<(DEPTH)/media/media.gyp:media',
     18         '<(DEPTH)/skia/skia.gyp:skia',
     19         '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink_minimal',
     20         '<(DEPTH)/ui/events/events.gyp:events_base',
     21         '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
     22         '<(DEPTH)/ui/gl/gl.gyp:gl',
     23       ],
     24       'defines': [
     25         'CC_IMPLEMENTATION=1',
     26       ],
     27       'sources': [
     28         'animation/animation.cc',
     29         'animation/animation.h',
     30         'animation/animation_curve.cc',
     31         'animation/animation_curve.h',
     32         'animation/animation_delegate.h',
     33         'animation/animation_events.cc',
     34         'animation/animation_events.h',
     35         'animation/animation_id_provider.cc',
     36         'animation/animation_id_provider.h',
     37         'animation/animation_registrar.cc',
     38         'animation/animation_registrar.h',
     39         'animation/keyframed_animation_curve.cc',
     40         'animation/keyframed_animation_curve.h',
     41         'animation/layer_animation_controller.cc',
     42         'animation/layer_animation_controller.h',
     43         'animation/layer_animation_event_observer.h',
     44         'animation/layer_animation_value_observer.h',
     45         'animation/layer_animation_value_provider.h',
     46         'animation/scroll_offset_animation_curve.cc',
     47         'animation/scroll_offset_animation_curve.h',
     48         'animation/scrollbar_animation_controller.h',
     49         'animation/scrollbar_animation_controller_linear_fade.cc',
     50         'animation/scrollbar_animation_controller_linear_fade.h',
     51         'animation/scrollbar_animation_controller_thinning.cc',
     52         'animation/scrollbar_animation_controller_thinning.h',
     53         'animation/timing_function.cc',
     54         'animation/timing_function.h',
     55         'animation/transform_operation.cc',
     56         'animation/transform_operation.h',
     57         'animation/transform_operations.cc',
     58         'animation/transform_operations.h',
     59         'base/completion_event.h',
     60         'base/invalidation_region.cc',
     61         'base/invalidation_region.h',
     62         'base/latency_info_swap_promise.cc',
     63         'base/latency_info_swap_promise.h',
     64         'base/latency_info_swap_promise_monitor.cc',
     65         'base/latency_info_swap_promise_monitor.h',
     66         'base/math_util.cc',
     67         'base/math_util.h',
     68         'base/ref_counted_managed.h',
     69         'base/region.cc',
     70         'base/region.h',
     71         'base/scoped_ptr_algorithm.h',
     72         'base/scoped_ptr_deque.h',
     73         'base/scoped_ptr_vector.h',
     74         'base/swap_promise.h',
     75         'base/swap_promise_monitor.cc',
     76         'base/swap_promise_monitor.h',
     77         'base/switches.cc',
     78         'base/switches.h',
     79         'base/tiling_data.cc',
     80         'base/tiling_data.h',
     81         'base/util.h',
     82         'debug/benchmark_instrumentation.cc',
     83         'debug/benchmark_instrumentation.h',
     84         'debug/debug_colors.cc',
     85         'debug/debug_colors.h',
     86         'debug/debug_rect_history.cc',
     87         'debug/debug_rect_history.h',
     88         'debug/devtools_instrumentation.h',
     89         'debug/frame_rate_counter.cc',
     90         'debug/frame_rate_counter.h',
     91         'debug/layer_tree_debug_state.cc',
     92         'debug/layer_tree_debug_state.h',
     93         'debug/micro_benchmark.cc',
     94         'debug/micro_benchmark.h',
     95         'debug/micro_benchmark_impl.cc',
     96         'debug/micro_benchmark_impl.h',
     97         'debug/micro_benchmark_controller.cc',
     98         'debug/micro_benchmark_controller.h',
     99         'debug/micro_benchmark_controller_impl.cc',
    100         'debug/micro_benchmark_controller_impl.h',
    101         'debug/overdraw_metrics.cc',
    102         'debug/overdraw_metrics.h',
    103         'debug/paint_time_counter.cc',
    104         'debug/paint_time_counter.h',
    105         'debug/picture_record_benchmark.cc',
    106         'debug/picture_record_benchmark.h',
    107         'debug/rasterize_and_record_benchmark.cc',
    108         'debug/rasterize_and_record_benchmark.h',
    109         'debug/rasterize_and_record_benchmark_impl.cc',
    110         'debug/rasterize_and_record_benchmark_impl.h',
    111         'debug/rendering_stats.cc',
    112         'debug/rendering_stats.h',
    113         'debug/rendering_stats_instrumentation.cc',
    114         'debug/rendering_stats_instrumentation.h',
    115         'debug/ring_buffer.h',
    116         'debug/traced_picture.cc',
    117         'debug/traced_picture.h',
    118         'debug/traced_value.cc',
    119         'debug/traced_value.h',
    120         'debug/unittest_only_benchmark.cc',
    121         'debug/unittest_only_benchmark.h',
    122         'debug/unittest_only_benchmark_impl.cc',
    123         'debug/unittest_only_benchmark_impl.h',
    124         'input/input_handler.h',
    125         'input/page_scale_animation.cc',
    126         'input/page_scale_animation.h',
    127         'input/top_controls_manager.cc',
    128         'input/top_controls_manager.h',
    129         'input/top_controls_manager_client.h',
    130         'layers/append_quads_data.h',
    131         'layers/compositing_reasons.h',
    132         'layers/content_layer.cc',
    133         'layers/content_layer.h',
    134         'layers/content_layer_client.h',
    135         'layers/contents_scaling_layer.cc',
    136         'layers/contents_scaling_layer.h',
    137         'layers/delegated_frame_provider.cc',
    138         'layers/delegated_frame_provider.h',
    139         'layers/delegated_frame_resource_collection.cc',
    140         'layers/delegated_frame_resource_collection.h',
    141         'layers/delegated_renderer_layer.cc',
    142         'layers/delegated_renderer_layer.h',
    143         'layers/delegated_renderer_layer_impl.cc',
    144         'layers/delegated_renderer_layer_impl.h',
    145         'layers/draw_properties.h',
    146         'layers/heads_up_display_layer.cc',
    147         'layers/heads_up_display_layer.h',
    148         'layers/heads_up_display_layer_impl.cc',
    149         'layers/heads_up_display_layer_impl.h',
    150         'layers/image_layer.cc',
    151         'layers/image_layer.h',
    152         'layers/io_surface_layer.cc',
    153         'layers/io_surface_layer.h',
    154         'layers/io_surface_layer_impl.cc',
    155         'layers/io_surface_layer_impl.h',
    156         'layers/layer.cc',
    157         'layers/layer.h',
    158         'layers/layer_client.h',
    159         'layers/layer_impl.cc',
    160         'layers/layer_impl.h',
    161         'layers/layer_iterator.cc',
    162         'layers/layer_iterator.h',
    163         'layers/layer_lists.cc',
    164         'layers/layer_lists.h',
    165         'layers/layer_position_constraint.cc',
    166         'layers/layer_position_constraint.h',
    167         'layers/nine_patch_layer.cc',
    168         'layers/nine_patch_layer.h',
    169         'layers/nine_patch_layer_impl.cc',
    170         'layers/nine_patch_layer_impl.h',
    171         'layers/paint_properties.h',
    172         'layers/painted_scrollbar_layer.cc',
    173         'layers/painted_scrollbar_layer.h',
    174         'layers/painted_scrollbar_layer_impl.cc',
    175         'layers/painted_scrollbar_layer_impl.h',
    176         'layers/picture_image_layer.cc',
    177         'layers/picture_image_layer.h',
    178         'layers/picture_image_layer_impl.cc',
    179         'layers/picture_image_layer_impl.h',
    180         'layers/picture_layer.cc',
    181         'layers/picture_layer.h',
    182         'layers/picture_layer_impl.cc',
    183         'layers/picture_layer_impl.h',
    184         'layers/quad_sink.h',
    185         'layers/render_pass_sink.h',
    186         'layers/render_surface.cc',
    187         'layers/render_surface.h',
    188         'layers/render_surface_impl.cc',
    189         'layers/render_surface_impl.h',
    190         'layers/scrollbar_layer_impl_base.cc',
    191         'layers/scrollbar_layer_impl_base.h',
    192         'layers/scrollbar_layer_interface.h',
    193         'layers/solid_color_layer.cc',
    194         'layers/solid_color_layer.h',
    195         'layers/solid_color_layer_impl.cc',
    196         'layers/solid_color_layer_impl.h',
    197         'layers/solid_color_scrollbar_layer.cc',
    198         'layers/solid_color_scrollbar_layer.h',
    199         'layers/solid_color_scrollbar_layer_impl.cc',
    200         'layers/solid_color_scrollbar_layer_impl.h',
    201         'layers/texture_layer.cc',
    202         'layers/texture_layer.h',
    203         'layers/texture_layer_client.h',
    204         'layers/texture_layer_impl.cc',
    205         'layers/texture_layer_impl.h',
    206         'layers/tiled_layer.cc',
    207         'layers/tiled_layer.h',
    208         'layers/tiled_layer_impl.cc',
    209         'layers/tiled_layer_impl.h',
    210         'layers/ui_resource_layer.cc',
    211         'layers/ui_resource_layer.h',
    212         'layers/ui_resource_layer_impl.cc',
    213         'layers/ui_resource_layer_impl.h',
    214         'layers/video_frame_provider.h',
    215         'layers/video_frame_provider_client_impl.cc',
    216         'layers/video_frame_provider_client_impl.h',
    217         'layers/video_layer.cc',
    218         'layers/video_layer.h',
    219         'layers/video_layer_impl.cc',
    220         'layers/video_layer_impl.h',
    221         'output/begin_frame_args.cc',
    222         'output/begin_frame_args.h',
    223         'output/compositor_frame.cc',
    224         'output/compositor_frame.h',
    225         'output/compositor_frame_ack.cc',
    226         'output/compositor_frame_ack.h',
    227         'output/compositor_frame_metadata.cc',
    228         'output/compositor_frame_metadata.h',
    229         'output/context_provider.cc',
    230         'output/context_provider.h',
    231         'output/copy_output_request.cc',
    232         'output/copy_output_request.h',
    233         'output/copy_output_result.cc',
    234         'output/copy_output_result.h',
    235         'output/delegated_frame_data.h',
    236         'output/delegated_frame_data.cc',
    237         'output/delegating_renderer.cc',
    238         'output/delegating_renderer.h',
    239         'output/direct_renderer.cc',
    240         'output/direct_renderer.h',
    241         'output/filter_operation.cc',
    242         'output/filter_operation.h',
    243         'output/filter_operations.cc',
    244         'output/filter_operations.h',
    245         'output/geometry_binding.cc',
    246         'output/geometry_binding.h',
    247         'output/gl_frame_data.h',
    248         'output/gl_frame_data.cc',
    249         'output/gl_renderer.cc',
    250         'output/gl_renderer.h',
    251         'output/gl_renderer_draw_cache.cc',
    252         'output/gl_renderer_draw_cache.h',
    253         'output/managed_memory_policy.cc',
    254         'output/managed_memory_policy.h',
    255         'output/output_surface.cc',
    256         'output/output_surface.h',
    257         'output/output_surface_client.h',
    258         'output/program_binding.cc',
    259         'output/program_binding.h',
    260         'output/render_surface_filters.cc',
    261         'output/render_surface_filters.h',
    262         'output/renderer.cc',
    263         'output/renderer.h',
    264         'output/shader.cc',
    265         'output/shader.h',
    266         'output/software_frame_data.cc',
    267         'output/software_frame_data.h',
    268         'output/software_output_device.cc',
    269         'output/software_output_device.h',
    270         'output/software_renderer.cc',
    271         'output/software_renderer.h',
    272         'quads/checkerboard_draw_quad.cc',
    273         'quads/checkerboard_draw_quad.h',
    274         'quads/content_draw_quad_base.cc',
    275         'quads/content_draw_quad_base.h',
    276         'quads/debug_border_draw_quad.cc',
    277         'quads/debug_border_draw_quad.h',
    278         'quads/draw_quad.cc',
    279         'quads/draw_quad.h',
    280         'quads/io_surface_draw_quad.cc',
    281         'quads/io_surface_draw_quad.h',
    282         'quads/picture_draw_quad.cc',
    283         'quads/picture_draw_quad.h',
    284         'quads/render_pass.cc',
    285         'quads/render_pass.h',
    286         'quads/render_pass_draw_quad.cc',
    287         'quads/render_pass_draw_quad.h',
    288         'quads/shared_quad_state.cc',
    289         'quads/shared_quad_state.h',
    290         'quads/solid_color_draw_quad.cc',
    291         'quads/solid_color_draw_quad.h',
    292         'quads/stream_video_draw_quad.cc',
    293         'quads/stream_video_draw_quad.h',
    294         'quads/texture_draw_quad.cc',
    295         'quads/texture_draw_quad.h',
    296         'quads/tile_draw_quad.cc',
    297         'quads/tile_draw_quad.h',
    298         'quads/yuv_video_draw_quad.cc',
    299         'quads/yuv_video_draw_quad.h',
    300         'resources/bitmap_content_layer_updater.cc',
    301         'resources/bitmap_content_layer_updater.h',
    302         'resources/bitmap_skpicture_content_layer_updater.cc',
    303         'resources/bitmap_skpicture_content_layer_updater.h',
    304         'resources/caching_bitmap_content_layer_updater.cc',
    305         'resources/caching_bitmap_content_layer_updater.h',
    306         'resources/content_layer_updater.cc',
    307         'resources/content_layer_updater.h',
    308         'resources/etc1_pixel_ref.cc',
    309         'resources/etc1_pixel_ref.h',
    310         'resources/image_layer_updater.cc',
    311         'resources/image_layer_updater.h',
    312         'resources/image_raster_worker_pool.cc',
    313         'resources/image_raster_worker_pool.h',
    314         'resources/layer_painter.h',
    315         'resources/layer_quad.cc',
    316         'resources/layer_quad.h',
    317         'resources/layer_tiling_data.cc',
    318         'resources/layer_tiling_data.h',
    319         'resources/layer_updater.cc',
    320         'resources/layer_updater.h',
    321         'resources/managed_tile_state.cc',
    322         'resources/managed_tile_state.h',
    323         'resources/memory_history.cc',
    324         'resources/memory_history.h',
    325         'resources/picture.cc',
    326         'resources/picture.h',
    327         'resources/picture_layer_tiling.cc',
    328         'resources/picture_layer_tiling.h',
    329         'resources/picture_layer_tiling_set.cc',
    330         'resources/picture_layer_tiling_set.h',
    331         'resources/picture_pile.cc',
    332         'resources/picture_pile.h',
    333         'resources/picture_pile_base.cc',
    334         'resources/picture_pile_base.h',
    335         'resources/picture_pile_impl.cc',
    336         'resources/picture_pile_impl.h',
    337         'resources/pixel_buffer_raster_worker_pool.cc',
    338         'resources/pixel_buffer_raster_worker_pool.h',
    339         'resources/platform_color.h',
    340         'resources/prioritized_resource.cc',
    341         'resources/prioritized_resource.h',
    342         'resources/prioritized_resource_manager.cc',
    343         'resources/prioritized_resource_manager.h',
    344         'resources/prioritized_tile_set.cc',
    345         'resources/prioritized_tile_set.h',
    346         'resources/priority_calculator.cc',
    347         'resources/priority_calculator.h',
    348         'resources/raster_mode.cc',
    349         'resources/raster_mode.h',
    350         'resources/raster_worker_pool.cc',
    351         'resources/raster_worker_pool.h',
    352         'resources/release_callback.h',
    353         'resources/resource.cc',
    354         'resources/resource.h',
    355         'resources/resource_format.h',
    356         'resources/resource_format.cc',
    357         'resources/resource_pool.cc',
    358         'resources/resource_pool.h',
    359         'resources/resource_provider.cc',
    360         'resources/resource_provider.h',
    361         'resources/resource_update.cc',
    362         'resources/resource_update.h',
    363         'resources/resource_update_controller.cc',
    364         'resources/resource_update_controller.h',
    365         'resources/resource_update_queue.cc',
    366         'resources/resource_update_queue.h',
    367         'resources/returned_resource.h',
    368         'resources/scoped_resource.cc',
    369         'resources/scoped_resource.h',
    370         'resources/scoped_ui_resource.cc',
    371         'resources/scoped_ui_resource.h',
    372         'resources/shared_bitmap.cc',
    373         'resources/shared_bitmap.h',
    374         'resources/shared_bitmap_manager.h',
    375         'resources/single_release_callback.cc',
    376         'resources/single_release_callback.h',
    377         'resources/skpicture_content_layer_updater.cc',
    378         'resources/skpicture_content_layer_updater.h',
    379         'resources/texture_mailbox.cc',
    380         'resources/texture_mailbox.h',
    381         'resources/texture_mailbox_deleter.cc',
    382         'resources/texture_mailbox_deleter.h',
    383         'resources/tile.cc',
    384         'resources/tile.h',
    385         'resources/tile_manager.cc',
    386         'resources/tile_manager.h',
    387         'resources/tile_priority.cc',
    388         'resources/tile_priority.h',
    389         'resources/transferable_resource.cc',
    390         'resources/transferable_resource.h',
    391         'resources/ui_resource_bitmap.cc',
    392         'resources/ui_resource_bitmap.h',
    393         'resources/ui_resource_client.h',
    394         'resources/ui_resource_request.cc',
    395         'resources/ui_resource_request.h',
    396         'resources/video_resource_updater.cc',
    397         'resources/video_resource_updater.h',
    398         'resources/worker_pool.cc',
    399         'resources/worker_pool.h',
    400         'scheduler/delay_based_time_source.cc',
    401         'scheduler/delay_based_time_source.h',
    402         'scheduler/frame_rate_controller.cc',
    403         'scheduler/frame_rate_controller.h',
    404         'scheduler/rolling_time_delta_history.cc',
    405         'scheduler/rolling_time_delta_history.h',
    406         'scheduler/scheduler.cc',
    407         'scheduler/scheduler.h',
    408         'scheduler/scheduler_settings.cc',
    409         'scheduler/scheduler_settings.h',
    410         'scheduler/scheduler_state_machine.cc',
    411         'scheduler/scheduler_state_machine.h',
    412         'scheduler/texture_uploader.cc',
    413         'scheduler/texture_uploader.h',
    414         'scheduler/time_source.h',
    415         'trees/blocking_task_runner.cc',
    416         'trees/blocking_task_runner.h',
    417         'trees/damage_tracker.cc',
    418         'trees/damage_tracker.h',
    419         'trees/layer_sorter.cc',
    420         'trees/layer_sorter.h',
    421         'trees/layer_tree_host.cc',
    422         'trees/layer_tree_host.h',
    423         'trees/layer_tree_host_client.h',
    424         'trees/layer_tree_host_common.cc',
    425         'trees/layer_tree_host_common.h',
    426         'trees/layer_tree_host_impl.cc',
    427         'trees/layer_tree_host_impl.h',
    428         'trees/layer_tree_impl.cc',
    429         'trees/layer_tree_impl.h',
    430         'trees/layer_tree_settings.cc',
    431         'trees/layer_tree_settings.h',
    432         'trees/occlusion_tracker.cc',
    433         'trees/occlusion_tracker.h',
    434         'trees/proxy.cc',
    435         'trees/proxy.h',
    436         'trees/quad_culler.cc',
    437         'trees/quad_culler.h',
    438         'trees/single_thread_proxy.cc',
    439         'trees/single_thread_proxy.h',
    440         'trees/thread_proxy.cc',
    441         'trees/thread_proxy.h',
    442         'trees/tree_synchronizer.cc',
    443         'trees/tree_synchronizer.h',
    444       ],
    445       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
    446       'msvs_disabled_warnings': [ 4267, ],
    447     },
    448   ],
    449 }
    450