diff options
author | apatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-15 21:51:41 +0000 |
---|---|---|
committer | apatrick@google.com <apatrick@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-15 21:51:41 +0000 |
commit | 973c0eda70048d5d9c6e7a02c14fb25e48a3d218 (patch) | |
tree | 22da99c6dc904d927d0ffb5d7311d7f878d9d84d /o3d/command_buffer/command_buffer.gyp | |
parent | a5a6e25bfb05924c0acb74ee42085b4456608c19 (diff) | |
download | chromium_src-973c0eda70048d5d9c6e7a02c14fb25e48a3d218.zip chromium_src-973c0eda70048d5d9c6e7a02c14fb25e48a3d218.tar.gz chromium_src-973c0eda70048d5d9c6e7a02c14fb25e48a3d218.tar.bz2 |
Made gyp file for command buffer libraries.
Gyp build works on Windows. Mac and linux won't work yet.
Fixed some warnings.
Switched from dxerr.lib to dxerr9.lib.
Implemented a Texture::SetRect case for DXT compressed textures.
Fixed division by zero for zero stride vertex buffers.
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/200127
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26271 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/command_buffer/command_buffer.gyp')
-rw-r--r-- | o3d/command_buffer/command_buffer.gyp | 165 |
1 files changed, 165 insertions, 0 deletions
diff --git a/o3d/command_buffer/command_buffer.gyp b/o3d/command_buffer/command_buffer.gyp new file mode 100644 index 0000000..4e3df30 --- /dev/null +++ b/o3d/command_buffer/command_buffer.gyp @@ -0,0 +1,165 @@ +# 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', + ], + 'target_defaults': { + 'include_dirs': [ + '..', + '../..', + '../../<(gtestdir)', + '../../<(nacldir)', + ], + 'defines': [ + ], + 'conditions': [ + ['OS == "win"', + { + 'include_dirs': [ + '$(DXSDK_DIR)/Include', + ], + } + ], + ['OS == "mac" or OS == "linux"', + { + 'include_dirs': [ + '../../<(glewdir)/include', + '../../<(cgdir)/include', + ], + }, + ], + ], + }, + 'targets': [ + { + 'target_name': 'command_buffer_common', + 'type': 'static_library', + 'dependencies': [ + '../../native_client/src/shared/imc/imc.gyp:google_nacl_imc', + '../../native_client/src/shared/imc/imc.gyp:libgoogle_nacl_imc_c', + '../../native_client/src/shared/platform/platform.gyp:platform', + '../../native_client/src/trusted/desc/desc.gyp:nrd_xfer', + '../../native_client/src/trusted/service_runtime/service_runtime.gyp:gio', + ], + 'sources': [ + 'common/cross/bitfield_helpers.h', + 'common/cross/buffer_sync_api.cc', + 'common/cross/buffer_sync_api.h', + 'common/cross/cmd_buffer_format.h', + 'common/cross/gapi_interface.h', + 'common/cross/logging.h', + 'common/cross/mocks.h', + 'common/cross/resource.cc', + 'common/cross/resource.h', + 'common/cross/rpc.h', + 'common/cross/rpc_imc.cc', + 'common/cross/rpc_imc.h', + 'common/cross/types.h', + ], + }, + { + 'target_name': 'command_buffer_client', + 'type': 'static_library', + 'dependencies': [ + 'command_buffer_common', + ], + 'sources': [ + 'client/cross/buffer_sync_proxy.cc', + 'client/cross/buffer_sync_proxy.h', + 'client/cross/cmd_buffer_helper.cc', + 'client/cross/cmd_buffer_helper.h', + 'client/cross/effect_helper.cc', + 'client/cross/effect_helper.h', + 'client/cross/fenced_allocator.cc', + 'client/cross/fenced_allocator.h', + 'client/cross/id_allocator.cc', + 'client/cross/id_allocator.h', + ], + }, + { + 'target_name': 'command_buffer_service', + 'type': 'static_library', + 'dependencies': [ + 'command_buffer_common', + ], + 'sources': [ + 'service/cross/buffer_rpc.cc', + 'service/cross/buffer_rpc.h', + 'service/cross/cmd_buffer_engine.cc', + 'service/cross/cmd_buffer_engine.h', + 'service/cross/cmd_parser.cc', + 'service/cross/cmd_parser.h', + 'service/cross/effect_utils.cc', + 'service/cross/effect_utils.h', + 'service/cross/gapi_decoder.cc', + 'service/cross/gapi_decoder.h', + 'service/cross/mocks.h', + 'service/cross/precompile.cc', + 'service/cross/precompile.h', + 'service/cross/resource.cc', + 'service/cross/resource.h', + 'service/cross/texture_utils.cc', + 'service/cross/texture_utils.h', + ], + 'conditions': [ + ['OS == "win"', + { + 'sources': [ + 'service/win/d3d9/d3d9_utils.h', + 'service/win/d3d9/effect_d3d9.cc', + 'service/win/d3d9/effect_d3d9.h', + 'service/win/d3d9/gapi_d3d9.cc', + 'service/win/d3d9/gapi_d3d9.h', + 'service/win/d3d9/geometry_d3d9.cc', + 'service/win/d3d9/geometry_d3d9.h', + 'service/win/d3d9/render_surface_d3d9.cc', + 'service/win/d3d9/render_surface_d3d9.h', + 'service/win/d3d9/sampler_d3d9.cc', + 'service/win/d3d9/sampler_d3d9.h', + 'service/win/d3d9/states_d3d9.cc', + 'service/win/d3d9/texture_d3d9.cc', + 'service/win/d3d9/texture_d3d9.h', + ], # 'sources' + 'direct_dependent_settings': { + 'include_dirs': [ + '$(DXSDK_DIR)/Include', + ], + }, # 'direct_dependent_settings' + }, + ], + ['OS == "mac" or OS == "linux"', + { + 'sources': [ + 'service/cross/gl/effect_gl.cc', + 'service/cross/gl/effect_gl.h', + 'service/cross/gl/gapi_gl.cc', + 'service/cross/gl/gapi_gl.h', + 'service/cross/gl/geometry_gl.cc', + 'service/cross/gl/geometry_gl.h', + 'service/cross/gl/gl_utils.h', + 'service/cross/gl/sampler_gl.cc', + 'service/cross/gl/sampler_gl.h', + 'service/cross/gl/states_gl.cc', + 'service/cross/gl/texture_gl.cc', + 'service/cross/gl/texture_gl.h', + ], # 'sources' + }, + ], + ['OS == "linux"', + { + 'sources': [ + 'service/linux/x_utils.cc', + 'service/linux/x_utils.h', + ], + }, + ], + ], # 'conditions' + }, + ], +} |