Use TargetTransform instead of transform in ConvertPointFor/FromAncestor
[chromium-blink-merge.git] / cc / cc.gyp
blobe7f676e19722c10f7d6ff00d6847315cc2cbaeb7
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.
6   'variables': {
7     'cc_source_files': [
8       'animation.cc',
9       'animation.h',
10       'animation_curve.cc',
11       'animation_curve.h',
12       'animation_events.h',
13       'animation_registrar.cc',
14       'animation_registrar.h',
15       'append_quads_data.h',
16       'bitmap_content_layer_updater.cc',
17       'bitmap_content_layer_updater.h',
18       'bitmap_skpicture_content_layer_updater.cc',
19       'bitmap_skpicture_content_layer_updater.h',
20       'caching_bitmap_content_layer_updater.cc',
21       'caching_bitmap_content_layer_updater.h',
22       'checkerboard_draw_quad.cc',
23       'checkerboard_draw_quad.h',
24       'completion_event.h',
25       'compositor_frame.cc',
26       'compositor_frame.h',
27       'compositor_frame_ack.cc',
28       'compositor_frame_ack.h',
29       'compositor_frame_metadata.cc',
30       'compositor_frame_metadata.h',
31       'content_layer.cc',
32       'content_layer.h',
33       'content_layer_client.h',
34       'content_layer_updater.cc',
35       'content_layer_updater.h',
36       'contents_scaling_layer.cc',
37       'contents_scaling_layer.h',
38       'damage_tracker.cc',
39       'damage_tracker.h',
40       'debug_border_draw_quad.cc',
41       'debug_border_draw_quad.h',
42       'debug_colors.cc',
43       'debug_colors.h',
44       'debug_rect_history.cc',
45       'debug_rect_history.h',
46       'delay_based_time_source.cc',
47       'delay_based_time_source.h',
48       'delegated_frame_data.h',
49       'delegated_frame_data.cc',
50       'delegated_renderer_layer.cc',
51       'delegated_renderer_layer.h',
52       'delegated_renderer_layer_impl.cc',
53       'delegated_renderer_layer_impl.h',
54       'delegating_renderer.cc',
55       'delegating_renderer.h',
56       'direct_renderer.cc',
57       'direct_renderer.h',
58       'draw_properties.h',
59       'draw_quad.cc',
60       'draw_quad.h',
61       'font_atlas.cc',
62       'font_atlas.h',
63       'frame_rate_controller.cc',
64       'frame_rate_controller.h',
65       'frame_rate_counter.cc',
66       'frame_rate_counter.h',
67       'geometry_binding.cc',
68       'geometry_binding.h',
69       'gl_frame_data.h',
70       'gl_frame_data.cc',
71       'gl_renderer.cc',
72       'gl_renderer.h',
73       'gl_renderer_draw_cache.cc',
74       'gl_renderer_draw_cache.h',
75       'hash_pair.h',
76       'heads_up_display_layer.cc',
77       'heads_up_display_layer.h',
78       'heads_up_display_layer_impl.cc',
79       'heads_up_display_layer_impl.h',
80       'image_layer_updater.cc',
81       'image_layer_updater.h',
82       'image_layer.cc',
83       'image_layer.h',
84       'input_handler.h',
85       'io_surface_draw_quad.cc',
86       'io_surface_draw_quad.h',
87       'io_surface_layer.cc',
88       'io_surface_layer.h',
89       'io_surface_layer_impl.cc',
90       'io_surface_layer_impl.h',
91       'keyframed_animation_curve.cc',
92       'keyframed_animation_curve.h',
93       'layer.cc',
94       'layer.h',
95       'layer_animation_controller.cc',
96       'layer_animation_controller.h',
97       'layer_animation_event_observer.h',
98       'layer_animation_value_observer.h',
99       'layer_impl.cc',
100       'layer_impl.h',
101       'layer_iterator.cc',
102       'layer_iterator.h',
103       'layer_painter.h',
104       'layer_quad.cc',
105       'layer_quad.h',
106       'layer_sorter.cc',
107       'layer_sorter.h',
108       'layer_tiling_data.cc',
109       'layer_tiling_data.h',
110       'layer_tree_debug_state.cc',
111       'layer_tree_debug_state.h',
112       'layer_tree_host.cc',
113       'layer_tree_host.h',
114       'layer_tree_host_client.h',
115       'layer_tree_host_common.cc',
116       'layer_tree_host_common.h',
117       'layer_tree_host_impl.cc',
118       'layer_tree_host_impl.h',
119       'layer_tree_impl.cc',
120       'layer_tree_impl.h',
121       'layer_tree_settings.cc',
122       'layer_tree_settings.h',
123       'layer_updater.cc',
124       'layer_updater.h',
125       'managed_memory_policy.cc',
126       'managed_memory_policy.h',
127       'math_util.cc',
128       'math_util.h',
129       'nine_patch_layer.cc',
130       'nine_patch_layer.h',
131       'nine_patch_layer_impl.cc',
132       'nine_patch_layer_impl.h',
133       'occlusion_tracker.cc',
134       'occlusion_tracker.h',
135       'output_surface.h',
136       'output_surface_client.h',
137       'overdraw_metrics.cc',
138       'overdraw_metrics.h',
139       'page_scale_animation.cc',
140       'page_scale_animation.h',
141       'picture.cc',
142       'picture.h',
143       'picture_image_layer.cc',
144       'picture_image_layer.h',
145       'picture_layer.cc',
146       'picture_layer.h',
147       'picture_layer_impl.cc',
148       'picture_layer_impl.h',
149       'picture_layer_tiling.cc',
150       'picture_layer_tiling.h',
151       'picture_layer_tiling_set.cc',
152       'picture_layer_tiling_set.h',
153       'picture_pile.cc',
154       'picture_pile.h',
155       'picture_pile_impl.cc',
156       'picture_pile_impl.h',
157       'platform_color.h',
158       'prioritized_resource.cc',
159       'prioritized_resource.h',
160       'prioritized_resource_manager.cc',
161       'prioritized_resource_manager.h',
162       'priority_calculator.cc',
163       'priority_calculator.h',
164       'program_binding.cc',
165       'program_binding.h',
166       'proxy.cc',
167       'proxy.h',
168       'quad_culler.cc',
169       'quad_culler.h',
170       'quad_sink.h',
171       'rate_limiter.cc',
172       'rate_limiter.h',
173       'region.cc',
174       'region.h',
175       'render_pass.cc',
176       'render_pass.h',
177       'render_pass_draw_quad.cc',
178       'render_pass_draw_quad.h',
179       'render_pass_sink.h',
180       'render_surface.cc',
181       'render_surface.h',
182       'render_surface_filters.cc',
183       'render_surface_filters.h',
184       'render_surface_impl.cc',
185       'render_surface_impl.h',
186       'renderer.cc',
187       'renderer.h',
188       'rendering_stats.cc',
189       'rendering_stats.h',
190       'resource.cc',
191       'resource.h',
192       'resource_pool.cc',
193       'resource_pool.h',
194       'resource_provider.cc',
195       'resource_provider.h',
196       'resource_update.cc',
197       'resource_update.h',
198       'resource_update_controller.cc',
199       'resource_update_controller.h',
200       'resource_update_queue.cc',
201       'resource_update_queue.h',
202       'scheduler.cc',
203       'scheduler.h',
204       'scheduler_state_machine.cc',
205       'scheduler_state_machine.h',
206       'scoped_ptr_deque.h',
207       'scoped_ptr_hash_map.h',
208       'scoped_ptr_vector.h',
209       'scoped_resource.cc',
210       'scoped_resource.h',
211       'scrollbar_animation_controller.cc',
212       'scrollbar_animation_controller.h',
213       'scrollbar_animation_controller_linear_fade.cc',
214       'scrollbar_animation_controller_linear_fade.h',
215       'scrollbar_geometry_fixed_thumb.cc',
216       'scrollbar_geometry_fixed_thumb.h',
217       'scrollbar_geometry_stub.cc',
218       'scrollbar_geometry_stub.h',
219       'scrollbar_layer.cc',
220       'scrollbar_layer.h',
221       'scrollbar_layer_impl.cc',
222       'scrollbar_layer_impl.h',
223       'scrollbar_layer_impl_base.h',
224       'shader.cc',
225       'shader.h',
226       'shared_quad_state.cc',
227       'shared_quad_state.h',
228       'single_thread_proxy.cc',
229       'single_thread_proxy.h',
230       'skpicture_content_layer_updater.cc',
231       'skpicture_content_layer_updater.h',
232       'software_output_device.h',
233       'software_renderer.cc',
234       'software_renderer.h',
235       'solid_color_draw_quad.cc',
236       'solid_color_draw_quad.h',
237       'solid_color_layer.cc',
238       'solid_color_layer.h',
239       'solid_color_layer_impl.cc',
240       'solid_color_layer_impl.h',
241       'stream_video_draw_quad.cc',
242       'stream_video_draw_quad.h',
243       'switches.cc',
244       'switches.h',
245       'texture_copier.cc',
246       'texture_copier.h',
247       'texture_draw_quad.cc',
248       'texture_draw_quad.h',
249       'texture_layer.cc',
250       'texture_layer.h',
251       'texture_layer_client.h',
252       'texture_layer_impl.cc',
253       'texture_layer_impl.h',
254       'texture_uploader.cc',
255       'texture_uploader.h',
256       'thread.h',
257       'thread_impl.cc',
258       'thread_impl.h',
259       'thread_proxy.cc',
260       'thread_proxy.h',
261       'tile.cc',
262       'tile.h',
263       'tile_draw_quad.cc',
264       'tile_draw_quad.h',
265       'tile_manager.cc',
266       'tile_manager.h',
267       'tile_priority.cc',
268       'tile_priority.h',
269       'tiled_layer.cc',
270       'tiled_layer.h',
271       'tiled_layer_impl.cc',
272       'tiled_layer_impl.h',
273       'tiling_data.cc',
274       'tiling_data.h',
275       'time_source.h',
276       'timing_function.cc',
277       'timing_function.h',
278       'transferable_resource.cc',
279       'transferable_resource.h',
280       'tree_synchronizer.cc',
281       'tree_synchronizer.h',
282       'util.h',
283       'video_frame_provider.h',
284       'video_layer.cc',
285       'video_layer.h',
286       'video_layer_impl.cc',
287       'video_layer_impl.h',
288       'yuv_video_draw_quad.cc',
289       'yuv_video_draw_quad.h',
290     ],
291     'conditions': [
292       ['inside_chromium_build==1', {
293         'webkit_src_dir': '<(DEPTH)/third_party/WebKit',
294       }, {
295         'webkit_src_dir': '<(DEPTH)/../../..',
296       }],
297     ],
298   },
299   'conditions': [
300     ['inside_chromium_build==0', {
301       'defines': [
302         'INSIDE_WEBKIT_BUILD=1',
303       ],
304     }],
305   ],
306   'targets': [
307     {
308       'target_name': 'cc',
309       'type': '<(component)',
310       'dependencies': [
311         '<(DEPTH)/base/base.gyp:base',
312         '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
313         '<(DEPTH)/skia/skia.gyp:skia',
314         '<(DEPTH)/media/media.gyp:media',
315         '<(DEPTH)/ui/gl/gl.gyp:gl',
316         '<(DEPTH)/ui/ui.gyp:ui',
317         '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit',
318       ],
319       'defines': [
320         'CC_IMPLEMENTATION=1',
321       ],
322       'sources': [
323         '<@(cc_source_files)',
324       ],
325       'all_dependent_settings': {
326         'include_dirs': [
327           # TODO(jamesr): Remove once https://webkit.org/b/105259 lands + rolls
328           '<(webkit_src_dir)/Source/Platform/chromium'
329         ]
330       }
331     },
332   ],