blob: f9f58af9c5d3955140db9eb071b2bfb7a0ad0ec3 [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': [
12 'command_buffer/client/gles2_c_lib.h',
13 'command_buffer/client/gles2_c_lib.cc',
14 'command_buffer/client/gles2_c_lib_autogen.h',
15 ],
[email protected]96449d2c2009-11-25 00:01:3216 },
[email protected]96449d2c2009-11-25 00:01:3217 'targets': [
18 {
[email protected]96449d2c2009-11-25 00:01:3219 'target_name': 'command_buffer_common',
20 'type': 'static_library',
21 'include_dirs': [
[email protected]9f427322010-03-08 22:58:5822 '.',
[email protected]96449d2c2009-11-25 00:01:3223 ],
24 'all_dependent_settings': {
25 'include_dirs': [
[email protected]9f427322010-03-08 22:58:5826 '.',
[email protected]96449d2c2009-11-25 00:01:3227 ],
28 },
29 'sources': [
30 'command_buffer/common/bitfield_helpers.h',
[email protected]7477ea6f2009-12-22 23:28:1531 'command_buffer/common/buffer.h',
[email protected]96449d2c2009-11-25 00:01:3232 'command_buffer/common/cmd_buffer_common.h',
33 'command_buffer/common/cmd_buffer_common.cc',
34 'command_buffer/common/command_buffer.h',
[email protected]d041d8c02009-12-03 00:35:5235 'command_buffer/common/constants.h',
[email protected]96449d2c2009-11-25 00:01:3236 'command_buffer/common/gles2_cmd_ids_autogen.h',
37 'command_buffer/common/gles2_cmd_ids.h',
38 'command_buffer/common/gles2_cmd_format_autogen.h',
39 'command_buffer/common/gles2_cmd_format.cc',
40 'command_buffer/common/gles2_cmd_format.h',
41 'command_buffer/common/gles2_cmd_utils.cc',
42 'command_buffer/common/gles2_cmd_utils.h',
[email protected]066849e32010-05-03 19:14:1043 'command_buffer/common/id_allocator.cc',
44 'command_buffer/common/id_allocator.h',
[email protected]96449d2c2009-11-25 00:01:3245 'command_buffer/common/logging.h',
[email protected]1b1bba772010-01-27 20:30:4546 'command_buffer/common/thread_local.h',
[email protected]96449d2c2009-11-25 00:01:3247 'command_buffer/common/types.h',
48 ],
49 },
50 {
51 # Library helps make GLES2 command buffers.
52 'target_name': 'gles2_cmd_helper',
53 'type': 'static_library',
54 'dependencies': [
[email protected]246a70452010-03-05 21:53:5055 'command_buffer_client',
[email protected]96449d2c2009-11-25 00:01:3256 ],
57 'sources': [
58 'command_buffer/client/gles2_cmd_helper.cc',
59 'command_buffer/client/gles2_cmd_helper.h',
60 'command_buffer/client/gles2_cmd_helper_autogen.h',
61 ],
62 },
63 {
64 # Library emulates GLES2 using command_buffers.
65 'target_name': 'gles2_implementation',
66 'type': 'static_library',
67 'dependencies': [
68 'gles2_cmd_helper',
69 ],
[email protected]43f28f832010-02-03 02:28:4870 'all_dependent_settings': {
71 'include_dirs': [
72 # For GLES2/gl2.h
[email protected]9f427322010-03-08 22:58:5873 '.',
[email protected]43f28f832010-02-03 02:28:4874 ],
75 },
[email protected]96449d2c2009-11-25 00:01:3276 'sources': [
77 'command_buffer/client/gles2_implementation_autogen.h',
78 'command_buffer/client/gles2_implementation.cc',
[email protected]96449d2c2009-11-25 00:01:3279 'command_buffer/client/gles2_implementation.h',
80 ],
81 },
82 {
83 # Stub to expose gles2_implementation as a namespace rather than a class
84 # so GLES2 C++ programs can work with no changes.
85 'target_name': 'gles2_lib',
86 'type': 'static_library',
87 'dependencies': [
88 'gles2_implementation',
89 ],
90 'sources': [
91 'command_buffer/client/gles2_lib.cc',
92 'command_buffer/client/gles2_lib.h',
93 ],
94 },
95 {
96 # Stub to expose gles2_implemenation in C instead of C++.
97 # so GLES2 C programs can work with no changes.
98 'target_name': 'gles2_c_lib',
99 'type': 'static_library',
100 'dependencies': [
101 'gles2_lib',
102 ],
103 'sources': [
[email protected]98429332011-01-19 22:01:54104 '<@(gles2_c_lib_source_files)',
105 ],
106 },
107 {
108 # Same as gles2_c_lib except with no parameter checking. Required for
109 # OpenGL ES 2.0 conformance tests.
110 'target_name': 'gles2_c_lib_nocheck',
111 'type': 'static_library',
112 'defines': [
113 'GLES2_CONFORMANCE_TESTS=1',
114 ],
115 'dependencies': [
116 'gles2_lib',
117 ],
118 'sources': [
119 '<@(gles2_c_lib_source_files)',
[email protected]96449d2c2009-11-25 00:01:32120 ],
121 },
122 {
[email protected]96449d2c2009-11-25 00:01:32123 'target_name': 'command_buffer_client',
124 'type': 'static_library',
125 'dependencies': [
126 'command_buffer_common',
127 ],
128 'sources': [
129 'command_buffer/client/cmd_buffer_helper.cc',
130 'command_buffer/client/cmd_buffer_helper.h',
131 'command_buffer/client/fenced_allocator.cc',
132 'command_buffer/client/fenced_allocator.h',
[email protected]8cd62f62010-07-14 01:43:00133 'command_buffer/client/mapped_memory.cc',
134 'command_buffer/client/mapped_memory.h',
[email protected]f6a56982010-04-28 19:44:59135 'command_buffer/client/ring_buffer.cc',
136 'command_buffer/client/ring_buffer.h',
[email protected]96449d2c2009-11-25 00:01:32137 ],
138 },
139 {
[email protected]69d80ae2009-12-23 08:57:42140 'target_name': 'command_buffer_service',
141 'type': 'static_library',
142 'include_dirs': [
143 '..',
144 ],
145 'all_dependent_settings': {
146 'include_dirs': [
147 '..',
148 ],
149 },
150 'dependencies': [
[email protected]b9363b22010-06-09 22:06:15151 'command_buffer_common',
[email protected]5a6db6c2010-04-22 18:32:06152 '../app/app.gyp:app_base',
[email protected]20407e92010-09-08 18:31:08153 '../base/base.gyp:base',
[email protected]b9363b22010-06-09 22:06:15154 '../gfx/gfx.gyp:gfx',
[email protected]f517cc842010-08-25 19:13:40155 '../third_party/angle/src/build_angle.gyp:translator_glsl',
[email protected]69d80ae2009-12-23 08:57:42156 ],
157 'sources': [
[email protected]b9363b22010-06-09 22:06:15158 'command_buffer/service/buffer_manager.h',
159 'command_buffer/service/buffer_manager.cc',
160 'command_buffer/service/framebuffer_manager.h',
161 'command_buffer/service/framebuffer_manager.cc',
162 'command_buffer/service/cmd_buffer_engine.h',
163 'command_buffer/service/cmd_parser.cc',
164 'command_buffer/service/cmd_parser.h',
165 'command_buffer/service/command_buffer_service.cc',
166 'command_buffer/service/command_buffer_service.h',
167 'command_buffer/service/common_decoder.cc',
168 'command_buffer/service/common_decoder.h',
169 'command_buffer/service/context_group.h',
170 'command_buffer/service/context_group.cc',
[email protected]915a59a12010-09-30 21:29:11171 'command_buffer/service/feature_info.h',
172 'command_buffer/service/feature_info.cc',
[email protected]b9363b22010-06-09 22:06:15173 'command_buffer/service/gles2_cmd_decoder.h',
174 'command_buffer/service/gles2_cmd_decoder_autogen.h',
175 'command_buffer/service/gles2_cmd_decoder.cc',
176 'command_buffer/service/gles2_cmd_validation.h',
177 'command_buffer/service/gles2_cmd_validation.cc',
178 'command_buffer/service/gles2_cmd_validation_autogen.h',
179 'command_buffer/service/gles2_cmd_validation_implementation_autogen.h',
180 'command_buffer/service/gl_utils.h',
181 'command_buffer/service/gpu_processor.h',
182 'command_buffer/service/gpu_processor.cc',
183 'command_buffer/service/gpu_processor_linux.cc',
184 'command_buffer/service/gpu_processor_mac.cc',
185 'command_buffer/service/gpu_processor_mock.h',
186 'command_buffer/service/gpu_processor_win.cc',
187 'command_buffer/service/id_manager.h',
188 'command_buffer/service/id_manager.cc',
189 'command_buffer/service/mocks.h',
190 'command_buffer/service/program_manager.h',
191 'command_buffer/service/program_manager.cc',
192 'command_buffer/service/renderbuffer_manager.h',
193 'command_buffer/service/renderbuffer_manager.cc',
194 'command_buffer/service/shader_manager.h',
195 'command_buffer/service/shader_manager.cc',
[email protected]a550584e2010-09-17 18:01:45196 'command_buffer/service/shader_translator.h',
197 'command_buffer/service/shader_translator.cc',
[email protected]b9363b22010-06-09 22:06:15198 'command_buffer/service/texture_manager.h',
199 'command_buffer/service/texture_manager.cc',
[email protected]69d80ae2009-12-23 08:57:42200 ],
[email protected]d37231fa2010-04-09 21:16:02201 'conditions': [
[email protected]bc10076c2010-05-14 19:14:06202 ['OS == "linux"', {
203 'dependencies': [
204 '../build/linux/system.gyp:gtk',
205 ],
206 }],
[email protected]d37231fa2010-04-09 21:16:02207 ],
[email protected]69d80ae2009-12-23 08:57:42208 },
209 {
[email protected]96449d2c2009-11-25 00:01:32210 'target_name': 'gpu_plugin',
[email protected]7477ea6f2009-12-22 23:28:15211 'type': 'static_library',
[email protected]96449d2c2009-11-25 00:01:32212 'dependencies': [
213 '../base/base.gyp:base',
214 'command_buffer_service',
[email protected]96449d2c2009-11-25 00:01:32215 ],
216 'include_dirs': [
217 '..',
218 ],
219 'all_dependent_settings': {
220 'include_dirs': [
221 '..',
222 ],
223 },
224 'sources': [
225 'gpu_plugin/gpu_plugin.cc',
226 'gpu_plugin/gpu_plugin.h',
[email protected]96449d2c2009-11-25 00:01:32227 ],
228 },
229 {
[email protected]644362cf2010-03-29 23:18:12230 'target_name': 'gpu_unittests',
[email protected]96449d2c2009-11-25 00:01:32231 'type': 'executable',
232 'dependencies': [
[email protected]b9363b22010-06-09 22:06:15233 '../app/app.gyp:app_base',
[email protected]96449d2c2009-11-25 00:01:32234 '../testing/gmock.gyp:gmock',
[email protected]016498e2010-12-03 00:59:23235 '../testing/gmock.gyp:gmock_main',
[email protected]96449d2c2009-11-25 00:01:32236 '../testing/gtest.gyp:gtest',
237 'command_buffer_client',
[email protected]96449d2c2009-11-25 00:01:32238 'command_buffer_common',
[email protected]b9363b22010-06-09 22:06:15239 'command_buffer_service',
[email protected]644362cf2010-03-29 23:18:12240 'gles2_lib',
241 'gles2_implementation',
242 'gles2_cmd_helper',
243 ],
244 'sources': [
[email protected]644362cf2010-03-29 23:18:12245 'command_buffer/client/cmd_buffer_helper_test.cc',
246 'command_buffer/client/fenced_allocator_test.cc',
[email protected]29a9eb52010-04-13 09:04:23247 'command_buffer/client/gles2_implementation_unittest.cc',
[email protected]8cd62f62010-07-14 01:43:00248 'command_buffer/client/mapped_memory_unittest.cc',
[email protected]f6a56982010-04-28 19:44:59249 'command_buffer/client/ring_buffer_test.cc',
[email protected]644362cf2010-03-29 23:18:12250 'command_buffer/common/bitfield_helpers_test.cc',
[email protected]33392292011-01-05 17:56:39251 'command_buffer/common/command_buffer_mock.cc',
252 'command_buffer/common/command_buffer_mock.h',
[email protected]a36c7b412010-10-14 21:17:06253 'command_buffer/common/gl_mock.h',
254 'command_buffer/common/gl_mock.cc',
[email protected]644362cf2010-03-29 23:18:12255 'command_buffer/common/gles2_cmd_format_test.cc',
256 'command_buffer/common/gles2_cmd_format_test_autogen.h',
257 'command_buffer/common/gles2_cmd_id_test.cc',
258 'command_buffer/common/gles2_cmd_id_test_autogen.h',
259 'command_buffer/common/gles2_cmd_format_test.cc',
260 'command_buffer/common/gles2_cmd_format_test_autogen.h',
261 'command_buffer/common/gles2_cmd_id_test.cc',
262 'command_buffer/common/gles2_cmd_id_test_autogen.h',
263 'command_buffer/common/gles2_cmd_format_test.cc',
264 'command_buffer/common/gles2_cmd_format_test_autogen.h',
265 'command_buffer/common/gles2_cmd_id_test.cc',
266 'command_buffer/common/gles2_cmd_id_test_autogen.h',
[email protected]066849e32010-05-03 19:14:10267 'command_buffer/common/id_allocator_test.cc',
[email protected]b9363b22010-06-09 22:06:15268 'command_buffer/common/unittest_main.cc',
[email protected]644362cf2010-03-29 23:18:12269 'command_buffer/service/buffer_manager_unittest.cc',
270 'command_buffer/service/context_group_unittest.cc',
271 'command_buffer/service/cmd_parser_test.cc',
272 'command_buffer/service/cmd_parser_test.cc',
273 'command_buffer/service/common_decoder_unittest.cc',
[email protected]915a59a12010-09-30 21:29:11274 'command_buffer/service/feature_info_unittest.cc',
[email protected]644362cf2010-03-29 23:18:12275 'command_buffer/service/framebuffer_manager_unittest.cc',
276 'command_buffer/service/gpu_processor_unittest.cc',
[email protected]644362cf2010-03-29 23:18:12277 'command_buffer/service/gles2_cmd_decoder_unittest_base.h',
278 'command_buffer/service/gles2_cmd_decoder_unittest_base.cc',
279 'command_buffer/service/gles2_cmd_decoder_unittest.cc',
280 'command_buffer/service/gles2_cmd_decoder_unittest_1.cc',
281 'command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h',
282 'command_buffer/service/gles2_cmd_decoder_unittest_2.cc',
283 'command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h',
284 'command_buffer/service/id_manager_unittest.cc',
[email protected]33392292011-01-05 17:56:39285 'command_buffer/service/mocks.cc',
286 'command_buffer/service/mocks.h',
[email protected]644362cf2010-03-29 23:18:12287 'command_buffer/service/program_manager_unittest.cc',
288 'command_buffer/service/renderbuffer_manager_unittest.cc',
289 'command_buffer/service/shader_manager_unittest.cc',
[email protected]ff9e2a02010-09-29 16:49:24290 'command_buffer/service/shader_translator_unittest.cc',
[email protected]00f893d2010-08-24 18:55:49291 'command_buffer/service/test_helper.h',
292 'command_buffer/service/test_helper.cc',
[email protected]644362cf2010-03-29 23:18:12293 'command_buffer/service/texture_manager_unittest.cc',
[email protected]96449d2c2009-11-25 00:01:32294 ],
295 },
296 {
[email protected]7477ea6f2009-12-22 23:28:15297 'target_name': 'gles2_demo_lib',
298 'type': 'static_library',
[email protected]96449d2c2009-11-25 00:01:32299 'dependencies': [
300 'command_buffer_client',
[email protected]96449d2c2009-11-25 00:01:32301 'gles2_lib',
302 'gles2_c_lib',
[email protected]96449d2c2009-11-25 00:01:32303 ],
304 'sources': [
[email protected]96449d2c2009-11-25 00:01:32305 'command_buffer/client/gles2_demo_c.h',
306 'command_buffer/client/gles2_demo_c.c',
307 'command_buffer/client/gles2_demo_cc.h',
308 'command_buffer/client/gles2_demo_cc.cc',
309 ],
310 },
[email protected]bc36e9912010-01-15 00:53:02311 {
312 'target_name': 'pgl',
313 'type': 'static_library',
314 'dependencies': [
315 'command_buffer_client',
316 'gles2_c_lib',
317 '../third_party/npapi/npapi.gyp:npapi',
318 ],
[email protected]20407e92010-09-08 18:31:08319 'include_dirs': [
320 '..',
321 ],
[email protected]bc36e9912010-01-15 00:53:02322 'all_dependent_settings': {
323 'include_dirs': [
324 '../third_party/npapi/bindings',
325 ],
326 },
327 'sources': [
328 'pgl/command_buffer_pepper.cc',
329 'pgl/command_buffer_pepper.h',
[email protected]586eb392010-04-27 19:19:36330 'pgl/pgl_proc_address.cc',
[email protected]bc36e9912010-01-15 00:53:02331 'pgl/pgl.cc',
332 'pgl/pgl.h',
333 ],
334 },
[email protected]7477ea6f2009-12-22 23:28:15335 ],
336 'conditions': [
337 ['OS == "win"',
338 {
339 'targets': [
340 {
341 'target_name': 'gles2_demo',
342 'type': 'executable',
343 'dependencies': [
344 'command_buffer_service',
345 'gles2_demo_lib',
346 ],
347 'sources': [
348 'command_buffer/client/gles2_demo.cc',
349 ],
[email protected]6907f192010-01-19 22:15:21350 'msvs_settings': {
351 'VCLinkerTool': {
352 # 0 == not set
353 # 1 == /SUBSYSTEM:CONSOLE
354 # 2 == /SUBSYSTEM:WINDOWS
355 'SubSystem': '2',
356 },
357 },
[email protected]7477ea6f2009-12-22 23:28:15358 },
359 ],
360 },
361 ],
362 ],
[email protected]96449d2c2009-11-25 00:01:32363}
364
365# Local Variables:
366# tab-width:2
367# indent-tabs-mode:nil
368# End:
369# vim: set expandtab tabstop=2 shiftwidth=2: