blob: 22f0215e37d5d1da7c32d716c593c5e39da3320b [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',
24 ]
[email protected]96449d2c2009-11-25 00:01:3225 },
[email protected]96449d2c2009-11-25 00:01:3226 'targets': [
27 {
[email protected]96449d2c2009-11-25 00:01:3228 'target_name': 'command_buffer_common',
29 'type': 'static_library',
30 'include_dirs': [
[email protected]9f427322010-03-08 22:58:5831 '.',
[email protected]96449d2c2009-11-25 00:01:3232 ],
33 'all_dependent_settings': {
34 'include_dirs': [
[email protected]9f427322010-03-08 22:58:5835 '.',
[email protected]96449d2c2009-11-25 00:01:3236 ],
37 },
[email protected]ed321c62011-04-26 21:54:2838 'dependencies': [
39 '../base/base.gyp:base',
40 ],
41 'export_dependent_settings': [
42 '../base/base.gyp:base',
43 ],
[email protected]96449d2c2009-11-25 00:01:3244 'sources': [
45 'command_buffer/common/bitfield_helpers.h',
[email protected]7477ea6f2009-12-22 23:28:1546 'command_buffer/common/buffer.h',
[email protected]96449d2c2009-11-25 00:01:3247 'command_buffer/common/cmd_buffer_common.h',
48 'command_buffer/common/cmd_buffer_common.cc',
[email protected]890e8962011-06-29 17:47:0149 'command_buffer/common/command_buffer.cc',
[email protected]96449d2c2009-11-25 00:01:3250 'command_buffer/common/command_buffer.h',
[email protected]d041d8c02009-12-03 00:35:5251 'command_buffer/common/constants.h',
[email protected]96449d2c2009-11-25 00:01:3252 'command_buffer/common/gles2_cmd_ids_autogen.h',
53 'command_buffer/common/gles2_cmd_ids.h',
54 'command_buffer/common/gles2_cmd_format_autogen.h',
55 'command_buffer/common/gles2_cmd_format.cc',
56 'command_buffer/common/gles2_cmd_format.h',
57 'command_buffer/common/gles2_cmd_utils.cc',
58 'command_buffer/common/gles2_cmd_utils.h',
[email protected]066849e32010-05-03 19:14:1059 'command_buffer/common/id_allocator.cc',
60 'command_buffer/common/id_allocator.h',
[email protected]96449d2c2009-11-25 00:01:3261 'command_buffer/common/logging.h',
[email protected]1b1bba772010-01-27 20:30:4562 'command_buffer/common/thread_local.h',
[email protected]96449d2c2009-11-25 00:01:3263 'command_buffer/common/types.h',
64 ],
65 },
66 {
67 # Library helps make GLES2 command buffers.
68 'target_name': 'gles2_cmd_helper',
69 'type': 'static_library',
70 'dependencies': [
[email protected]246a70452010-03-05 21:53:5071 'command_buffer_client',
[email protected]96449d2c2009-11-25 00:01:3272 ],
73 'sources': [
74 'command_buffer/client/gles2_cmd_helper.cc',
75 'command_buffer/client/gles2_cmd_helper.h',
76 'command_buffer/client/gles2_cmd_helper_autogen.h',
77 ],
78 },
79 {
80 # Library emulates GLES2 using command_buffers.
81 'target_name': 'gles2_implementation',
82 'type': 'static_library',
83 'dependencies': [
[email protected]366ae242011-05-10 02:23:5884 '../base/base.gyp:base',
[email protected]d0f5c842011-06-15 01:47:0085 '../ui/gfx/gl/gl.gyp:gl',
[email protected]96449d2c2009-11-25 00:01:3286 'gles2_cmd_helper',
87 ],
[email protected]43f28f832010-02-03 02:28:4888 'all_dependent_settings': {
89 'include_dirs': [
90 # For GLES2/gl2.h
[email protected]9f427322010-03-08 22:58:5891 '.',
[email protected]43f28f832010-02-03 02:28:4892 ],
93 },
[email protected]96449d2c2009-11-25 00:01:3294 'sources': [
[email protected]d7f06422011-02-05 00:24:5895 '<@(gles2_implementation_source_files)',
[email protected]96449d2c2009-11-25 00:01:3296 ],
97 },
98 {
[email protected]d7f06422011-02-05 00:24:5899 # Library emulates GLES2 using command_buffers.
100 'target_name': 'gles2_implementation_client_side_arrays',
[email protected]96449d2c2009-11-25 00:01:32101 'type': 'static_library',
[email protected]d7f06422011-02-05 00:24:58102 'defines': [
[email protected]37046332011-07-06 22:50:45103 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1',
104 'GLES2_CONFORMANCE_TESTS=1',
[email protected]96449d2c2009-11-25 00:01:32105 ],
[email protected]d7f06422011-02-05 00:24:58106 'dependencies': [
[email protected]366ae242011-05-10 02:23:58107 '../base/base.gyp:base',
[email protected]d7f06422011-02-05 00:24:58108 'gles2_cmd_helper',
109 ],
110 'all_dependent_settings': {
111 'include_dirs': [
112 # For GLES2/gl2.h
113 '.',
114 ],
115 },
[email protected]96449d2c2009-11-25 00:01:32116 'sources': [
[email protected]d7f06422011-02-05 00:24:58117 '<@(gles2_implementation_source_files)',
[email protected]96449d2c2009-11-25 00:01:32118 ],
119 },
120 {
121 # Stub to expose gles2_implemenation in C instead of C++.
122 # so GLES2 C programs can work with no changes.
123 'target_name': 'gles2_c_lib',
124 'type': 'static_library',
125 'dependencies': [
[email protected]8e1b98a2011-06-14 23:39:53126 '../base/base.gyp:base',
[email protected]d7f06422011-02-05 00:24:58127 'gles2_implementation',
[email protected]96449d2c2009-11-25 00:01:32128 ],
129 'sources': [
[email protected]98429332011-01-19 22:01:54130 '<@(gles2_c_lib_source_files)',
131 ],
132 },
133 {
134 # Same as gles2_c_lib except with no parameter checking. Required for
135 # OpenGL ES 2.0 conformance tests.
136 'target_name': 'gles2_c_lib_nocheck',
137 'type': 'static_library',
138 'defines': [
139 'GLES2_CONFORMANCE_TESTS=1',
140 ],
141 'dependencies': [
[email protected]d7f06422011-02-05 00:24:58142 'gles2_implementation_client_side_arrays',
[email protected]98429332011-01-19 22:01:54143 ],
144 'sources': [
145 '<@(gles2_c_lib_source_files)',
[email protected]96449d2c2009-11-25 00:01:32146 ],
147 },
148 {
[email protected]96449d2c2009-11-25 00:01:32149 'target_name': 'command_buffer_client',
150 'type': 'static_library',
[email protected]3a69c6fe2011-04-14 22:07:34151 'include_dirs': [
152 '..',
153 ],
154 'all_dependent_settings': {
155 'include_dirs': [
156 '..',
157 ],
158 },
[email protected]96449d2c2009-11-25 00:01:32159 'dependencies': [
160 'command_buffer_common',
161 ],
162 'sources': [
163 'command_buffer/client/cmd_buffer_helper.cc',
164 'command_buffer/client/cmd_buffer_helper.h',
165 'command_buffer/client/fenced_allocator.cc',
166 'command_buffer/client/fenced_allocator.h',
[email protected]8cd62f62010-07-14 01:43:00167 'command_buffer/client/mapped_memory.cc',
168 'command_buffer/client/mapped_memory.h',
[email protected]f6a56982010-04-28 19:44:59169 'command_buffer/client/ring_buffer.cc',
170 'command_buffer/client/ring_buffer.h',
[email protected]96449d2c2009-11-25 00:01:32171 ],
172 },
173 {
[email protected]69d80ae2009-12-23 08:57:42174 'target_name': 'command_buffer_service',
175 'type': 'static_library',
176 'include_dirs': [
177 '..',
178 ],
179 'all_dependent_settings': {
180 'include_dirs': [
181 '..',
182 ],
183 },
184 'dependencies': [
[email protected]b9363b22010-06-09 22:06:15185 'command_buffer_common',
[email protected]20407e92010-09-08 18:31:08186 '../base/base.gyp:base',
[email protected]5ae0b282011-03-28 19:24:49187 '../ui/gfx/gl/gl.gyp:gl',
[email protected]b9b751f22011-03-25 14:04:12188 '../ui/gfx/surface/surface.gyp:surface',
[email protected]ea47b6a2011-07-17 19:39:42189 '../ui/ui.gyp:ui',
[email protected]f517cc842010-08-25 19:13:40190 '../third_party/angle/src/build_angle.gyp:translator_glsl',
[email protected]69d80ae2009-12-23 08:57:42191 ],
192 'sources': [
[email protected]b9363b22010-06-09 22:06:15193 'command_buffer/service/buffer_manager.h',
194 'command_buffer/service/buffer_manager.cc',
195 'command_buffer/service/framebuffer_manager.h',
196 'command_buffer/service/framebuffer_manager.cc',
197 'command_buffer/service/cmd_buffer_engine.h',
198 'command_buffer/service/cmd_parser.cc',
199 'command_buffer/service/cmd_parser.h',
200 'command_buffer/service/command_buffer_service.cc',
201 'command_buffer/service/command_buffer_service.h',
202 'command_buffer/service/common_decoder.cc',
203 'command_buffer/service/common_decoder.h',
204 'command_buffer/service/context_group.h',
205 'command_buffer/service/context_group.cc',
[email protected]915a59a12010-09-30 21:29:11206 'command_buffer/service/feature_info.h',
207 'command_buffer/service/feature_info.cc',
[email protected]b9363b22010-06-09 22:06:15208 'command_buffer/service/gles2_cmd_decoder.h',
209 'command_buffer/service/gles2_cmd_decoder_autogen.h',
210 'command_buffer/service/gles2_cmd_decoder.cc',
211 'command_buffer/service/gles2_cmd_validation.h',
212 'command_buffer/service/gles2_cmd_validation.cc',
213 'command_buffer/service/gles2_cmd_validation_autogen.h',
214 'command_buffer/service/gles2_cmd_validation_implementation_autogen.h',
215 'command_buffer/service/gl_utils.h',
[email protected]09ddb91f2011-04-14 23:16:22216 'command_buffer/service/gpu_scheduler.h',
217 'command_buffer/service/gpu_scheduler.cc',
218 'command_buffer/service/gpu_scheduler_linux.cc',
219 'command_buffer/service/gpu_scheduler_mac.cc',
220 'command_buffer/service/gpu_scheduler_mock.h',
221 'command_buffer/service/gpu_scheduler_win.cc',
[email protected]b9363b22010-06-09 22:06:15222 'command_buffer/service/id_manager.h',
223 'command_buffer/service/id_manager.cc',
224 'command_buffer/service/mocks.h',
225 'command_buffer/service/program_manager.h',
226 'command_buffer/service/program_manager.cc',
227 'command_buffer/service/renderbuffer_manager.h',
228 'command_buffer/service/renderbuffer_manager.cc',
229 'command_buffer/service/shader_manager.h',
230 'command_buffer/service/shader_manager.cc',
[email protected]a550584e2010-09-17 18:01:45231 'command_buffer/service/shader_translator.h',
232 'command_buffer/service/shader_translator.cc',
[email protected]fbe20372011-06-01 01:46:38233 'command_buffer/service/surface_manager.cc',
234 'command_buffer/service/surface_manager.h',
[email protected]b9363b22010-06-09 22:06:15235 'command_buffer/service/texture_manager.h',
236 'command_buffer/service/texture_manager.cc',
[email protected]d8ea9772011-07-11 18:11:43237 'command_buffer/service/vertex_attrib_manager.h',
238 'command_buffer/service/vertex_attrib_manager.cc',
[email protected]69d80ae2009-12-23 08:57:42239 ],
[email protected]d37231fa2010-04-09 21:16:02240 'conditions': [
[email protected]6a654d452011-05-23 22:06:54241 ['toolkit_uses_gtk == 1', {
[email protected]bc10076c2010-05-14 19:14:06242 'dependencies': [
243 '../build/linux/system.gyp:gtk',
244 ],
245 }],
[email protected]ae802342011-06-25 17:01:55246 ['touchui==1', {
247 'include_dirs': [
248 '<(DEPTH)/third_party/angle/include',
249 ],
250 }],
[email protected]d37231fa2010-04-09 21:16:02251 ],
[email protected]69d80ae2009-12-23 08:57:42252 },
253 {
[email protected]644362cf2010-03-29 23:18:12254 'target_name': 'gpu_unittests',
[email protected]96449d2c2009-11-25 00:01:32255 'type': 'executable',
256 'dependencies': [
[email protected]ea47b6a2011-07-17 19:39:42257 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]96449d2c2009-11-25 00:01:32258 '../testing/gmock.gyp:gmock',
[email protected]016498e2010-12-03 00:59:23259 '../testing/gmock.gyp:gmock_main',
[email protected]96449d2c2009-11-25 00:01:32260 '../testing/gtest.gyp:gtest',
[email protected]5ae0b282011-03-28 19:24:49261 '../ui/gfx/gl/gl.gyp:gl',
[email protected]96449d2c2009-11-25 00:01:32262 'command_buffer_client',
[email protected]96449d2c2009-11-25 00:01:32263 'command_buffer_common',
[email protected]b9363b22010-06-09 22:06:15264 'command_buffer_service',
[email protected]7004d7eb2011-01-21 00:27:53265 'gpu_unittest_utils',
[email protected]d7f06422011-02-05 00:24:58266 'gles2_implementation_client_side_arrays',
[email protected]644362cf2010-03-29 23:18:12267 'gles2_cmd_helper',
268 ],
269 'sources': [
[email protected]d7f06422011-02-05 00:24:58270 '<@(gles2_c_lib_source_files)',
[email protected]644362cf2010-03-29 23:18:12271 'command_buffer/client/cmd_buffer_helper_test.cc',
272 'command_buffer/client/fenced_allocator_test.cc',
[email protected]29a9eb52010-04-13 09:04:23273 'command_buffer/client/gles2_implementation_unittest.cc',
[email protected]8cd62f62010-07-14 01:43:00274 'command_buffer/client/mapped_memory_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]8d8ecda2011-06-01 02:13:08310 'command_buffer/service/surface_manager_mock.cc',
[email protected]fbe20372011-06-01 01:46:38311 'command_buffer/service/surface_manager_mock.h',
[email protected]5ae1f732011-05-06 20:30:09312 'command_buffer/service/test_helper.cc',
[email protected]366ae242011-05-10 02:23:58313 'command_buffer/service/test_helper.h',
[email protected]644362cf2010-03-29 23:18:12314 'command_buffer/service/texture_manager_unittest.cc',
[email protected]d8ea9772011-07-11 18:11:43315 'command_buffer/service/vertex_attrib_manager_unittest.cc',
[email protected]96449d2c2009-11-25 00:01:32316 ],
317 },
318 {
[email protected]7004d7eb2011-01-21 00:27:53319 'target_name': 'gpu_unittest_utils',
320 'type': 'static_library',
321 'dependencies': [
[email protected]7004d7eb2011-01-21 00:27:53322 '../testing/gmock.gyp:gmock',
323 '../testing/gtest.gyp:gtest',
[email protected]5ae0b282011-03-28 19:24:49324 '../ui/gfx/gl/gl.gyp:gl',
[email protected]7004d7eb2011-01-21 00:27:53325 ],
326 'include_dirs': [
327 '..',
328 ],
329 'sources': [
330 'command_buffer/common/gl_mock.h',
331 'command_buffer/common/gl_mock.cc',
[email protected]0a071a32011-02-08 00:18:24332 'command_buffer/service/gles2_cmd_decoder_mock.cc',
333 'command_buffer/service/gles2_cmd_decoder_mock.cc',
[email protected]7004d7eb2011-01-21 00:27:53334 ],
335 },
336 {
[email protected]7477ea6f2009-12-22 23:28:15337 'target_name': 'gles2_demo_lib',
338 'type': 'static_library',
[email protected]96449d2c2009-11-25 00:01:32339 'dependencies': [
340 'command_buffer_client',
[email protected]96449d2c2009-11-25 00:01:32341 'gles2_c_lib',
[email protected]96449d2c2009-11-25 00:01:32342 ],
343 'sources': [
[email protected]96449d2c2009-11-25 00:01:32344 'command_buffer/client/gles2_demo_c.h',
345 'command_buffer/client/gles2_demo_c.c',
346 'command_buffer/client/gles2_demo_cc.h',
347 'command_buffer/client/gles2_demo_cc.cc',
348 ],
349 },
[email protected]bc36e9912010-01-15 00:53:02350 {
[email protected]f56279c2011-02-02 18:12:31351 'target_name': 'gpu_ipc',
352 'type': 'static_library',
353 'dependencies': [
354 'command_buffer_client',
355 'gles2_c_lib',
[email protected]ed321c62011-04-26 21:54:28356 '../base/base.gyp:base',
[email protected]f56279c2011-02-02 18:12:31357 ],
358 'include_dirs': [
359 '..',
360 ],
361 'sources': [
362 'ipc/gpu_command_buffer_traits.cc',
363 'ipc/gpu_command_buffer_traits.h',
364 ],
365 },
[email protected]7477ea6f2009-12-22 23:28:15366 ],
367 'conditions': [
368 ['OS == "win"',
369 {
370 'targets': [
371 {
372 'target_name': 'gles2_demo',
373 'type': 'executable',
374 'dependencies': [
[email protected]ea47b6a2011-07-17 19:39:42375 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]7477ea6f2009-12-22 23:28:15376 'command_buffer_service',
377 'gles2_demo_lib',
378 ],
379 'sources': [
380 'command_buffer/client/gles2_demo.cc',
381 ],
[email protected]6907f192010-01-19 22:15:21382 'msvs_settings': {
383 'VCLinkerTool': {
384 # 0 == not set
385 # 1 == /SUBSYSTEM:CONSOLE
386 # 2 == /SUBSYSTEM:WINDOWS
387 'SubSystem': '2',
388 },
389 },
[email protected]7477ea6f2009-12-22 23:28:15390 },
391 ],
392 },
393 ],
394 ],
[email protected]96449d2c2009-11-25 00:01:32395}