mac: Add the flag "-gline-tables-only" to reduce dSYM size. (attempt #2)
[chromium-blink-merge.git] / ui / compositor / compositor.gyp
blob92f5ef4e51117fc9e8fb89f6da8cc51ee5f9508e
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         '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',
34         'compositor.cc',
35         'compositor.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',
43         'debug_utils.cc',
44         'debug_utils.h',
45         'dip_util.cc',
46         'dip_util.h',
47         'float_animation_curve_adapter.cc',
48         'float_animation_curve_adapter.h',
49         'layer.cc',
50         'layer.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',
58         'layer_animator.cc',
59         'layer_animator.h',
60         'layer_animator_collection.cc',
61         'layer_animator_collection.h',
62         'layer_delegate.h',
63         'layer_owner.cc',
64         'layer_owner.h',
65         'layer_tree_owner.cc',
66         'layer_tree_owner.h',
67         'layer_type.h',
68         'paint_cache.cc',
69         'paint_cache.h',
70         'paint_context.cc',
71         'paint_context.h',
72         'paint_recorder.cc',
73         'paint_recorder.h',
74         'reflector.cc',
75         'reflector.h',
76         'scoped_animation_duration_scale_mode.cc',
77         'scoped_animation_duration_scale_mode.h',
78         'scoped_layer_animation_settings.cc',
79         'scoped_layer_animation_settings.h',
80         'transform_animation_curve_adapter.cc',
81         'transform_animation_curve_adapter.h',
82       ],
83       'conditions': [
84         ['OS == "win" and use_aura == 1', {
85           # TODO(sky): before we make this real need to remove
86           # IDR_BITMAP_BRUSH_IMAGE.
87           'dependencies': [
88             '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
89             '<(angle_path)/src/angle.gyp:libEGL',
90             '<(angle_path)/src/angle.gyp:libGLESv2',
91           ],
92         }],
93       ],
94     },
95     {
96       'target_name': 'compositor_test_support',
97       'type': 'static_library',
98       'dependencies': [
99         '<(DEPTH)/base/base.gyp:base',
100         '<(DEPTH)/cc/cc.gyp:cc',
101         '<(DEPTH)/cc/cc.gyp:cc_surfaces',
102         '<(DEPTH)/cc/cc_tests.gyp:cc_test_support',
103         '<(DEPTH)/skia/skia.gyp:skia',
104         '<(DEPTH)/testing/gtest.gyp:gtest',
105         '<(DEPTH)/third_party/WebKit/public/blink.gyp:blink_minimal',
106         '<(DEPTH)/ui/base/ui_base.gyp:ui_base',
107         '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
108         '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
109         '<(DEPTH)/ui/gl/gl.gyp:gl',
110         'compositor',
111       ],
112       'sources': [
113         'test/context_factories_for_test.cc',
114         'test/context_factories_for_test.h',
115         'test/draw_waiter_for_test.cc',
116         'test/draw_waiter_for_test.h',
117         'test/in_process_context_factory.cc',
118         'test/in_process_context_factory.h',
119         'test/in_process_context_provider.cc',
120         'test/in_process_context_provider.h',
121         'test/layer_animator_test_controller.cc',
122         'test/layer_animator_test_controller.h',
123         'test/test_compositor_host.h',
124         'test/test_compositor_host_mac.mm',
125         'test/test_compositor_host_ozone.cc',
126         'test/test_compositor_host_win.cc',
127         'test/test_compositor_host_x11.cc',
128         'test/test_layer_animation_delegate.cc',
129         'test/test_layer_animation_delegate.h',
130         'test/test_layer_animation_observer.cc',
131         'test/test_layer_animation_observer.h',
132         'test/test_layers.cc',
133         'test/test_layers.h',
134         'test/test_suite.cc',
135         'test/test_suite.h',
136         'test/test_utils.cc',
137         'test/test_utils.h',
138       ],
139       'conditions': [
140         ['use_x11==1', {
141           'dependencies': [
142             '<(DEPTH)/build/linux/system.gyp:x11',
143             '<(DEPTH)/ui/gfx/x/gfx_x11.gyp:gfx_x11',
144           ]
145         }]
146       ]
147     },
148     {
149       'target_name': 'compositor_unittests',
150       'type': 'executable',
151       'dependencies': [
152         '<(DEPTH)/base/base.gyp:base',
153         '<(DEPTH)/base/base.gyp:test_support_base',
154         '<(DEPTH)/cc/cc.gyp:cc',
155         '<(DEPTH)/cc/cc_tests.gyp:cc_test_support',
156         '<(DEPTH)/skia/skia.gyp:skia',
157         '<(DEPTH)/testing/gmock.gyp:gmock',
158         '<(DEPTH)/testing/gtest.gyp:gtest',
159         '<(DEPTH)/ui/base/ui_base.gyp:ui_base',
160         '<(DEPTH)/ui/gfx/gfx.gyp:gfx',
161         '<(DEPTH)/ui/gfx/gfx.gyp:gfx_geometry',
162         '<(DEPTH)/ui/gl/gl.gyp:gl',
163         '<(DEPTH)/ui/resources/ui_resources.gyp:ui_resources',
164         'compositor',
165         'compositor_test_support',
166       ],
167       'sources': [
168         'compositor_unittest.cc',
169         'layer_animation_element_unittest.cc',
170         'layer_animation_sequence_unittest.cc',
171         'layer_animator_unittest.cc',
172         'layer_owner_unittest.cc',
173         'layer_unittest.cc',
174         'run_all_unittests.cc',
175         'transform_animation_curve_adapter_unittest.cc',
176       ],
177       'conditions': [
178         # osmesa GL implementation is used on linux.
179         ['OS=="linux"', {
180           'dependencies': [
181             '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa',
182           ],
183         }],
184         ['os_posix == 1 and OS != "mac"', {
185           'conditions': [
186             ['use_allocator!="none"', {
187               'dependencies': [
188                 '<(DEPTH)/base/allocator/allocator.gyp:allocator',
189               ],
190             }],
191           ],
192         }],
193       ],
194     },
195   ],