| # Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| # Use of this source code is governed by a BSD-style license that can be |
| # found in the LICENSE file. |
| |
| { |
| 'variables': { |
| 'chromium_code': 1, |
| }, |
| 'targets': [ |
| { |
| 'target_name': 'command_buffer_common', |
| 'type': 'static_library', |
| 'include_dirs': [ |
| '.', |
| '..', |
| ], |
| 'all_dependent_settings': { |
| 'include_dirs': [ |
| '.', |
| '..', |
| ], |
| }, |
| 'dependencies': [ |
| '../base/base.gyp:base', |
| ], |
| 'sources': [ |
| 'command_buffer/common/bitfield_helpers.h', |
| 'command_buffer/common/buffer.h', |
| 'command_buffer/common/cmd_buffer_common.h', |
| 'command_buffer/common/cmd_buffer_common.cc', |
| 'command_buffer/common/command_buffer.h', |
| 'command_buffer/common/command_buffer_mock.h', |
| 'command_buffer/common/constants.h', |
| 'command_buffer/common/gles2_cmd_ids_autogen.h', |
| 'command_buffer/common/gles2_cmd_ids.h', |
| 'command_buffer/common/gles2_cmd_format_autogen.h', |
| 'command_buffer/common/gles2_cmd_format.cc', |
| 'command_buffer/common/gles2_cmd_format.h', |
| 'command_buffer/common/gles2_cmd_utils.cc', |
| 'command_buffer/common/gles2_cmd_utils.h', |
| 'command_buffer/common/id_allocator.cc', |
| 'command_buffer/common/id_allocator.h', |
| 'command_buffer/common/logging.h', |
| 'command_buffer/common/mocks.h', |
| 'command_buffer/common/thread_local.h', |
| 'command_buffer/common/types.h', |
| ], |
| }, |
| { |
| # Library helps make GLES2 command buffers. |
| 'target_name': 'gles2_cmd_helper', |
| 'type': 'static_library', |
| 'dependencies': [ |
| 'command_buffer_client', |
| ], |
| 'sources': [ |
| 'command_buffer/client/gles2_cmd_helper.cc', |
| 'command_buffer/client/gles2_cmd_helper.h', |
| 'command_buffer/client/gles2_cmd_helper_autogen.h', |
| ], |
| }, |
| { |
| # Library emulates GLES2 using command_buffers. |
| 'target_name': 'gles2_implementation', |
| 'type': 'static_library', |
| 'dependencies': [ |
| 'gles2_cmd_helper', |
| ], |
| 'all_dependent_settings': { |
| 'include_dirs': [ |
| # For GLES2/gl2.h |
| '.', |
| ], |
| }, |
| 'sources': [ |
| 'command_buffer/client/gles2_implementation_autogen.h', |
| 'command_buffer/client/gles2_implementation.cc', |
| 'command_buffer/client/gles2_implementation.h', |
| ], |
| }, |
| { |
| # Stub to expose gles2_implementation as a namespace rather than a class |
| # so GLES2 C++ programs can work with no changes. |
| 'target_name': 'gles2_lib', |
| 'type': 'static_library', |
| 'dependencies': [ |
| 'gles2_implementation', |
| ], |
| 'sources': [ |
| 'command_buffer/client/gles2_lib.cc', |
| 'command_buffer/client/gles2_lib.h', |
| ], |
| }, |
| { |
| # Stub to expose gles2_implemenation in C instead of C++. |
| # so GLES2 C programs can work with no changes. |
| 'target_name': 'gles2_c_lib', |
| 'type': 'static_library', |
| 'dependencies': [ |
| 'gles2_lib', |
| ], |
| 'sources': [ |
| 'command_buffer/client/gles2_c_lib.h', |
| 'command_buffer/client/gles2_c_lib.cc', |
| 'command_buffer/client/gles2_c_lib_autogen.h', |
| ], |
| }, |
| { |
| 'target_name': 'command_buffer_client', |
| 'type': 'static_library', |
| 'dependencies': [ |
| 'command_buffer_common', |
| ], |
| 'sources': [ |
| 'command_buffer/client/cmd_buffer_helper.cc', |
| 'command_buffer/client/cmd_buffer_helper.h', |
| 'command_buffer/client/fenced_allocator.cc', |
| 'command_buffer/client/fenced_allocator.h', |
| 'command_buffer/client/mapped_memory.cc', |
| 'command_buffer/client/mapped_memory.h', |
| 'command_buffer/client/ring_buffer.cc', |
| 'command_buffer/client/ring_buffer.h', |
| ], |
| }, |
| { |
| 'target_name': 'command_buffer_service', |
| 'type': 'static_library', |
| 'include_dirs': [ |
| '..', |
| ], |
| 'all_dependent_settings': { |
| 'include_dirs': [ |
| '..', |
| ], |
| }, |
| 'dependencies': [ |
| 'command_buffer_common', |
| '../app/app.gyp:app_base', |
| '../gfx/gfx.gyp:gfx', |
| '../third_party/angle/src/build_angle.gyp:translator_glsl', |
| ], |
| 'sources': [ |
| 'command_buffer/service/buffer_manager.h', |
| 'command_buffer/service/buffer_manager.cc', |
| 'command_buffer/service/framebuffer_manager.h', |
| 'command_buffer/service/framebuffer_manager.cc', |
| 'command_buffer/service/cmd_buffer_engine.h', |
| 'command_buffer/service/cmd_parser.cc', |
| 'command_buffer/service/cmd_parser.h', |
| 'command_buffer/service/command_buffer_service.cc', |
| 'command_buffer/service/command_buffer_service.h', |
| 'command_buffer/service/common_decoder.cc', |
| 'command_buffer/service/common_decoder.h', |
| 'command_buffer/service/context_group.h', |
| 'command_buffer/service/context_group.cc', |
| 'command_buffer/service/gles2_cmd_decoder.h', |
| 'command_buffer/service/gles2_cmd_decoder_autogen.h', |
| 'command_buffer/service/gles2_cmd_decoder.cc', |
| 'command_buffer/service/gles2_cmd_validation.h', |
| 'command_buffer/service/gles2_cmd_validation.cc', |
| 'command_buffer/service/gles2_cmd_validation_autogen.h', |
| 'command_buffer/service/gles2_cmd_validation_implementation_autogen.h', |
| 'command_buffer/service/gl_utils.h', |
| 'command_buffer/service/gpu_processor.h', |
| 'command_buffer/service/gpu_processor.cc', |
| 'command_buffer/service/gpu_processor_linux.cc', |
| 'command_buffer/service/gpu_processor_mac.cc', |
| 'command_buffer/service/gpu_processor_mock.h', |
| 'command_buffer/service/gpu_processor_win.cc', |
| 'command_buffer/service/id_manager.h', |
| 'command_buffer/service/id_manager.cc', |
| 'command_buffer/service/mocks.h', |
| 'command_buffer/service/program_manager.h', |
| 'command_buffer/service/program_manager.cc', |
| 'command_buffer/service/renderbuffer_manager.h', |
| 'command_buffer/service/renderbuffer_manager.cc', |
| 'command_buffer/service/shader_manager.h', |
| 'command_buffer/service/shader_manager.cc', |
| 'command_buffer/service/texture_manager.h', |
| 'command_buffer/service/texture_manager.cc', |
| ], |
| 'conditions': [ |
| ['OS == "linux"', { |
| 'dependencies': [ |
| '../build/linux/system.gyp:gtk', |
| ], |
| }], |
| ], |
| }, |
| { |
| 'target_name': 'gpu_plugin', |
| 'type': 'static_library', |
| 'dependencies': [ |
| '../base/base.gyp:base', |
| 'command_buffer_service', |
| ], |
| 'include_dirs': [ |
| '..', |
| ], |
| 'all_dependent_settings': { |
| 'include_dirs': [ |
| '..', |
| ], |
| }, |
| 'sources': [ |
| 'gpu_plugin/gpu_plugin.cc', |
| 'gpu_plugin/gpu_plugin.h', |
| ], |
| }, |
| { |
| 'target_name': 'gpu_unittests', |
| 'type': 'executable', |
| 'dependencies': [ |
| '../app/app.gyp:app_base', |
| '../testing/gmock.gyp:gmock', |
| '../testing/gmock.gyp:gmockmain', |
| '../testing/gtest.gyp:gtest', |
| 'command_buffer_client', |
| 'command_buffer_common', |
| 'command_buffer_service', |
| 'gles2_lib', |
| 'gles2_implementation', |
| 'gles2_cmd_helper', |
| ], |
| 'sources': [ |
| 'command_buffer/client/cmd_buffer_helper_test.cc', |
| 'command_buffer/client/fenced_allocator_test.cc', |
| 'command_buffer/client/gles2_implementation_unittest.cc', |
| 'command_buffer/client/mapped_memory_unittest.cc', |
| 'command_buffer/client/ring_buffer_test.cc', |
| 'command_buffer/common/bitfield_helpers_test.cc', |
| 'command_buffer/common/gles2_cmd_format_test.cc', |
| 'command_buffer/common/gles2_cmd_format_test_autogen.h', |
| 'command_buffer/common/gles2_cmd_id_test.cc', |
| 'command_buffer/common/gles2_cmd_id_test_autogen.h', |
| 'command_buffer/common/gles2_cmd_format_test.cc', |
| 'command_buffer/common/gles2_cmd_format_test_autogen.h', |
| 'command_buffer/common/gles2_cmd_id_test.cc', |
| 'command_buffer/common/gles2_cmd_id_test_autogen.h', |
| 'command_buffer/common/gles2_cmd_format_test.cc', |
| 'command_buffer/common/gles2_cmd_format_test_autogen.h', |
| 'command_buffer/common/gles2_cmd_id_test.cc', |
| 'command_buffer/common/gles2_cmd_id_test_autogen.h', |
| 'command_buffer/common/id_allocator_test.cc', |
| 'command_buffer/common/unittest_main.cc', |
| 'command_buffer/service/buffer_manager_unittest.cc', |
| 'command_buffer/service/context_group_unittest.cc', |
| 'command_buffer/service/cmd_parser_test.cc', |
| 'command_buffer/service/cmd_parser_test.cc', |
| 'command_buffer/service/common_decoder_unittest.cc', |
| 'command_buffer/service/framebuffer_manager_unittest.cc', |
| 'command_buffer/service/gpu_processor_unittest.cc', |
| 'command_buffer/service/gles2_cmd_decoder_unittest_base.h', |
| 'command_buffer/service/gles2_cmd_decoder_unittest_base.cc', |
| 'command_buffer/service/gles2_cmd_decoder_unittest.cc', |
| 'command_buffer/service/gles2_cmd_decoder_unittest_1.cc', |
| 'command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h', |
| 'command_buffer/service/gles2_cmd_decoder_unittest_2.cc', |
| 'command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h', |
| 'command_buffer/service/id_manager_unittest.cc', |
| 'command_buffer/service/program_manager_unittest.cc', |
| 'command_buffer/service/renderbuffer_manager_unittest.cc', |
| 'command_buffer/service/shader_manager_unittest.cc', |
| 'command_buffer/service/test_helper.h', |
| 'command_buffer/service/test_helper.cc', |
| 'command_buffer/service/texture_manager_unittest.cc', |
| ], |
| }, |
| { |
| 'target_name': 'gles2_demo_lib', |
| 'type': 'static_library', |
| 'dependencies': [ |
| 'command_buffer_client', |
| 'gles2_lib', |
| 'gles2_c_lib', |
| ], |
| 'sources': [ |
| 'command_buffer/client/gles2_demo_c.h', |
| 'command_buffer/client/gles2_demo_c.c', |
| 'command_buffer/client/gles2_demo_cc.h', |
| 'command_buffer/client/gles2_demo_cc.cc', |
| ], |
| }, |
| { |
| 'target_name': 'pgl', |
| 'type': 'static_library', |
| 'dependencies': [ |
| 'command_buffer_client', |
| 'gles2_c_lib', |
| '../third_party/npapi/npapi.gyp:npapi', |
| ], |
| 'all_dependent_settings': { |
| 'include_dirs': [ |
| '../third_party/npapi/bindings', |
| ], |
| }, |
| 'sources': [ |
| 'pgl/command_buffer_pepper.cc', |
| 'pgl/command_buffer_pepper.h', |
| 'pgl/pgl_proc_address.cc', |
| 'pgl/pgl.cc', |
| 'pgl/pgl.h', |
| ], |
| }, |
| ], |
| 'conditions': [ |
| ['OS == "win"', |
| { |
| 'targets': [ |
| { |
| 'target_name': 'gles2_demo', |
| 'type': 'executable', |
| 'dependencies': [ |
| 'command_buffer_service', |
| 'gles2_demo_lib', |
| ], |
| 'sources': [ |
| 'command_buffer/client/gles2_demo.cc', |
| ], |
| 'msvs_settings': { |
| 'VCLinkerTool': { |
| # 0 == not set |
| # 1 == /SUBSYSTEM:CONSOLE |
| # 2 == /SUBSYSTEM:WINDOWS |
| 'SubSystem': '2', |
| }, |
| }, |
| }, |
| ], |
| }, |
| ], |
| ], |
| } |
| |
| # Local Variables: |
| # tab-width:2 |
| # indent-tabs-mode:nil |
| # End: |
| # vim: set expandtab tabstop=2 shiftwidth=2: |