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

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/mocks.cc',
187 'command_buffer/service/mocks.h',
188 'command_buffer/service/program_manager_unittest.cc',
189 'command_buffer/service/query_manager_unittest.cc',
190 'command_buffer/service/renderbuffer_manager_unittest.cc',
191 'command_buffer/service/shader_manager_unittest.cc',
192 'command_buffer/service/shader_translator_unittest.cc',
193 'command_buffer/service/stream_texture_mock.cc',
194 'command_buffer/service/stream_texture_mock.h',
195 'command_buffer/service/stream_texture_manager_mock.cc',
196 'command_buffer/service/stream_texture_manager_mock.h',
197 'command_buffer/service/test_helper.cc',
198 'command_buffer/service/test_helper.h',
199 'command_buffer/service/texture_manager_unittest.cc',
200 'command_buffer/service/transfer_buffer_manager_unittest.cc',
201 'command_buffer/service/vertex_attrib_manager_unittest.cc',
202 ],
203 'conditions': [
204 ['OS == "android" and gtest_target_type == "shared_library"', {
205 'dependencies': [
206 '../testing/android/native_test.gyp:native_test_native_code',
207 ],
208 }],
209 ],
210 },
211 {
212 'target_name': 'gl_tests',
213 'type': 'executable',
214 'dependencies': [
215 '../base/base.gyp:base',
216 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
217 '../testing/gmock.gyp:gmock',
218 '../testing/gtest.gyp:gtest',
219 '../third_party/angle/src/build_angle.gyp:translator_glsl',
220 '../ui/ui.gyp:ui',
221 'command_buffer/command_buffer.gyp:gles2_utils',
222 'command_buffer_client',
223 'command_buffer_common',
224 'command_buffer_service',
225 'gpu',
226 'gpu_unittest_utils',
227 'gles2_implementation_client_side_arrays',
228 'gles2_cmd_helper',
229 #'gl_unittests',
230 ],
231 'defines': [
232 'GLES2_C_LIB_IMPLEMENTATION',
233 'GL_GLEXT_PROTOTYPES',
234 ],
235 'sources': [
236 '<@(gles2_c_lib_source_files)',
237 'command_buffer/tests/gl_bind_uniform_location_unittest.cc',
238 'command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc',
239 'command_buffer/tests/gl_depth_texture_unittest.cc',
240 'command_buffer/tests/gl_get_error_query_unittests.cc',
241 'command_buffer/tests/gl_manager.cc',
242 'command_buffer/tests/gl_manager.h',
243 'command_buffer/tests/gl_pointcoord_unittest.cc',
244 'command_buffer/tests/gl_tests_main.cc',
245 'command_buffer/tests/gl_test_utils.cc',
246 'command_buffer/tests/gl_test_utils.h',
247 'command_buffer/tests/gl_texture_mailbox_unittests.cc',
248 'command_buffer/tests/gl_unittests.cc',
249 'command_buffer/tests/occlusion_query_unittests.cc',
250 ],
251 },
252 {
253 'target_name': 'gpu_unittest_utils',
254 'type': 'static_library',
255 'dependencies': [
256 '../testing/gmock.gyp:gmock',
257 '../testing/gtest.gyp:gtest',
258 '../ui/gl/gl.gyp:gl',
259 ],
260 'include_dirs': [
261 '..',
262 '<(DEPTH)/third_party/khronos',
263 ],
264 'sources': [
265 'command_buffer/common/gl_mock.h',
266 'command_buffer/common/gl_mock.cc',
267 'command_buffer/service/gles2_cmd_decoder_mock.cc',
268 'command_buffer/service/gles2_cmd_decoder_mock.cc',
269 ],
270 },
271 ],
37 'conditions': [ 272 'conditions': [
38 ['component=="static_library"', { 273 ['component=="static_library"', {
39 'targets': [ 274 'targets': [
40 { 275 {
41 'target_name': 'gpu', 276 'target_name': 'gpu',
42 'type': 'none', 277 'type': 'none',
43 'dependencies': [ 278 'dependencies': [
44 'command_buffer_client', 279 'command_buffer_client',
45 'command_buffer_common', 280 'command_buffer_common',
46 'command_buffer_service', 281 'command_buffer_service',
47 'gles2_cmd_helper', 282 'gles2_cmd_helper',
48 'gpu_ipc', 283 'gpu_ipc',
49 ], 284 ],
50 'sources': [ 285 'sources': [
51 'gpu_export.h', 286 'gpu_export.h',
52 ], 287 ],
53 }, 288 },
54 { 289 {
55 'target_name': 'command_buffer_common', 290 'target_name': 'command_buffer_common',
56 'type': 'static_library', 291 'type': 'static_library',
57 'includes': [ 292 'includes': [
58 'command_buffer_common.gypi', 293 'command_buffer_common.gypi',
59 ], 294 ],
295 'dependencies': [
296 '../base/base.gyp:base',
297 'command_buffer/command_buffer.gyp:gles2_utils',
298 ],
60 'export_dependent_settings': [ 299 'export_dependent_settings': [
61 '../base/base.gyp:base', 300 '../base/base.gyp:base',
62 ], 301 ],
63 }, 302 },
64 { 303 {
65 # Library helps make GLES2 command buffers. 304 # Library helps make GLES2 command buffers.
66 'target_name': 'gles2_cmd_helper', 305 'target_name': 'gles2_cmd_helper',
67 'type': 'static_library', 306 'type': 'static_library',
68 'includes': [ 307 'includes': [
69 'gles2_cmd_helper.gypi', 308 'gles2_cmd_helper.gypi',
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 'target_name': 'gpu_ipc', 395 'target_name': 'gpu_ipc',
157 'type': 'none', 396 'type': 'none',
158 'dependencies': [ 397 'dependencies': [
159 'gpu', 398 'gpu',
160 ], 399 ],
161 }, 400 },
162 ], 401 ],
163 }], 402 }],
164 ], 403 ],
165 } 404 }
OLDNEW
« build/common.gypi ('K') | « gpu/command_buffer_common.gypi ('k') | gpu/gpu_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698