The download arrow is not vertically centered and needs to be shifted down by 2 pt.
[chromium-blink-merge.git] / cc / cc.gyp
blobe2910c5152d6a5f7a0d7f11b69c7e5fda2047712
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/animation.cc',
9       'animation/animation.h',
10       'animation/animation_curve.cc',
11       'animation/animation_curve.h',
12       'animation/animation_events.h',
13       'animation/animation_id_provider.cc',
14       'animation/animation_id_provider.h',
15       'animation/animation_registrar.cc',
16       'animation/animation_registrar.h',
17       'layers/append_quads_data.h',
18       'resources/bitmap_content_layer_updater.cc',
19       'resources/bitmap_content_layer_updater.h',
20       'resources/bitmap_skpicture_content_layer_updater.cc',
21       'resources/bitmap_skpicture_content_layer_updater.h',
22       'resources/caching_bitmap_content_layer_updater.cc',
23       'resources/caching_bitmap_content_layer_updater.h',
24       'quads/checkerboard_draw_quad.cc',
25       'quads/checkerboard_draw_quad.h',
26       'base/completion_event.h',
27       'output/compositor_frame.cc',
28       'output/compositor_frame.h',
29       'output/compositor_frame_ack.cc',
30       'output/compositor_frame_ack.h',
31       'output/compositor_frame_metadata.cc',
32       'output/compositor_frame_metadata.h',
33       'layers/content_layer.cc',
34       'layers/content_layer.h',
35       'layers/content_layer_client.h',
36       'resources/content_layer_updater.cc',
37       'resources/content_layer_updater.h',
38       'layers/contents_scaling_layer.cc',
39       'layers/contents_scaling_layer.h',
40       'output/context_provider.h',
41       'trees/damage_tracker.cc',
42       'trees/damage_tracker.h',
43       'quads/debug_border_draw_quad.cc',
44       'quads/debug_border_draw_quad.h',
45       'debug/debug_colors.cc',
46       'debug/debug_colors.h',
47       'debug/debug_rect_history.cc',
48       'debug/debug_rect_history.h',
49       'scheduler/delay_based_time_source.cc',
50       'scheduler/delay_based_time_source.h',
51       'output/delegated_frame_data.h',
52       'output/delegated_frame_data.cc',
53       'layers/delegated_renderer_layer.cc',
54       'layers/delegated_renderer_layer.h',
55       'layers/delegated_renderer_layer_impl.cc',
56       'layers/delegated_renderer_layer_impl.h',
57       'output/delegating_renderer.cc',
58       'output/delegating_renderer.h',
59       'debug/devtools_instrumentation.h',
60       'output/direct_renderer.cc',
61       'output/direct_renderer.h',
62       'layers/draw_properties.h',
63       'quads/draw_quad.cc',
64       'quads/draw_quad.h',
65       'debug/fake_web_graphics_context_3d.cc',
66       'debug/fake_web_graphics_context_3d.h',
67       'scheduler/frame_rate_controller.cc',
68       'scheduler/frame_rate_controller.h',
69       'debug/frame_rate_counter.cc',
70       'debug/frame_rate_counter.h',
71       'output/geometry_binding.cc',
72       'output/geometry_binding.h',
73       'output/gl_frame_data.h',
74       'output/gl_frame_data.cc',
75       'output/gl_renderer.cc',
76       'output/gl_renderer.h',
77       'output/gl_renderer_draw_cache.cc',
78       'output/gl_renderer_draw_cache.h',
79       'base/hash_pair.h',
80       'layers/heads_up_display_layer.cc',
81       'layers/heads_up_display_layer.h',
82       'layers/heads_up_display_layer_impl.cc',
83       'layers/heads_up_display_layer_impl.h',
84       'resources/image_layer_updater.cc',
85       'resources/image_layer_updater.h',
86       'layers/image_layer.cc',
87       'layers/image_layer.h',
88       'input/input_handler.h',
89       'quads/io_surface_draw_quad.cc',
90       'quads/io_surface_draw_quad.h',
91       'layers/io_surface_layer.cc',
92       'layers/io_surface_layer.h',
93       'layers/io_surface_layer_impl.cc',
94       'layers/io_surface_layer_impl.h',
95       'animation/keyframed_animation_curve.cc',
96       'animation/keyframed_animation_curve.h',
97       'debug/latency_info.h',
98       'layers/layer.cc',
99       'layers/layer.h',
100       'animation/layer_animation_controller.cc',
101       'animation/layer_animation_controller.h',
102       'animation/layer_animation_event_observer.h',
103       'animation/layer_animation_value_observer.h',
104       'layers/layer_impl.cc',
105       'layers/layer_impl.h',
106       'layers/layer_iterator.cc',
107       'layers/layer_iterator.h',
108       'resources/layer_painter.h',
109       'resources/layer_quad.cc',
110       'resources/layer_quad.h',
111       'trees/layer_sorter.cc',
112       'trees/layer_sorter.h',
113       'resources/layer_tiling_data.cc',
114       'resources/layer_tiling_data.h',
115       'debug/layer_tree_debug_state.cc',
116       'debug/layer_tree_debug_state.h',
117       'trees/layer_tree_host.cc',
118       'trees/layer_tree_host.h',
119       'trees/layer_tree_host_client.h',
120       'trees/layer_tree_host_common.cc',
121       'trees/layer_tree_host_common.h',
122       'trees/layer_tree_host_impl.cc',
123       'trees/layer_tree_host_impl.h',
124       'trees/layer_tree_impl.cc',
125       'trees/layer_tree_impl.h',
126       'trees/layer_tree_settings.cc',
127       'trees/layer_tree_settings.h',
128       'resources/layer_updater.cc',
129       'resources/layer_updater.h',
130       'resources/managed_memory_policy.cc',
131       'resources/managed_memory_policy.h',
132       'resources/managed_tile_state.cc',
133       'resources/managed_tile_state.h',
134       'base/math_util.cc',
135       'base/math_util.h',
136       'resources/memory_history.cc',
137       'resources/memory_history.h',
138       'layers/nine_patch_layer.cc',
139       'layers/nine_patch_layer.h',
140       'layers/nine_patch_layer_impl.cc',
141       'layers/nine_patch_layer_impl.h',
142       'trees/occlusion_tracker.cc',
143       'trees/occlusion_tracker.h',
144       'output/output_surface.cc',
145       'output/output_surface.h',
146       'output/output_surface_client.h',
147       'debug/overdraw_metrics.cc',
148       'debug/overdraw_metrics.h',
149       'input/page_scale_animation.cc',
150       'input/page_scale_animation.h',
151       'debug/paint_time_counter.cc',
152       'debug/paint_time_counter.h',
153       'resources/picture.cc',
154       'resources/picture.h',
155       'layers/picture_image_layer.cc',
156       'layers/picture_image_layer.h',
157       'layers/picture_image_layer_impl.cc',
158       'layers/picture_image_layer_impl.h',
159       'layers/picture_layer.cc',
160       'layers/picture_layer.h',
161       'layers/picture_layer_impl.cc',
162       'layers/picture_layer_impl.h',
163       'resources/picture_layer_tiling.cc',
164       'resources/picture_layer_tiling.h',
165       'resources/picture_layer_tiling_set.cc',
166       'resources/picture_layer_tiling_set.h',
167       'resources/picture_pile.cc',
168       'resources/picture_pile.h',
169       'resources/picture_pile_base.cc',
170       'resources/picture_pile_base.h',
171       'resources/picture_pile_impl.cc',
172       'resources/picture_pile_impl.h',
173       'input/pinch_zoom_scrollbar.cc',
174       'input/pinch_zoom_scrollbar.h',
175       'input/pinch_zoom_scrollbar_geometry.cc',
176       'input/pinch_zoom_scrollbar_geometry.h',
177       'input/pinch_zoom_scrollbar_painter.cc',
178       'input/pinch_zoom_scrollbar_painter.h',
179       'resources/platform_color.h',
180       'resources/prioritized_resource.cc',
181       'resources/prioritized_resource.h',
182       'resources/prioritized_resource_manager.cc',
183       'resources/prioritized_resource_manager.h',
184       'resources/priority_calculator.cc',
185       'resources/priority_calculator.h',
186       'output/program_binding.cc',
187       'output/program_binding.h',
188       'trees/proxy.cc',
189       'trees/proxy.h',
190       'trees/quad_culler.cc',
191       'trees/quad_culler.h',
192       'layers/quad_sink.h',
193       'resources/raster_worker_pool.cc',
194       'resources/raster_worker_pool.h',
195       'scheduler/rate_limiter.cc',
196       'scheduler/rate_limiter.h',
197       'base/region.cc',
198       'base/region.h',
199       'quads/render_pass.cc',
200       'quads/render_pass.h',
201       'quads/render_pass_draw_quad.cc',
202       'quads/render_pass_draw_quad.h',
203       'layers/render_pass_sink.h',
204       'layers/render_surface.cc',
205       'layers/render_surface.h',
206       'output/render_surface_filters.cc',
207       'output/render_surface_filters.h',
208       'layers/render_surface_impl.cc',
209       'layers/render_surface_impl.h',
210       'output/renderer.cc',
211       'output/renderer.h',
212       'debug/rendering_stats.cc',
213       'debug/rendering_stats.h',
214       'debug/rendering_stats_instrumentation.cc',
215       'debug/rendering_stats_instrumentation.h',
216       'resources/resource.cc',
217       'resources/resource.h',
218       'resources/resource_pool.cc',
219       'resources/resource_pool.h',
220       'resources/resource_provider.cc',
221       'resources/resource_provider.h',
222       'resources/resource_update.cc',
223       'resources/resource_update.h',
224       'resources/resource_update_controller.cc',
225       'resources/resource_update_controller.h',
226       'resources/resource_update_queue.cc',
227       'resources/resource_update_queue.h',
228       'debug/ring_buffer.h',
229       'scheduler/scheduler.cc',
230       'scheduler/scheduler.h',
231       'scheduler/scheduler_settings.cc',
232       'scheduler/scheduler_settings.h',
233       'scheduler/scheduler_state_machine.cc',
234       'scheduler/scheduler_state_machine.h',
235       'base/scoped_ptr_algorithm.h',
236       'base/scoped_ptr_deque.h',
237       'base/scoped_ptr_hash_map.h',
238       'base/scoped_ptr_vector.h',
239       'resources/scoped_resource.cc',
240       'resources/scoped_resource.h',
241       'animation/scrollbar_animation_controller.h',
242       'animation/scrollbar_animation_controller_linear_fade.cc',
243       'animation/scrollbar_animation_controller_linear_fade.h',
244       'layers/scrollbar_geometry_fixed_thumb.cc',
245       'layers/scrollbar_geometry_fixed_thumb.h',
246       'layers/scrollbar_geometry_stub.cc',
247       'layers/scrollbar_geometry_stub.h',
248       'layers/scrollbar_layer.cc',
249       'layers/scrollbar_layer.h',
250       'layers/scrollbar_layer_impl.cc',
251       'layers/scrollbar_layer_impl.h',
252       'layers/scrollbar_layer_impl_base.h',
253       'output/shader.cc',
254       'output/shader.h',
255       'quads/shared_quad_state.cc',
256       'quads/shared_quad_state.h',
257       'trees/single_thread_proxy.cc',
258       'trees/single_thread_proxy.h',
259       'resources/skpicture_content_layer_updater.cc',
260       'resources/skpicture_content_layer_updater.h',
261       'output/software_frame_data.cc',
262       'output/software_frame_data.h',
263       'output/software_output_device.cc',
264       'output/software_output_device.h',
265       'output/software_renderer.cc',
266       'output/software_renderer.h',
267       'quads/solid_color_draw_quad.cc',
268       'quads/solid_color_draw_quad.h',
269       'layers/solid_color_layer.cc',
270       'layers/solid_color_layer.h',
271       'layers/solid_color_layer_impl.cc',
272       'layers/solid_color_layer_impl.h',
273       'quads/stream_video_draw_quad.cc',
274       'quads/stream_video_draw_quad.h',
275       'base/switches.cc',
276       'base/switches.h',
277       'output/texture_copier.cc',
278       'output/texture_copier.h',
279       'quads/texture_draw_quad.cc',
280       'quads/texture_draw_quad.h',
281       'layers/texture_layer.cc',
282       'layers/texture_layer.h',
283       'layers/texture_layer_client.h',
284       'layers/texture_layer_impl.cc',
285       'layers/texture_layer_impl.h',
286       'resources/texture_mailbox.cc',
287       'resources/texture_mailbox.h',
288       'scheduler/texture_uploader.cc',
289       'scheduler/texture_uploader.h',
290       'base/thread.h',
291       'base/thread_impl.cc',
292       'base/thread_impl.h',
293       'trees/thread_proxy.cc',
294       'trees/thread_proxy.h',
295       'resources/tile.cc',
296       'resources/tile.h',
297       'quads/tile_draw_quad.cc',
298       'quads/tile_draw_quad.h',
299       'resources/tile_manager.cc',
300       'resources/tile_manager.h',
301       'resources/tile_priority.cc',
302       'resources/tile_priority.h',
303       'layers/tiled_layer.cc',
304       'layers/tiled_layer.h',
305       'layers/tiled_layer_impl.cc',
306       'layers/tiled_layer_impl.h',
307       'base/tiling_data.cc',
308       'base/tiling_data.h',
309       'scheduler/time_source.h',
310       'animation/timing_function.cc',
311       'animation/timing_function.h',
312       'input/top_controls_manager.cc',
313       'input/top_controls_manager.h',
314       'input/top_controls_manager_client.h',
315       'resources/transferable_resource.cc',
316       'resources/transferable_resource.h',
317       'animation/transform_operation.cc',
318       'animation/transform_operation.h',
319       'animation/transform_operations.cc',
320       'animation/transform_operations.h',
321       'trees/tree_synchronizer.cc',
322       'trees/tree_synchronizer.h',
323       'base/util.h',
324       'layers/video_frame_provider.h',
325       'layers/video_frame_provider_client_impl.cc',
326       'layers/video_frame_provider_client_impl.h',
327       'layers/video_layer.cc',
328       'layers/video_layer.h',
329       'layers/video_layer_impl.cc',
330       'layers/video_layer_impl.h',
331       'scheduler/vsync_time_source.cc',
332       'scheduler/vsync_time_source.h',
333       'base/worker_pool.cc',
334       'base/worker_pool.h',
335       'quads/yuv_video_draw_quad.cc',
336       'quads/yuv_video_draw_quad.h',
337     ],
338     'conditions': [
339       ['inside_chromium_build==1', {
340         'webkit_src_dir': '<(DEPTH)/third_party/WebKit',
341       }, {
342         'webkit_src_dir': '<(DEPTH)/../../..',
343       }],
344     ],
345   },
346   'conditions': [
347     ['inside_chromium_build==0', {
348       'defines': [
349         'INSIDE_WEBKIT_BUILD=1',
350       ],
351     }],
352   ],
353   'targets': [
354     {
355       'target_name': 'cc',
356       'type': '<(component)',
357       'dependencies': [
358         '<(DEPTH)/base/base.gyp:base',
359         '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
360         '<(DEPTH)/gpu/gpu.gyp:gpu',
361         '<(DEPTH)/skia/skia.gyp:skia',
362         '<(DEPTH)/media/media.gyp:media',
363         '<(DEPTH)/ui/gl/gl.gyp:gl',
364         '<(DEPTH)/ui/surface/surface.gyp:surface',
365         '<(DEPTH)/ui/ui.gyp:ui',
366         '<(webkit_src_dir)/Source/WebKit/chromium/WebKit.gyp:webkit',
367       ],
368       'defines': [
369         'CC_IMPLEMENTATION=1',
370       ],
371       'sources': [
372         '<@(cc_source_files)',
373       ],
374       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
375       'msvs_disabled_warnings': [ 4267, ],
376     },
377   ],