MD Downloads: prevent search text from overlapping with the cancel search (X)
[chromium-blink-merge.git] / ui / compositor / compositor.gyp
blobc6890f9e029f10e5952705890eebb6679a642d86
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       'target_name': 'compositor',
12       'type': '<(component)',
13       'dependencies': [
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',
23       ],
24       'defines': [
25         'COMPOSITOR_IMPLEMENTATION',
26       ],
27       'sources': [
28         'canvas_painter.cc',
29         'canvas_painter.h',
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',
36         'compositor.cc',
37         'compositor.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',
45         'debug_utils.cc',
46         'debug_utils.h',
47         'dip_util.cc',
48         'dip_util.h',
49         'float_animation_curve_adapter.cc',
50         'float_animation_curve_adapter.h',
51         'layer.cc',
52         'layer.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',
60         'layer_animator.cc',
61         'layer_animator.h',
62         'layer_animator_collection.cc',
63         'layer_animator_collection.h',
64         'layer_delegate.h',
65         'layer_owner.cc',
66         'layer_owner.h',
67         'layer_tree_owner.cc',
68         'layer_tree_owner.h',
69         'layer_type.h',
70         'paint_cache.cc',
71         'paint_cache.h',
72         'paint_context.cc',
73         'paint_context.h',
74         'paint_recorder.cc',
75         'paint_recorder.h',
76         'reflector.cc',
77         'reflector.h',
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',
84       ],
85       'conditions': [
86         ['OS == "win" and use_aura == 1', {
87           # TODO(sky): before we make this real need to remove
88           # IDR_BITMAP_BRUSH_IMAGE.
89           'dependencies': [
90             '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
91             '<(angle_path)/src/angle.gyp:libEGL',
92             '<(angle_path)/src/angle.gyp:libGLESv2',
93           ],
94         }],
95       ],
96     },
97     {
98       'target_name': 'compositor_test_support',
99       'type': 'static_library',
100       'dependencies': [
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',
112         'compositor',
113       ],
114       'sources': [
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',
137         'test/test_suite.h',
138         'test/test_utils.cc',
139         'test/test_utils.h',
140       ],
141       'conditions': [
142         ['use_x11==1', {
143           'dependencies': [
144             '<(DEPTH)/build/linux/system.gyp:x11',
145             '<(DEPTH)/ui/gfx/x/gfx_x11.gyp:gfx_x11',
146           ]
147         }]
148       ]
149     },
150     {
151       'target_name': 'compositor_unittests',
152       'type': 'executable',
153       'dependencies': [
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',
166         'compositor',
167         'compositor_test_support',
168       ],
169       'sources': [
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',
175         'layer_unittest.cc',
176         'run_all_unittests.cc',
177         'transform_animation_curve_adapter_unittest.cc',
178       ],
179       'conditions': [
180         # osmesa GL implementation is used on linux.
181         ['OS=="linux"', {
182           'dependencies': [
183             '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa',
184           ],
185         }],
186         ['os_posix == 1 and OS != "mac"', {
187           'conditions': [
188             ['use_allocator!="none"', {
189               'dependencies': [
190                 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
191               ],
192             }],
193           ],
194         }],
195       ],
196     },
197   ],
198   'conditions': [
199     ['test_isolation_mode != "noop"', {
200       'targets': [
201         {
202           'target_name': 'compositor_unittests_run',
203           'type': 'none',
204           'dependencies': [
205             'compositor_unittests',
206           ],
207           'includes': [ '../../build/isolate.gypi' ],
208           'sources': [ 'compositor_unittests.isolate' ],
209           'conditions': [
210             ['use_x11 == 1', {
211               'dependencies': [
212                 '../../tools/xdisplaycheck/xdisplaycheck.gyp:xdisplaycheck',
213               ],
214             }],
215           ],
216         },
217       ],
218     }],
219   ],