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