| OLD | NEW |
| 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 source_set("client") { | 5 # The files here go into the "gpu" component in a component build (with |
| 6 # "command_buffer_client" and "gles2_cmd_helper" just forwarding) and goes into |
| 7 # separate static libraries in non-component build. This needs to match the |
| 8 # GYP build which was likely an attempt to make larger components to help with |
| 9 # loading. |
| 10 group("client") { |
| 11 if (is_component_build) { |
| 12 public_deps = [ |
| 13 "//gpu", |
| 14 ] |
| 15 } else { |
| 16 public_deps = [ |
| 17 ":client_sources", |
| 18 ] |
| 19 } |
| 20 } |
| 21 |
| 22 group("gles2_cmd_helper") { |
| 23 if (is_component_build) { |
| 24 public_deps = [ |
| 25 "//gpu", |
| 26 ] |
| 27 } else { |
| 28 public_deps = [ |
| 29 ":gles2_cmd_helper_sources", |
| 30 ] |
| 31 } |
| 32 } |
| 33 |
| 34 source_set("client_sources") { |
| 35 visibility = [ "//gpu/*" ] |
| 36 |
| 6 sources = [ | 37 sources = [ |
| 7 "cmd_buffer_helper.cc", | 38 "cmd_buffer_helper.cc", |
| 8 "cmd_buffer_helper.h", | 39 "cmd_buffer_helper.h", |
| 9 "fenced_allocator.cc", | 40 "fenced_allocator.cc", |
| 10 "fenced_allocator.h", | 41 "fenced_allocator.h", |
| 11 "gpu_control.h", | 42 "gpu_control.h", |
| 12 "gpu_memory_buffer_manager.cc", | 43 "gpu_memory_buffer_manager.cc", |
| 13 "gpu_memory_buffer_manager.h", | 44 "gpu_memory_buffer_manager.h", |
| 14 "mapped_memory.cc", | 45 "mapped_memory.cc", |
| 15 "mapped_memory.h", | 46 "mapped_memory.h", |
| 16 "ring_buffer.cc", | 47 "ring_buffer.cc", |
| 17 "ring_buffer.h", | 48 "ring_buffer.h", |
| 18 "transfer_buffer.cc", | 49 "transfer_buffer.cc", |
| 19 "transfer_buffer.h", | 50 "transfer_buffer.h", |
| 20 ] | 51 ] |
| 21 | 52 |
| 22 configs += [ | 53 configs += [ |
| 23 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 54 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 24 "//build/config/compiler:no_size_t_to_int_warning", | 55 "//build/config/compiler:no_size_t_to_int_warning", |
| 25 "//gpu:gpu_implementation", | 56 "//gpu:gpu_implementation", |
| 26 ] | 57 ] |
| 27 | 58 |
| 28 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] | 59 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] |
| 29 | 60 |
| 30 deps = [ | 61 deps = [ |
| 31 "//gpu/command_buffer/common", | 62 "//gpu/command_buffer/common:common_sources", |
| 32 ] | 63 ] |
| 33 } | 64 } |
| 34 | 65 |
| 35 group("gles2_cmd_helper") { | |
| 36 if (is_component_build) { | |
| 37 deps = [ | |
| 38 "//gpu", | |
| 39 ] | |
| 40 } else { | |
| 41 deps = [ | |
| 42 ":gles2_cmd_helper_sources", | |
| 43 ] | |
| 44 } | |
| 45 } | |
| 46 | |
| 47 source_set("gles2_cmd_helper_sources") { | 66 source_set("gles2_cmd_helper_sources") { |
| 48 visibility = [ | 67 visibility = [ "//gpu/*" ] |
| 49 ":gles2_cmd_helper", | |
| 50 "//gpu", | |
| 51 ] | |
| 52 sources = [ | 68 sources = [ |
| 53 "gles2_cmd_helper.cc", | 69 "gles2_cmd_helper.cc", |
| 54 "gles2_cmd_helper.h", | 70 "gles2_cmd_helper.h", |
| 55 "gles2_cmd_helper_autogen.h", | 71 "gles2_cmd_helper_autogen.h", |
| 56 ] | 72 ] |
| 57 | 73 |
| 58 configs += [ | 74 configs += [ |
| 59 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 75 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 60 "//build/config/compiler:no_size_t_to_int_warning", | 76 "//build/config/compiler:no_size_t_to_int_warning", |
| 61 "//gpu:gpu_implementation", | 77 "//gpu:gpu_implementation", |
| 62 ] | 78 ] |
| 63 | 79 |
| 64 deps = [ | 80 deps = [ |
| 65 ":client", | 81 ":client_sources", |
| 66 ] | 82 ] |
| 67 } | 83 } |
| 68 | 84 |
| 69 gles2_c_lib_source_files = [ | 85 gles2_c_lib_source_files = [ |
| 70 "gles2_c_lib.cc", | 86 "gles2_c_lib.cc", |
| 71 "gles2_c_lib_autogen.h", | 87 "gles2_c_lib_autogen.h", |
| 72 "gles2_c_lib_export.h", | 88 "gles2_c_lib_export.h", |
| 73 "gles2_lib.cc", | 89 "gles2_lib.cc", |
| 74 "gles2_lib.h", | 90 "gles2_lib.h", |
| 75 ] | 91 ] |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 ] | 219 ] |
| 204 deps = [ | 220 deps = [ |
| 205 ":client", | 221 ":client", |
| 206 ":gles2_implementation_no_check", | 222 ":gles2_implementation_no_check", |
| 207 ":gles2_interface", | 223 ":gles2_interface", |
| 208 "//base", | 224 "//base", |
| 209 "//base/third_party/dynamic_annotations", | 225 "//base/third_party/dynamic_annotations", |
| 210 "//gpu/command_buffer/common", | 226 "//gpu/command_buffer/common", |
| 211 ] | 227 ] |
| 212 } | 228 } |
| OLD | NEW |