# 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, }, 'includes': [ '../build/common.gypi', ], 'targets': [ { 'target_name': 'command_buffer_common', 'type': 'static_library', 'include_dirs': [ '..', '../..', ], 'all_dependent_settings': { 'include_dirs': [ '..', '../..', ], }, # 'all_dependent_settings' 'sources': [ 'command_buffer/common/bitfield_helpers.h', 'command_buffer/common/cmd_buffer_common.h', 'command_buffer/common/cmd_buffer_common.cc', 'command_buffer/common/o3d_cmd_format.h', 'command_buffer/common/o3d_cmd_format.cc', 'command_buffer/common/gapi_interface.h', 'command_buffer/common/logging.h', 'command_buffer/common/mocks.h', 'command_buffer/common/resource.cc', 'command_buffer/common/resource.h', 'command_buffer/common/types.h', ], }, { 'target_name': 'command_buffer_common_unittests', 'type': 'none', 'direct_dependent_settings': { 'sources': [ 'command_buffer/common/bitfield_helpers_test.cc', ], }, }, { 'target_name': 'command_buffer_client', 'type': 'static_library', 'dependencies': [ 'command_buffer_common', 'np_utils', ], 'sources': [ 'command_buffer/client/cmd_buffer_helper.cc', 'command_buffer/client/cmd_buffer_helper.h', 'command_buffer/client/effect_helper.cc', 'command_buffer/client/effect_helper.h', 'command_buffer/client/fenced_allocator.cc', 'command_buffer/client/fenced_allocator.h', 'command_buffer/client/id_allocator.cc', 'command_buffer/client/id_allocator.h', 'command_buffer/client/o3d_cmd_helper.cc', 'command_buffer/client/o3d_cmd_helper.h', ], }, { 'target_name': 'command_buffer_client_unittests', 'type': 'none', 'direct_dependent_settings': { 'sources': [ 'command_buffer/client/cmd_buffer_helper_test.cc', 'command_buffer/client/fenced_allocator_test.cc', 'command_buffer/client/id_allocator_test.cc', ], }, }, { 'target_name': 'command_buffer_service', 'type': 'static_library', 'include_dirs': [ '..', '../..', ], 'all_dependent_settings': { 'include_dirs': [ '..', '../..', ], 'conditions': [ ['OS == "win" and (renderer == "gl" or cb_service == "gl")', { 'include_dirs': [ '../../<(glewdir)/include', '../../<(cgdir)/include', ], }, ], ], }, # 'all_dependent_settings' 'dependencies': [ 'command_buffer_common', ], 'sources': [ 'command_buffer/service/common_decoder.cc', 'command_buffer/service/common_decoder.h', 'command_buffer/service/cmd_buffer_engine.h', 'command_buffer/service/cmd_parser.cc', 'command_buffer/service/cmd_parser.h', 'command_buffer/service/effect_utils.cc', 'command_buffer/service/effect_utils.h', 'command_buffer/service/gapi_decoder.cc', 'command_buffer/service/gapi_decoder.h', 'command_buffer/service/mocks.h', 'command_buffer/service/precompile.cc', 'command_buffer/service/precompile.h', 'command_buffer/service/resource.cc', 'command_buffer/service/resource.h', 'command_buffer/service/texture_utils.cc', 'command_buffer/service/texture_utils.h', ], 'conditions': [ ['cb_service == "d3d9"', { 'include_dirs': [ '$(DXSDK_DIR)/Include', ], 'all_dependent_settings': { 'include_dirs': [ '$(DXSDK_DIR)/Include', ], 'link_settings': { 'libraries': [ '"$(DXSDK_DIR)/Lib/x86/DxErr.lib"', ], }, }, # 'all_dependent_settings' 'sources': [ 'command_buffer/service/d3d9_utils.h', 'command_buffer/service/effect_d3d9.cc', 'command_buffer/service/effect_d3d9.h', 'command_buffer/service/gapi_d3d9.cc', 'command_buffer/service/gapi_d3d9.h', 'command_buffer/service/geometry_d3d9.cc', 'command_buffer/service/geometry_d3d9.h', 'command_buffer/service/render_surface_d3d9.cc', 'command_buffer/service/render_surface_d3d9.h', 'command_buffer/service/sampler_d3d9.cc', 'command_buffer/service/sampler_d3d9.h', 'command_buffer/service/states_d3d9.cc', 'command_buffer/service/texture_d3d9.cc', 'command_buffer/service/texture_d3d9.h', ], # 'sources' }, ], ['cb_service == "gl"', { 'dependencies': [ '../build/libs.gyp:gl_libs', '../build/libs.gyp:cg_libs', ], 'sources': [ 'command_buffer/service/effect_gl.cc', 'command_buffer/service/effect_gl.h', 'command_buffer/service/gapi_gl.cc', 'command_buffer/service/gapi_gl.h', 'command_buffer/service/geometry_gl.cc', 'command_buffer/service/geometry_gl.h', 'command_buffer/service/gl_utils.h', 'command_buffer/service/render_surface_gl.cc', 'command_buffer/service/render_surface_gl.h', 'command_buffer/service/sampler_gl.cc', 'command_buffer/service/sampler_gl.h', 'command_buffer/service/states_gl.cc', 'command_buffer/service/texture_gl.cc', 'command_buffer/service/texture_gl.h', ], # 'sources' }, ], ['OS == "linux"', { 'sources': [ 'command_buffer/service/linux/x_utils.cc', 'command_buffer/service/linux/x_utils.h', ], }, ], ], # 'conditions' }, { 'target_name': 'command_buffer_service_unittests', 'type': 'none', 'direct_dependent_settings': { 'sources': [ 'command_buffer/service/cmd_parser_test.cc', 'command_buffer/service/resource_test.cc', ], }, }, { 'target_name': 'np_utils', 'type': '<(library)', 'dependencies': [ '../../base/base.gyp:base', '../build/o3d_in_chrome.gyp:o3d_in_chrome', ], 'include_dirs': [ '..', '../..', '../../third_party/npapi', ], 'all_dependent_settings': { 'include_dirs': [ '..', '../..', '../../third_party/npapi', ], }, # 'all_dependent_settings' 'sources': [ 'np_utils/default_np_object.h', 'np_utils/dynamic_np_object.cc', 'np_utils/dynamic_np_object.h', 'np_utils/np_browser.cc', 'np_utils/np_browser.h', 'np_utils/np_browser_mock.h', 'np_utils/np_browser_stub.cc', 'np_utils/np_browser_stub.h', 'np_utils/np_class.h', 'np_utils/np_dispatcher.cc', 'np_utils/np_dispatcher.h', 'np_utils/np_dispatcher_specializations.h', 'np_utils/np_headers.h', 'np_utils/np_object_mock.h', 'np_utils/np_object_pointer.h', 'np_utils/np_plugin_object.h', 'np_utils/np_plugin_object_mock.h', 'np_utils/np_plugin_object_factory.cc', 'np_utils/np_plugin_object_factory.h', 'np_utils/np_plugin_object_factory_mock.h', 'np_utils/np_utils.cc', 'np_utils/np_utils.h', 'np_utils/webkit_browser.h', ], }, # This is a standalone executable until O3D is fully moved over to using # gyp. At that point these can become part of the regular O3D unit tests. { 'target_name': 'np_utils_unittests', 'type': 'none', 'direct_dependent_settings': { 'include_dirs': [ '..', '../..', ], 'sources': [ 'np_utils/dispatched_np_object_unittest.cc', 'np_utils/dynamic_np_object_unittest.cc', 'np_utils/np_class_unittest.cc', 'np_utils/np_object_pointer_unittest.cc', 'np_utils/np_utils_unittest.cc', ], }, }, # These can eventually be merged back into the gpu_plugin target. There # separated for now so O3D can statically link against them and use command # buffers in-process without the GPU plugin. { 'target_name': 'command_buffer', 'type': '<(library)', 'dependencies': [ '../../base/base.gyp:base', 'command_buffer_service', 'np_utils', ], 'include_dirs': [ '..', '../..', ], 'all_dependent_settings': { 'include_dirs': [ '..', '../..', ], }, # 'all_dependent_settings' 'sources': [ 'gpu_plugin/command_buffer.cc', 'gpu_plugin/command_buffer.h', 'gpu_plugin/command_buffer_mock.h', 'gpu_plugin/gpu_processor.h', 'gpu_plugin/gpu_processor.cc', 'gpu_plugin/gpu_processor_mock.h', 'gpu_plugin/gpu_processor_win.cc', ], }, { 'target_name': 'gpu_plugin', 'type': '<(library)', 'dependencies': [ '../../base/base.gyp:base', 'command_buffer', 'np_utils', ], 'include_dirs': [ '..', '../..', ], 'all_dependent_settings': { 'include_dirs': [ '..', '../..', ], }, # 'all_dependent_settings' 'sources': [ 'gpu_plugin/gpu_plugin.cc', 'gpu_plugin/gpu_plugin.h', 'gpu_plugin/gpu_plugin_object.cc', 'gpu_plugin/gpu_plugin_object.h', 'gpu_plugin/gpu_plugin_object_win.cc', 'gpu_plugin/gpu_plugin_object_factory.cc', 'gpu_plugin/gpu_plugin_object_factory.h', ], }, { 'target_name': 'gpu_plugin_unittests', 'type': 'none', 'direct_dependent_settings': { 'include_dirs': [ '..', '../..', ], 'sources': [ 'gpu_plugin/command_buffer_unittest.cc', 'gpu_plugin/gpu_plugin_unittest.cc', 'gpu_plugin/gpu_plugin_object_unittest.cc', 'gpu_plugin/gpu_plugin_object_factory_unittest.cc', 'gpu_plugin/gpu_processor_unittest.cc', ], }, }, { 'target_name': 'gpu_all_unittests', 'type': 'executable', 'dependencies': [ '../../testing/gmock.gyp:gmock', '../../testing/gmock.gyp:gmockmain', '../../testing/gtest.gyp:gtest', 'command_buffer_client', 'command_buffer_client_unittests', 'command_buffer_common', 'command_buffer_common_unittests', 'command_buffer_service', 'command_buffer_service_unittests', 'gpu_plugin', 'gpu_plugin_unittests', 'np_utils', 'np_utils_unittests', ], }, ] } # Local Variables: # tab-width:2 # indent-tabs-mode:nil # End: # vim: set expandtab tabstop=2 shiftwidth=2: