OLD | NEW |
| (Empty) |
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 'target_name': 'compositor', | |
12 'type': '<(component)', | |
13 'dependencies': [ | |
14 '<(DEPTH)/base/base.gyp:base', | |
15 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:d
ynamic_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', | |
23 ], | |
24 'defines': [ | |
25 'COMPOSITOR_IMPLEMENTATION', | |
26 ], | |
27 'sources': [ | |
28 'callback_layer_animation_observer.cc', | |
29 'callback_layer_animation_observer.h', | |
30 'canvas_painter.cc', | |
31 'canvas_painter.h', | |
32 'clip_recorder.cc', | |
33 'clip_recorder.h', | |
34 'closure_animation_observer.cc', | |
35 'closure_animation_observer.h', | |
36 'compositing_recorder.cc', | |
37 'compositing_recorder.h', | |
38 'compositor.cc', | |
39 'compositor.h', | |
40 'compositor_animation_observer.h', | |
41 'compositor_export.h', | |
42 'compositor_observer.h', | |
43 'compositor_switches.cc', | |
44 'compositor_switches.h', | |
45 'compositor_vsync_manager.cc', | |
46 'compositor_vsync_manager.h', | |
47 'debug_utils.cc', | |
48 'debug_utils.h', | |
49 'dip_util.cc', | |
50 'dip_util.h', | |
51 'float_animation_curve_adapter.cc', | |
52 'float_animation_curve_adapter.h', | |
53 'layer.cc', | |
54 'layer.h', | |
55 'layer_animation_delegate.h', | |
56 'layer_animation_element.cc', | |
57 'layer_animation_element.h', | |
58 'layer_animation_observer.cc', | |
59 'layer_animation_observer.h', | |
60 'layer_animation_sequence.cc', | |
61 'layer_animation_sequence.h', | |
62 'layer_animator.cc', | |
63 'layer_animator.h', | |
64 'layer_animator_collection.cc', | |
65 'layer_animator_collection.h', | |
66 'layer_delegate.h', | |
67 'layer_owner.cc', | |
68 'layer_owner.h', | |
69 'layer_threaded_animation_delegate.h', | |
70 'layer_tree_owner.cc', | |
71 'layer_tree_owner.h', | |
72 'layer_type.h', | |
73 'paint_cache.cc', | |
74 'paint_cache.h', | |
75 'paint_context.cc', | |
76 'paint_context.h', | |
77 'paint_recorder.cc', | |
78 'paint_recorder.h', | |
79 'reflector.cc', | |
80 'reflector.h', | |
81 'scoped_animation_duration_scale_mode.cc', | |
82 'scoped_animation_duration_scale_mode.h', | |
83 'scoped_layer_animation_settings.cc', | |
84 'scoped_layer_animation_settings.h', | |
85 'transform_animation_curve_adapter.cc', | |
86 'transform_animation_curve_adapter.h', | |
87 'transform_recorder.cc', | |
88 'transform_recorder.h', | |
89 ], | |
90 'conditions': [ | |
91 ['OS == "win" and use_aura == 1', { | |
92 # TODO(sky): before we make this real need to remove | |
93 # IDR_BITMAP_BRUSH_IMAGE. | |
94 'dependencies': [ | |
95 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources', | |
96 '<(angle_path)/src/angle.gyp:libEGL', | |
97 '<(angle_path)/src/angle.gyp:libGLESv2', | |
98 ], | |
99 }], | |
100 ], | |
101 }, | |
102 { | |
103 'target_name': 'compositor_test_support', | |
104 'type': 'static_library', | |
105 'dependencies': [ | |
106 '<(DEPTH)/base/base.gyp:base', | |
107 '<(DEPTH)/cc/cc.gyp:cc', | |
108 '<(DEPTH)/cc/cc.gyp:cc_surfaces', | |
109 '<(DEPTH)/cc/cc_tests.gyp:cc_test_support', | |
110 '<(DEPTH)/skia/skia.gyp:skia', | |
111 '<(DEPTH)/testing/gtest.gyp:gtest', | |
112 '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink_minimal', | |
113 '<(DEPTH)/ui/base/ui_base.gyp:ui_base', | |
114 '<(DEPTH)/ui/display/display.gyp:display', | |
115 '<(DEPTH)/ui/gfx/gfx.gyp:gfx', | |
116 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry', | |
117 '<(DEPTH)/ui/gl/gl.gyp:gl', | |
118 'compositor', | |
119 ], | |
120 'sources': [ | |
121 'test/context_factories_for_test.cc', | |
122 'test/context_factories_for_test.h', | |
123 'test/draw_waiter_for_test.cc', | |
124 'test/draw_waiter_for_test.h', | |
125 'test/in_process_context_factory.cc', | |
126 'test/in_process_context_factory.h', | |
127 'test/in_process_context_provider.cc', | |
128 'test/in_process_context_provider.h', | |
129 'test/layer_animation_observer_test_api.cc', | |
130 'test/layer_animation_observer_test_api.h', | |
131 'test/layer_animator_test_controller.cc', | |
132 'test/layer_animator_test_controller.h', | |
133 'test/multi_layer_animator_test_controller.cc', | |
134 'test/multi_layer_animator_test_controller.h', | |
135 'test/multi_layer_animator_test_controller_delegate.h', | |
136 'test/test_compositor_host.h', | |
137 'test/test_compositor_host_android.cc', | |
138 'test/test_compositor_host_mac.mm', | |
139 'test/test_compositor_host_ozone.cc', | |
140 'test/test_compositor_host_win.cc', | |
141 'test/test_compositor_host_x11.cc', | |
142 'test/test_layer_animation_delegate.cc', | |
143 'test/test_layer_animation_delegate.h', | |
144 'test/test_layer_animation_observer.cc', | |
145 'test/test_layer_animation_observer.h', | |
146 'test/test_layers.cc', | |
147 'test/test_layers.h', | |
148 'test/test_suite.cc', | |
149 'test/test_suite.h', | |
150 'test/test_utils.cc', | |
151 'test/test_utils.h', | |
152 ], | |
153 'conditions': [ | |
154 ['use_x11==1', { | |
155 'dependencies': [ | |
156 '<(DEPTH)/build/linux/system.gyp:x11', | |
157 '<(DEPTH)/ui/gfx/x/gfx_x11.gyp:gfx_x11', | |
158 ] | |
159 }] | |
160 ] | |
161 }, | |
162 { | |
163 'target_name': 'compositor_unittests', | |
164 'type': '<(gtest_target_type)', | |
165 'dependencies': [ | |
166 '<(DEPTH)/base/base.gyp:base', | |
167 '<(DEPTH)/base/base.gyp:test_support_base', | |
168 '<(DEPTH)/cc/cc.gyp:cc', | |
169 '<(DEPTH)/cc/cc.gyp:cc_surfaces', | |
170 '<(DEPTH)/cc/cc_tests.gyp:cc_test_support', | |
171 '<(DEPTH)/skia/skia.gyp:skia', | |
172 '<(DEPTH)/testing/gmock.gyp:gmock', | |
173 '<(DEPTH)/testing/gtest.gyp:gtest', | |
174 '<(DEPTH)/ui/base/ui_base.gyp:ui_base', | |
175 '<(DEPTH)/ui/gfx/gfx.gyp:gfx', | |
176 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry', | |
177 '<(DEPTH)/ui/gl/gl.gyp:gl', | |
178 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources', | |
179 'compositor', | |
180 'compositor_test_support', | |
181 ], | |
182 'sources': [ | |
183 'callback_layer_animation_observer_unittest.cc', | |
184 'compositor_unittest.cc', | |
185 'layer_animation_element_unittest.cc', | |
186 'layer_animation_sequence_unittest.cc', | |
187 'layer_animator_unittest.cc', | |
188 'layer_owner_unittest.cc', | |
189 'layer_unittest.cc', | |
190 'run_all_unittests.cc', | |
191 'transform_animation_curve_adapter_unittest.cc', | |
192 ], | |
193 'conditions': [ | |
194 # osmesa GL implementation is used on linux. | |
195 ['OS=="linux"', { | |
196 'dependencies': [ | |
197 '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa', | |
198 ], | |
199 }], | |
200 ['OS == "android"', { | |
201 'dependencies': [ | |
202 '../../testing/android/native_test.gyp:native_test_native_code', | |
203 ], | |
204 }], | |
205 ], | |
206 }, | |
207 ], | |
208 'conditions': [ | |
209 ['test_isolation_mode != "noop"', { | |
210 'targets': [ | |
211 { | |
212 'target_name': 'compositor_unittests_run', | |
213 'type': 'none', | |
214 'dependencies': [ | |
215 'compositor_unittests', | |
216 ], | |
217 'includes': [ '../../build/isolate.gypi' ], | |
218 'sources': [ 'compositor_unittests.isolate' ], | |
219 'conditions': [ | |
220 ['use_x11 == 1', { | |
221 'dependencies': [ | |
222 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck', | |
223 ], | |
224 }], | |
225 ], | |
226 }, | |
227 ], | |
228 }], | |
229 ['OS == "android"', { | |
230 'targets': [ | |
231 { | |
232 'target_name': 'compositor_unittests_apk', | |
233 'type': 'none', | |
234 'dependencies': [ | |
235 'compositor_unittests', | |
236 ], | |
237 'variables': { | |
238 'test_suite_name': 'compositor_unittests', | |
239 }, | |
240 'includes': [ | |
241 '../../build/apk_test.gypi', | |
242 ], | |
243 }, | |
244 ]}] | |
245 ], | |
246 } | |
OLD | NEW |