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