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 source_set("client") { |
6 sources = [ | 6 sources = [ |
7 "cmd_buffer_helper.cc", | 7 "cmd_buffer_helper.cc", |
8 "cmd_buffer_helper.h", | 8 "cmd_buffer_helper.h", |
9 "fenced_allocator.cc", | 9 "fenced_allocator.cc", |
10 "fenced_allocator.h", | 10 "fenced_allocator.h", |
11 "gpu_control.h", | 11 "gpu_control.h", |
12 "mapped_memory.cc", | 12 "mapped_memory.cc", |
13 "mapped_memory.h", | 13 "mapped_memory.h", |
14 "ring_buffer.cc", | 14 "ring_buffer.cc", |
15 "ring_buffer.h", | 15 "ring_buffer.h", |
16 "transfer_buffer.cc", | 16 "transfer_buffer.cc", |
17 "transfer_buffer.h", | 17 "transfer_buffer.h", |
18 ] | 18 ] |
19 | 19 |
| 20 defines = [ "GPU_IMPLEMENTATION" ] |
| 21 |
20 if (is_win) { | 22 if (is_win) { |
21 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 23 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
22 cflags = [ "/wd4267" ] # size_t to int truncation. | 24 cflags = [ "/wd4267" ] # size_t to int truncation. |
23 } | 25 } |
24 | 26 |
25 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] | 27 all_dependent_configs = [ "//third_party/khronos:khronos_headers" ] |
26 | 28 |
27 deps = [ | 29 deps = [ |
28 "//gpu/command_buffer/common", | 30 "//gpu/command_buffer/common", |
29 ] | 31 ] |
30 } | 32 } |
31 | 33 |
32 source_set("gles2_cmd_helper") { | 34 source_set("gles2_cmd_helper") { |
33 sources = [ | 35 sources = [ |
34 "gles2_cmd_helper.cc", | 36 "gles2_cmd_helper.cc", |
35 "gles2_cmd_helper.h", | 37 "gles2_cmd_helper.h", |
36 "gles2_cmd_helper_autogen.h", | 38 "gles2_cmd_helper_autogen.h", |
37 ] | 39 ] |
38 | 40 |
| 41 defines = [ "GLES2_IMPL_IMPLEMENTATION" ] |
| 42 |
39 if (is_win) { | 43 if (is_win) { |
40 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 44 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
41 cflags = [ "/wd4267" ] # size_t to int truncation. | 45 cflags = [ "/wd4267" ] # size_t to int truncation. |
42 } | 46 } |
43 | 47 |
44 deps = [ ":client" ] | 48 deps = [ ":client" ] |
45 } | 49 } |
46 | 50 |
47 gles2_c_lib_source_files = [ | 51 gles2_c_lib_source_files = [ |
48 "gles2_c_lib.cc", | 52 "gles2_c_lib.cc", |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 } | 160 } |
157 | 161 |
158 deps = [ | 162 deps = [ |
159 ":client", | 163 ":client", |
160 "//base", | 164 "//base", |
161 "//base/third_party/dynamic_annotations", | 165 "//base/third_party/dynamic_annotations", |
162 "//gpu/command_buffer/common", | 166 "//gpu/command_buffer/common", |
163 ] | 167 ] |
164 } | 168 } |
165 | 169 |
OLD | NEW |