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.
8 # Library emulates GLES2 using command_buffers.
9 'target_name': 'gles2_implementation',
10 'type': '<(component)',
12 '../base/base.gyp:base',
14 'command_buffer/command_buffer.gyp:gles2_utils',
17 'all_dependent_settings': {
20 '<(DEPTH)/third_party/khronos',
24 'GLES2_IMPL_IMPLEMENTATION',
27 '<@(gles2_implementation_source_files)',
31 # Library emulates GLES2 using command_buffers.
32 'target_name': 'gles2_implementation_client_side_arrays',
33 'type': '<(component)',
35 'GLES2_IMPL_IMPLEMENTATION',
36 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1',
39 '../base/base.gyp:base',
41 'command_buffer/command_buffer.gyp:gles2_utils',
44 'all_dependent_settings': {
47 '<(DEPTH)/third_party/khronos',
51 '<@(gles2_implementation_source_files)',
55 # Library emulates GLES2 using command_buffers.
56 'target_name': 'gles2_implementation_client_side_arrays_no_check',
57 'type': '<(component)',
59 'GLES2_IMPL_IMPLEMENTATION',
60 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1',
61 'GLES2_CONFORMANCE_TESTS=1',
64 '../base/base.gyp:base',
65 'command_buffer/command_buffer.gyp:gles2_utils',
68 'all_dependent_settings': {
71 '<(DEPTH)/third_party/khronos',
75 '<@(gles2_implementation_source_files)',
79 # Stub to expose gles2_implemenation in C instead of C++.
80 # so GLES2 C programs can work with no changes.
81 'target_name': 'gles2_c_lib',
82 'type': '<(component)',
84 '../base/base.gyp:base',
85 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
86 'command_buffer/command_buffer.gyp:gles2_utils',
87 'command_buffer_client',
88 'gles2_implementation',
91 'GLES2_C_LIB_IMPLEMENTATION',
94 '<@(gles2_c_lib_source_files)',
98 # Same as gles2_c_lib except with no parameter checking. Required for
99 # OpenGL ES 2.0 conformance tests.
100 'target_name': 'gles2_c_lib_nocheck',
101 'type': '<(component)',
103 'GLES2_C_LIB_IMPLEMENTATION',
104 'GLES2_CONFORMANCE_TESTS=1',
107 '../base/base.gyp:base',
108 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
109 'command_buffer/command_buffer.gyp:gles2_utils',
110 'command_buffer_client',
111 'gles2_implementation_client_side_arrays_no_check',
114 '<@(gles2_c_lib_source_files)',
118 'target_name': 'gpu_unittests',
119 'type': '<(gtest_target_type)',
121 '../base/base.gyp:base',
122 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
123 '../testing/gmock.gyp:gmock',
124 '../testing/gtest.gyp:gtest',
125 '../third_party/angle/src/build_angle.gyp:translator_glsl',
126 '../ui/gl/gl.gyp:gl',
128 'command_buffer/command_buffer.gyp:gles2_utils',
129 'command_buffer_client',
130 'command_buffer_common',
131 'command_buffer_service',
133 'gpu_unittest_utils',
134 'gles2_implementation_client_side_arrays',
138 'GLES2_C_LIB_IMPLEMENTATION',
141 '<@(gles2_c_lib_source_files)',
142 'command_buffer/client/client_test_helper.cc',
143 'command_buffer/client/client_test_helper.h',
144 'command_buffer/client/cmd_buffer_helper_test.cc',
145 'command_buffer/client/fenced_allocator_test.cc',
146 'command_buffer/client/gles2_implementation_unittest.cc',
147 'command_buffer/client/mapped_memory_unittest.cc',
148 'command_buffer/client/query_tracker_unittest.cc',
149 'command_buffer/client/program_info_manager_unittest.cc',
150 'command_buffer/client/ring_buffer_test.cc',
151 'command_buffer/client/share_group_unittest.cc',
152 'command_buffer/client/transfer_buffer_unittest.cc',
153 'command_buffer/common/bitfield_helpers_test.cc',
154 'command_buffer/common/command_buffer_mock.cc',
155 'command_buffer/common/command_buffer_mock.h',
156 'command_buffer/common/command_buffer_shared_test.cc',
157 'command_buffer/common/gles2_cmd_format_test.cc',
158 'command_buffer/common/gles2_cmd_format_test_autogen.h',
159 'command_buffer/common/gles2_cmd_utils_unittest.cc',
160 'command_buffer/common/id_allocator_test.cc',
161 'command_buffer/common/trace_event.h',
162 'command_buffer/common/unittest_main.cc',
163 'command_buffer/service/buffer_manager_unittest.cc',
164 'command_buffer/service/cmd_parser_test.cc',
165 'command_buffer/service/command_buffer_service_unittest.cc',
166 'command_buffer/service/common_decoder_unittest.cc',
167 'command_buffer/service/context_group_unittest.cc',
168 'command_buffer/service/feature_info_unittest.cc',
169 'command_buffer/service/framebuffer_manager_unittest.cc',
170 'command_buffer/service/gles2_cmd_decoder_unittest.cc',
171 'command_buffer/service/gles2_cmd_decoder_unittest_1.cc',
172 'command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h',
173 'command_buffer/service/gles2_cmd_decoder_unittest_2.cc',
174 'command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h',
175 'command_buffer/service/gles2_cmd_decoder_unittest_3.cc',
176 'command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h',
177 'command_buffer/service/gles2_cmd_decoder_unittest_base.cc',
178 'command_buffer/service/gles2_cmd_decoder_unittest_base.h',
179 'command_buffer/service/gl_surface_mock.cc',
180 'command_buffer/service/gl_surface_mock.h',
181 'command_buffer/service/gpu_scheduler_unittest.cc',
182 'command_buffer/service/id_manager_unittest.cc',
183 'command_buffer/service/mocks.cc',
184 'command_buffer/service/mocks.h',
185 'command_buffer/service/program_manager_unittest.cc',
186 'command_buffer/service/query_manager_unittest.cc',
187 'command_buffer/service/renderbuffer_manager_unittest.cc',
188 'command_buffer/service/shader_manager_unittest.cc',
189 'command_buffer/service/shader_translator_unittest.cc',
190 'command_buffer/service/stream_texture_mock.cc',
191 'command_buffer/service/stream_texture_mock.h',
192 'command_buffer/service/stream_texture_manager_mock.cc',
193 'command_buffer/service/stream_texture_manager_mock.h',
194 'command_buffer/service/test_helper.cc',
195 'command_buffer/service/test_helper.h',
196 'command_buffer/service/texture_manager_unittest.cc',
197 'command_buffer/service/transfer_buffer_manager_unittest.cc',
198 'command_buffer/service/vertex_attrib_manager_unittest.cc',
201 ['OS == "android" and gtest_target_type == "shared_library"', {
203 '../testing/android/native_test.gyp:native_test_native_code',
209 'target_name': 'gl_tests',
210 'type': 'executable',
212 '../base/base.gyp:base',
213 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
214 '../testing/gmock.gyp:gmock',
215 '../testing/gtest.gyp:gtest',
216 '../third_party/angle/src/build_angle.gyp:translator_glsl',
218 'command_buffer/command_buffer.gyp:gles2_utils',
219 'command_buffer_client',
220 'command_buffer_common',
221 'command_buffer_service',
223 'gpu_unittest_utils',
224 'gles2_implementation_client_side_arrays',
229 'GLES2_C_LIB_IMPLEMENTATION',
230 'GL_GLEXT_PROTOTYPES',
233 '<@(gles2_c_lib_source_files)',
234 'command_buffer/tests/occlusion_query_unittests.cc',
235 'command_buffer/tests/gl_bind_uniform_location_unittest.cc',
236 'command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc',
237 'command_buffer/tests/gl_depth_texture_unittest.cc',
238 'command_buffer/tests/gl_manager.cc',
239 'command_buffer/tests/gl_manager.h',
240 'command_buffer/tests/gl_tests_main.cc',
241 'command_buffer/tests/gl_test_utils.cc',
242 'command_buffer/tests/gl_test_utils.h',
243 'command_buffer/tests/gl_texture_mailbox_unittests.cc',
244 'command_buffer/tests/gl_unittests.cc',
248 'target_name': 'gpu_unittest_utils',
249 'type': 'static_library',
251 '../testing/gmock.gyp:gmock',
252 '../testing/gtest.gyp:gtest',
253 '../ui/gl/gl.gyp:gl',
257 '<(DEPTH)/third_party/khronos',
260 'command_buffer/common/gl_mock.h',
261 'command_buffer/common/gl_mock.cc',
262 'command_buffer/service/gles2_cmd_decoder_mock.cc',
263 'command_buffer/service/gles2_cmd_decoder_mock.cc',
268 # Special target to wrap a gtest_target_type==shared_library
269 # gpu_unittests into an android apk for execution.
270 ['OS == "android" and gtest_target_type == "shared_library"', {
273 'target_name': 'gpu_unittests_apk',
276 '../base/base.gyp:base_java',
280 'test_suite_name': 'gpu_unittests',
281 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)gpu_unittests<(SHARED_LIB_SUFFIX)',
282 'input_jars_paths': [ '<(PRODUCT_DIR)/lib.java/chromium_base.jar', ],
284 'includes': [ '../build/apk_test.gypi' ],