blob: 5bbef5094300c058344ba833de912bc8e97a3467 [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',
49 'command_buffer/common/command_buffer.h',
[email protected]d041d8c02009-12-03 00:35:5250 'command_buffer/common/constants.h',
[email protected]96449d2c2009-11-25 00:01:3251 'command_buffer/common/gles2_cmd_ids_autogen.h',
52 'command_buffer/common/gles2_cmd_ids.h',
53 'command_buffer/common/gles2_cmd_format_autogen.h',
54 'command_buffer/common/gles2_cmd_format.cc',
55 'command_buffer/common/gles2_cmd_format.h',
56 'command_buffer/common/gles2_cmd_utils.cc',
57 'command_buffer/common/gles2_cmd_utils.h',
[email protected]066849e32010-05-03 19:14:1058 'command_buffer/common/id_allocator.cc',
59 'command_buffer/common/id_allocator.h',
[email protected]96449d2c2009-11-25 00:01:3260 'command_buffer/common/logging.h',
[email protected]1b1bba772010-01-27 20:30:4561 'command_buffer/common/thread_local.h',
[email protected]96449d2c2009-11-25 00:01:3262 'command_buffer/common/types.h',
63 ],
64 },
65 {
66 # Library helps make GLES2 command buffers.
67 'target_name': 'gles2_cmd_helper',
68 'type': 'static_library',
69 'dependencies': [
[email protected]246a70452010-03-05 21:53:5070 'command_buffer_client',
[email protected]96449d2c2009-11-25 00:01:3271 ],
72 'sources': [
73 'command_buffer/client/gles2_cmd_helper.cc',
74 'command_buffer/client/gles2_cmd_helper.h',
75 'command_buffer/client/gles2_cmd_helper_autogen.h',
76 ],
77 },
78 {
79 # Library emulates GLES2 using command_buffers.
80 'target_name': 'gles2_implementation',
81 'type': 'static_library',
82 'dependencies': [
[email protected]820d851f2011-05-06 20:04:1383 '../base/base.gyp:base',
[email protected]96449d2c2009-11-25 00:01:3284 'gles2_cmd_helper',
85 ],
[email protected]43f28f832010-02-03 02:28:4886 'all_dependent_settings': {
87 'include_dirs': [
88 # For GLES2/gl2.h
[email protected]9f427322010-03-08 22:58:5889 '.',
[email protected]43f28f832010-02-03 02:28:4890 ],
91 },
[email protected]96449d2c2009-11-25 00:01:3292 'sources': [
[email protected]d7f06422011-02-05 00:24:5893 '<@(gles2_implementation_source_files)',
[email protected]96449d2c2009-11-25 00:01:3294 ],
95 },
96 {
[email protected]d7f06422011-02-05 00:24:5897 # Library emulates GLES2 using command_buffers.
98 'target_name': 'gles2_implementation_client_side_arrays',
[email protected]96449d2c2009-11-25 00:01:3299 'type': 'static_library',
[email protected]d7f06422011-02-05 00:24:58100 'defines': [
101 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1'
[email protected]96449d2c2009-11-25 00:01:32102 ],
[email protected]d7f06422011-02-05 00:24:58103 'dependencies': [
104 'gles2_cmd_helper',
105 ],
106 'all_dependent_settings': {
107 'include_dirs': [
108 # For GLES2/gl2.h
109 '.',
110 ],
111 },
[email protected]96449d2c2009-11-25 00:01:32112 'sources': [
[email protected]d7f06422011-02-05 00:24:58113 '<@(gles2_implementation_source_files)',
[email protected]96449d2c2009-11-25 00:01:32114 ],
115 },
116 {
117 # Stub to expose gles2_implemenation in C instead of C++.
118 # so GLES2 C programs can work with no changes.
119 'target_name': 'gles2_c_lib',
120 'type': 'static_library',
121 'dependencies': [
[email protected]d7f06422011-02-05 00:24:58122 'gles2_implementation',
[email protected]96449d2c2009-11-25 00:01:32123 ],
124 'sources': [
[email protected]98429332011-01-19 22:01:54125 '<@(gles2_c_lib_source_files)',
126 ],
127 },
128 {
129 # Same as gles2_c_lib except with no parameter checking. Required for
130 # OpenGL ES 2.0 conformance tests.
131 'target_name': 'gles2_c_lib_nocheck',
132 'type': 'static_library',
133 'defines': [
134 'GLES2_CONFORMANCE_TESTS=1',
135 ],
136 'dependencies': [
[email protected]d7f06422011-02-05 00:24:58137 'gles2_implementation_client_side_arrays',
[email protected]98429332011-01-19 22:01:54138 ],
139 'sources': [
140 '<@(gles2_c_lib_source_files)',
[email protected]96449d2c2009-11-25 00:01:32141 ],
142 },
143 {
[email protected]96449d2c2009-11-25 00:01:32144 'target_name': 'command_buffer_client',
145 'type': 'static_library',
[email protected]3a69c6fe2011-04-14 22:07:34146 'include_dirs': [
147 '..',
148 ],
149 'all_dependent_settings': {
150 'include_dirs': [
151 '..',
152 ],
153 },
[email protected]96449d2c2009-11-25 00:01:32154 'dependencies': [
155 'command_buffer_common',
[email protected]96449d2c2009-11-25 00:01:32156 ],
157 'sources': [
158 'command_buffer/client/cmd_buffer_helper.cc',
159 'command_buffer/client/cmd_buffer_helper.h',
160 'command_buffer/client/fenced_allocator.cc',
161 'command_buffer/client/fenced_allocator.h',
[email protected]8cd62f62010-07-14 01:43:00162 'command_buffer/client/mapped_memory.cc',
163 'command_buffer/client/mapped_memory.h',
[email protected]f6a56982010-04-28 19:44:59164 'command_buffer/client/ring_buffer.cc',
165 'command_buffer/client/ring_buffer.h',
[email protected]96449d2c2009-11-25 00:01:32166 ],
167 },
168 {
[email protected]69d80ae2009-12-23 08:57:42169 'target_name': 'command_buffer_service',
170 'type': 'static_library',
171 'include_dirs': [
172 '..',
173 ],
174 'all_dependent_settings': {
175 'include_dirs': [
176 '..',
177 ],
178 },
179 'dependencies': [
[email protected]b9363b22010-06-09 22:06:15180 'command_buffer_common',
[email protected]20407e92010-09-08 18:31:08181 '../base/base.gyp:base',
[email protected]5ae0b282011-03-28 19:24:49182 '../ui/gfx/gl/gl.gyp:gl',
[email protected]b9b751f22011-03-25 14:04:12183 '../ui/gfx/surface/surface.gyp:surface',
[email protected]5ae0b282011-03-28 19:24:49184 '../ui/ui.gyp:ui_gfx',
[email protected]f517cc842010-08-25 19:13:40185 '../third_party/angle/src/build_angle.gyp:translator_glsl',
[email protected]69d80ae2009-12-23 08:57:42186 ],
187 'sources': [
[email protected]b9363b22010-06-09 22:06:15188 'command_buffer/service/buffer_manager.h',
189 'command_buffer/service/buffer_manager.cc',
190 'command_buffer/service/framebuffer_manager.h',
191 'command_buffer/service/framebuffer_manager.cc',
192 'command_buffer/service/cmd_buffer_engine.h',
193 'command_buffer/service/cmd_parser.cc',
194 'command_buffer/service/cmd_parser.h',
195 'command_buffer/service/command_buffer_service.cc',
196 'command_buffer/service/command_buffer_service.h',
197 'command_buffer/service/common_decoder.cc',
198 'command_buffer/service/common_decoder.h',
199 'command_buffer/service/context_group.h',
200 'command_buffer/service/context_group.cc',
[email protected]915a59a12010-09-30 21:29:11201 'command_buffer/service/feature_info.h',
202 'command_buffer/service/feature_info.cc',
[email protected]b9363b22010-06-09 22:06:15203 'command_buffer/service/gles2_cmd_decoder.h',
204 'command_buffer/service/gles2_cmd_decoder_autogen.h',
205 'command_buffer/service/gles2_cmd_decoder.cc',
206 'command_buffer/service/gles2_cmd_validation.h',
207 'command_buffer/service/gles2_cmd_validation.cc',
208 'command_buffer/service/gles2_cmd_validation_autogen.h',
209 'command_buffer/service/gles2_cmd_validation_implementation_autogen.h',
210 'command_buffer/service/gl_utils.h',
[email protected]09ddb91f2011-04-14 23:16:22211 'command_buffer/service/gpu_scheduler.h',
212 'command_buffer/service/gpu_scheduler.cc',
213 'command_buffer/service/gpu_scheduler_linux.cc',
214 'command_buffer/service/gpu_scheduler_mac.cc',
215 'command_buffer/service/gpu_scheduler_mock.h',
216 'command_buffer/service/gpu_scheduler_win.cc',
[email protected]b9363b22010-06-09 22:06:15217 'command_buffer/service/id_manager.h',
218 'command_buffer/service/id_manager.cc',
219 'command_buffer/service/mocks.h',
220 'command_buffer/service/program_manager.h',
221 'command_buffer/service/program_manager.cc',
222 'command_buffer/service/renderbuffer_manager.h',
223 'command_buffer/service/renderbuffer_manager.cc',
224 'command_buffer/service/shader_manager.h',
225 'command_buffer/service/shader_manager.cc',
[email protected]a550584e2010-09-17 18:01:45226 'command_buffer/service/shader_translator.h',
227 'command_buffer/service/shader_translator.cc',
[email protected]b9363b22010-06-09 22:06:15228 'command_buffer/service/texture_manager.h',
229 'command_buffer/service/texture_manager.cc',
[email protected]69d80ae2009-12-23 08:57:42230 ],
[email protected]d37231fa2010-04-09 21:16:02231 'conditions': [
[email protected]bc10076c2010-05-14 19:14:06232 ['OS == "linux"', {
233 'dependencies': [
234 '../build/linux/system.gyp:gtk',
235 ],
236 }],
[email protected]d37231fa2010-04-09 21:16:02237 ],
[email protected]69d80ae2009-12-23 08:57:42238 },
239 {
[email protected]644362cf2010-03-29 23:18:12240 'target_name': 'gpu_unittests',
[email protected]96449d2c2009-11-25 00:01:32241 'type': 'executable',
242 'dependencies': [
[email protected]b9363b22010-06-09 22:06:15243 '../app/app.gyp:app_base',
[email protected]96449d2c2009-11-25 00:01:32244 '../testing/gmock.gyp:gmock',
[email protected]016498e2010-12-03 00:59:23245 '../testing/gmock.gyp:gmock_main',
[email protected]96449d2c2009-11-25 00:01:32246 '../testing/gtest.gyp:gtest',
[email protected]5ae0b282011-03-28 19:24:49247 '../ui/gfx/gl/gl.gyp:gl',
[email protected]96449d2c2009-11-25 00:01:32248 'command_buffer_client',
[email protected]96449d2c2009-11-25 00:01:32249 'command_buffer_common',
[email protected]b9363b22010-06-09 22:06:15250 'command_buffer_service',
[email protected]7004d7eb2011-01-21 00:27:53251 'gpu_unittest_utils',
[email protected]d7f06422011-02-05 00:24:58252 'gles2_implementation_client_side_arrays',
[email protected]644362cf2010-03-29 23:18:12253 'gles2_cmd_helper',
254 ],
255 'sources': [
[email protected]d7f06422011-02-05 00:24:58256 '<@(gles2_c_lib_source_files)',
[email protected]644362cf2010-03-29 23:18:12257 'command_buffer/client/cmd_buffer_helper_test.cc',
258 'command_buffer/client/fenced_allocator_test.cc',
[email protected]29a9eb52010-04-13 09:04:23259 'command_buffer/client/gles2_implementation_unittest.cc',
[email protected]8cd62f62010-07-14 01:43:00260 'command_buffer/client/mapped_memory_unittest.cc',
[email protected]f6a56982010-04-28 19:44:59261 'command_buffer/client/ring_buffer_test.cc',
[email protected]644362cf2010-03-29 23:18:12262 'command_buffer/common/bitfield_helpers_test.cc',
[email protected]33392292011-01-05 17:56:39263 'command_buffer/common/command_buffer_mock.cc',
264 'command_buffer/common/command_buffer_mock.h',
[email protected]644362cf2010-03-29 23:18:12265 'command_buffer/common/gles2_cmd_format_test.cc',
266 'command_buffer/common/gles2_cmd_format_test_autogen.h',
267 'command_buffer/common/gles2_cmd_id_test.cc',
268 'command_buffer/common/gles2_cmd_id_test_autogen.h',
[email protected]066849e32010-05-03 19:14:10269 'command_buffer/common/id_allocator_test.cc',
[email protected]820d851f2011-05-06 20:04:13270 'command_buffer/common/trace_event.h',
[email protected]b9363b22010-06-09 22:06:15271 'command_buffer/common/unittest_main.cc',
[email protected]644362cf2010-03-29 23:18:12272 'command_buffer/service/buffer_manager_unittest.cc',
[email protected]644362cf2010-03-29 23:18:12273 'command_buffer/service/cmd_parser_test.cc',
274 'command_buffer/service/common_decoder_unittest.cc',
[email protected]820d851f2011-05-06 20:04:13275 'command_buffer/service/context_group_unittest.cc',
[email protected]915a59a12010-09-30 21:29:11276 'command_buffer/service/feature_info_unittest.cc',
[email protected]644362cf2010-03-29 23:18:12277 'command_buffer/service/framebuffer_manager_unittest.cc',
[email protected]644362cf2010-03-29 23:18:12278 'command_buffer/service/gles2_cmd_decoder_unittest.cc',
279 'command_buffer/service/gles2_cmd_decoder_unittest_1.cc',
280 'command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h',
281 'command_buffer/service/gles2_cmd_decoder_unittest_2.cc',
282 'command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h',
[email protected]d685a682011-04-29 16:19:57283 'command_buffer/service/gles2_cmd_decoder_unittest_3.cc',
284 'command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h',
[email protected]820d851f2011-05-06 20:04:13285 'command_buffer/service/gles2_cmd_decoder_unittest_base.cc',
286 'command_buffer/service/gles2_cmd_decoder_unittest_base.h',
287 'command_buffer/service/gpu_scheduler_unittest.cc',
[email protected]644362cf2010-03-29 23:18:12288 'command_buffer/service/id_manager_unittest.cc',
[email protected]33392292011-01-05 17:56:39289 'command_buffer/service/mocks.cc',
290 'command_buffer/service/mocks.h',
[email protected]644362cf2010-03-29 23:18:12291 'command_buffer/service/program_manager_unittest.cc',
292 'command_buffer/service/renderbuffer_manager_unittest.cc',
293 'command_buffer/service/shader_manager_unittest.cc',
[email protected]ff9e2a02010-09-29 16:49:24294 'command_buffer/service/shader_translator_unittest.cc',
[email protected]39a52b442011-05-05 20:14:33295 'command_buffer/service/test_helper.cc',
[email protected]820d851f2011-05-06 20:04:13296 'command_buffer/service/test_helper.h',
[email protected]644362cf2010-03-29 23:18:12297 'command_buffer/service/texture_manager_unittest.cc',
[email protected]96449d2c2009-11-25 00:01:32298 ],
299 },
300 {
[email protected]7004d7eb2011-01-21 00:27:53301 'target_name': 'gpu_unittest_utils',
302 'type': 'static_library',
303 'dependencies': [
[email protected]7004d7eb2011-01-21 00:27:53304 '../testing/gmock.gyp:gmock',
305 '../testing/gtest.gyp:gtest',
[email protected]5ae0b282011-03-28 19:24:49306 '../ui/gfx/gl/gl.gyp:gl',
[email protected]7004d7eb2011-01-21 00:27:53307 ],
308 'include_dirs': [
309 '..',
310 ],
311 'sources': [
312 'command_buffer/common/gl_mock.h',
313 'command_buffer/common/gl_mock.cc',
[email protected]0a071a32011-02-08 00:18:24314 'command_buffer/service/gles2_cmd_decoder_mock.cc',
315 'command_buffer/service/gles2_cmd_decoder_mock.cc',
[email protected]7004d7eb2011-01-21 00:27:53316 ],
317 },
318 {
[email protected]7477ea6f2009-12-22 23:28:15319 'target_name': 'gles2_demo_lib',
320 'type': 'static_library',
[email protected]96449d2c2009-11-25 00:01:32321 'dependencies': [
322 'command_buffer_client',
[email protected]96449d2c2009-11-25 00:01:32323 'gles2_c_lib',
[email protected]96449d2c2009-11-25 00:01:32324 ],
325 'sources': [
[email protected]96449d2c2009-11-25 00:01:32326 'command_buffer/client/gles2_demo_c.h',
327 'command_buffer/client/gles2_demo_c.c',
328 'command_buffer/client/gles2_demo_cc.h',
329 'command_buffer/client/gles2_demo_cc.cc',
330 ],
331 },
[email protected]bc36e9912010-01-15 00:53:02332 {
[email protected]f56279c2011-02-02 18:12:31333 'target_name': 'gpu_ipc',
334 'type': 'static_library',
335 'dependencies': [
336 'command_buffer_client',
337 'gles2_c_lib',
[email protected]ed321c62011-04-26 21:54:28338 '../base/base.gyp:base',
[email protected]f56279c2011-02-02 18:12:31339 ],
340 'include_dirs': [
341 '..',
342 ],
343 'sources': [
344 'ipc/gpu_command_buffer_traits.cc',
345 'ipc/gpu_command_buffer_traits.h',
346 ],
347 },
[email protected]7477ea6f2009-12-22 23:28:15348 ],
349 'conditions': [
350 ['OS == "win"',
351 {
352 'targets': [
353 {
354 'target_name': 'gles2_demo',
355 'type': 'executable',
356 'dependencies': [
357 'command_buffer_service',
358 'gles2_demo_lib',
359 ],
360 'sources': [
361 'command_buffer/client/gles2_demo.cc',
362 ],
[email protected]6907f192010-01-19 22:15:21363 'msvs_settings': {
364 'VCLinkerTool': {
365 # 0 == not set
366 # 1 == /SUBSYSTEM:CONSOLE
367 # 2 == /SUBSYSTEM:WINDOWS
368 'SubSystem': '2',
369 },
370 },
[email protected]7477ea6f2009-12-22 23:28:15371 },
372 ],
373 },
374 ],
375 ],
[email protected]96449d2c2009-11-25 00:01:32376}
377
378# Local Variables:
379# tab-width:2
380# indent-tabs-mode:nil
381# End:
382# vim: set expandtab tabstop=2 shiftwidth=2: