summaryrefslogtreecommitdiffstats
path: root/gpu
diff options
context:
space:
mode:
authorapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-29 23:18:12 +0000
committerapatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-29 23:18:12 +0000
commit644362cf86a1b46f85e56c888cf2fd75eb9fb001 (patch)
treecc9f00fb56a3bb357edac5d6120d062f9e6c948e /gpu
parent40ec4b5908d9acb1812cbcd748b9878bc6b05349 (diff)
downloadchromium_src-644362cf86a1b46f85e56c888cf2fd75eb9fb001.zip
chromium_src-644362cf86a1b46f85e56c888cf2fd75eb9fb001.tar.gz
chromium_src-644362cf86a1b46f85e56c888cf2fd75eb9fb001.tar.bz2
Added GPU unit tests to win, mac and linux builds. They aren't running yet.
TEST=trybots BUG=none Review URL: http://codereview.chromium.org/1577001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43013 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu')
-rw-r--r--gpu/gpu.gyp148
1 files changed, 66 insertions, 82 deletions
diff --git a/gpu/gpu.gyp b/gpu/gpu.gyp
index 06818fc..86c79ff 100644
--- a/gpu/gpu.gyp
+++ b/gpu/gpu.gyp
@@ -8,7 +8,7 @@
# This is defined here because we need to compile this set of files
# twice with different defines. Once so it calls real GL, again so it
# calls mock GL for the unit tests.
- 'gpu_source_files': [
+ 'gpu_service_source_files': [
'command_buffer/service/buffer_manager.h',
'command_buffer/service/buffer_manager.cc',
'command_buffer/service/framebuffer_manager.h',
@@ -66,29 +66,35 @@
'ldflags': [
'-L<(PRODUCT_DIR)',
],
- 'libraries': [
- '-lX11',
- # For dlsym() in '../third_party/glew/src/glew.c'
- '-ldl',
- ],
+ 'link_settings': {
+ 'libraries': [
+ '-lX11',
+ # For dlsym() in '../third_party/glew/src/glew.c'
+ '-ldl',
+ ],
+ },
},
},
],
[ 'OS=="mac"',
{
- 'direct_dependent_settings': {
- 'libraries': [
- '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
- ],
+ 'all_dependent_settings': {
+ 'link_settings': {
+ 'libraries': [
+ '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
+ ],
+ },
},
},
],
[ 'OS=="win"',
{
'all_dependent_settings': {
- 'libraries': [
- '-lOpenGL32.lib',
- ],
+ 'link_settings': {
+ 'libraries': [
+ '-lOpenGL32.lib',
+ ],
+ },
},
},
],
@@ -191,23 +197,6 @@
],
},
{
- 'target_name': 'command_buffer_common_unittests',
- 'type': 'none',
- 'include_dirs': [
- '.',
- ],
- 'dependencies': [
- 'gles2_lib',
- 'gles2_implementation',
- 'gles2_cmd_helper',
- ],
- 'direct_dependent_settings': {
- 'sources': [
- 'command_buffer/common/bitfield_helpers_test.cc',
- ],
- },
- },
- {
'target_name': 'command_buffer_client',
'type': 'static_library',
'dependencies': [
@@ -223,17 +212,6 @@
],
},
{
- 'target_name': 'command_buffer_client_unittests',
- 'type': 'none',
- 'direct_dependent_settings': {
- 'sources': [
- 'command_buffer/client/cmd_buffer_helper_test.cc',
- 'command_buffer/client/fenced_allocator_test.cc',
- 'command_buffer/client/id_allocator_test.cc',
- ],
- },
- },
- {
'target_name': 'command_buffer_service_impl',
'type': 'static_library',
'include_dirs': [
@@ -309,46 +287,10 @@
'gl_libs',
],
'sources': [
- '<@(gpu_source_files)',
+ '<@(gpu_service_source_files)',
],
},
{
- 'target_name': 'command_buffer_service_unittests',
- 'type': 'none',
- 'direct_dependent_settings': {
- 'sources': [
- '<@(gpu_source_files)',
- 'command_buffer/common/gles2_cmd_format_test.cc',
- 'command_buffer/common/gles2_cmd_format_test_autogen.h',
- 'command_buffer/common/gles2_cmd_id_test.cc',
- 'command_buffer/common/gles2_cmd_id_test_autogen.h',
- 'command_buffer/service/buffer_manager_unittest.cc',
- 'command_buffer/service/context_group_unittest.cc',
- 'command_buffer/service/cmd_parser_test.cc',
- 'command_buffer/service/cmd_parser_test.cc',
- 'command_buffer/service/common_decoder_unittest.cc',
- 'command_buffer/service/framebuffer_manager_unittest.cc',
- 'command_buffer/service/gpu_processor_unittest.cc',
- 'command_buffer/service/gl_interface.h',
- 'command_buffer/service/gl_interface.cc',
- 'command_buffer/service/gl_mock.h',
- 'command_buffer/service/gl_mock.cc',
- 'command_buffer/service/gles2_cmd_decoder_unittest_base.h',
- 'command_buffer/service/gles2_cmd_decoder_unittest_base.cc',
- 'command_buffer/service/gles2_cmd_decoder_unittest.cc',
- 'command_buffer/service/gles2_cmd_decoder_unittest_1.cc',
- 'command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h',
- 'command_buffer/service/gles2_cmd_decoder_unittest_2.cc',
- 'command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h',
- 'command_buffer/service/id_manager_unittest.cc',
- 'command_buffer/service/program_manager_unittest.cc',
- 'command_buffer/service/renderbuffer_manager_unittest.cc',
- 'command_buffer/service/shader_manager_unittest.cc',
- 'command_buffer/service/texture_manager_unittest.cc',
- ],
- },
- },
- {
'target_name': 'gpu_plugin',
'type': 'static_library',
'dependencies': [
@@ -369,18 +311,60 @@
],
},
{
- 'target_name': 'gpu_all_unittests',
+ 'target_name': 'gpu_unittests',
'type': 'executable',
'dependencies': [
'../testing/gmock.gyp:gmock',
'../testing/gmock.gyp:gmockmain',
'../testing/gtest.gyp:gtest',
'command_buffer_client',
- 'command_buffer_client_unittests',
'command_buffer_common',
- 'command_buffer_common_unittests',
'command_buffer_service_impl',
- 'command_buffer_service_unittests',
+ 'gles2_lib',
+ 'gles2_implementation',
+ 'gles2_cmd_helper',
+ ],
+ 'sources': [
+ '<@(gpu_service_source_files)',
+ 'command_buffer/client/cmd_buffer_helper_test.cc',
+ 'command_buffer/client/fenced_allocator_test.cc',
+ 'command_buffer/client/id_allocator_test.cc',
+ 'command_buffer/common/bitfield_helpers_test.cc',
+ 'command_buffer/common/gles2_cmd_format_test.cc',
+ 'command_buffer/common/gles2_cmd_format_test_autogen.h',
+ 'command_buffer/common/gles2_cmd_id_test.cc',
+ 'command_buffer/common/gles2_cmd_id_test_autogen.h',
+ 'command_buffer/common/gles2_cmd_format_test.cc',
+ 'command_buffer/common/gles2_cmd_format_test_autogen.h',
+ 'command_buffer/common/gles2_cmd_id_test.cc',
+ 'command_buffer/common/gles2_cmd_id_test_autogen.h',
+ 'command_buffer/common/gles2_cmd_format_test.cc',
+ 'command_buffer/common/gles2_cmd_format_test_autogen.h',
+ 'command_buffer/common/gles2_cmd_id_test.cc',
+ 'command_buffer/common/gles2_cmd_id_test_autogen.h',
+ 'command_buffer/service/buffer_manager_unittest.cc',
+ 'command_buffer/service/context_group_unittest.cc',
+ 'command_buffer/service/cmd_parser_test.cc',
+ 'command_buffer/service/cmd_parser_test.cc',
+ 'command_buffer/service/common_decoder_unittest.cc',
+ 'command_buffer/service/framebuffer_manager_unittest.cc',
+ 'command_buffer/service/gpu_processor_unittest.cc',
+ 'command_buffer/service/gl_interface.h',
+ 'command_buffer/service/gl_interface.cc',
+ 'command_buffer/service/gl_mock.h',
+ 'command_buffer/service/gl_mock.cc',
+ 'command_buffer/service/gles2_cmd_decoder_unittest_base.h',
+ 'command_buffer/service/gles2_cmd_decoder_unittest_base.cc',
+ 'command_buffer/service/gles2_cmd_decoder_unittest.cc',
+ 'command_buffer/service/gles2_cmd_decoder_unittest_1.cc',
+ 'command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h',
+ 'command_buffer/service/gles2_cmd_decoder_unittest_2.cc',
+ 'command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h',
+ 'command_buffer/service/id_manager_unittest.cc',
+ 'command_buffer/service/program_manager_unittest.cc',
+ 'command_buffer/service/renderbuffer_manager_unittest.cc',
+ 'command_buffer/service/shader_manager_unittest.cc',
+ 'command_buffer/service/texture_manager_unittest.cc',
],
},
{