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.
11 'target_name': 'compositor',
12 'type': '<(component)',
14 '<(DEPTH)/base/base.gyp:base',
15 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
16 '<(DEPTH)/cc/cc.gyp:cc',
17 '<(DEPTH)/cc/cc.gyp:cc_surfaces',
18 '<(DEPTH)/gpu/gpu.gyp:command_buffer_common',
19 '<(DEPTH)/skia/skia.gyp:skia',
20 '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
21 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
22 '<(DEPTH)/ui/gl/gl.gyp:gl',
25 'COMPOSITOR_IMPLEMENTATION',
28 'clip_transform_recorder.cc',
29 'clip_transform_recorder.h',
30 'closure_animation_observer.cc',
31 'closure_animation_observer.h',
32 'compositing_recorder.cc',
33 'compositing_recorder.h',
36 'compositor_animation_observer.h',
37 'compositor_export.h',
38 'compositor_observer.h',
39 'compositor_switches.cc',
40 'compositor_switches.h',
41 'compositor_vsync_manager.cc',
42 'compositor_vsync_manager.h',
47 'float_animation_curve_adapter.cc',
48 'float_animation_curve_adapter.h',
51 'layer_animation_delegate.h',
52 'layer_animation_element.cc',
53 'layer_animation_element.h',
54 'layer_animation_observer.cc',
55 'layer_animation_observer.h',
56 'layer_animation_sequence.cc',
57 'layer_animation_sequence.h',
60 'layer_animator_collection.cc',
61 'layer_animator_collection.h',
65 'layer_tree_owner.cc',
73 'scoped_animation_duration_scale_mode.cc',
74 'scoped_animation_duration_scale_mode.h',
75 'scoped_layer_animation_settings.cc',
76 'scoped_layer_animation_settings.h',
77 'transform_animation_curve_adapter.cc',
78 'transform_animation_curve_adapter.h',
81 ['OS == "win" and use_aura == 1', {
82 # TODO(sky): before we make this real need to remove
83 # IDR_BITMAP_BRUSH_IMAGE.
85 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
86 '<(angle_path)/src/angle.gyp:libEGL',
87 '<(angle_path)/src/angle.gyp:libGLESv2',
93 'target_name': 'compositor_test_support',
94 'type': 'static_library',
96 '<(DEPTH)/base/base.gyp:base',
97 '<(DEPTH)/cc/cc.gyp:cc',
98 '<(DEPTH)/cc/cc.gyp:cc_surfaces',
99 '<(DEPTH)/cc/cc_tests.gyp:cc_test_support',
100 '<(DEPTH)/skia/skia.gyp:skia',
101 '<(DEPTH)/testing/gtest.gyp:gtest',
102 '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink_minimal',
103 '<(DEPTH)/ui/base/ui_base.gyp:ui_base',
104 '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
105 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
106 '<(DEPTH)/ui/gl/gl.gyp:gl',
110 'test/context_factories_for_test.cc',
111 'test/context_factories_for_test.h',
112 'test/draw_waiter_for_test.cc',
113 'test/draw_waiter_for_test.h',
114 'test/in_process_context_factory.cc',
115 'test/in_process_context_factory.h',
116 'test/in_process_context_provider.cc',
117 'test/in_process_context_provider.h',
118 'test/layer_animator_test_controller.cc',
119 'test/layer_animator_test_controller.h',
120 'test/test_compositor_host.h',
121 'test/test_compositor_host_mac.mm',
122 'test/test_compositor_host_ozone.cc',
123 'test/test_compositor_host_win.cc',
124 'test/test_compositor_host_x11.cc',
125 'test/test_layer_animation_delegate.cc',
126 'test/test_layer_animation_delegate.h',
127 'test/test_layer_animation_observer.cc',
128 'test/test_layer_animation_observer.h',
129 'test/test_layers.cc',
130 'test/test_layers.h',
131 'test/test_suite.cc',
133 'test/test_utils.cc',
139 '<(DEPTH)/build/linux/system.gyp:x11',
140 '<(DEPTH)/ui/gfx/x/gfx_x11.gyp:gfx_x11',
146 'target_name': 'compositor_unittests',
147 'type': 'executable',
149 '<(DEPTH)/base/base.gyp:base',
150 '<(DEPTH)/base/base.gyp:test_support_base',
151 '<(DEPTH)/cc/cc.gyp:cc',
152 '<(DEPTH)/cc/cc_tests.gyp:cc_test_support',
153 '<(DEPTH)/skia/skia.gyp:skia',
154 '<(DEPTH)/testing/gmock.gyp:gmock',
155 '<(DEPTH)/testing/gtest.gyp:gtest',
156 '<(DEPTH)/ui/base/ui_base.gyp:ui_base',
157 '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
158 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
159 '<(DEPTH)/ui/gl/gl.gyp:gl',
160 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
162 'compositor_test_support',
165 'compositor_unittest.cc',
166 'layer_animation_element_unittest.cc',
167 'layer_animation_sequence_unittest.cc',
168 'layer_animator_unittest.cc',
169 'layer_owner_unittest.cc',
171 'run_all_unittests.cc',
172 'transform_animation_curve_adapter_unittest.cc',
175 # osmesa GL implementation is used on linux.
178 '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa',
181 ['os_posix == 1 and OS != "mac"', {
183 ['use_allocator!="none"', {
185 '<(DEPTH)/base/allocator/allocator.gyp:allocator',