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_impl_export.h', |
22 'command_buffer/client/gles2_implementation_autogen.h', | 23 'command_buffer/client/gles2_implementation_autogen.h', |
23 'command_buffer/client/gles2_implementation.cc', | 24 'command_buffer/client/gles2_implementation.cc', |
24 'command_buffer/client/gles2_implementation.h', | 25 'command_buffer/client/gles2_implementation.h', |
25 'command_buffer/client/program_info_manager.cc', | 26 'command_buffer/client/program_info_manager.cc', |
26 'command_buffer/client/program_info_manager.h', | 27 'command_buffer/client/program_info_manager.h', |
27 ] | 28 ] |
28 }, | 29 }, |
29 'targets': [ | 30 'includes': [ |
30 { | 31 'gpu_common.gypi', |
31 'target_name': 'command_buffer_common', | 32 ], |
32 'type': 'static_library', | 33 'conditions': [ |
33 'includes': [ | 34 ['component=="static_library" or incremental_chrome_dll==1', { |
34 'command_buffer_common.gypi', | 35 'targets': [ |
35 ], | 36 { |
36 'export_dependent_settings': [ | 37 'target_name': 'gpu', |
37 '../base/base.gyp:base', | 38 'type': 'none', |
| 39 'dependencies': [ |
| 40 'command_buffer_client', |
| 41 'command_buffer_common', |
| 42 'command_buffer_service', |
| 43 'gles2_cmd_helper', |
| 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 'target_name': 'command_buffer_client', |
| 73 'type': 'static_library', |
| 74 'includes': [ |
| 75 'command_buffer_client.gypi', |
| 76 ], |
| 77 'dependencies': [ |
| 78 'command_buffer_common', |
| 79 ], |
| 80 }, |
| 81 { |
| 82 'target_name': 'command_buffer_service', |
| 83 'type': 'static_library', |
| 84 'includes': [ |
| 85 'command_buffer_service.gypi', |
| 86 ], |
| 87 'dependencies': [ |
| 88 'command_buffer_common', |
| 89 ], |
| 90 }, |
| 91 { |
| 92 'target_name': 'gpu_ipc', |
| 93 'type': 'static_library', |
| 94 'includes': [ |
| 95 'gpu_ipc.gypi', |
| 96 ], |
| 97 'dependencies': [ |
| 98 'command_buffer_common', |
| 99 ], |
| 100 }, |
38 ], | 101 ], |
39 }, | 102 }, |
40 { | 103 { # component != static_library |
41 # Library helps make GLES2 command buffers. | 104 'targets': [ |
42 'target_name': 'gles2_cmd_helper', | 105 { |
43 'type': 'static_library', | 106 'target_name': 'gpu', |
44 'includes': [ | 107 'type': 'shared_library', |
45 'gles2_cmd_helper.gypi', | 108 'includes': [ |
| 109 'command_buffer_client.gypi', |
| 110 'command_buffer_common.gypi', |
| 111 'command_buffer_service.gypi', |
| 112 'gles2_cmd_helper.gypi', |
| 113 'gpu_ipc.gypi', |
| 114 ], |
| 115 'defines': [ |
| 116 'GPU_IMPLEMENTATION', |
| 117 ], |
| 118 'sources': [ |
| 119 'gpu_export.h', |
| 120 ], |
| 121 }, |
| 122 { |
| 123 'target_name': 'command_buffer_common', |
| 124 'type': 'none', |
| 125 'dependencies': [ |
| 126 'gpu', |
| 127 ], |
| 128 }, |
| 129 { |
| 130 # Library helps make GLES2 command buffers. |
| 131 'target_name': 'gles2_cmd_helper', |
| 132 'type': 'none', |
| 133 'dependencies': [ |
| 134 'gpu', |
| 135 ], |
| 136 }, |
| 137 { |
| 138 'target_name': 'command_buffer_client', |
| 139 'type': 'none', |
| 140 'dependencies': [ |
| 141 'gpu', |
| 142 ], |
| 143 }, |
| 144 { |
| 145 'target_name': 'command_buffer_service', |
| 146 'type': 'none', |
| 147 'dependencies': [ |
| 148 'gpu', |
| 149 ], |
| 150 }, |
| 151 { |
| 152 'target_name': 'gpu_ipc', |
| 153 'type': 'none', |
| 154 'dependencies': [ |
| 155 'gpu', |
| 156 ], |
| 157 }, |
46 ], | 158 ], |
47 'dependencies': [ | 159 }], |
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', | |
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', | |
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 | |
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', | |
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 ], | 160 ], |
263 } | 161 } |
OLD | NEW |