Skip to content

Commit

Permalink
GPU: Split some of the GPU projects to individual gypi files.
Browse files Browse the repository at this point in the history
There should be no change in behavior.

BUG=114261
TEST=none
Review URL: https://chromiumcodereview.appspot.com/9359055

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122413 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
rvargas@google.com committed Feb 17, 2012
1 parent 031cbde commit bed9927
Show file tree
Hide file tree
Showing 7 changed files with 211 additions and 149 deletions.
28 changes: 28 additions & 0 deletions gpu/command_buffer_client.gypi
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Copyright (c) 2012 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.

{
'include_dirs': [
'..',
'<(DEPTH)/third_party/khronos',
],
'all_dependent_settings': {
'include_dirs': [
'..',
'<(DEPTH)/third_party/khronos',
],
},
'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',
'command_buffer/client/transfer_buffer.cc',
'command_buffer/client/transfer_buffer.h',
],
}
36 changes: 36 additions & 0 deletions gpu/command_buffer_common.gypi
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Copyright (c) 2012 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.

{
'include_dirs': [
'<(DEPTH)/third_party/khronos',
],
'all_dependent_settings': {
'include_dirs': [
'<(DEPTH)/third_party/khronos',
],
},
'dependencies': [
'../base/base.gyp:base',
'command_buffer/command_buffer.gyp:gles2_utils',
],
'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/compiler_specific.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/id_allocator.cc',
'command_buffer/common/id_allocator.h',
'command_buffer/common/thread_local.h',
'command_buffer/common/types.h',
],
}
82 changes: 82 additions & 0 deletions gpu/command_buffer_service.gypi
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Copyright (c) 2012 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.

{
'include_dirs': [
'..',
'<(DEPTH)/third_party/khronos',
],
'all_dependent_settings': {
'include_dirs': [
'..',
'<(DEPTH)/third_party/khronos',
],
},
'dependencies': [
'../base/base.gyp:base',
'../ui/gfx/gl/gl.gyp:gl',
'../ui/gfx/surface/surface.gyp:surface',
'../ui/ui.gyp:ui',
'../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/feature_info.h',
'command_buffer/service/feature_info.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_scheduler.h',
'command_buffer/service/gpu_scheduler.cc',
'command_buffer/service/gpu_scheduler_mock.h',
'command_buffer/service/gpu_switches.h',
'command_buffer/service/gpu_switches.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/shader_translator.h',
'command_buffer/service/shader_translator.cc',
'command_buffer/service/stream_texture.h',
'command_buffer/service/stream_texture_manager.h',
'command_buffer/service/texture_manager.h',
'command_buffer/service/texture_manager.cc',
'command_buffer/service/vertex_attrib_manager.h',
'command_buffer/service/vertex_attrib_manager.cc',
],
'conditions': [
['toolkit_uses_gtk == 1', {
'dependencies': [
'../build/linux/system.gyp:gtk',
],
}],
['ui_compositor_image_transport==1', {
'include_dirs': [
'<(DEPTH)/third_party/angle/include',
],
}],
],
}
12 changes: 12 additions & 0 deletions gpu/gles2_cmd_helper.gypi
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Copyright (c) 2012 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.

{
# Library helps make GLES2 command buffers.
'sources': [
'command_buffer/client/gles2_cmd_helper.cc',
'command_buffer/client/gles2_cmd_helper.h',
'command_buffer/client/gles2_cmd_helper_autogen.h',
],
}
20 changes: 20 additions & 0 deletions gpu/gles2_implementation.gypi
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright (c) 2012 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.

{
# Library emulates GLES2 using command_buffers.
'dependencies': [
'../base/base.gyp:base',
'../ui/gfx/gl/gl.gyp:gl',
],
'all_dependent_settings': {
'include_dirs': [
# For GLES2/gl2.h
'<(DEPTH)/third_party/khronos',
],
},
'sources': [
'<@(gles2_implementation_source_files)',
],
}
Loading

0 comments on commit bed9927

Please sign in to comment.