1 # 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.
8 # This is defined here because we need to compile this set of files
9 # twice with different defines. Once so it calls real GL, again so it
10 # calls mock GL for the unit tests.
11 'gpu_service_source_files': [
12 'command_buffer/service/buffer_manager.h',
13 'command_buffer/service/buffer_manager.cc',
14 'command_buffer/service/framebuffer_manager.h',
15 'command_buffer/service/framebuffer_manager.cc',
16 'command_buffer/service/context_group.h',
17 'command_buffer/service/context_group.cc',
18 'command_buffer/service/gles2_cmd_decoder.h',
19 'command_buffer/service/gles2_cmd_decoder_autogen.h',
20 'command_buffer/service/gles2_cmd_decoder.cc',
21 'command_buffer/service/gles2_cmd_validation.h',
22 'command_buffer/service/gles2_cmd_validation.cc',
23 'command_buffer/service/gles2_cmd_validation_autogen.h',
24 'command_buffer/service/gles2_cmd_validation_implementation_autogen.h',
25 'command_buffer/service/gl_utils.h',
26 'command_buffer/service/gpu_processor.h',
27 'command_buffer/service/gpu_processor.cc',
28 'command_buffer/service/gpu_processor_linux.cc',
29 'command_buffer/service/gpu_processor_mac.cc',
30 'command_buffer/service/gpu_processor_win.cc',
31 'command_buffer/service/gpu_processor_mock.h',
32 'command_buffer/service/id_manager.h',
33 'command_buffer/service/id_manager.cc',
34 'command_buffer/service/program_manager.h',
35 'command_buffer/service/program_manager.cc',
36 'command_buffer/service/renderbuffer_manager.h',
37 'command_buffer/service/renderbuffer_manager.cc',
38 'command_buffer/service/shader_manager.h',
39 'command_buffer/service/shader_manager.cc',
40 'command_buffer/service/texture_manager.h',
41 'command_buffer/service/texture_manager.cc',
43 'enable_shader_translation%': 0,
47 'target_name': 'gl_libs',
48 'type': 'static_library',
50 '../third_party/glew/include',
55 'all_dependent_settings': {
57 '../third_party/glew/include',
64 '../third_party/glew/src/glew.c',
69 'all_dependent_settings': {
71 'GL_GLEXT_PROTOTYPES',
79 # For dlsym() in '../third_party/glew/src/glew.c'
90 '$(SDKROOT)/System/Library/Frameworks/OpenGL.framework',
97 'all_dependent_settings': {
109 'target_name': 'command_buffer_common',
110 'type': 'static_library',
115 'all_dependent_settings': {
122 '../base/base.gyp:base',
125 'command_buffer/common/bitfield_helpers.h',
126 'command_buffer/common/buffer.h',
127 'command_buffer/common/cmd_buffer_common.h',
128 'command_buffer/common/cmd_buffer_common.cc',
129 'command_buffer/common/command_buffer.h',
130 'command_buffer/common/command_buffer_mock.h',
131 'command_buffer/common/constants.h',
132 'command_buffer/common/gles2_cmd_ids_autogen.h',
133 'command_buffer/common/gles2_cmd_ids.h',
134 'command_buffer/common/gles2_cmd_format_autogen.h',
135 'command_buffer/common/gles2_cmd_format.cc',
136 'command_buffer/common/gles2_cmd_format.h',
137 'command_buffer/common/gles2_cmd_utils.cc',
138 'command_buffer/common/gles2_cmd_utils.h',
139 'command_buffer/common/id_allocator.cc',
140 'command_buffer/common/id_allocator.h',
141 'command_buffer/common/logging.h',
142 'command_buffer/common/mocks.h',
143 'command_buffer/common/thread_local.h',
144 'command_buffer/common/types.h',
148 # Library helps make GLES2 command buffers.
149 'target_name': 'gles2_cmd_helper',
150 'type': 'static_library',
152 'command_buffer_client',
155 'command_buffer/client/gles2_cmd_helper.cc',
156 'command_buffer/client/gles2_cmd_helper.h',
157 'command_buffer/client/gles2_cmd_helper_autogen.h',
161 # Library emulates GLES2 using command_buffers.
162 'target_name': 'gles2_implementation',
163 'type': 'static_library',
167 'all_dependent_settings': {
174 'command_buffer/client/gles2_implementation_autogen.h',
175 'command_buffer/client/gles2_implementation.cc',
176 'command_buffer/client/gles2_implementation.h',
180 # Stub to expose gles2_implementation as a namespace rather than a class
181 # so GLES2 C++ programs can work with no changes.
182 'target_name': 'gles2_lib',
183 'type': 'static_library',
185 'gles2_implementation',
188 'command_buffer/client/gles2_lib.cc',
189 'command_buffer/client/gles2_lib.h',
193 # Stub to expose gles2_implemenation in C instead of C++.
194 # so GLES2 C programs can work with no changes.
195 'target_name': 'gles2_c_lib',
196 'type': 'static_library',
201 'command_buffer/client/gles2_c_lib.h',
202 'command_buffer/client/gles2_c_lib.cc',
203 'command_buffer/client/gles2_c_lib_autogen.h',
207 'target_name': 'command_buffer_client',
208 'type': 'static_library',
210 'command_buffer_common',
213 'command_buffer/client/cmd_buffer_helper.cc',
214 'command_buffer/client/cmd_buffer_helper.h',
215 'command_buffer/client/fenced_allocator.cc',
216 'command_buffer/client/fenced_allocator.h',
217 'command_buffer/client/ring_buffer.cc',
218 'command_buffer/client/ring_buffer.h',
222 'target_name': 'command_buffer_service_impl',
223 'type': 'static_library',
227 'all_dependent_settings': {
233 'command_buffer_common',
235 '../gfx/gfx.gyp:gfx',
238 'command_buffer/service/common_decoder.cc',
239 'command_buffer/service/common_decoder.h',
240 'command_buffer/service/cmd_buffer_engine.h',
241 'command_buffer/service/command_buffer_service.cc',
242 'command_buffer/service/command_buffer_service.h',
243 'command_buffer/service/cmd_parser.cc',
244 'command_buffer/service/cmd_parser.h',
245 'command_buffer/service/mocks.h',
249 'target_name': 'command_buffer_service',
250 'type': 'static_library',
254 'all_dependent_settings': {
260 'command_buffer_service_impl',
262 '../app/app.gyp:app_base',
265 '<@(gpu_service_source_files)',
270 '../build/linux/system.gyp:gtk',
273 ['enable_shader_translation==1', {
275 'GLES2_GPU_SERVICE_TRANSLATE_SHADER',
278 '../third_party/angle/src/build_angle.gyp:translator_glsl',
284 'target_name': 'gpu_plugin',
285 'type': 'static_library',
287 '../base/base.gyp:base',
288 'command_buffer_service',
293 'all_dependent_settings': {
299 'gpu_plugin/gpu_plugin.cc',
300 'gpu_plugin/gpu_plugin.h',
304 'target_name': 'gpu_unittests',
305 'type': 'executable',
307 '../testing/gmock.gyp:gmock',
308 '../testing/gmock.gyp:gmockmain',
309 '../testing/gtest.gyp:gtest',
310 'command_buffer_client',
311 'command_buffer_common',
312 'command_buffer_service_impl',
314 'gles2_implementation',
318 '<@(gpu_service_source_files)',
319 'command_buffer/client/cmd_buffer_helper_test.cc',
320 'command_buffer/client/fenced_allocator_test.cc',
321 'command_buffer/client/gles2_implementation_unittest.cc',
322 'command_buffer/client/ring_buffer_test.cc',
323 'command_buffer/common/bitfield_helpers_test.cc',
324 'command_buffer/common/gles2_cmd_format_test.cc',
325 'command_buffer/common/gles2_cmd_format_test_autogen.h',
326 'command_buffer/common/gles2_cmd_id_test.cc',
327 'command_buffer/common/gles2_cmd_id_test_autogen.h',
328 'command_buffer/common/gles2_cmd_format_test.cc',
329 'command_buffer/common/gles2_cmd_format_test_autogen.h',
330 'command_buffer/common/gles2_cmd_id_test.cc',
331 'command_buffer/common/gles2_cmd_id_test_autogen.h',
332 'command_buffer/common/gles2_cmd_format_test.cc',
333 'command_buffer/common/gles2_cmd_format_test_autogen.h',
334 'command_buffer/common/gles2_cmd_id_test.cc',
335 'command_buffer/common/gles2_cmd_id_test_autogen.h',
336 'command_buffer/common/id_allocator_test.cc',
337 'command_buffer/service/buffer_manager_unittest.cc',
338 'command_buffer/service/context_group_unittest.cc',
339 'command_buffer/service/cmd_parser_test.cc',
340 'command_buffer/service/cmd_parser_test.cc',
341 'command_buffer/service/common_decoder_unittest.cc',
342 'command_buffer/service/framebuffer_manager_unittest.cc',
343 'command_buffer/service/gpu_processor_unittest.cc',
344 'command_buffer/service/gl_context_stub.cc',
345 'command_buffer/service/gl_interface.h',
346 'command_buffer/service/gl_interface.cc',
347 'command_buffer/service/gl_mock.h',
348 'command_buffer/service/gl_mock.cc',
349 'command_buffer/service/gles2_cmd_decoder_unittest_base.h',
350 'command_buffer/service/gles2_cmd_decoder_unittest_base.cc',
351 'command_buffer/service/gles2_cmd_decoder_unittest.cc',
352 'command_buffer/service/gles2_cmd_decoder_unittest_1.cc',
353 'command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h',
354 'command_buffer/service/gles2_cmd_decoder_unittest_2.cc',
355 'command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h',
356 'command_buffer/service/id_manager_unittest.cc',
357 'command_buffer/service/program_manager_unittest.cc',
358 'command_buffer/service/renderbuffer_manager_unittest.cc',
359 'command_buffer/service/shader_manager_unittest.cc',
360 'command_buffer/service/texture_manager_unittest.cc',
364 'target_name': 'gles2_demo_lib',
365 'type': 'static_library',
367 'command_buffer_client',
372 'command_buffer/client/gles2_demo_c.h',
373 'command_buffer/client/gles2_demo_c.c',
374 'command_buffer/client/gles2_demo_cc.h',
375 'command_buffer/client/gles2_demo_cc.cc',
379 'target_name': 'pgl',
380 'type': 'static_library',
382 'command_buffer_client',
384 '../third_party/npapi/npapi.gyp:npapi',
386 'all_dependent_settings': {
388 '../third_party/npapi/bindings',
392 'pgl/command_buffer_pepper.cc',
393 'pgl/command_buffer_pepper.h',
394 'pgl/pgl_proc_address.cc',
405 'target_name': 'gles2_demo',
406 'type': 'executable',
408 'command_buffer_service',
412 'command_buffer/client/gles2_demo.cc',
417 # 1 == /SUBSYSTEM:CONSOLE
418 # 2 == /SUBSYSTEM:WINDOWS
431 # indent-tabs-mode:nil
433 # vim: set expandtab tabstop=2 shiftwidth=2: