OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 # These are defined here because we need to build this library twice. Once | 8 # These are defined here because we need to build this library twice. Once |
9 # with extra parameter checking. Once with no parameter checking to be 100% | 9 # with extra parameter checking. Once with no parameter checking to be 100% |
10 # OpenGL ES 2.0 compliant for the conformance tests. | 10 # OpenGL ES 2.0 compliant for the conformance tests. |
(...skipping 12 matching lines...) Expand all Loading... |
23 'command_buffer/client/gles2_implementation.cc', | 23 'command_buffer/client/gles2_implementation.cc', |
24 'command_buffer/client/gles2_implementation.h', | 24 'command_buffer/client/gles2_implementation.h', |
25 'command_buffer/client/program_info_manager.cc', | 25 'command_buffer/client/program_info_manager.cc', |
26 'command_buffer/client/program_info_manager.h', | 26 'command_buffer/client/program_info_manager.h', |
27 ] | 27 ] |
28 }, | 28 }, |
29 'targets': [ | 29 'targets': [ |
30 { | 30 { |
31 'target_name': 'command_buffer_common', | 31 'target_name': 'command_buffer_common', |
32 'type': 'static_library', | 32 'type': 'static_library', |
33 'include_dirs': [ | 33 'includes': [ |
34 '<(DEPTH)/third_party/khronos', | 34 'command_buffer_common.gypi', |
35 ], | |
36 'all_dependent_settings': { | |
37 'include_dirs': [ | |
38 '<(DEPTH)/third_party/khronos', | |
39 ], | |
40 }, | |
41 'dependencies': [ | |
42 '../base/base.gyp:base', | |
43 'command_buffer/command_buffer.gyp:gles2_utils', | |
44 ], | 35 ], |
45 'export_dependent_settings': [ | 36 'export_dependent_settings': [ |
46 '../base/base.gyp:base', | 37 '../base/base.gyp:base', |
47 ], | 38 ], |
48 'sources': [ | |
49 'command_buffer/common/bitfield_helpers.h', | |
50 'command_buffer/common/buffer.h', | |
51 'command_buffer/common/cmd_buffer_common.h', | |
52 'command_buffer/common/cmd_buffer_common.cc', | |
53 'command_buffer/common/command_buffer.h', | |
54 'command_buffer/common/compiler_specific.h', | |
55 'command_buffer/common/constants.h', | |
56 'command_buffer/common/gles2_cmd_ids_autogen.h', | |
57 'command_buffer/common/gles2_cmd_ids.h', | |
58 'command_buffer/common/gles2_cmd_format_autogen.h', | |
59 'command_buffer/common/gles2_cmd_format.cc', | |
60 'command_buffer/common/gles2_cmd_format.h', | |
61 'command_buffer/common/id_allocator.cc', | |
62 'command_buffer/common/id_allocator.h', | |
63 'command_buffer/common/thread_local.h', | |
64 'command_buffer/common/types.h', | |
65 ], | |
66 }, | 39 }, |
67 { | 40 { |
68 # Library helps make GLES2 command buffers. | 41 # Library helps make GLES2 command buffers. |
69 'target_name': 'gles2_cmd_helper', | 42 'target_name': 'gles2_cmd_helper', |
70 'type': 'static_library', | 43 'type': 'static_library', |
| 44 'includes': [ |
| 45 'gles2_cmd_helper.gypi', |
| 46 ], |
71 'dependencies': [ | 47 'dependencies': [ |
72 'command_buffer_client', | 48 'command_buffer_client', |
73 ], | 49 ], |
74 'sources': [ | |
75 'command_buffer/client/gles2_cmd_helper.cc', | |
76 'command_buffer/client/gles2_cmd_helper.h', | |
77 'command_buffer/client/gles2_cmd_helper_autogen.h', | |
78 ], | |
79 }, | 50 }, |
80 { | 51 { |
81 # Library emulates GLES2 using command_buffers. | 52 # Library emulates GLES2 using command_buffers. |
82 'target_name': 'gles2_implementation', | 53 'target_name': 'gles2_implementation', |
83 'type': 'static_library', | 54 'type': 'static_library', |
| 55 'includes': [ |
| 56 'gles2_implementation.gypi', |
| 57 ], |
84 'dependencies': [ | 58 'dependencies': [ |
85 '../base/base.gyp:base', | |
86 '../ui/gfx/gl/gl.gyp:gl', | |
87 'gles2_cmd_helper', | 59 'gles2_cmd_helper', |
88 ], | 60 ], |
89 'all_dependent_settings': { | |
90 'include_dirs': [ | |
91 # For GLES2/gl2.h | |
92 '<(DEPTH)/third_party/khronos', | |
93 ], | |
94 }, | |
95 'sources': [ | |
96 '<@(gles2_implementation_source_files)', | |
97 ], | |
98 }, | 61 }, |
99 { | 62 { |
100 # Library emulates GLES2 using command_buffers. | 63 # Library emulates GLES2 using command_buffers. |
101 'target_name': 'gles2_implementation_client_side_arrays', | 64 'target_name': 'gles2_implementation_client_side_arrays', |
102 'type': 'static_library', | 65 'type': 'static_library', |
103 'defines': [ | 66 'defines': [ |
104 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1', | 67 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1', |
105 ], | 68 ], |
106 'dependencies': [ | 69 'dependencies': [ |
107 '../base/base.gyp:base', | 70 '../base/base.gyp:base', |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 133 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
171 'gles2_implementation_client_side_arrays_no_check', | 134 'gles2_implementation_client_side_arrays_no_check', |
172 ], | 135 ], |
173 'sources': [ | 136 'sources': [ |
174 '<@(gles2_c_lib_source_files)', | 137 '<@(gles2_c_lib_source_files)', |
175 ], | 138 ], |
176 }, | 139 }, |
177 { | 140 { |
178 'target_name': 'command_buffer_client', | 141 'target_name': 'command_buffer_client', |
179 'type': 'static_library', | 142 'type': 'static_library', |
180 'include_dirs': [ | 143 'includes': [ |
181 '..', | 144 'command_buffer_client.gypi', |
182 '<(DEPTH)/third_party/khronos', | |
183 ], | 145 ], |
184 'all_dependent_settings': { | |
185 'include_dirs': [ | |
186 '..', | |
187 '<(DEPTH)/third_party/khronos', | |
188 ], | |
189 }, | |
190 'dependencies': [ | 146 'dependencies': [ |
191 'command_buffer_common', | 147 'command_buffer_common', |
192 ], | 148 ], |
193 'sources': [ | |
194 'command_buffer/client/cmd_buffer_helper.cc', | |
195 'command_buffer/client/cmd_buffer_helper.h', | |
196 'command_buffer/client/fenced_allocator.cc', | |
197 'command_buffer/client/fenced_allocator.h', | |
198 'command_buffer/client/mapped_memory.cc', | |
199 'command_buffer/client/mapped_memory.h', | |
200 'command_buffer/client/ring_buffer.cc', | |
201 'command_buffer/client/ring_buffer.h', | |
202 'command_buffer/client/transfer_buffer.cc', | |
203 'command_buffer/client/transfer_buffer.h', | |
204 ], | |
205 }, | 149 }, |
206 { | 150 { |
207 'target_name': 'command_buffer_service', | 151 'target_name': 'command_buffer_service', |
208 'type': 'static_library', | 152 'type': 'static_library', |
209 'include_dirs': [ | 153 'includes': [ |
210 '..', | 154 'command_buffer_service.gypi', |
211 '<(DEPTH)/third_party/khronos', | |
212 ], | 155 ], |
213 'all_dependent_settings': { | |
214 'include_dirs': [ | |
215 '..', | |
216 '<(DEPTH)/third_party/khronos', | |
217 ], | |
218 }, | |
219 'dependencies': [ | 156 'dependencies': [ |
220 'command_buffer_common', | 157 'command_buffer_common', |
221 '../base/base.gyp:base', | |
222 '../ui/gfx/gl/gl.gyp:gl', | |
223 '../ui/gfx/surface/surface.gyp:surface', | |
224 '../ui/ui.gyp:ui', | |
225 '../third_party/angle/src/build_angle.gyp:translator_glsl', | |
226 ], | |
227 'sources': [ | |
228 'command_buffer/service/buffer_manager.h', | |
229 'command_buffer/service/buffer_manager.cc', | |
230 'command_buffer/service/framebuffer_manager.h', | |
231 'command_buffer/service/framebuffer_manager.cc', | |
232 'command_buffer/service/cmd_buffer_engine.h', | |
233 'command_buffer/service/cmd_parser.cc', | |
234 'command_buffer/service/cmd_parser.h', | |
235 'command_buffer/service/command_buffer_service.cc', | |
236 'command_buffer/service/command_buffer_service.h', | |
237 'command_buffer/service/common_decoder.cc', | |
238 'command_buffer/service/common_decoder.h', | |
239 'command_buffer/service/context_group.h', | |
240 'command_buffer/service/context_group.cc', | |
241 'command_buffer/service/feature_info.h', | |
242 'command_buffer/service/feature_info.cc', | |
243 'command_buffer/service/gles2_cmd_decoder.h', | |
244 'command_buffer/service/gles2_cmd_decoder_autogen.h', | |
245 'command_buffer/service/gles2_cmd_decoder.cc', | |
246 'command_buffer/service/gles2_cmd_validation.h', | |
247 'command_buffer/service/gles2_cmd_validation.cc', | |
248 'command_buffer/service/gles2_cmd_validation_autogen.h', | |
249 'command_buffer/service/gles2_cmd_validation_implementation_autogen.h', | |
250 'command_buffer/service/gl_utils.h', | |
251 'command_buffer/service/gpu_scheduler.h', | |
252 'command_buffer/service/gpu_scheduler.cc', | |
253 'command_buffer/service/gpu_scheduler_mock.h', | |
254 'command_buffer/service/gpu_switches.h', | |
255 'command_buffer/service/gpu_switches.cc', | |
256 'command_buffer/service/id_manager.h', | |
257 'command_buffer/service/id_manager.cc', | |
258 'command_buffer/service/mocks.h', | |
259 'command_buffer/service/program_manager.h', | |
260 'command_buffer/service/program_manager.cc', | |
261 'command_buffer/service/renderbuffer_manager.h', | |
262 'command_buffer/service/renderbuffer_manager.cc', | |
263 'command_buffer/service/shader_manager.h', | |
264 'command_buffer/service/shader_manager.cc', | |
265 'command_buffer/service/shader_translator.h', | |
266 'command_buffer/service/shader_translator.cc', | |
267 'command_buffer/service/stream_texture.h', | |
268 'command_buffer/service/stream_texture_manager.h', | |
269 'command_buffer/service/texture_manager.h', | |
270 'command_buffer/service/texture_manager.cc', | |
271 'command_buffer/service/vertex_attrib_manager.h', | |
272 'command_buffer/service/vertex_attrib_manager.cc', | |
273 ], | |
274 'conditions': [ | |
275 ['toolkit_uses_gtk == 1', { | |
276 'dependencies': [ | |
277 '../build/linux/system.gyp:gtk', | |
278 ], | |
279 }], | |
280 ['ui_compositor_image_transport==1', { | |
281 'include_dirs': [ | |
282 '<(DEPTH)/third_party/angle/include', | |
283 ], | |
284 }], | |
285 ], | 158 ], |
286 }, | 159 }, |
287 { | 160 { |
288 'target_name': 'gpu_unittests', | 161 'target_name': 'gpu_unittests', |
289 'type': 'executable', | 162 'type': 'executable', |
290 'dependencies': [ | 163 'dependencies': [ |
291 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 164 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
292 '../testing/gmock.gyp:gmock', | 165 '../testing/gmock.gyp:gmock', |
293 '../testing/gmock.gyp:gmock_main', | 166 '../testing/gmock.gyp:gmock_main', |
294 '../testing/gtest.gyp:gtest', | 167 '../testing/gtest.gyp:gtest', |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 'sources': [ | 244 'sources': [ |
372 'command_buffer/common/gl_mock.h', | 245 'command_buffer/common/gl_mock.h', |
373 'command_buffer/common/gl_mock.cc', | 246 'command_buffer/common/gl_mock.cc', |
374 'command_buffer/service/gles2_cmd_decoder_mock.cc', | 247 'command_buffer/service/gles2_cmd_decoder_mock.cc', |
375 'command_buffer/service/gles2_cmd_decoder_mock.cc', | 248 'command_buffer/service/gles2_cmd_decoder_mock.cc', |
376 ], | 249 ], |
377 }, | 250 }, |
378 { | 251 { |
379 'target_name': 'gpu_ipc', | 252 'target_name': 'gpu_ipc', |
380 'type': 'static_library', | 253 'type': 'static_library', |
| 254 'includes': [ |
| 255 'gpu_ipc.gypi', |
| 256 ], |
381 'dependencies': [ | 257 'dependencies': [ |
382 'command_buffer_client', | 258 'command_buffer_client', |
383 'gles2_c_lib', | |
384 '../base/base.gyp:base', | |
385 ], | |
386 'include_dirs': [ | |
387 '..', | |
388 '<(DEPTH)/third_party/khronos', | |
389 ], | |
390 'sources': [ | |
391 'ipc/gpu_command_buffer_traits.cc', | |
392 'ipc/gpu_command_buffer_traits.h', | |
393 ], | 259 ], |
394 }, | 260 }, |
395 ], | 261 ], |
396 } | 262 } |
OLD | NEW |