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',
30 'clip_transform_recorder.cc',
31 'clip_transform_recorder.h',
32 'closure_animation_observer.cc',
33 'closure_animation_observer.h',
34 'compositing_recorder.cc',
35 'compositing_recorder.h',
38 'compositor_animation_observer.h',
39 'compositor_export.h',
40 'compositor_observer.h',
41 'compositor_switches.cc',
42 'compositor_switches.h',
43 'compositor_vsync_manager.cc',
44 'compositor_vsync_manager.h',
49 'float_animation_curve_adapter.cc',
50 'float_animation_curve_adapter.h',
53 'layer_animation_delegate.h',
54 'layer_animation_element.cc',
55 'layer_animation_element.h',
56 'layer_animation_observer.cc',
57 'layer_animation_observer.h',
58 'layer_animation_sequence.cc',
59 'layer_animation_sequence.h',
62 'layer_animator_collection.cc',
63 'layer_animator_collection.h',
67 'layer_tree_owner.cc',
78 'scoped_animation_duration_scale_mode.cc',
79 'scoped_animation_duration_scale_mode.h',
80 'scoped_layer_animation_settings.cc',
81 'scoped_layer_animation_settings.h',
82 'transform_animation_curve_adapter.cc',
83 'transform_animation_curve_adapter.h',
86 ['OS == "win" and use_aura == 1', {
87 # TODO(sky): before we make this real need to remove
88 # IDR_BITMAP_BRUSH_IMAGE.
90 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
91 '<(angle_path)/src/angle.gyp:libEGL',
92 '<(angle_path)/src/angle.gyp:libGLESv2',
98 'target_name': 'compositor_test_support',
99 'type': 'static_library',
101 '<(DEPTH)/base/base.gyp:base',
102 '<(DEPTH)/cc/cc.gyp:cc',
103 '<(DEPTH)/cc/cc.gyp:cc_surfaces',
104 '<(DEPTH)/cc/cc_tests.gyp:cc_test_support',
105 '<(DEPTH)/skia/skia.gyp:skia',
106 '<(DEPTH)/testing/gtest.gyp:gtest',
107 '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink_minimal',
108 '<(DEPTH)/ui/base/ui_base.gyp:ui_base',
109 '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
110 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
111 '<(DEPTH)/ui/gl/gl.gyp:gl',
115 'test/context_factories_for_test.cc',
116 'test/context_factories_for_test.h',
117 'test/draw_waiter_for_test.cc',
118 'test/draw_waiter_for_test.h',
119 'test/in_process_context_factory.cc',
120 'test/in_process_context_factory.h',
121 'test/in_process_context_provider.cc',
122 'test/in_process_context_provider.h',
123 'test/layer_animator_test_controller.cc',
124 'test/layer_animator_test_controller.h',
125 'test/test_compositor_host.h',
126 'test/test_compositor_host_mac.mm',
127 'test/test_compositor_host_ozone.cc',
128 'test/test_compositor_host_win.cc',
129 'test/test_compositor_host_x11.cc',
130 'test/test_layer_animation_delegate.cc',
131 'test/test_layer_animation_delegate.h',
132 'test/test_layer_animation_observer.cc',
133 'test/test_layer_animation_observer.h',
134 'test/test_layers.cc',
135 'test/test_layers.h',
136 'test/test_suite.cc',
138 'test/test_utils.cc',
144 '<(DEPTH)/build/linux/system.gyp:x11',
145 '<(DEPTH)/ui/gfx/x/gfx_x11.gyp:gfx_x11',
151 'target_name': 'compositor_unittests',
152 'type': 'executable',
154 '<(DEPTH)/base/base.gyp:base',
155 '<(DEPTH)/base/base.gyp:test_support_base',
156 '<(DEPTH)/cc/cc.gyp:cc',
157 '<(DEPTH)/cc/cc_tests.gyp:cc_test_support',
158 '<(DEPTH)/skia/skia.gyp:skia',
159 '<(DEPTH)/testing/gmock.gyp:gmock',
160 '<(DEPTH)/testing/gtest.gyp:gtest',
161 '<(DEPTH)/ui/base/ui_base.gyp:ui_base',
162 '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
163 '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
164 '<(DEPTH)/ui/gl/gl.gyp:gl',
165 '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
167 'compositor_test_support',
170 'compositor_unittest.cc',
171 'layer_animation_element_unittest.cc',
172 'layer_animation_sequence_unittest.cc',
173 'layer_animator_unittest.cc',
174 'layer_owner_unittest.cc',
176 'run_all_unittests.cc',
177 'transform_animation_curve_adapter_unittest.cc',
180 # osmesa GL implementation is used on linux.
183 '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa',
186 ['os_posix == 1 and OS != "mac"', {
188 ['use_allocator!="none"', {
190 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
199 ['test_isolation_mode != "noop"', {
202 'target_name': 'compositor_unittests_run',
205 'compositor_unittests',
207 'includes': [ '../../build/isolate.gypi' ],
208 'sources': [ 'compositor_unittests.isolate' ],
212 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',