OLD | NEW |
1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'target_defaults': { | 9 'target_defaults': { |
10 'sources/': [ | 10 'sources/': [ |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 ], | 100 ], |
101 } | 101 } |
102 ], | 102 ], |
103 ], | 103 ], |
104 }, | 104 }, |
105 { | 105 { |
106 'target_name': 'compositor_test_support', | 106 'target_name': 'compositor_test_support', |
107 'type': 'static_library', | 107 'type': 'static_library', |
108 'dependencies': [ | 108 'dependencies': [ |
109 '<(DEPTH)/base/base.gyp:base', | 109 '<(DEPTH)/base/base.gyp:base', |
110 '<(DEPTH)/skia/skia.gyp:skia', | |
111 ], | 110 ], |
112 'sources': [ | 111 'sources': [ |
113 'compositor_test_support.cc', | 112 'compositor_test_support.cc', |
114 'compositor_test_support.h', | 113 'compositor_test_support.h', |
115 ], | 114 ], |
116 'conditions': [ | 115 'conditions': [ |
117 ['use_webkit_compositor == 1', { | 116 ['use_webkit_compositor == 1', { |
118 'dependencies': [ | 117 'dependencies': [ |
119 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_support', | 118 '<(DEPTH)/webkit/support/webkit_support.gyp:webkit_support', |
120 '<(DEPTH)/third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:web
kit', | 119 '<(DEPTH)/third_party/WebKit/Source/WebKit/chromium/WebKit.gyp:web
kit', |
121 ], | 120 ], |
122 }], | 121 }], |
123 ['views_compositor==1', { | |
124 'sources': [ | |
125 'compositor.cc', | |
126 'compositor.h', | |
127 'layer.cc', | |
128 'layer.h', | |
129 'layer_animator.cc', | |
130 'layer_animator.h', | |
131 'layer_animator_delegate.h', | |
132 'test_compositor.cc', | |
133 'test_compositor.h', | |
134 'test_texture.cc', | |
135 'test_texture.h', | |
136 ], | |
137 }], | |
138 ], | 122 ], |
139 }, | 123 }, |
140 { | 124 { |
141 'target_name': 'compositor_unittests', | 125 'target_name': 'compositor_unittests', |
142 'type': 'executable', | 126 'type': 'executable', |
143 'dependencies': [ | 127 'dependencies': [ |
144 '<(DEPTH)/base/base.gyp:base', | 128 '<(DEPTH)/base/base.gyp:base', |
145 '<(DEPTH)/base/base.gyp:test_support_base', | 129 '<(DEPTH)/base/base.gyp:test_support_base', |
146 '<(DEPTH)/skia/skia.gyp:skia', | 130 '<(DEPTH)/skia/skia.gyp:skia', |
147 '<(DEPTH)/testing/gtest.gyp:gtest', | 131 '<(DEPTH)/testing/gtest.gyp:gtest', |
148 '<(DEPTH)/ui/gfx/gl/gl.gyp:gl', | 132 '<(DEPTH)/ui/gfx/gl/gl.gyp:gl', |
149 '<(DEPTH)/ui/ui.gyp:gfx_resources', | 133 '<(DEPTH)/ui/ui.gyp:gfx_resources', |
150 '<(DEPTH)/ui/ui.gyp:ui', | 134 '<(DEPTH)/ui/ui.gyp:ui', |
151 '<(DEPTH)/ui/ui.gyp:ui_resources', | 135 '<(DEPTH)/ui/ui.gyp:ui_resources', |
152 'compositor', | 136 'compositor', |
153 'compositor_test_support', | 137 'compositor_test_support', |
| 138 'test_compositor', |
154 ], | 139 ], |
155 'sources': [ | 140 'sources': [ |
156 'layer_animation_element_unittest.cc', | 141 'layer_animation_element_unittest.cc', |
157 'layer_animation_sequence_unittest.cc', | 142 'layer_animation_sequence_unittest.cc', |
158 'layer_animator_unittest.cc', | 143 'layer_animator_unittest.cc', |
159 'layer_unittest.cc', | 144 'layer_unittest.cc', |
160 'run_all_unittests.cc', | 145 'run_all_unittests.cc', |
161 'test_compositor_host.h', | 146 'test_compositor_host.h', |
162 'test_compositor_host_linux.cc', | 147 'test_compositor_host_linux.cc', |
163 'test_compositor_host_win.cc', | 148 'test_compositor_host_win.cc', |
164 'test_layer_animation_delegate.cc', | 149 'test_layer_animation_delegate.cc', |
165 'test_layer_animation_delegate.h', | 150 'test_layer_animation_delegate.h', |
166 'test_suite.cc', | 151 'test_suite.cc', |
167 'test_suite.h', | 152 'test_suite.h', |
168 'test_texture.cc', | |
169 'test_texture.h', | |
170 'test_utils.cc', | 153 'test_utils.cc', |
171 'test_utils.h', | 154 'test_utils.h', |
172 '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.rc', | 155 '<(SHARED_INTERMEDIATE_DIR)/ui/gfx/gfx_resources.rc', |
173 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.rc', | 156 '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources.rc', |
174 ], | 157 ], |
175 'conditions': [ | 158 'conditions': [ |
176 # osmesa GL implementation is used on linux. | 159 # osmesa GL implementation is used on linux. |
177 ['OS=="linux"', { | 160 ['OS=="linux"', { |
178 'dependencies': [ | 161 'dependencies': [ |
179 '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa', | 162 '<(DEPTH)/third_party/mesa/mesa.gyp:osmesa', |
180 ], | 163 ], |
181 }], | 164 }], |
182 ['OS!="mac"', { | 165 ['OS!="mac"', { |
183 'dependencies': [ | 166 'dependencies': [ |
184 '<(DEPTH)/chrome/chrome.gyp:packed_resources', | 167 '<(DEPTH)/chrome/chrome.gyp:packed_resources', |
185 ], | 168 ], |
186 }], | 169 }], |
187 ], | 170 ], |
188 }, | 171 }, |
| 172 { |
| 173 'target_name': 'test_compositor', |
| 174 'type': 'static_library', |
| 175 'dependencies': [ |
| 176 '<(DEPTH)/base/base.gyp:base', |
| 177 ], |
| 178 'sources': [ |
| 179 '../test/gfx_test_utils.cc', |
| 180 '../test/gfx_test_utils.h', |
| 181 ], |
| 182 'conditions': [ |
| 183 ['toolkit_views == 1', { |
| 184 'dependencies': [ |
| 185 '<(DEPTH)/skia/skia.gyp:skia', |
| 186 'compositor', |
| 187 ], |
| 188 'sources': [ |
| 189 'test_compositor.cc', |
| 190 'test_compositor.h', |
| 191 'test_texture.cc', |
| 192 'test_texture.h', |
| 193 ], |
| 194 }], |
| 195 ], |
| 196 }, |
189 ], | 197 ], |
190 } | 198 } |
OLD | NEW |