# 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' }, ], }