OLD | NEW |
| (Empty) |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 { | |
6 'targets': [ | |
7 { | |
8 # Library emulates GLES2 using command_buffers. | |
9 'target_name': 'gles2_implementation', | |
10 'type': '<(component)', | |
11 'dependencies': [ | |
12 '../base/base.gyp:base', | |
13 '../ui/gfx/gl/gl.gyp:gl', | |
14 'command_buffer/command_buffer.gyp:gles2_utils', | |
15 'gles2_cmd_helper', | |
16 ], | |
17 'all_dependent_settings': { | |
18 'include_dirs': [ | |
19 # For GLES2/gl2.h | |
20 '<(DEPTH)/third_party/khronos', | |
21 ], | |
22 }, | |
23 'defines': [ | |
24 'GLES2_IMPL_IMPLEMENTATION', | |
25 ], | |
26 'sources': [ | |
27 '<@(gles2_implementation_source_files)', | |
28 ], | |
29 }, | |
30 { | |
31 # Library emulates GLES2 using command_buffers. | |
32 'target_name': 'gles2_implementation_client_side_arrays', | |
33 'type': '<(component)', | |
34 'defines': [ | |
35 'GLES2_IMPL_IMPLEMENTATION', | |
36 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1', | |
37 ], | |
38 'dependencies': [ | |
39 '../base/base.gyp:base', | |
40 '../ui/gfx/gl/gl.gyp:gl', | |
41 'command_buffer/command_buffer.gyp:gles2_utils', | |
42 'gles2_cmd_helper', | |
43 ], | |
44 'all_dependent_settings': { | |
45 'include_dirs': [ | |
46 # For GLES2/gl2.h | |
47 '<(DEPTH)/third_party/khronos', | |
48 ], | |
49 }, | |
50 'sources': [ | |
51 '<@(gles2_implementation_source_files)', | |
52 ], | |
53 }, | |
54 { | |
55 # Library emulates GLES2 using command_buffers. | |
56 'target_name': 'gles2_implementation_client_side_arrays_no_check', | |
57 'type': '<(component)', | |
58 'defines': [ | |
59 'GLES2_IMPL_IMPLEMENTATION', | |
60 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1', | |
61 'GLES2_CONFORMANCE_TESTS=1', | |
62 ], | |
63 'dependencies': [ | |
64 '../base/base.gyp:base', | |
65 'command_buffer/command_buffer.gyp:gles2_utils', | |
66 'gles2_cmd_helper', | |
67 ], | |
68 'all_dependent_settings': { | |
69 'include_dirs': [ | |
70 # For GLES2/gl2.h | |
71 '<(DEPTH)/third_party/khronos', | |
72 ], | |
73 }, | |
74 'sources': [ | |
75 '<@(gles2_implementation_source_files)', | |
76 ], | |
77 }, | |
78 { | |
79 # Stub to expose gles2_implemenation in C instead of C++. | |
80 # so GLES2 C programs can work with no changes. | |
81 'target_name': 'gles2_c_lib', | |
82 'type': '<(component)', | |
83 'dependencies': [ | |
84 '../base/base.gyp:base', | |
85 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | |
86 'command_buffer/command_buffer.gyp:gles2_utils', | |
87 'gles2_implementation', | |
88 ], | |
89 'defines': [ | |
90 'GLES2_C_LIB_IMPLEMENTATION', | |
91 ], | |
92 'sources': [ | |
93 '<@(gles2_c_lib_source_files)', | |
94 ], | |
95 }, | |
96 { | |
97 # Same as gles2_c_lib except with no parameter checking. Required for | |
98 # OpenGL ES 2.0 conformance tests. | |
99 'target_name': 'gles2_c_lib_nocheck', | |
100 'type': '<(component)', | |
101 'defines': [ | |
102 'GLES2_C_LIB_IMPLEMENTATION', | |
103 'GLES2_CONFORMANCE_TESTS=1', | |
104 ], | |
105 'dependencies': [ | |
106 '../base/base.gyp:base', | |
107 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | |
108 'command_buffer/command_buffer.gyp:gles2_utils', | |
109 'gles2_implementation_client_side_arrays_no_check', | |
110 ], | |
111 'sources': [ | |
112 '<@(gles2_c_lib_source_files)', | |
113 ], | |
114 }, | |
115 { | |
116 'target_name': 'gpu_unittests', | |
117 'type': 'executable', | |
118 'dependencies': [ | |
119 '../base/base.gyp:base', | |
120 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | |
121 '../testing/gmock.gyp:gmock', | |
122 '../testing/gmock.gyp:gmock_main', | |
123 '../testing/gtest.gyp:gtest', | |
124 '../third_party/angle/src/build_angle.gyp:translator_glsl', | |
125 '../ui/gfx/gl/gl.gyp:gl', | |
126 '../ui/ui.gyp:ui', | |
127 'command_buffer/command_buffer.gyp:gles2_utils', | |
128 'command_buffer_client', | |
129 'command_buffer_common', | |
130 'command_buffer_service', | |
131 'gpu_unittest_utils', | |
132 'gles2_implementation_client_side_arrays', | |
133 'gles2_cmd_helper', | |
134 ], | |
135 'defines': [ | |
136 'GLES2_C_LIB_IMPLEMENTATION', | |
137 ], | |
138 'sources': [ | |
139 '<@(gles2_c_lib_source_files)', | |
140 'command_buffer/client/client_test_helper.cc', | |
141 'command_buffer/client/client_test_helper.h', | |
142 'command_buffer/client/cmd_buffer_helper_test.cc', | |
143 'command_buffer/client/fenced_allocator_test.cc', | |
144 'command_buffer/client/gles2_implementation_unittest.cc', | |
145 'command_buffer/client/mapped_memory_unittest.cc', | |
146 'command_buffer/client/program_info_manager_unittest.cc', | |
147 'command_buffer/client/ring_buffer_test.cc', | |
148 'command_buffer/client/transfer_buffer_unittest.cc', | |
149 'command_buffer/common/bitfield_helpers_test.cc', | |
150 'command_buffer/common/command_buffer_mock.cc', | |
151 'command_buffer/common/command_buffer_mock.h', | |
152 'command_buffer/common/command_buffer_shared_test.cc', | |
153 'command_buffer/common/gles2_cmd_format_test.cc', | |
154 'command_buffer/common/gles2_cmd_format_test_autogen.h', | |
155 'command_buffer/common/gles2_cmd_utils_unittest.cc', | |
156 'command_buffer/common/id_allocator_test.cc', | |
157 'command_buffer/common/trace_event.h', | |
158 'command_buffer/common/unittest_main.cc', | |
159 'command_buffer/service/buffer_manager_unittest.cc', | |
160 'command_buffer/service/cmd_parser_test.cc', | |
161 'command_buffer/service/common_decoder_unittest.cc', | |
162 'command_buffer/service/context_group_unittest.cc', | |
163 'command_buffer/service/feature_info_unittest.cc', | |
164 'command_buffer/service/framebuffer_manager_unittest.cc', | |
165 'command_buffer/service/gles2_cmd_decoder_unittest.cc', | |
166 'command_buffer/service/gles2_cmd_decoder_unittest_1.cc', | |
167 'command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h', | |
168 'command_buffer/service/gles2_cmd_decoder_unittest_2.cc', | |
169 'command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h', | |
170 'command_buffer/service/gles2_cmd_decoder_unittest_3.cc', | |
171 'command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h', | |
172 'command_buffer/service/gles2_cmd_decoder_unittest_base.cc', | |
173 'command_buffer/service/gles2_cmd_decoder_unittest_base.h', | |
174 'command_buffer/service/gpu_scheduler_unittest.cc', | |
175 'command_buffer/service/id_manager_unittest.cc', | |
176 'command_buffer/service/mocks.cc', | |
177 'command_buffer/service/mocks.h', | |
178 'command_buffer/service/program_manager_unittest.cc', | |
179 'command_buffer/service/renderbuffer_manager_unittest.cc', | |
180 'command_buffer/service/shader_manager_unittest.cc', | |
181 'command_buffer/service/shader_translator_unittest.cc', | |
182 'command_buffer/service/stream_texture_mock.cc', | |
183 'command_buffer/service/stream_texture_mock.h', | |
184 'command_buffer/service/stream_texture_manager_mock.cc', | |
185 'command_buffer/service/stream_texture_manager_mock.h', | |
186 'command_buffer/service/test_helper.cc', | |
187 'command_buffer/service/test_helper.h', | |
188 'command_buffer/service/texture_manager_unittest.cc', | |
189 'command_buffer/service/vertex_attrib_manager_unittest.cc', | |
190 ], | |
191 }, | |
192 { | |
193 'target_name': 'gpu_unittest_utils', | |
194 'type': 'static_library', | |
195 'dependencies': [ | |
196 '../testing/gmock.gyp:gmock', | |
197 '../testing/gtest.gyp:gtest', | |
198 '../ui/gfx/gl/gl.gyp:gl', | |
199 ], | |
200 'include_dirs': [ | |
201 '..', | |
202 '<(DEPTH)/third_party/khronos', | |
203 ], | |
204 'sources': [ | |
205 'command_buffer/common/gl_mock.h', | |
206 'command_buffer/common/gl_mock.cc', | |
207 'command_buffer/service/gles2_cmd_decoder_mock.cc', | |
208 'command_buffer/service/gles2_cmd_decoder_mock.cc', | |
209 ], | |
210 }, | |
211 ], | |
212 } | |
OLD | NEW |