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

Side by Side Diff: gpu/gpu_common.gypi

Issue 10830197: Revert 150343 - Add gpu targets to untrusted build, and add Graphics3D code to untrusted build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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
« no previous file with comments | « gpu/gpu.gyp ('k') | gpu/gpu_untrusted.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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': { 6 'targets': [
7 'chromium_code': 1, 7 {
8 # These are defined here because we need to build this library twice. Once 8 # Library emulates GLES2 using command_buffers.
9 # with extra parameter checking. Once with no parameter checking to be 100% 9 'target_name': 'gles2_implementation',
10 # OpenGL ES 2.0 compliant for the conformance tests. 10 'type': '<(component)',
11 'gles2_c_lib_source_files': [ 11 'dependencies': [
12 'command_buffer/client/gles2_c_lib.cc', 12 '../base/base.gyp:base',
13 'command_buffer/client/gles2_c_lib_autogen.h', 13 '../ui/gl/gl.gyp:gl',
14 'command_buffer/client/gles2_c_lib_export.h', 14 'command_buffer/command_buffer.gyp:gles2_utils',
15 'command_buffer/client/gles2_lib.h', 15 'gles2_cmd_helper',
16 'command_buffer/client/gles2_lib.cc', 16 ],
17 ], 17 'all_dependent_settings': {
18 # These are defined here because we need to build this library twice. Once 18 'include_dirs': [
19 # with without support for client side arrays and once with for pepper and 19 # For GLES2/gl2.h
20 # the OpenGL ES 2.0 compliant for the conformance tests. 20 '<(DEPTH)/third_party/khronos',
21 'gles2_implementation_source_files': [ 21 ],
22 'command_buffer/client/gles2_impl_export.h', 22 },
23 'command_buffer/client/gles2_implementation_autogen.h', 23 'defines': [
24 'command_buffer/client/gles2_implementation.cc', 24 'GLES2_IMPL_IMPLEMENTATION',
25 'command_buffer/client/gles2_implementation.h', 25 ],
26 'command_buffer/client/program_info_manager.cc', 26 'sources': [
27 'command_buffer/client/program_info_manager.h', 27 '<@(gles2_implementation_source_files)',
28 'command_buffer/client/query_tracker.cc', 28 ],
29 'command_buffer/client/query_tracker.h', 29 },
30 'command_buffer/client/share_group.cc', 30 {
31 'command_buffer/client/share_group.h', 31 # Library emulates GLES2 using command_buffers.
32 ] 32 'target_name': 'gles2_implementation_client_side_arrays',
33 }, 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/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 'command_buffer_client',
88 'gles2_implementation',
89 ],
90 'defines': [
91 'GLES2_C_LIB_IMPLEMENTATION',
92 ],
93 'sources': [
94 '<@(gles2_c_lib_source_files)',
95 ],
96 },
97 {
98 # Same as gles2_c_lib except with no parameter checking. Required for
99 # OpenGL ES 2.0 conformance tests.
100 'target_name': 'gles2_c_lib_nocheck',
101 'type': '<(component)',
102 'defines': [
103 'GLES2_C_LIB_IMPLEMENTATION',
104 'GLES2_CONFORMANCE_TESTS=1',
105 ],
106 'dependencies': [
107 '../base/base.gyp:base',
108 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
109 'command_buffer/command_buffer.gyp:gles2_utils',
110 'command_buffer_client',
111 'gles2_implementation_client_side_arrays_no_check',
112 ],
113 'sources': [
114 '<@(gles2_c_lib_source_files)',
115 ],
116 },
117 {
118 'target_name': 'gpu_unittests',
119 'type': '<(gtest_target_type)',
120 'dependencies': [
121 '../base/base.gyp:base',
122 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
123 '../testing/gmock.gyp:gmock',
124 '../testing/gtest.gyp:gtest',
125 '../third_party/angle/src/build_angle.gyp:translator_glsl',
126 '../ui/gl/gl.gyp:gl',
127 '../ui/ui.gyp:ui',
128 'command_buffer/command_buffer.gyp:gles2_utils',
129 'command_buffer_client',
130 'command_buffer_common',
131 'command_buffer_service',
132 'gpu',
133 'gpu_unittest_utils',
134 'gles2_implementation_client_side_arrays',
135 'gles2_cmd_helper',
136 ],
137 'defines': [
138 'GLES2_C_LIB_IMPLEMENTATION',
139 ],
140 'sources': [
141 '<@(gles2_c_lib_source_files)',
142 'command_buffer/client/client_test_helper.cc',
143 'command_buffer/client/client_test_helper.h',
144 'command_buffer/client/cmd_buffer_helper_test.cc',
145 'command_buffer/client/fenced_allocator_test.cc',
146 'command_buffer/client/gles2_implementation_unittest.cc',
147 'command_buffer/client/mapped_memory_unittest.cc',
148 'command_buffer/client/query_tracker_unittest.cc',
149 'command_buffer/client/program_info_manager_unittest.cc',
150 'command_buffer/client/ring_buffer_test.cc',
151 'command_buffer/client/transfer_buffer_unittest.cc',
152 'command_buffer/common/bitfield_helpers_test.cc',
153 'command_buffer/common/command_buffer_mock.cc',
154 'command_buffer/common/command_buffer_mock.h',
155 'command_buffer/common/command_buffer_shared_test.cc',
156 'command_buffer/common/gles2_cmd_format_test.cc',
157 'command_buffer/common/gles2_cmd_format_test_autogen.h',
158 'command_buffer/common/gles2_cmd_utils_unittest.cc',
159 'command_buffer/common/id_allocator_test.cc',
160 'command_buffer/common/trace_event.h',
161 'command_buffer/common/unittest_main.cc',
162 'command_buffer/service/buffer_manager_unittest.cc',
163 'command_buffer/service/cmd_parser_test.cc',
164 'command_buffer/service/command_buffer_service_unittest.cc',
165 'command_buffer/service/common_decoder_unittest.cc',
166 'command_buffer/service/context_group_unittest.cc',
167 'command_buffer/service/feature_info_unittest.cc',
168 'command_buffer/service/framebuffer_manager_unittest.cc',
169 'command_buffer/service/gles2_cmd_decoder_unittest.cc',
170 'command_buffer/service/gles2_cmd_decoder_unittest_1.cc',
171 'command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h',
172 'command_buffer/service/gles2_cmd_decoder_unittest_2.cc',
173 'command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h',
174 'command_buffer/service/gles2_cmd_decoder_unittest_3.cc',
175 'command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h',
176 'command_buffer/service/gles2_cmd_decoder_unittest_base.cc',
177 'command_buffer/service/gles2_cmd_decoder_unittest_base.h',
178 'command_buffer/service/gl_surface_mock.cc',
179 'command_buffer/service/gl_surface_mock.h',
180 'command_buffer/service/gpu_scheduler_unittest.cc',
181 'command_buffer/service/id_manager_unittest.cc',
182 'command_buffer/service/memory_program_cache_unittest.cc',
183 'command_buffer/service/mocks.cc',
184 'command_buffer/service/mocks.h',
185 'command_buffer/service/program_manager_unittest.cc',
186 'command_buffer/service/query_manager_unittest.cc',
187 'command_buffer/service/renderbuffer_manager_unittest.cc',
188 'command_buffer/service/program_cache_lru_helper_unittest.cc',
189 'command_buffer/service/program_cache_unittest.cc',
190 'command_buffer/service/shader_manager_unittest.cc',
191 'command_buffer/service/shader_translator_unittest.cc',
192 'command_buffer/service/stream_texture_mock.cc',
193 'command_buffer/service/stream_texture_mock.h',
194 'command_buffer/service/stream_texture_manager_mock.cc',
195 'command_buffer/service/stream_texture_manager_mock.h',
196 'command_buffer/service/test_helper.cc',
197 'command_buffer/service/test_helper.h',
198 'command_buffer/service/texture_manager_unittest.cc',
199 'command_buffer/service/transfer_buffer_manager_unittest.cc',
200 'command_buffer/service/vertex_attrib_manager_unittest.cc',
201 ],
202 'conditions': [
203 ['OS == "android" and gtest_target_type == "shared_library"', {
204 'dependencies': [
205 '../testing/android/native_test.gyp:native_test_native_code',
206 ],
207 }],
208 ],
209 },
210 {
211 'target_name': 'gl_tests',
212 'type': 'executable',
213 'dependencies': [
214 '../base/base.gyp:base',
215 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
216 '../testing/gmock.gyp:gmock',
217 '../testing/gtest.gyp:gtest',
218 '../third_party/angle/src/build_angle.gyp:translator_glsl',
219 '../ui/ui.gyp:ui',
220 'command_buffer/command_buffer.gyp:gles2_utils',
221 'command_buffer_client',
222 'command_buffer_common',
223 'command_buffer_service',
224 'gpu',
225 'gpu_unittest_utils',
226 'gles2_implementation_client_side_arrays',
227 'gles2_cmd_helper',
228 #'gl_unittests',
229 ],
230 'defines': [
231 'GLES2_C_LIB_IMPLEMENTATION',
232 'GL_GLEXT_PROTOTYPES',
233 ],
234 'sources': [
235 '<@(gles2_c_lib_source_files)',
236 'command_buffer/tests/gl_bind_uniform_location_unittest.cc',
237 'command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc',
238 'command_buffer/tests/gl_depth_texture_unittest.cc',
239 'command_buffer/tests/gl_get_error_query_unittests.cc',
240 'command_buffer/tests/gl_manager.cc',
241 'command_buffer/tests/gl_manager.h',
242 'command_buffer/tests/gl_pointcoord_unittest.cc',
243 'command_buffer/tests/gl_tests_main.cc',
244 'command_buffer/tests/gl_test_utils.cc',
245 'command_buffer/tests/gl_test_utils.h',
246 'command_buffer/tests/gl_texture_mailbox_unittests.cc',
247 'command_buffer/tests/gl_unittests.cc',
248 'command_buffer/tests/occlusion_query_unittests.cc',
249 ],
250 },
251 {
252 'target_name': 'gpu_unittest_utils',
253 'type': 'static_library',
254 'dependencies': [
255 '../testing/gmock.gyp:gmock',
256 '../testing/gtest.gyp:gtest',
257 '../ui/gl/gl.gyp:gl',
258 ],
259 'include_dirs': [
260 '..',
261 '<(DEPTH)/third_party/khronos',
262 ],
263 'sources': [
264 'command_buffer/common/gl_mock.h',
265 'command_buffer/common/gl_mock.cc',
266 'command_buffer/service/gles2_cmd_decoder_mock.cc',
267 'command_buffer/service/gles2_cmd_decoder_mock.cc',
268 ],
269 },
270 ],
34 'conditions': [ 271 'conditions': [
35 # Special target to wrap a gtest_target_type==shared_library 272 # Special target to wrap a gtest_target_type==shared_library
36 # gpu_unittests into an android apk for execution. 273 # gpu_unittests into an android apk for execution.
37 ['OS == "android" and gtest_target_type == "shared_library"', { 274 ['OS == "android" and gtest_target_type == "shared_library"', {
38 'targets': [ 275 'targets': [
39 { 276 {
40 'target_name': 'gpu_unittests_apk', 277 'target_name': 'gpu_unittests_apk',
41 'type': 'none', 278 'type': 'none',
42 'dependencies': [ 279 'dependencies': [
43 '../base/base.gyp:base_java', 280 '../base/base.gyp:base_java',
44 'gpu_unittests', 281 'gpu_unittests',
45 ], 282 ],
46 'variables': { 283 'variables': {
47 'test_suite_name': 'gpu_unittests', 284 'test_suite_name': 'gpu_unittests',
48 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)gpu_unitt ests<(SHARED_LIB_SUFFIX)', 285 'input_shlib_path': '<(SHARED_LIB_DIR)/<(SHARED_LIB_PREFIX)gpu_unitt ests<(SHARED_LIB_SUFFIX)',
49 'input_jars_paths': [ '<(PRODUCT_DIR)/lib.java/chromium_base.jar', ] , 286 'input_jars_paths': [ '<(PRODUCT_DIR)/lib.java/chromium_base.jar', ] ,
50 }, 287 },
51 'includes': [ '../build/apk_test.gypi' ], 288 'includes': [ '../build/apk_test.gypi' ],
52 }, 289 },
53 ], 290 ],
54 }], 291 }],
55 ], 292 ],
56 } 293 }
OLDNEW
« no previous file with comments | « gpu/gpu.gyp ('k') | gpu/gpu_untrusted.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698