OLD | NEW |
(Empty) | |
| 1 # Copyright 2014 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. |
| 4 |
| 5 config("sizet_truncations") { |
| 6 if (is_win) { |
| 7 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 8 cflags = [ "/wd4267" ] # size_t to int truncation. |
| 9 } |
| 10 } |
| 11 |
| 12 gles2_c_lib_source_files = [ |
| 13 "command_buffer/client/gles2_c_lib.cc", |
| 14 "command_buffer/client/gles2_c_lib_autogen.h", |
| 15 "command_buffer/client/gles2_c_lib_export.h", |
| 16 "command_buffer/client/gles2_lib.h", |
| 17 "command_buffer/client/gles2_lib.cc", |
| 18 ] |
| 19 |
| 20 component("gles2_implementation") { |
| 21 sources = [ |
| 22 "command_buffer/client/buffer_tracker.cc", |
| 23 "command_buffer/client/buffer_tracker.h", |
| 24 "command_buffer/client/client_context_state.h", |
| 25 "command_buffer/client/client_context_state.cc", |
| 26 "command_buffer/client/client_context_state_autogen.h", |
| 27 "command_buffer/client/client_context_state_impl_autogen.h", |
| 28 "command_buffer/client/gles2_impl_export.h", |
| 29 "command_buffer/client/gles2_implementation_autogen.h", |
| 30 "command_buffer/client/gles2_implementation.cc", |
| 31 "command_buffer/client/gles2_implementation.h", |
| 32 "command_buffer/client/gles2_implementation_impl_autogen.h", |
| 33 "command_buffer/client/gles2_interface.h", |
| 34 "command_buffer/client/gles2_trace_implementation_autogen.h", |
| 35 "command_buffer/client/gles2_trace_implementation.cc", |
| 36 "command_buffer/client/gles2_trace_implementation.h", |
| 37 "command_buffer/client/gles2_trace_implementation_impl_autogen.h", |
| 38 "command_buffer/client/gpu_memory_buffer_factory.h", |
| 39 "command_buffer/client/gpu_memory_buffer_tracker.cc", |
| 40 "command_buffer/client/gpu_memory_buffer_tracker.h", |
| 41 "command_buffer/client/program_info_manager.cc", |
| 42 "command_buffer/client/program_info_manager.h", |
| 43 "command_buffer/client/query_tracker.cc", |
| 44 "command_buffer/client/query_tracker.h", |
| 45 "command_buffer/client/share_group.cc", |
| 46 "command_buffer/client/share_group.h", |
| 47 "command_buffer/client/vertex_array_object_manager.cc", |
| 48 "command_buffer/client/vertex_array_object_manager.h", |
| 49 ] |
| 50 defines = [ "GLES2_IMPL_IMPLEMENTATION" ] |
| 51 configs += [ ":sizet_truncations" ] |
| 52 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] |
| 53 |
| 54 deps = [ |
| 55 ":gles2_cmd_helper", |
| 56 "//base", |
| 57 "//gpu/command_buffer:gles2_utils", |
| 58 "//ui/gfx/geometry", |
| 59 "//ui/gl", |
| 60 ] |
| 61 } |
| 62 |
| 63 component("gles2_c_lib") { |
| 64 sources = gles2_c_lib_source_files |
| 65 defines = [ "GLES2_C_LIB_IMPLEMENTATION" ] |
| 66 configs += [ ":sizet_truncations" ] |
| 67 |
| 68 deps = [ |
| 69 ":command_buffer_client", |
| 70 ":gles2_implementation", |
| 71 "//base", |
| 72 "//base/third_party/dynamic_annotations", |
| 73 "//gpu/command_buffer:gles2_utils", |
| 74 ] |
| 75 } |
| 76 |
| 77 source_set("gles2_cmd_helper") { |
| 78 sources = [ |
| 79 "command_buffer/client/gles2_cmd_helper.cc", |
| 80 "command_buffer/client/gles2_cmd_helper.h", |
| 81 "command_buffer/client/gles2_cmd_helper_autogen.h", |
| 82 ] |
| 83 |
| 84 configs += [ ":sizet_truncations" ] |
| 85 deps = [ ":command_buffer_client" ] |
| 86 } |
| 87 |
| 88 source_set("command_buffer_client") { |
| 89 sources = [ |
| 90 "command_buffer/client/cmd_buffer_helper.cc", |
| 91 "command_buffer/client/cmd_buffer_helper.h", |
| 92 "command_buffer/client/fenced_allocator.cc", |
| 93 "command_buffer/client/fenced_allocator.h", |
| 94 "command_buffer/client/gpu_control.h", |
| 95 "command_buffer/client/mapped_memory.cc", |
| 96 "command_buffer/client/mapped_memory.h", |
| 97 "command_buffer/client/ring_buffer.cc", |
| 98 "command_buffer/client/ring_buffer.h", |
| 99 "command_buffer/client/transfer_buffer.cc", |
| 100 "command_buffer/client/transfer_buffer.h", |
| 101 ] |
| 102 |
| 103 configs += [ ":sizet_truncations" ] |
| 104 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] |
| 105 |
| 106 deps = [ |
| 107 ":command_buffer_common", |
| 108 ] |
| 109 } |
| 110 |
| 111 source_set("command_buffer_common") { |
| 112 sources = [ |
| 113 "command_buffer/common/bitfield_helpers.h", |
| 114 "command_buffer/common/buffer.cc", |
| 115 "command_buffer/common/buffer.h", |
| 116 "command_buffer/common/capabilities.cc", |
| 117 "command_buffer/common/capabilities.h", |
| 118 "command_buffer/common/cmd_buffer_common.cc", |
| 119 "command_buffer/common/cmd_buffer_common.h", |
| 120 "command_buffer/common/command_buffer.h", |
| 121 "command_buffer/common/constants.h", |
| 122 "command_buffer/common/debug_marker_manager.cc", |
| 123 "command_buffer/common/debug_marker_manager.h", |
| 124 "command_buffer/common/gles2_cmd_format.cc", |
| 125 "command_buffer/common/gles2_cmd_format.h", |
| 126 "command_buffer/common/gles2_cmd_format_autogen.h", |
| 127 "command_buffer/common/gles2_cmd_ids.h", |
| 128 "command_buffer/common/gles2_cmd_ids_autogen.h", |
| 129 "command_buffer/common/id_allocator.cc", |
| 130 "command_buffer/common/id_allocator.h", |
| 131 "command_buffer/common/mailbox.cc", |
| 132 "command_buffer/common/mailbox.h", |
| 133 "command_buffer/common/mailbox_holder.cc", |
| 134 "command_buffer/common/mailbox_holder.h", |
| 135 "command_buffer/common/thread_local.h", |
| 136 "command_buffer/common/time.h", |
| 137 ] |
| 138 |
| 139 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] |
| 140 |
| 141 deps = [ |
| 142 "//base", |
| 143 "//gpu/command_buffer:gles2_utils", |
| 144 ] |
| 145 } |
OLD | NEW |