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. |
11 'gles2_c_lib_source_files': [ | 11 'gles2_c_lib_source_files': [ |
12 'command_buffer/client/gles2_c_lib.cc', | 12 'command_buffer/client/gles2_c_lib.cc', |
13 'command_buffer/client/gles2_c_lib_autogen.h', | 13 'command_buffer/client/gles2_c_lib_autogen.h', |
14 'command_buffer/client/gles2_c_lib_export.h', | 14 'command_buffer/client/gles2_c_lib_export.h', |
15 'command_buffer/client/gles2_lib.h', | 15 'command_buffer/client/gles2_lib.h', |
16 'command_buffer/client/gles2_lib.cc', | 16 'command_buffer/client/gles2_lib.cc', |
17 ], | 17 ], |
18 # These are defined here because we need to build this library twice. Once | 18 # These are defined here because we need to build this library twice. Once |
19 # with without support for client side arrays and once with for pepper and | 19 # with without support for client side arrays and once with for pepper and |
20 # the OpenGL ES 2.0 compliant for the conformance tests. | 20 # the OpenGL ES 2.0 compliant for the conformance tests. |
21 'gles2_implementation_source_files': [ | 21 'gles2_implementation_source_files': [ |
22 'command_buffer/client/gles2_implementation_autogen.h', | 22 'command_buffer/client/gles2_implementation_autogen.h', |
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 'includes': [ |
30 { | 30 'gpu_common.gypi', |
31 'target_name': 'command_buffer_common', | 31 ], |
32 'type': 'static_library', | 32 'conditions': [ |
33 'includes': [ | 33 ['component=="static_library" or incremental_chrome_dll==1', { |
34 'command_buffer_common.gypi', | 34 'targets': [ |
35 ], | 35 { |
36 'export_dependent_settings': [ | 36 'target_name': 'gpu', |
37 '../base/base.gyp:base', | 37 'type': 'none', |
38 'dependencies': [ | |
39 'command_buffer_client', | |
40 'command_buffer_common', | |
41 'command_buffer_service', | |
42 'gles2_cmd_helper', | |
43 'gles2_implementation', | |
44 'gpu_ipc', | |
45 ], | |
46 'sources': [ | |
47 'gpu_export.h', | |
48 ], | |
49 }, | |
50 { | |
51 'target_name': 'command_buffer_common', | |
52 'type': 'static_library', | |
53 'includes': [ | |
54 'command_buffer_common.gypi', | |
55 ], | |
56 'export_dependent_settings': [ | |
57 '../base/base.gyp:base', | |
58 ], | |
59 }, | |
60 { | |
61 # Library helps make GLES2 command buffers. | |
62 'target_name': 'gles2_cmd_helper', | |
63 'type': 'static_library', | |
64 'includes': [ | |
65 'gles2_cmd_helper.gypi', | |
66 ], | |
67 'dependencies': [ | |
68 'command_buffer_client', | |
69 ], | |
70 }, | |
71 { | |
72 # Library emulates GLES2 using command_buffers. | |
73 'target_name': 'gles2_implementation', | |
74 'type': 'static_library', | |
75 'includes': [ | |
76 'gles2_implementation.gypi', | |
77 ], | |
78 'dependencies': [ | |
79 'gles2_cmd_helper', | |
80 ], | |
81 }, | |
82 { | |
83 'target_name': 'command_buffer_client', | |
84 'type': 'static_library', | |
85 'includes': [ | |
86 'command_buffer_client.gypi', | |
87 ], | |
88 'dependencies': [ | |
89 'command_buffer_common', | |
90 ], | |
91 }, | |
92 { | |
93 'target_name': 'command_buffer_service', | |
94 'type': 'static_library', | |
95 'includes': [ | |
96 'command_buffer_service.gypi', | |
97 ], | |
98 'dependencies': [ | |
99 'command_buffer_common', | |
100 ], | |
101 }, | |
102 { | |
103 'target_name': 'gpu_ipc', | |
104 'type': 'static_library', | |
105 'includes': [ | |
106 'gpu_ipc.gypi', | |
107 ], | |
108 'dependencies': [ | |
109 'command_buffer_common', | |
110 ], | |
111 }, | |
38 ], | 112 ], |
39 }, | 113 }, |
40 { | 114 { # component != static_library |
41 # Library helps make GLES2 command buffers. | 115 'targets': [ |
42 'target_name': 'gles2_cmd_helper', | 116 { |
43 'type': 'static_library', | 117 'target_name': 'gpu', |
44 'includes': [ | 118 'type': 'shared_library', |
45 'gles2_cmd_helper.gypi', | 119 'includes': [ |
120 'command_buffer_client.gypi', | |
121 'command_buffer_common.gypi', | |
122 'command_buffer_service.gypi', | |
123 'gles2_cmd_helper.gypi', | |
124 'gles2_implementation.gypi', | |
125 'gpu_ipc.gypi', | |
126 ], | |
127 'defines': [ | |
128 'GPU_IMPLEMENTATION', | |
129 ], | |
130 'sources': [ | |
131 'gpu_export.h', | |
132 ], | |
133 }, | |
134 { | |
135 'target_name': 'command_buffer_common', | |
136 'type': 'none', | |
137 'dependencies': [ | |
138 'gpu', | |
139 ], | |
140 }, | |
141 { | |
142 # Library helps make GLES2 command buffers. | |
143 'target_name': 'gles2_cmd_helper', | |
144 'type': 'none', | |
145 'dependencies': [ | |
146 'gpu', | |
147 ], | |
148 }, | |
149 { | |
150 # Library emulates GLES2 using command_buffers. | |
151 'target_name': 'gles2_implementation', | |
152 'type': 'none', | |
153 'dependencies': [ | |
154 'gpu', | |
155 ], | |
156 }, | |
157 { | |
158 'target_name': 'command_buffer_client', | |
159 'type': 'none', | |
160 'dependencies': [ | |
161 'gpu', | |
162 ], | |
163 }, | |
164 { | |
165 'target_name': 'command_buffer_service', | |
166 'type': 'none', | |
167 'dependencies': [ | |
168 'gpu', | |
169 ], | |
170 }, | |
171 { | |
172 'target_name': 'gpu_ipc', | |
173 'type': 'none', | |
174 'dependencies': [ | |
175 'gpu', | |
176 ], | |
177 }, | |
46 ], | 178 ], |
47 'dependencies': [ | 179 }], |
48 'command_buffer_client', | |
49 ], | |
50 }, | |
51 { | |
52 # Library emulates GLES2 using command_buffers. | |
53 'target_name': 'gles2_implementation', | |
54 'type': 'static_library', | |
55 'includes': [ | |
56 'gles2_implementation.gypi', | |
57 ], | |
58 'dependencies': [ | |
59 'gles2_cmd_helper', | |
60 ], | |
61 }, | |
62 { | |
63 # Library emulates GLES2 using command_buffers. | |
64 'target_name': 'gles2_implementation_client_side_arrays', | |
apatrick_chromium
2012/02/29 20:08:12
I think pepper plugins and native client depend on
| |
65 'type': 'static_library', | |
66 'defines': [ | |
67 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1', | |
68 ], | |
69 'dependencies': [ | |
70 '../base/base.gyp:base', | |
71 'gles2_cmd_helper', | |
72 ], | |
73 'all_dependent_settings': { | |
74 'include_dirs': [ | |
75 # For GLES2/gl2.h | |
76 '<(DEPTH)/third_party/khronos', | |
77 ], | |
78 }, | |
79 'sources': [ | |
80 '<@(gles2_implementation_source_files)', | |
81 ], | |
82 }, | |
83 { | |
84 # Library emulates GLES2 using command_buffers. | |
85 'target_name': 'gles2_implementation_client_side_arrays_no_check', | |
apatrick_chromium
2012/02/29 20:08:12
... or this one. gman?
| |
86 'type': 'static_library', | |
87 'defines': [ | |
88 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1', | |
89 'GLES2_CONFORMANCE_TESTS=1', | |
90 ], | |
91 'dependencies': [ | |
92 '../base/base.gyp:base', | |
93 'gles2_cmd_helper', | |
94 ], | |
95 'all_dependent_settings': { | |
96 'include_dirs': [ | |
97 # For GLES2/gl2.h | |
98 '<(DEPTH)/third_party/khronos', | |
99 ], | |
100 }, | |
101 'sources': [ | |
102 '<@(gles2_implementation_source_files)', | |
103 ], | |
104 }, | |
105 { | |
106 # Stub to expose gles2_implemenation in C instead of C++. | |
107 # so GLES2 C programs can work with no changes. | |
108 'target_name': 'gles2_c_lib', | |
109 'type': '<(component)', | |
110 'dependencies': [ | |
111 '../base/base.gyp:base', | |
112 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', | |
113 'gles2_implementation', | |
114 ], | |
115 'defines': [ | |
116 'GLES2_C_LIB_IMPLEMENTATION', | |
117 ], | |
118 'sources': [ | |
119 '<@(gles2_c_lib_source_files)', | |
120 ], | |
121 }, | |
122 { | |
123 # Same as gles2_c_lib except with no parameter checking. Required for | |
apatrick_chromium
2012/02/29 20:08:12
Have you checked the conformance tests still work?
rvargas (doing something else)
2012/02/29 22:22:39
gles2_conform_support.exe runs and doesn't do anyt
| |
124 # OpenGL ES 2.0 conformance tests. | |
125 'target_name': 'gles2_c_lib_nocheck', | |
126 'type': '<(component)', | |
127 'defines': [ | |
128 'GLES2_C_LIB_IMPLEMENTATION', | |
129 'GLES2_CONFORMANCE_TESTS=1', | |
130 ], | |
131 'dependencies': [ | |
132 '../base/base.gyp:base', | |
133 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', | |
134 'gles2_implementation_client_side_arrays_no_check', | |
135 ], | |
136 'sources': [ | |
137 '<@(gles2_c_lib_source_files)', | |
138 ], | |
139 }, | |
140 { | |
141 'target_name': 'command_buffer_client', | |
142 'type': 'static_library', | |
143 'includes': [ | |
144 'command_buffer_client.gypi', | |
145 ], | |
146 'dependencies': [ | |
147 'command_buffer_common', | |
148 ], | |
149 }, | |
150 { | |
151 'target_name': 'command_buffer_service', | |
152 'type': 'static_library', | |
153 'includes': [ | |
154 'command_buffer_service.gypi', | |
155 ], | |
156 'dependencies': [ | |
157 'command_buffer_common', | |
158 ], | |
159 }, | |
160 { | |
161 'target_name': 'gpu_unittests', | |
apatrick_chromium
2012/02/29 20:08:12
Where did the unit test target go? I can't find it
rvargas (doing something else)
2012/02/29 22:22:39
Everything removed from this file went into gpu_co
| |
162 'type': 'executable', | |
163 'dependencies': [ | |
164 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', | |
165 '../testing/gmock.gyp:gmock', | |
166 '../testing/gmock.gyp:gmock_main', | |
167 '../testing/gtest.gyp:gtest', | |
168 '../ui/gfx/gl/gl.gyp:gl', | |
169 'command_buffer_client', | |
170 'command_buffer_common', | |
171 'command_buffer_service', | |
172 'gpu_unittest_utils', | |
173 'gles2_implementation_client_side_arrays', | |
174 'gles2_cmd_helper', | |
175 ], | |
176 'defines': [ | |
177 'GLES2_C_LIB_IMPLEMENTATION', | |
178 ], | |
179 'sources': [ | |
180 '<@(gles2_c_lib_source_files)', | |
181 'command_buffer/client/client_test_helper.cc', | |
182 'command_buffer/client/client_test_helper.h', | |
183 'command_buffer/client/cmd_buffer_helper_test.cc', | |
184 'command_buffer/client/fenced_allocator_test.cc', | |
185 'command_buffer/client/gles2_implementation_unittest.cc', | |
186 'command_buffer/client/mapped_memory_unittest.cc', | |
187 'command_buffer/client/program_info_manager_unittest.cc', | |
188 'command_buffer/client/ring_buffer_test.cc', | |
189 'command_buffer/client/transfer_buffer_unittest.cc', | |
190 'command_buffer/common/bitfield_helpers_test.cc', | |
191 'command_buffer/common/command_buffer_mock.cc', | |
192 'command_buffer/common/command_buffer_mock.h', | |
193 'command_buffer/common/command_buffer_shared_test.cc', | |
194 'command_buffer/common/gles2_cmd_format_test.cc', | |
195 'command_buffer/common/gles2_cmd_format_test_autogen.h', | |
196 'command_buffer/common/gles2_cmd_utils_unittest.cc', | |
197 'command_buffer/common/id_allocator_test.cc', | |
198 'command_buffer/common/trace_event.h', | |
199 'command_buffer/common/unittest_main.cc', | |
200 'command_buffer/service/buffer_manager_unittest.cc', | |
201 'command_buffer/service/cmd_parser_test.cc', | |
202 'command_buffer/service/common_decoder_unittest.cc', | |
203 'command_buffer/service/context_group_unittest.cc', | |
204 'command_buffer/service/feature_info_unittest.cc', | |
205 'command_buffer/service/framebuffer_manager_unittest.cc', | |
206 'command_buffer/service/gles2_cmd_decoder_unittest.cc', | |
207 'command_buffer/service/gles2_cmd_decoder_unittest_1.cc', | |
208 'command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h', | |
209 'command_buffer/service/gles2_cmd_decoder_unittest_2.cc', | |
210 'command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h', | |
211 'command_buffer/service/gles2_cmd_decoder_unittest_3.cc', | |
212 'command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h', | |
213 'command_buffer/service/gles2_cmd_decoder_unittest_base.cc', | |
214 'command_buffer/service/gles2_cmd_decoder_unittest_base.h', | |
215 'command_buffer/service/gpu_scheduler_unittest.cc', | |
216 'command_buffer/service/id_manager_unittest.cc', | |
217 'command_buffer/service/mocks.cc', | |
218 'command_buffer/service/mocks.h', | |
219 'command_buffer/service/program_manager_unittest.cc', | |
220 'command_buffer/service/renderbuffer_manager_unittest.cc', | |
221 'command_buffer/service/shader_manager_unittest.cc', | |
222 'command_buffer/service/shader_translator_unittest.cc', | |
223 'command_buffer/service/stream_texture_mock.cc', | |
224 'command_buffer/service/stream_texture_mock.h', | |
225 'command_buffer/service/stream_texture_manager_mock.cc', | |
226 'command_buffer/service/stream_texture_manager_mock.h', | |
227 'command_buffer/service/test_helper.cc', | |
228 'command_buffer/service/test_helper.h', | |
229 'command_buffer/service/texture_manager_unittest.cc', | |
230 'command_buffer/service/vertex_attrib_manager_unittest.cc', | |
231 ], | |
232 }, | |
233 { | |
234 'target_name': 'gpu_unittest_utils', | |
235 'type': 'static_library', | |
236 'dependencies': [ | |
237 '../testing/gmock.gyp:gmock', | |
238 '../testing/gtest.gyp:gtest', | |
239 '../ui/gfx/gl/gl.gyp:gl', | |
240 ], | |
241 'include_dirs': [ | |
242 '..', | |
243 '<(DEPTH)/third_party/khronos', | |
244 ], | |
245 'sources': [ | |
246 'command_buffer/common/gl_mock.h', | |
247 'command_buffer/common/gl_mock.cc', | |
248 'command_buffer/service/gles2_cmd_decoder_mock.cc', | |
249 'command_buffer/service/gles2_cmd_decoder_mock.cc', | |
250 ], | |
251 }, | |
252 { | |
253 'target_name': 'gpu_ipc', | |
254 'type': 'static_library', | |
255 'includes': [ | |
256 'gpu_ipc.gypi', | |
257 ], | |
258 'dependencies': [ | |
259 'command_buffer_client', | |
260 ], | |
261 }, | |
262 ], | 180 ], |
263 } | 181 } |
OLD | NEW |