1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
7 "cmd_buffer_helper.cc",
20 defines = [ "GPU_IMPLEMENTATION" ]
22 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
23 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
25 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ]
28 "//gpu/command_buffer/common",
32 group("gles2_cmd_helper") {
33 if (is_component_build) {
39 ":gles2_cmd_helper_sources",
44 source_set("gles2_cmd_helper_sources") {
50 "gles2_cmd_helper.cc",
52 "gles2_cmd_helper_autogen.h",
55 defines = [ "GPU_IMPLEMENTATION" ]
57 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
58 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
65 gles2_c_lib_source_files = [
67 "gles2_c_lib_autogen.h",
68 "gles2_c_lib_export.h",
73 gles2_implementation_source_files = [
76 "client_context_state.cc",
77 "client_context_state.h",
78 "client_context_state_autogen.h",
79 "client_context_state_impl_autogen.h",
80 "gles2_impl_export.h",
81 "gles2_implementation.cc",
82 "gles2_implementation.h",
83 "gles2_implementation_autogen.h",
84 "gles2_implementation_impl_autogen.h",
85 "gles2_trace_implementation.cc",
86 "gles2_trace_implementation.h",
87 "gles2_trace_implementation_autogen.h",
88 "gles2_trace_implementation_impl_autogen.h",
91 "program_info_manager.cc",
92 "program_info_manager.h",
97 "vertex_array_object_manager.cc",
98 "vertex_array_object_manager.h",
101 # Provides GLES2 interface, but does not cause any implementation to be linked
102 # in. Useful when a target uses the interface, but permits its users to choose
104 source_set("gles2_interface") {
108 public_configs = [ "//third_party/khronos:khronos_headers" ]
114 source_set("gpu_memory_buffer_manager") {
116 "gpu_memory_buffer_manager.cc",
117 "gpu_memory_buffer_manager.h",
124 # Library emulates GLES2 using command_buffers.
125 component("gles2_implementation") {
126 sources = gles2_implementation_source_files
128 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
129 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
131 defines = [ "GLES2_IMPL_IMPLEMENTATION" ]
132 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ]
138 "//gpu/command_buffer/common",
143 # Library emulates GLES2 using command_buffers.
144 component("gles2_implementation_no_check") {
145 sources = gles2_implementation_source_files
147 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
148 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
151 "GLES2_IMPL_IMPLEMENTATION",
152 "GLES2_CONFORMANCE_TESTS=1",
158 "//gpu/command_buffer/common:gles2_utils",
164 component("gl_in_process_context") {
166 "gl_in_process_context.cc",
167 "gl_in_process_context.h",
168 "gl_in_process_context_export.h",
171 defines = [ "GL_IN_PROCESS_CONTEXT_IMPLEMENTATION" ]
174 ":gles2_implementation",
175 ":gpu_memory_buffer_manager",
177 "//gpu/command_buffer/common:gles2_utils",
179 "//base/third_party/dynamic_annotations",
185 component("gles2_c_lib") {
186 sources = gles2_c_lib_source_files
187 defines = [ "GLES2_C_LIB_IMPLEMENTATION" ]
189 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
190 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
196 "//base/third_party/dynamic_annotations",
197 "//gpu/command_buffer/common",