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. | |
Dirk Pranke
2015/04/06 16:54:07
Maybe explain *why* we need to separate things lik
| |
8 group("client") { | |
9 if (is_component_build) { | |
10 public_deps = [ | |
11 "//gpu", | |
12 ] | |
13 } else { | |
14 public_deps = [ | |
15 ":client_sources", | |
16 ] | |
17 } | |
18 } | |
19 | |
20 group("gles2_cmd_helper") { | |
21 if (is_component_build) { | |
22 public_deps = [ | |
23 "//gpu", | |
24 ] | |
25 } else { | |
26 public_deps = [ | |
27 ":gles2_cmd_helper_sources", | |
28 ] | |
29 } | |
30 } | |
31 | |
32 source_set("client_sources") { | |
33 visibility = [ "//gpu/*" ] | |
34 | |
6 sources = [ | 35 sources = [ |
7 "cmd_buffer_helper.cc", | 36 "cmd_buffer_helper.cc", |
8 "cmd_buffer_helper.h", | 37 "cmd_buffer_helper.h", |
9 "fenced_allocator.cc", | 38 "fenced_allocator.cc", |
10 "fenced_allocator.h", | 39 "fenced_allocator.h", |
11 "gpu_control.h", | 40 "gpu_control.h", |
12 "gpu_memory_buffer_manager.cc", | 41 "gpu_memory_buffer_manager.cc", |
13 "gpu_memory_buffer_manager.h", | 42 "gpu_memory_buffer_manager.h", |
14 "mapped_memory.cc", | 43 "mapped_memory.cc", |
15 "mapped_memory.h", | 44 "mapped_memory.h", |
16 "ring_buffer.cc", | 45 "ring_buffer.cc", |
17 "ring_buffer.h", | 46 "ring_buffer.h", |
18 "transfer_buffer.cc", | 47 "transfer_buffer.cc", |
19 "transfer_buffer.h", | 48 "transfer_buffer.h", |
20 ] | 49 ] |
21 | 50 |
22 configs += [ | 51 configs += [ |
23 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 52 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
24 "//build/config/compiler:no_size_t_to_int_warning", | 53 "//build/config/compiler:no_size_t_to_int_warning", |
25 "//gpu:gpu_implementation", | 54 "//gpu:gpu_implementation", |
26 ] | 55 ] |
27 | 56 |
28 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] | 57 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] |
29 | 58 |
30 deps = [ | 59 deps = [ |
31 "//gpu/command_buffer/common", | 60 "//gpu/command_buffer/common:common_sources", |
32 ] | 61 ] |
33 } | 62 } |
34 | 63 |
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") { | 64 source_set("gles2_cmd_helper_sources") { |
48 visibility = [ | 65 visibility = [ "//gpu/*" ] |
49 ":gles2_cmd_helper", | |
50 "//gpu", | |
51 ] | |
52 sources = [ | 66 sources = [ |
53 "gles2_cmd_helper.cc", | 67 "gles2_cmd_helper.cc", |
54 "gles2_cmd_helper.h", | 68 "gles2_cmd_helper.h", |
55 "gles2_cmd_helper_autogen.h", | 69 "gles2_cmd_helper_autogen.h", |
56 ] | 70 ] |
57 | 71 |
58 configs += [ | 72 configs += [ |
59 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 73 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
60 "//build/config/compiler:no_size_t_to_int_warning", | 74 "//build/config/compiler:no_size_t_to_int_warning", |
61 "//gpu:gpu_implementation", | 75 "//gpu:gpu_implementation", |
62 ] | 76 ] |
63 | 77 |
64 deps = [ | 78 deps = [ |
65 ":client", | 79 ":client_sources", |
66 ] | 80 ] |
67 } | 81 } |
68 | 82 |
69 gles2_c_lib_source_files = [ | 83 gles2_c_lib_source_files = [ |
70 "gles2_c_lib.cc", | 84 "gles2_c_lib.cc", |
71 "gles2_c_lib_autogen.h", | 85 "gles2_c_lib_autogen.h", |
72 "gles2_c_lib_export.h", | 86 "gles2_c_lib_export.h", |
73 "gles2_lib.cc", | 87 "gles2_lib.cc", |
74 "gles2_lib.h", | 88 "gles2_lib.h", |
75 ] | 89 ] |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
203 ] | 217 ] |
204 deps = [ | 218 deps = [ |
205 ":client", | 219 ":client", |
206 ":gles2_implementation_no_check", | 220 ":gles2_implementation_no_check", |
207 ":gles2_interface", | 221 ":gles2_interface", |
208 "//base", | 222 "//base", |
209 "//base/third_party/dynamic_annotations", | 223 "//base/third_party/dynamic_annotations", |
210 "//gpu/command_buffer/common", | 224 "//gpu/command_buffer/common", |
211 ] | 225 ] |
212 } | 226 } |
OLD | NEW |