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