Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(254)

Side by Side Diff: gpu/gpu.gyp

Issue 595012: Added unit tests for gpu libraries to build. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/all.gyp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 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 # This is defined here because we need to compile this set of files 8 # This is defined here because we need to compile this set of files
9 # twice with different defines. Once so it calls real GL, again so it 9 # twice with different defines. Once so it calls real GL, again so it
10 # calls mock GL for the unit tests. 10 # calls mock GL for the unit tests.
11 'gpu_source_files': [ 11 'gpu_service_source_files': [
12 'command_buffer/service/gles2_cmd_decoder.h', 12 'command_buffer/service/gles2_cmd_decoder.h',
13 'command_buffer/service/gles2_cmd_decoder_autogen.h', 13 'command_buffer/service/gles2_cmd_decoder_autogen.h',
14 'command_buffer/service/gles2_cmd_decoder.cc', 14 'command_buffer/service/gles2_cmd_decoder.cc',
15 'command_buffer/service/gles2_cmd_validation.h', 15 'command_buffer/service/gles2_cmd_validation.h',
16 'command_buffer/service/gles2_cmd_validation.cc', 16 'command_buffer/service/gles2_cmd_validation.cc',
17 'command_buffer/service/gles2_cmd_validation_autogen.h', 17 'command_buffer/service/gles2_cmd_validation_autogen.h',
18 'command_buffer/service/gles2_cmd_validation_implementation_autogen.h', 18 'command_buffer/service/gles2_cmd_validation_implementation_autogen.h',
19 'command_buffer/service/gl_utils.h', 19 'command_buffer/service/gl_utils.h',
20 ], 20 ],
21 }, 21 },
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 'dependencies': [ 168 'dependencies': [
169 'gles2_lib', 169 'gles2_lib',
170 ], 170 ],
171 'sources': [ 171 'sources': [
172 'command_buffer/client/gles2_c_lib.h', 172 'command_buffer/client/gles2_c_lib.h',
173 'command_buffer/client/gles2_c_lib.cc', 173 'command_buffer/client/gles2_c_lib.cc',
174 'command_buffer/client/gles2_c_lib_autogen.h', 174 'command_buffer/client/gles2_c_lib_autogen.h',
175 ], 175 ],
176 }, 176 },
177 { 177 {
178 'target_name': 'command_buffer_common_unittests',
179 'type': 'none',
180 'include_dirs': [
181 'command_buffer/common',
182 ],
183 'dependencies': [
184 'gles2_lib',
185 'gles2_implementation',
186 'gles2_cmd_helper',
187 ],
188 'direct_dependent_settings': {
189 'sources': [
190 'command_buffer/common/bitfield_helpers_test.cc',
191 ],
192 },
193 },
194 {
195 'target_name': 'command_buffer_client', 178 'target_name': 'command_buffer_client',
196 'type': 'static_library', 179 'type': 'static_library',
197 'dependencies': [ 180 'dependencies': [
198 'command_buffer_common', 181 'command_buffer_common',
199 ], 182 ],
200 'sources': [ 183 'sources': [
201 'command_buffer/client/cmd_buffer_helper.cc', 184 'command_buffer/client/cmd_buffer_helper.cc',
202 'command_buffer/client/cmd_buffer_helper.h', 185 'command_buffer/client/cmd_buffer_helper.h',
203 'command_buffer/client/fenced_allocator.cc', 186 'command_buffer/client/fenced_allocator.cc',
204 'command_buffer/client/fenced_allocator.h', 187 'command_buffer/client/fenced_allocator.h',
205 'command_buffer/client/id_allocator.cc', 188 'command_buffer/client/id_allocator.cc',
206 'command_buffer/client/id_allocator.h', 189 'command_buffer/client/id_allocator.h',
207 ], 190 ],
208 }, 191 },
209 { 192 {
210 'target_name': 'command_buffer_client_unittests',
211 'type': 'none',
212 'direct_dependent_settings': {
213 'sources': [
214 'command_buffer/client/cmd_buffer_helper_test.cc',
215 'command_buffer/client/fenced_allocator_test.cc',
216 'command_buffer/client/id_allocator_test.cc',
217 ],
218 },
219 },
220 {
221 'target_name': 'command_buffer_service_impl', 193 'target_name': 'command_buffer_service_impl',
222 'type': 'static_library', 194 'type': 'static_library',
223 'include_dirs': [ 195 'include_dirs': [
224 '..', 196 '..',
225 ], 197 ],
226 'all_dependent_settings': { 198 'all_dependent_settings': {
227 'include_dirs': [ 199 'include_dirs': [
228 '..', 200 '..',
229 ], 201 ],
230 }, 202 },
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
287 'all_dependent_settings': { 259 'all_dependent_settings': {
288 'include_dirs': [ 260 'include_dirs': [
289 '..', 261 '..',
290 ], 262 ],
291 }, 263 },
292 'dependencies': [ 264 'dependencies': [
293 'command_buffer_service_impl', 265 'command_buffer_service_impl',
294 'gl_libs', 266 'gl_libs',
295 ], 267 ],
296 'sources': [ 268 'sources': [
297 '<@(gpu_source_files)', 269 '<@(gpu_service_source_files)',
298 ], 270 ],
299 }, 271 },
300 { 272 {
301 'target_name': 'command_buffer_service_unittests',
302 'type': 'none',
303 'direct_dependent_settings': {
304 'sources': [
305 '<@(gpu_source_files)',
306 'command_buffer/service/cmd_parser_test.cc',
307 'command_buffer/service/command_buffer_service_unittest.cc',
308 'command_buffer/service/common_decoder_unittest.cc',
309 'command_buffer/service/gpu_processor_unittest.cc',
310 'command_buffer/service/resource_test.cc',
311 'command_buffer/service/gl_interface.h',
312 'command_buffer/service/gl_interface.cc',
313 'command_buffer/service/gl_mock.h',
314 'command_buffer/service/gl_mock.cc',
315 'command_buffer/service/gles2_cmd_decoder_unittest.cc',
316 'command_buffer/service/gles2_cmd_decoder_unittest_autogen.h',
317 'command_buffer/common/gles2_cmd_format_test.cc',
318 'command_buffer/common/gles2_cmd_format_test_autogen.h',
319 'command_buffer/common/gles2_cmd_id_test.cc',
320 'command_buffer/common/gles2_cmd_id_test_autogen.h',
321 ],
322 },
323 },
324 {
325 'target_name': 'gpu_plugin', 273 'target_name': 'gpu_plugin',
326 'type': 'static_library', 274 'type': 'static_library',
327 'dependencies': [ 275 'dependencies': [
328 '../base/base.gyp:base', 276 '../base/base.gyp:base',
329 'command_buffer_service', 277 'command_buffer_service',
330 ], 278 ],
331 'include_dirs': [ 279 'include_dirs': [
332 '..', 280 '..',
333 ], 281 ],
334 'all_dependent_settings': { 282 'all_dependent_settings': {
335 'include_dirs': [ 283 'include_dirs': [
336 '..', 284 '..',
337 ], 285 ],
338 }, 286 },
339 'sources': [ 287 'sources': [
340 'gpu_plugin/gpu_plugin.cc', 288 'gpu_plugin/gpu_plugin.cc',
341 'gpu_plugin/gpu_plugin.h', 289 'gpu_plugin/gpu_plugin.h',
342 ], 290 ],
343 }, 291 },
344 { 292 {
345 'target_name': 'gpu_all_unittests', 293 'target_name': 'gpu_tests',
346 'type': 'executable', 294 'type': 'executable',
295 'include_dirs': [
296 'command_buffer/common',
297 ],
347 'dependencies': [ 298 'dependencies': [
348 '../testing/gmock.gyp:gmock', 299 '../testing/gmock.gyp:gmock',
349 '../testing/gmock.gyp:gmockmain', 300 '../testing/gmock.gyp:gmockmain',
350 '../testing/gtest.gyp:gtest', 301 '../testing/gtest.gyp:gtest',
351 'command_buffer_client', 302 'command_buffer_client',
352 'command_buffer_client_unittests',
353 'command_buffer_common', 303 'command_buffer_common',
354 'command_buffer_common_unittests',
355 'command_buffer_service_impl', 304 'command_buffer_service_impl',
356 'command_buffer_service_unittests', 305 'gles2_lib',
306 'gles2_implementation',
307 'gles2_cmd_helper',
308 ],
309 'sources': [
310 '<@(gpu_service_source_files)',
311 'command_buffer/client/cmd_buffer_helper_test.cc',
312 'command_buffer/client/fenced_allocator_test.cc',
313 'command_buffer/client/id_allocator_test.cc',
314 'command_buffer/common/bitfield_helpers_test.cc',
315 'command_buffer/common/gles2_cmd_format_test.cc',
316 'command_buffer/common/gles2_cmd_format_test_autogen.h',
317 'command_buffer/common/gles2_cmd_id_test.cc',
318 'command_buffer/common/gles2_cmd_id_test_autogen.h',
319 'command_buffer/service/cmd_parser_test.cc',
320 'command_buffer/service/command_buffer_service_unittest.cc',
321 'command_buffer/service/common_decoder_unittest.cc',
322 'command_buffer/service/gpu_processor_unittest.cc',
323 'command_buffer/service/resource_test.cc',
324 'command_buffer/service/gl_interface.h',
325 'command_buffer/service/gl_interface.cc',
326 'command_buffer/service/gl_mock.h',
327 'command_buffer/service/gl_mock.cc',
328 'command_buffer/service/gles2_cmd_decoder_unittest.cc',
329 'command_buffer/service/gles2_cmd_decoder_unittest_autogen.h',
357 ], 330 ],
358 }, 331 },
359 { 332 {
360 'target_name': 'gles2_demo_lib', 333 'target_name': 'gles2_demo_lib',
361 'type': 'static_library', 334 'type': 'static_library',
362 'dependencies': [ 335 'dependencies': [
363 'command_buffer_client', 336 'command_buffer_client',
364 'gles2_lib', 337 'gles2_lib',
365 'gles2_c_lib', 338 'gles2_c_lib',
366 ], 339 ],
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
423 }, 396 },
424 ], 397 ],
425 ], 398 ],
426 } 399 }
427 400
428 # Local Variables: 401 # Local Variables:
429 # tab-width:2 402 # tab-width:2
430 # indent-tabs-mode:nil 403 # indent-tabs-mode:nil
431 # End: 404 # End:
432 # vim: set expandtab tabstop=2 shiftwidth=2: 405 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « build/all.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698