blob: 399f307de0049cfc876f2753d642bc0301064c3a [file] [log] [blame]
[email protected]33392292011-01-05 17:56:391# Copyright (c) 2011 The Chromium Authors. All rights reserved.
[email protected]96449d2c2009-11-25 00:01:322# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5{
6 'variables': {
7 'chromium_code': 1,
[email protected]98429332011-01-19 22:01:548 # These are defined here because we need to build this library twice. Once
9 # with extra parameter checking. Once with no parameter checking to be 100%
10 # OpenGL ES 2.0 compliant for the conformance tests.
11 'gles2_c_lib_source_files': [
[email protected]98429332011-01-19 22:01:5412 'command_buffer/client/gles2_c_lib.cc',
13 'command_buffer/client/gles2_c_lib_autogen.h',
[email protected]d7f06422011-02-05 00:24:5814 'command_buffer/client/gles2_lib.h',
15 'command_buffer/client/gles2_lib.cc',
[email protected]98429332011-01-19 22:01:5416 ],
[email protected]d7f06422011-02-05 00:24:5817 # These are defined here because we need to build this library twice. Once
18 # with without support for client side arrays and once with for pepper and
19 # the OpenGL ES 2.0 compliant for the conformance tests.
20 'gles2_implementation_source_files': [
21 'command_buffer/client/gles2_implementation_autogen.h',
22 'command_buffer/client/gles2_implementation.cc',
23 'command_buffer/client/gles2_implementation.h',
[email protected]9a14ae612011-08-08 17:51:4624 'command_buffer/client/program_info_manager.cc',
25 'command_buffer/client/program_info_manager.h',
[email protected]d7f06422011-02-05 00:24:5826 ]
[email protected]96449d2c2009-11-25 00:01:3227 },
[email protected]96449d2c2009-11-25 00:01:3228 'targets': [
29 {
[email protected]96449d2c2009-11-25 00:01:3230 'target_name': 'command_buffer_common',
31 'type': 'static_library',
32 'include_dirs': [
[email protected]9f427322010-03-08 22:58:5833 '.',
[email protected]96449d2c2009-11-25 00:01:3234 ],
35 'all_dependent_settings': {
36 'include_dirs': [
[email protected]9f427322010-03-08 22:58:5837 '.',
[email protected]96449d2c2009-11-25 00:01:3238 ],
39 },
[email protected]ed321c62011-04-26 21:54:2840 'dependencies': [
41 '../base/base.gyp:base',
42 ],
43 'export_dependent_settings': [
44 '../base/base.gyp:base',
45 ],
[email protected]96449d2c2009-11-25 00:01:3246 'sources': [
47 'command_buffer/common/bitfield_helpers.h',
[email protected]7477ea6f2009-12-22 23:28:1548 'command_buffer/common/buffer.h',
[email protected]96449d2c2009-11-25 00:01:3249 'command_buffer/common/cmd_buffer_common.h',
50 'command_buffer/common/cmd_buffer_common.cc',
51 'command_buffer/common/command_buffer.h',
[email protected]d041d8c02009-12-03 00:35:5252 'command_buffer/common/constants.h',
[email protected]96449d2c2009-11-25 00:01:3253 'command_buffer/common/gles2_cmd_ids_autogen.h',
54 'command_buffer/common/gles2_cmd_ids.h',
55 'command_buffer/common/gles2_cmd_format_autogen.h',
56 'command_buffer/common/gles2_cmd_format.cc',
57 'command_buffer/common/gles2_cmd_format.h',
58 'command_buffer/common/gles2_cmd_utils.cc',
59 'command_buffer/common/gles2_cmd_utils.h',
[email protected]066849e32010-05-03 19:14:1060 'command_buffer/common/id_allocator.cc',
61 'command_buffer/common/id_allocator.h',
[email protected]c279bff2011-09-01 19:46:4662 'command_buffer/common/logging.cc',
[email protected]96449d2c2009-11-25 00:01:3263 'command_buffer/common/logging.h',
[email protected]1b1bba772010-01-27 20:30:4564 'command_buffer/common/thread_local.h',
[email protected]96449d2c2009-11-25 00:01:3265 'command_buffer/common/types.h',
66 ],
67 },
68 {
69 # Library helps make GLES2 command buffers.
70 'target_name': 'gles2_cmd_helper',
71 'type': 'static_library',
72 'dependencies': [
[email protected]246a70452010-03-05 21:53:5073 'command_buffer_client',
[email protected]96449d2c2009-11-25 00:01:3274 ],
75 'sources': [
76 'command_buffer/client/gles2_cmd_helper.cc',
77 'command_buffer/client/gles2_cmd_helper.h',
78 'command_buffer/client/gles2_cmd_helper_autogen.h',
79 ],
80 },
81 {
82 # Library emulates GLES2 using command_buffers.
83 'target_name': 'gles2_implementation',
84 'type': 'static_library',
85 'dependencies': [
[email protected]366ae242011-05-10 02:23:5886 '../base/base.gyp:base',
[email protected]d0f5c842011-06-15 01:47:0087 '../ui/gfx/gl/gl.gyp:gl',
[email protected]96449d2c2009-11-25 00:01:3288 'gles2_cmd_helper',
89 ],
[email protected]43f28f832010-02-03 02:28:4890 'all_dependent_settings': {
91 'include_dirs': [
92 # For GLES2/gl2.h
[email protected]9f427322010-03-08 22:58:5893 '.',
[email protected]43f28f832010-02-03 02:28:4894 ],
95 },
[email protected]96449d2c2009-11-25 00:01:3296 'sources': [
[email protected]d7f06422011-02-05 00:24:5897 '<@(gles2_implementation_source_files)',
[email protected]96449d2c2009-11-25 00:01:3298 ],
99 },
100 {
[email protected]d7f06422011-02-05 00:24:58101 # Library emulates GLES2 using command_buffers.
102 'target_name': 'gles2_implementation_client_side_arrays',
[email protected]96449d2c2009-11-25 00:01:32103 'type': 'static_library',
[email protected]d7f06422011-02-05 00:24:58104 'defines': [
[email protected]37046332011-07-06 22:50:45105 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1',
106 'GLES2_CONFORMANCE_TESTS=1',
[email protected]96449d2c2009-11-25 00:01:32107 ],
[email protected]d7f06422011-02-05 00:24:58108 'dependencies': [
[email protected]366ae242011-05-10 02:23:58109 '../base/base.gyp:base',
[email protected]d7f06422011-02-05 00:24:58110 'gles2_cmd_helper',
111 ],
112 'all_dependent_settings': {
113 'include_dirs': [
114 # For GLES2/gl2.h
115 '.',
116 ],
117 },
[email protected]96449d2c2009-11-25 00:01:32118 'sources': [
[email protected]d7f06422011-02-05 00:24:58119 '<@(gles2_implementation_source_files)',
[email protected]96449d2c2009-11-25 00:01:32120 ],
121 },
122 {
123 # Stub to expose gles2_implemenation in C instead of C++.
124 # so GLES2 C programs can work with no changes.
125 'target_name': 'gles2_c_lib',
126 'type': 'static_library',
127 'dependencies': [
[email protected]8e1b98a2011-06-14 23:39:53128 '../base/base.gyp:base',
[email protected]d7f06422011-02-05 00:24:58129 'gles2_implementation',
[email protected]96449d2c2009-11-25 00:01:32130 ],
131 'sources': [
[email protected]98429332011-01-19 22:01:54132 '<@(gles2_c_lib_source_files)',
133 ],
134 },
135 {
136 # Same as gles2_c_lib except with no parameter checking. Required for
137 # OpenGL ES 2.0 conformance tests.
138 'target_name': 'gles2_c_lib_nocheck',
139 'type': 'static_library',
140 'defines': [
141 'GLES2_CONFORMANCE_TESTS=1',
142 ],
143 'dependencies': [
[email protected]d7f06422011-02-05 00:24:58144 'gles2_implementation_client_side_arrays',
[email protected]98429332011-01-19 22:01:54145 ],
146 'sources': [
147 '<@(gles2_c_lib_source_files)',
[email protected]96449d2c2009-11-25 00:01:32148 ],
149 },
150 {
[email protected]96449d2c2009-11-25 00:01:32151 'target_name': 'command_buffer_client',
152 'type': 'static_library',
[email protected]3a69c6fe2011-04-14 22:07:34153 'include_dirs': [
154 '..',
155 ],
156 'all_dependent_settings': {
157 'include_dirs': [
158 '..',
159 ],
160 },
[email protected]96449d2c2009-11-25 00:01:32161 'dependencies': [
162 'command_buffer_common',
163 ],
164 'sources': [
165 'command_buffer/client/cmd_buffer_helper.cc',
166 'command_buffer/client/cmd_buffer_helper.h',
167 'command_buffer/client/fenced_allocator.cc',
168 'command_buffer/client/fenced_allocator.h',
[email protected]8cd62f62010-07-14 01:43:00169 'command_buffer/client/mapped_memory.cc',
170 'command_buffer/client/mapped_memory.h',
[email protected]f6a56982010-04-28 19:44:59171 'command_buffer/client/ring_buffer.cc',
172 'command_buffer/client/ring_buffer.h',
[email protected]96449d2c2009-11-25 00:01:32173 ],
174 },
175 {
[email protected]69d80ae2009-12-23 08:57:42176 'target_name': 'command_buffer_service',
177 'type': 'static_library',
178 'include_dirs': [
179 '..',
180 ],
181 'all_dependent_settings': {
182 'include_dirs': [
183 '..',
184 ],
185 },
186 'dependencies': [
[email protected]b9363b22010-06-09 22:06:15187 'command_buffer_common',
[email protected]20407e92010-09-08 18:31:08188 '../base/base.gyp:base',
[email protected]5ae0b282011-03-28 19:24:49189 '../ui/gfx/gl/gl.gyp:gl',
[email protected]b9b751f22011-03-25 14:04:12190 '../ui/gfx/surface/surface.gyp:surface',
[email protected]ea47b6a2011-07-17 19:39:42191 '../ui/ui.gyp:ui',
[email protected]f517cc842010-08-25 19:13:40192 '../third_party/angle/src/build_angle.gyp:translator_glsl',
[email protected]69d80ae2009-12-23 08:57:42193 ],
194 'sources': [
[email protected]b9363b22010-06-09 22:06:15195 'command_buffer/service/buffer_manager.h',
196 'command_buffer/service/buffer_manager.cc',
197 'command_buffer/service/framebuffer_manager.h',
198 'command_buffer/service/framebuffer_manager.cc',
199 'command_buffer/service/cmd_buffer_engine.h',
200 'command_buffer/service/cmd_parser.cc',
201 'command_buffer/service/cmd_parser.h',
202 'command_buffer/service/command_buffer_service.cc',
203 'command_buffer/service/command_buffer_service.h',
204 'command_buffer/service/common_decoder.cc',
205 'command_buffer/service/common_decoder.h',
206 'command_buffer/service/context_group.h',
207 'command_buffer/service/context_group.cc',
[email protected]915a59a12010-09-30 21:29:11208 'command_buffer/service/feature_info.h',
209 'command_buffer/service/feature_info.cc',
[email protected]b9363b22010-06-09 22:06:15210 'command_buffer/service/gles2_cmd_decoder.h',
211 'command_buffer/service/gles2_cmd_decoder_autogen.h',
212 'command_buffer/service/gles2_cmd_decoder.cc',
213 'command_buffer/service/gles2_cmd_validation.h',
214 'command_buffer/service/gles2_cmd_validation.cc',
215 'command_buffer/service/gles2_cmd_validation_autogen.h',
216 'command_buffer/service/gles2_cmd_validation_implementation_autogen.h',
217 'command_buffer/service/gl_utils.h',
[email protected]09ddb91f2011-04-14 23:16:22218 'command_buffer/service/gpu_scheduler.h',
219 'command_buffer/service/gpu_scheduler.cc',
[email protected]09ddb91f2011-04-14 23:16:22220 'command_buffer/service/gpu_scheduler_mock.h',
[email protected]b9363b22010-06-09 22:06:15221 'command_buffer/service/id_manager.h',
222 'command_buffer/service/id_manager.cc',
223 'command_buffer/service/mocks.h',
224 'command_buffer/service/program_manager.h',
225 'command_buffer/service/program_manager.cc',
226 'command_buffer/service/renderbuffer_manager.h',
227 'command_buffer/service/renderbuffer_manager.cc',
228 'command_buffer/service/shader_manager.h',
229 'command_buffer/service/shader_manager.cc',
[email protected]a550584e2010-09-17 18:01:45230 'command_buffer/service/shader_translator.h',
231 'command_buffer/service/shader_translator.cc',
[email protected]b0af4f52011-09-28 22:04:42232 'command_buffer/service/stream_texture.h',
233 'command_buffer/service/stream_texture_manager.h',
[email protected]b9363b22010-06-09 22:06:15234 'command_buffer/service/texture_manager.h',
235 'command_buffer/service/texture_manager.cc',
[email protected]d8ea9772011-07-11 18:11:43236 'command_buffer/service/vertex_attrib_manager.h',
237 'command_buffer/service/vertex_attrib_manager.cc',
[email protected]69d80ae2009-12-23 08:57:42238 ],
[email protected]d37231fa2010-04-09 21:16:02239 'conditions': [
[email protected]6a654d452011-05-23 22:06:54240 ['toolkit_uses_gtk == 1', {
[email protected]bc10076c2010-05-14 19:14:06241 'dependencies': [
242 '../build/linux/system.gyp:gtk',
243 ],
244 }],
[email protected]ae802342011-06-25 17:01:55245 ['touchui==1', {
246 'include_dirs': [
247 '<(DEPTH)/third_party/angle/include',
248 ],
249 }],
[email protected]d37231fa2010-04-09 21:16:02250 ],
[email protected]69d80ae2009-12-23 08:57:42251 },
252 {
[email protected]644362cf2010-03-29 23:18:12253 'target_name': 'gpu_unittests',
[email protected]96449d2c2009-11-25 00:01:32254 'type': 'executable',
255 'dependencies': [
[email protected]ea47b6a2011-07-17 19:39:42256 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]96449d2c2009-11-25 00:01:32257 '../testing/gmock.gyp:gmock',
[email protected]016498e2010-12-03 00:59:23258 '../testing/gmock.gyp:gmock_main',
[email protected]96449d2c2009-11-25 00:01:32259 '../testing/gtest.gyp:gtest',
[email protected]5ae0b282011-03-28 19:24:49260 '../ui/gfx/gl/gl.gyp:gl',
[email protected]96449d2c2009-11-25 00:01:32261 'command_buffer_client',
[email protected]96449d2c2009-11-25 00:01:32262 'command_buffer_common',
[email protected]b9363b22010-06-09 22:06:15263 'command_buffer_service',
[email protected]7004d7eb2011-01-21 00:27:53264 'gpu_unittest_utils',
[email protected]d7f06422011-02-05 00:24:58265 'gles2_implementation_client_side_arrays',
[email protected]644362cf2010-03-29 23:18:12266 'gles2_cmd_helper',
267 ],
268 'sources': [
[email protected]d7f06422011-02-05 00:24:58269 '<@(gles2_c_lib_source_files)',
[email protected]644362cf2010-03-29 23:18:12270 'command_buffer/client/cmd_buffer_helper_test.cc',
271 'command_buffer/client/fenced_allocator_test.cc',
[email protected]29a9eb52010-04-13 09:04:23272 'command_buffer/client/gles2_implementation_unittest.cc',
[email protected]8cd62f62010-07-14 01:43:00273 'command_buffer/client/mapped_memory_unittest.cc',
[email protected]9a14ae612011-08-08 17:51:46274 'command_buffer/client/program_info_manager_unittest.cc',
[email protected]f6a56982010-04-28 19:44:59275 'command_buffer/client/ring_buffer_test.cc',
[email protected]644362cf2010-03-29 23:18:12276 'command_buffer/common/bitfield_helpers_test.cc',
[email protected]33392292011-01-05 17:56:39277 'command_buffer/common/command_buffer_mock.cc',
278 'command_buffer/common/command_buffer_mock.h',
[email protected]644362cf2010-03-29 23:18:12279 'command_buffer/common/gles2_cmd_format_test.cc',
280 'command_buffer/common/gles2_cmd_format_test_autogen.h',
281 'command_buffer/common/gles2_cmd_id_test.cc',
282 'command_buffer/common/gles2_cmd_id_test_autogen.h',
[email protected]061f1bd2011-06-09 20:55:41283 'command_buffer/common/gles2_cmd_utils_unittest.cc',
[email protected]066849e32010-05-03 19:14:10284 'command_buffer/common/id_allocator_test.cc',
[email protected]366ae242011-05-10 02:23:58285 'command_buffer/common/trace_event.h',
[email protected]b9363b22010-06-09 22:06:15286 'command_buffer/common/unittest_main.cc',
[email protected]644362cf2010-03-29 23:18:12287 'command_buffer/service/buffer_manager_unittest.cc',
[email protected]644362cf2010-03-29 23:18:12288 'command_buffer/service/cmd_parser_test.cc',
289 'command_buffer/service/common_decoder_unittest.cc',
[email protected]366ae242011-05-10 02:23:58290 'command_buffer/service/context_group_unittest.cc',
[email protected]915a59a12010-09-30 21:29:11291 'command_buffer/service/feature_info_unittest.cc',
[email protected]644362cf2010-03-29 23:18:12292 'command_buffer/service/framebuffer_manager_unittest.cc',
[email protected]644362cf2010-03-29 23:18:12293 'command_buffer/service/gles2_cmd_decoder_unittest.cc',
294 'command_buffer/service/gles2_cmd_decoder_unittest_1.cc',
295 'command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h',
296 'command_buffer/service/gles2_cmd_decoder_unittest_2.cc',
297 'command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h',
[email protected]d685a682011-04-29 16:19:57298 'command_buffer/service/gles2_cmd_decoder_unittest_3.cc',
299 'command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h',
[email protected]366ae242011-05-10 02:23:58300 'command_buffer/service/gles2_cmd_decoder_unittest_base.cc',
301 'command_buffer/service/gles2_cmd_decoder_unittest_base.h',
302 'command_buffer/service/gpu_scheduler_unittest.cc',
[email protected]644362cf2010-03-29 23:18:12303 'command_buffer/service/id_manager_unittest.cc',
[email protected]33392292011-01-05 17:56:39304 'command_buffer/service/mocks.cc',
305 'command_buffer/service/mocks.h',
[email protected]644362cf2010-03-29 23:18:12306 'command_buffer/service/program_manager_unittest.cc',
307 'command_buffer/service/renderbuffer_manager_unittest.cc',
308 'command_buffer/service/shader_manager_unittest.cc',
[email protected]ff9e2a02010-09-29 16:49:24309 'command_buffer/service/shader_translator_unittest.cc',
[email protected]b0af4f52011-09-28 22:04:42310 'command_buffer/service/stream_texture_mock.cc',
311 'command_buffer/service/stream_texture_mock.h',
312 'command_buffer/service/stream_texture_manager_mock.cc',
313 'command_buffer/service/stream_texture_manager_mock.h',
[email protected]5ae1f732011-05-06 20:30:09314 'command_buffer/service/test_helper.cc',
[email protected]366ae242011-05-10 02:23:58315 'command_buffer/service/test_helper.h',
[email protected]644362cf2010-03-29 23:18:12316 'command_buffer/service/texture_manager_unittest.cc',
[email protected]d8ea9772011-07-11 18:11:43317 'command_buffer/service/vertex_attrib_manager_unittest.cc',
[email protected]96449d2c2009-11-25 00:01:32318 ],
319 },
320 {
[email protected]7004d7eb2011-01-21 00:27:53321 'target_name': 'gpu_unittest_utils',
322 'type': 'static_library',
323 'dependencies': [
[email protected]7004d7eb2011-01-21 00:27:53324 '../testing/gmock.gyp:gmock',
325 '../testing/gtest.gyp:gtest',
[email protected]5ae0b282011-03-28 19:24:49326 '../ui/gfx/gl/gl.gyp:gl',
[email protected]7004d7eb2011-01-21 00:27:53327 ],
328 'include_dirs': [
329 '..',
330 ],
331 'sources': [
332 'command_buffer/common/gl_mock.h',
333 'command_buffer/common/gl_mock.cc',
[email protected]0a071a32011-02-08 00:18:24334 'command_buffer/service/gles2_cmd_decoder_mock.cc',
335 'command_buffer/service/gles2_cmd_decoder_mock.cc',
[email protected]7004d7eb2011-01-21 00:27:53336 ],
337 },
338 {
[email protected]f56279c2011-02-02 18:12:31339 'target_name': 'gpu_ipc',
340 'type': 'static_library',
341 'dependencies': [
342 'command_buffer_client',
343 'gles2_c_lib',
[email protected]ed321c62011-04-26 21:54:28344 '../base/base.gyp:base',
[email protected]f56279c2011-02-02 18:12:31345 ],
346 'include_dirs': [
347 '..',
348 ],
349 'sources': [
350 'ipc/gpu_command_buffer_traits.cc',
351 'ipc/gpu_command_buffer_traits.h',
352 ],
353 },
[email protected]7477ea6f2009-12-22 23:28:15354 ],
[email protected]96449d2c2009-11-25 00:01:32355}