blob: f576bfecddc2745a57f2b6bab55a94a873ea4431 [file] [log] [blame]
[email protected]96449d2c2009-11-25 00:01:321# Copyright (c) 2009 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.
4
5{
6 'variables': {
7 'chromium_code': 1,
8 },
[email protected]96449d2c2009-11-25 00:01:329 'targets': [
10 {
[email protected]96449d2c2009-11-25 00:01:3211 'target_name': 'command_buffer_common',
12 'type': 'static_library',
13 'include_dirs': [
[email protected]9f427322010-03-08 22:58:5814 '.',
[email protected]96449d2c2009-11-25 00:01:3215 ],
16 'all_dependent_settings': {
17 'include_dirs': [
[email protected]9f427322010-03-08 22:58:5818 '.',
[email protected]96449d2c2009-11-25 00:01:3219 ],
20 },
21 'sources': [
22 'command_buffer/common/bitfield_helpers.h',
[email protected]7477ea6f2009-12-22 23:28:1523 'command_buffer/common/buffer.h',
[email protected]96449d2c2009-11-25 00:01:3224 'command_buffer/common/cmd_buffer_common.h',
25 'command_buffer/common/cmd_buffer_common.cc',
26 'command_buffer/common/command_buffer.h',
27 'command_buffer/common/command_buffer_mock.h',
[email protected]d041d8c02009-12-03 00:35:5228 'command_buffer/common/constants.h',
[email protected]96449d2c2009-11-25 00:01:3229 'command_buffer/common/gles2_cmd_ids_autogen.h',
30 'command_buffer/common/gles2_cmd_ids.h',
31 'command_buffer/common/gles2_cmd_format_autogen.h',
32 'command_buffer/common/gles2_cmd_format.cc',
33 'command_buffer/common/gles2_cmd_format.h',
34 'command_buffer/common/gles2_cmd_utils.cc',
35 'command_buffer/common/gles2_cmd_utils.h',
[email protected]066849e32010-05-03 19:14:1036 'command_buffer/common/id_allocator.cc',
37 'command_buffer/common/id_allocator.h',
[email protected]96449d2c2009-11-25 00:01:3238 'command_buffer/common/logging.h',
39 'command_buffer/common/mocks.h',
[email protected]1b1bba772010-01-27 20:30:4540 'command_buffer/common/thread_local.h',
[email protected]96449d2c2009-11-25 00:01:3241 'command_buffer/common/types.h',
42 ],
43 },
44 {
45 # Library helps make GLES2 command buffers.
46 'target_name': 'gles2_cmd_helper',
47 'type': 'static_library',
48 'dependencies': [
[email protected]246a70452010-03-05 21:53:5049 'command_buffer_client',
[email protected]96449d2c2009-11-25 00:01:3250 ],
51 'sources': [
52 'command_buffer/client/gles2_cmd_helper.cc',
53 'command_buffer/client/gles2_cmd_helper.h',
54 'command_buffer/client/gles2_cmd_helper_autogen.h',
55 ],
56 },
57 {
58 # Library emulates GLES2 using command_buffers.
59 'target_name': 'gles2_implementation',
60 'type': 'static_library',
61 'dependencies': [
62 'gles2_cmd_helper',
63 ],
[email protected]43f28f832010-02-03 02:28:4864 'all_dependent_settings': {
65 'include_dirs': [
66 # For GLES2/gl2.h
[email protected]9f427322010-03-08 22:58:5867 '.',
[email protected]43f28f832010-02-03 02:28:4868 ],
69 },
[email protected]96449d2c2009-11-25 00:01:3270 'sources': [
71 'command_buffer/client/gles2_implementation_autogen.h',
72 'command_buffer/client/gles2_implementation.cc',
[email protected]96449d2c2009-11-25 00:01:3273 'command_buffer/client/gles2_implementation.h',
74 ],
75 },
76 {
77 # Stub to expose gles2_implementation as a namespace rather than a class
78 # so GLES2 C++ programs can work with no changes.
79 'target_name': 'gles2_lib',
80 'type': 'static_library',
81 'dependencies': [
82 'gles2_implementation',
83 ],
84 'sources': [
85 'command_buffer/client/gles2_lib.cc',
86 'command_buffer/client/gles2_lib.h',
87 ],
88 },
89 {
90 # Stub to expose gles2_implemenation in C instead of C++.
91 # so GLES2 C programs can work with no changes.
92 'target_name': 'gles2_c_lib',
93 'type': 'static_library',
94 'dependencies': [
95 'gles2_lib',
96 ],
97 'sources': [
98 'command_buffer/client/gles2_c_lib.h',
99 'command_buffer/client/gles2_c_lib.cc',
100 'command_buffer/client/gles2_c_lib_autogen.h',
101 ],
102 },
103 {
[email protected]96449d2c2009-11-25 00:01:32104 'target_name': 'command_buffer_client',
105 'type': 'static_library',
106 'dependencies': [
107 'command_buffer_common',
108 ],
109 'sources': [
110 'command_buffer/client/cmd_buffer_helper.cc',
111 'command_buffer/client/cmd_buffer_helper.h',
112 'command_buffer/client/fenced_allocator.cc',
113 'command_buffer/client/fenced_allocator.h',
[email protected]8cd62f62010-07-14 01:43:00114 'command_buffer/client/mapped_memory.cc',
115 'command_buffer/client/mapped_memory.h',
[email protected]f6a56982010-04-28 19:44:59116 'command_buffer/client/ring_buffer.cc',
117 'command_buffer/client/ring_buffer.h',
[email protected]96449d2c2009-11-25 00:01:32118 ],
119 },
120 {
[email protected]69d80ae2009-12-23 08:57:42121 'target_name': 'command_buffer_service',
122 'type': 'static_library',
123 'include_dirs': [
124 '..',
125 ],
126 'all_dependent_settings': {
127 'include_dirs': [
128 '..',
129 ],
130 },
131 'dependencies': [
[email protected]b9363b22010-06-09 22:06:15132 'command_buffer_common',
[email protected]5a6db6c2010-04-22 18:32:06133 '../app/app.gyp:app_base',
[email protected]20407e92010-09-08 18:31:08134 '../base/base.gyp:base',
[email protected]b9363b22010-06-09 22:06:15135 '../gfx/gfx.gyp:gfx',
[email protected]f517cc842010-08-25 19:13:40136 '../third_party/angle/src/build_angle.gyp:translator_glsl',
[email protected]69d80ae2009-12-23 08:57:42137 ],
138 'sources': [
[email protected]b9363b22010-06-09 22:06:15139 'command_buffer/service/buffer_manager.h',
140 'command_buffer/service/buffer_manager.cc',
141 'command_buffer/service/framebuffer_manager.h',
142 'command_buffer/service/framebuffer_manager.cc',
143 'command_buffer/service/cmd_buffer_engine.h',
144 'command_buffer/service/cmd_parser.cc',
145 'command_buffer/service/cmd_parser.h',
146 'command_buffer/service/command_buffer_service.cc',
147 'command_buffer/service/command_buffer_service.h',
148 'command_buffer/service/common_decoder.cc',
149 'command_buffer/service/common_decoder.h',
150 'command_buffer/service/context_group.h',
151 'command_buffer/service/context_group.cc',
152 'command_buffer/service/gles2_cmd_decoder.h',
153 'command_buffer/service/gles2_cmd_decoder_autogen.h',
154 'command_buffer/service/gles2_cmd_decoder.cc',
155 'command_buffer/service/gles2_cmd_validation.h',
156 'command_buffer/service/gles2_cmd_validation.cc',
157 'command_buffer/service/gles2_cmd_validation_autogen.h',
158 'command_buffer/service/gles2_cmd_validation_implementation_autogen.h',
159 'command_buffer/service/gl_utils.h',
160 'command_buffer/service/gpu_processor.h',
161 'command_buffer/service/gpu_processor.cc',
162 'command_buffer/service/gpu_processor_linux.cc',
163 'command_buffer/service/gpu_processor_mac.cc',
164 'command_buffer/service/gpu_processor_mock.h',
165 'command_buffer/service/gpu_processor_win.cc',
166 'command_buffer/service/id_manager.h',
167 'command_buffer/service/id_manager.cc',
168 'command_buffer/service/mocks.h',
169 'command_buffer/service/program_manager.h',
170 'command_buffer/service/program_manager.cc',
171 'command_buffer/service/renderbuffer_manager.h',
172 'command_buffer/service/renderbuffer_manager.cc',
173 'command_buffer/service/shader_manager.h',
174 'command_buffer/service/shader_manager.cc',
[email protected]a550584e2010-09-17 18:01:45175 'command_buffer/service/shader_translator.h',
176 'command_buffer/service/shader_translator.cc',
[email protected]b9363b22010-06-09 22:06:15177 'command_buffer/service/texture_manager.h',
178 'command_buffer/service/texture_manager.cc',
[email protected]69d80ae2009-12-23 08:57:42179 ],
[email protected]d37231fa2010-04-09 21:16:02180 'conditions': [
[email protected]bc10076c2010-05-14 19:14:06181 ['OS == "linux"', {
182 'dependencies': [
183 '../build/linux/system.gyp:gtk',
184 ],
185 }],
[email protected]d37231fa2010-04-09 21:16:02186 ],
[email protected]69d80ae2009-12-23 08:57:42187 },
188 {
[email protected]96449d2c2009-11-25 00:01:32189 'target_name': 'gpu_plugin',
[email protected]7477ea6f2009-12-22 23:28:15190 'type': 'static_library',
[email protected]96449d2c2009-11-25 00:01:32191 'dependencies': [
192 '../base/base.gyp:base',
193 'command_buffer_service',
[email protected]96449d2c2009-11-25 00:01:32194 ],
195 'include_dirs': [
196 '..',
197 ],
198 'all_dependent_settings': {
199 'include_dirs': [
200 '..',
201 ],
202 },
203 'sources': [
204 'gpu_plugin/gpu_plugin.cc',
205 'gpu_plugin/gpu_plugin.h',
[email protected]96449d2c2009-11-25 00:01:32206 ],
207 },
208 {
[email protected]644362cf2010-03-29 23:18:12209 'target_name': 'gpu_unittests',
[email protected]96449d2c2009-11-25 00:01:32210 'type': 'executable',
211 'dependencies': [
[email protected]b9363b22010-06-09 22:06:15212 '../app/app.gyp:app_base',
[email protected]96449d2c2009-11-25 00:01:32213 '../testing/gmock.gyp:gmock',
214 '../testing/gmock.gyp:gmockmain',
215 '../testing/gtest.gyp:gtest',
216 'command_buffer_client',
[email protected]96449d2c2009-11-25 00:01:32217 'command_buffer_common',
[email protected]b9363b22010-06-09 22:06:15218 'command_buffer_service',
[email protected]644362cf2010-03-29 23:18:12219 'gles2_lib',
220 'gles2_implementation',
221 'gles2_cmd_helper',
222 ],
223 'sources': [
[email protected]644362cf2010-03-29 23:18:12224 'command_buffer/client/cmd_buffer_helper_test.cc',
225 'command_buffer/client/fenced_allocator_test.cc',
[email protected]29a9eb52010-04-13 09:04:23226 'command_buffer/client/gles2_implementation_unittest.cc',
[email protected]8cd62f62010-07-14 01:43:00227 'command_buffer/client/mapped_memory_unittest.cc',
[email protected]f6a56982010-04-28 19:44:59228 'command_buffer/client/ring_buffer_test.cc',
[email protected]644362cf2010-03-29 23:18:12229 'command_buffer/common/bitfield_helpers_test.cc',
230 'command_buffer/common/gles2_cmd_format_test.cc',
231 'command_buffer/common/gles2_cmd_format_test_autogen.h',
232 'command_buffer/common/gles2_cmd_id_test.cc',
233 'command_buffer/common/gles2_cmd_id_test_autogen.h',
234 'command_buffer/common/gles2_cmd_format_test.cc',
235 'command_buffer/common/gles2_cmd_format_test_autogen.h',
236 'command_buffer/common/gles2_cmd_id_test.cc',
237 'command_buffer/common/gles2_cmd_id_test_autogen.h',
238 'command_buffer/common/gles2_cmd_format_test.cc',
239 'command_buffer/common/gles2_cmd_format_test_autogen.h',
240 'command_buffer/common/gles2_cmd_id_test.cc',
241 'command_buffer/common/gles2_cmd_id_test_autogen.h',
[email protected]066849e32010-05-03 19:14:10242 'command_buffer/common/id_allocator_test.cc',
[email protected]b9363b22010-06-09 22:06:15243 'command_buffer/common/unittest_main.cc',
[email protected]644362cf2010-03-29 23:18:12244 'command_buffer/service/buffer_manager_unittest.cc',
245 'command_buffer/service/context_group_unittest.cc',
246 'command_buffer/service/cmd_parser_test.cc',
247 'command_buffer/service/cmd_parser_test.cc',
248 'command_buffer/service/common_decoder_unittest.cc',
249 'command_buffer/service/framebuffer_manager_unittest.cc',
250 'command_buffer/service/gpu_processor_unittest.cc',
[email protected]644362cf2010-03-29 23:18:12251 'command_buffer/service/gles2_cmd_decoder_unittest_base.h',
252 'command_buffer/service/gles2_cmd_decoder_unittest_base.cc',
253 'command_buffer/service/gles2_cmd_decoder_unittest.cc',
254 'command_buffer/service/gles2_cmd_decoder_unittest_1.cc',
255 'command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h',
256 'command_buffer/service/gles2_cmd_decoder_unittest_2.cc',
257 'command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h',
258 'command_buffer/service/id_manager_unittest.cc',
259 'command_buffer/service/program_manager_unittest.cc',
260 'command_buffer/service/renderbuffer_manager_unittest.cc',
261 'command_buffer/service/shader_manager_unittest.cc',
[email protected]00f893d2010-08-24 18:55:49262 'command_buffer/service/test_helper.h',
263 'command_buffer/service/test_helper.cc',
[email protected]644362cf2010-03-29 23:18:12264 'command_buffer/service/texture_manager_unittest.cc',
[email protected]96449d2c2009-11-25 00:01:32265 ],
266 },
267 {
[email protected]7477ea6f2009-12-22 23:28:15268 'target_name': 'gles2_demo_lib',
269 'type': 'static_library',
[email protected]96449d2c2009-11-25 00:01:32270 'dependencies': [
271 'command_buffer_client',
[email protected]96449d2c2009-11-25 00:01:32272 'gles2_lib',
273 'gles2_c_lib',
[email protected]96449d2c2009-11-25 00:01:32274 ],
275 'sources': [
[email protected]96449d2c2009-11-25 00:01:32276 'command_buffer/client/gles2_demo_c.h',
277 'command_buffer/client/gles2_demo_c.c',
278 'command_buffer/client/gles2_demo_cc.h',
279 'command_buffer/client/gles2_demo_cc.cc',
280 ],
281 },
[email protected]bc36e9912010-01-15 00:53:02282 {
283 'target_name': 'pgl',
284 'type': 'static_library',
285 'dependencies': [
286 'command_buffer_client',
287 'gles2_c_lib',
288 '../third_party/npapi/npapi.gyp:npapi',
289 ],
[email protected]20407e92010-09-08 18:31:08290 'include_dirs': [
291 '..',
292 ],
[email protected]bc36e9912010-01-15 00:53:02293 'all_dependent_settings': {
294 'include_dirs': [
295 '../third_party/npapi/bindings',
296 ],
297 },
298 'sources': [
299 'pgl/command_buffer_pepper.cc',
300 'pgl/command_buffer_pepper.h',
[email protected]586eb392010-04-27 19:19:36301 'pgl/pgl_proc_address.cc',
[email protected]bc36e9912010-01-15 00:53:02302 'pgl/pgl.cc',
303 'pgl/pgl.h',
304 ],
305 },
[email protected]7477ea6f2009-12-22 23:28:15306 ],
307 'conditions': [
308 ['OS == "win"',
309 {
310 'targets': [
311 {
312 'target_name': 'gles2_demo',
313 'type': 'executable',
314 'dependencies': [
315 'command_buffer_service',
316 'gles2_demo_lib',
317 ],
318 'sources': [
319 'command_buffer/client/gles2_demo.cc',
320 ],
[email protected]6907f192010-01-19 22:15:21321 'msvs_settings': {
322 'VCLinkerTool': {
323 # 0 == not set
324 # 1 == /SUBSYSTEM:CONSOLE
325 # 2 == /SUBSYSTEM:WINDOWS
326 'SubSystem': '2',
327 },
328 },
[email protected]7477ea6f2009-12-22 23:28:15329 },
330 ],
331 },
332 ],
333 ],
[email protected]96449d2c2009-11-25 00:01:32334}
335
336# Local Variables:
337# tab-width:2
338# indent-tabs-mode:nil
339# End:
340# vim: set expandtab tabstop=2 shiftwidth=2: