Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(645)

Side by Side Diff: gpu/gpu.gyp

Issue 10796038: Add gpu targets to untrusted NaCl build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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': {
7 'chromium_code': 1,
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%
10 # OpenGL ES 2.0 compliant for the conformance tests.
11 'gles2_c_lib_source_files': [
12 'command_buffer/client/gles2_c_lib.cc',
13 'command_buffer/client/gles2_c_lib_autogen.h',
14 'command_buffer/client/gles2_c_lib_export.h',
15 'command_buffer/client/gles2_lib.h',
16 'command_buffer/client/gles2_lib.cc',
17 ],
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
20 # the OpenGL ES 2.0 compliant for the conformance tests.
21 'gles2_implementation_source_files': [
22 'command_buffer/client/gles2_impl_export.h',
23 'command_buffer/client/gles2_implementation_autogen.h',
24 'command_buffer/client/gles2_implementation.cc',
25 'command_buffer/client/gles2_implementation.h',
26 'command_buffer/client/program_info_manager.cc',
27 'command_buffer/client/program_info_manager.h',
28 'command_buffer/client/query_tracker.cc',
29 'command_buffer/client/query_tracker.h',
30 'command_buffer/client/share_group.cc',
31 'command_buffer/client/share_group.h',
32 ]
33 },
34 'includes': [ 6 'includes': [
35 'gpu_common.gypi', 7 'gpu_common.gypi',
36 ], 8 ],
9 'targets': [
10 {
11 # Library emulates GLES2 using command_buffers.
12 'target_name': 'gles2_implementation',
13 'type': '<(component)',
14 'dependencies': [
15 '../base/base.gyp:base',
16 '../ui/gl/gl.gyp:gl',
17 'command_buffer/command_buffer.gyp:gles2_utils',
18 'gles2_cmd_helper',
19 ],
20 'all_dependent_settings': {
21 'include_dirs': [
22 # For GLES2/gl2.h
23 '<(DEPTH)/third_party/khronos',
24 ],
25 },
26 'defines': [
27 'GLES2_IMPL_IMPLEMENTATION',
28 ],
29 'sources': [
30 '<@(gles2_implementation_source_files)',
31 ],
32 },
33 {
34 # Library emulates GLES2 using command_buffers.
35 'target_name': 'gles2_implementation_client_side_arrays',
36 'type': '<(component)',
37 'defines': [
38 'GLES2_IMPL_IMPLEMENTATION',
39 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1',
40 ],
41 'dependencies': [
42 '../base/base.gyp:base',
43 '../ui/gl/gl.gyp:gl',
44 'command_buffer/command_buffer.gyp:gles2_utils',
45 'gles2_cmd_helper',
46 ],
47 'all_dependent_settings': {
48 'include_dirs': [
49 # For GLES2/gl2.h
50 '<(DEPTH)/third_party/khronos',
51 ],
52 },
53 'sources': [
54 '<@(gles2_implementation_source_files)',
55 ],
56 },
57 {
58 # Library emulates GLES2 using command_buffers.
59 'target_name': 'gles2_implementation_client_side_arrays_no_check',
60 'type': '<(component)',
61 'defines': [
62 'GLES2_IMPL_IMPLEMENTATION',
63 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1',
64 'GLES2_CONFORMANCE_TESTS=1',
65 ],
66 'dependencies': [
67 '../base/base.gyp:base',
68 'command_buffer/command_buffer.gyp:gles2_utils',
69 'gles2_cmd_helper',
70 ],
71 'all_dependent_settings': {
72 'include_dirs': [
73 # For GLES2/gl2.h
74 '<(DEPTH)/third_party/khronos',
75 ],
76 },
77 'sources': [
78 '<@(gles2_implementation_source_files)',
79 ],
80 },
81 {
82 # Stub to expose gles2_implemenation in C instead of C++.
83 # so GLES2 C programs can work with no changes.
84 'target_name': 'gles2_c_lib',
85 'type': '<(component)',
86 'dependencies': [
87 '../base/base.gyp:base',
88 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
89 'command_buffer/command_buffer.gyp:gles2_utils',
90 'command_buffer_client',
91 'gles2_implementation',
92 ],
93 'defines': [
94 'GLES2_C_LIB_IMPLEMENTATION',
95 ],
96 'sources': [
97 '<@(gles2_c_lib_source_files)',
98 ],
99 },
100 {
101 # Same as gles2_c_lib except with no parameter checking. Required for
102 # OpenGL ES 2.0 conformance tests.
103 'target_name': 'gles2_c_lib_nocheck',
104 'type': '<(component)',
105 'defines': [
106 'GLES2_C_LIB_IMPLEMENTATION',
107 'GLES2_CONFORMANCE_TESTS=1',
108 ],
109 'dependencies': [
110 '../base/base.gyp:base',
111 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
112 'command_buffer/command_buffer.gyp:gles2_utils',
113 'command_buffer_client',
114 'gles2_implementation_client_side_arrays_no_check',
115 ],
116 'sources': [
117 '<@(gles2_c_lib_source_files)',
118 ],
119 },
120 {
121 'target_name': 'gpu_unittests',
122 'type': '<(gtest_target_type)',
123 'dependencies': [
124 '../base/base.gyp:base',
125 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
126 '../testing/gmock.gyp:gmock',
127 '../testing/gtest.gyp:gtest',
128 '../third_party/angle/src/build_angle.gyp:translator_glsl',
129 '../ui/gl/gl.gyp:gl',
130 '../ui/ui.gyp:ui',
131 'command_buffer/command_buffer.gyp:gles2_utils',
132 'command_buffer_client',
133 'command_buffer_common',
134 'command_buffer_service',
135 'gpu',
136 'gpu_unittest_utils',
137 'gles2_implementation_client_side_arrays',
138 'gles2_cmd_helper',
139 ],
140 'defines': [
141 'GLES2_C_LIB_IMPLEMENTATION',
142 ],
143 'sources': [
144 '<@(gles2_c_lib_source_files)',
145 'command_buffer/client/client_test_helper.cc',
146 'command_buffer/client/client_test_helper.h',
147 'command_buffer/client/cmd_buffer_helper_test.cc',
148 'command_buffer/client/fenced_allocator_test.cc',
149 'command_buffer/client/gles2_implementation_unittest.cc',
150 'command_buffer/client/mapped_memory_unittest.cc',
151 'command_buffer/client/query_tracker_unittest.cc',
152 'command_buffer/client/program_info_manager_unittest.cc',
153 'command_buffer/client/ring_buffer_test.cc',
154 'command_buffer/client/share_group_unittest.cc',
155 'command_buffer/client/transfer_buffer_unittest.cc',
156 'command_buffer/common/bitfield_helpers_test.cc',
157 'command_buffer/common/command_buffer_mock.cc',
158 'command_buffer/common/command_buffer_mock.h',
159 'command_buffer/common/command_buffer_shared_test.cc',
160 'command_buffer/common/gles2_cmd_format_test.cc',
161 'command_buffer/common/gles2_cmd_format_test_autogen.h',
162 'command_buffer/common/gles2_cmd_utils_unittest.cc',
163 'command_buffer/common/id_allocator_test.cc',
164 'command_buffer/common/trace_event.h',
165 'command_buffer/common/unittest_main.cc',
166 'command_buffer/service/buffer_manager_unittest.cc',
167 'command_buffer/service/cmd_parser_test.cc',
168 'command_buffer/service/command_buffer_service_unittest.cc',
169 'command_buffer/service/common_decoder_unittest.cc',
170 'command_buffer/service/context_group_unittest.cc',
171 'command_buffer/service/feature_info_unittest.cc',
172 'command_buffer/service/framebuffer_manager_unittest.cc',
173 'command_buffer/service/gles2_cmd_decoder_unittest.cc',
174 'command_buffer/service/gles2_cmd_decoder_unittest_1.cc',
175 'command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h',
176 'command_buffer/service/gles2_cmd_decoder_unittest_2.cc',
177 'command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h',
178 'command_buffer/service/gles2_cmd_decoder_unittest_3.cc',
179 'command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h',
180 'command_buffer/service/gles2_cmd_decoder_unittest_base.cc',
181 'command_buffer/service/gles2_cmd_decoder_unittest_base.h',
182 'command_buffer/service/gl_surface_mock.cc',
183 'command_buffer/service/gl_surface_mock.h',
184 'command_buffer/service/gpu_scheduler_unittest.cc',
185 'command_buffer/service/id_manager_unittest.cc',
186 'command_buffer/service/memory_program_cache_unittest.cc',
187 'command_buffer/service/mocks.cc',
188 'command_buffer/service/mocks.h',
189 'command_buffer/service/program_manager_unittest.cc',
190 'command_buffer/service/query_manager_unittest.cc',
191 'command_buffer/service/renderbuffer_manager_unittest.cc',
192 'command_buffer/service/program_cache_lru_helper_unittest.cc',
193 'command_buffer/service/program_cache_unittest.cc',
194 'command_buffer/service/shader_manager_unittest.cc',
195 'command_buffer/service/shader_translator_unittest.cc',
196 'command_buffer/service/stream_texture_mock.cc',
197 'command_buffer/service/stream_texture_mock.h',
198 'command_buffer/service/stream_texture_manager_mock.cc',
199 'command_buffer/service/stream_texture_manager_mock.h',
200 'command_buffer/service/test_helper.cc',
201 'command_buffer/service/test_helper.h',
202 'command_buffer/service/texture_manager_unittest.cc',
203 'command_buffer/service/transfer_buffer_manager_unittest.cc',
204 'command_buffer/service/vertex_attrib_manager_unittest.cc',
205 ],
206 'conditions': [
207 ['OS == "android" and gtest_target_type == "shared_library"', {
208 'dependencies': [
209 '../testing/android/native_test.gyp:native_test_native_code',
210 ],
211 }],
212 ],
213 },
214 {
215 'target_name': 'gl_tests',
216 'type': 'executable',
217 'dependencies': [
218 '../base/base.gyp:base',
219 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
220 '../testing/gmock.gyp:gmock',
221 '../testing/gtest.gyp:gtest',
222 '../third_party/angle/src/build_angle.gyp:translator_glsl',
223 '../ui/ui.gyp:ui',
224 'command_buffer/command_buffer.gyp:gles2_utils',
225 'command_buffer_client',
226 'command_buffer_common',
227 'command_buffer_service',
228 'gpu',
229 'gpu_unittest_utils',
230 'gles2_implementation_client_side_arrays',
231 'gles2_cmd_helper',
232 #'gl_unittests',
233 ],
234 'defines': [
235 'GLES2_C_LIB_IMPLEMENTATION',
236 'GL_GLEXT_PROTOTYPES',
237 ],
238 'sources': [
239 '<@(gles2_c_lib_source_files)',
240 'command_buffer/tests/gl_bind_uniform_location_unittest.cc',
241 'command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc',
242 'command_buffer/tests/gl_depth_texture_unittest.cc',
243 'command_buffer/tests/gl_get_error_query_unittests.cc',
244 'command_buffer/tests/gl_manager.cc',
245 'command_buffer/tests/gl_manager.h',
246 'command_buffer/tests/gl_pointcoord_unittest.cc',
247 'command_buffer/tests/gl_tests_main.cc',
248 'command_buffer/tests/gl_test_utils.cc',
249 'command_buffer/tests/gl_test_utils.h',
250 'command_buffer/tests/gl_texture_mailbox_unittests.cc',
251 'command_buffer/tests/gl_unittests.cc',
252 'command_buffer/tests/occlusion_query_unittests.cc',
253 ],
254 },
255 {
256 'target_name': 'gpu_unittest_utils',
257 'type': 'static_library',
258 'dependencies': [
259 '../testing/gmock.gyp:gmock',
260 '../testing/gtest.gyp:gtest',
261 '../ui/gl/gl.gyp:gl',
262 ],
263 'include_dirs': [
264 '..',
265 '<(DEPTH)/third_party/khronos',
266 ],
267 'sources': [
268 'command_buffer/common/gl_mock.h',
269 'command_buffer/common/gl_mock.cc',
270 'command_buffer/service/gles2_cmd_decoder_mock.cc',
271 'command_buffer/service/gles2_cmd_decoder_mock.cc',
272 ],
273 },
274 ],
37 'conditions': [ 275 'conditions': [
38 ['component=="static_library"', { 276 ['component=="static_library"', {
39 'targets': [ 277 'targets': [
40 { 278 {
41 'target_name': 'gpu', 279 'target_name': 'gpu',
42 'type': 'none', 280 'type': 'none',
43 'dependencies': [ 281 'dependencies': [
44 'command_buffer_client', 282 'command_buffer_client',
45 'command_buffer_common', 283 'command_buffer_common',
46 'command_buffer_service', 284 'command_buffer_service',
47 'gles2_cmd_helper', 285 'gles2_cmd_helper',
48 'gpu_ipc', 286 'gpu_ipc',
49 ], 287 ],
50 'sources': [ 288 'sources': [
51 'gpu_export.h', 289 'gpu_export.h',
52 ], 290 ],
53 }, 291 },
54 { 292 {
55 'target_name': 'command_buffer_common', 293 'target_name': 'command_buffer_common',
56 'type': 'static_library', 294 'type': 'static_library',
57 'includes': [ 295 'includes': [
58 'command_buffer_common.gypi', 296 'command_buffer_common.gypi',
59 ], 297 ],
298 'dependencies': [
299 '../base/base.gyp:base',
300 'command_buffer/command_buffer.gyp:gles2_utils',
301 ],
60 'export_dependent_settings': [ 302 'export_dependent_settings': [
61 '../base/base.gyp:base', 303 '../base/base.gyp:base',
62 ], 304 ],
63 }, 305 },
64 { 306 {
65 # Library helps make GLES2 command buffers. 307 # Library helps make GLES2 command buffers.
66 'target_name': 'gles2_cmd_helper', 308 'target_name': 'gles2_cmd_helper',
67 'type': 'static_library', 309 'type': 'static_library',
68 'includes': [ 310 'includes': [
69 'gles2_cmd_helper.gypi', 311 'gles2_cmd_helper.gypi',
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 'target_name': 'gpu_ipc', 398 'target_name': 'gpu_ipc',
157 'type': 'none', 399 'type': 'none',
158 'dependencies': [ 400 'dependencies': [
159 'gpu', 401 'gpu',
160 ], 402 ],
161 }, 403 },
162 ], 404 ],
163 }], 405 }],
164 ], 406 ],
165 } 407 }
OLDNEW
« no previous file with comments | « gpu/command_buffer_common.gypi ('k') | gpu/gpu_common.gypi » ('j') | ppapi/ppapi_shared.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698