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': { | |
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/transfer_buffer_unittest.cc', |
| 155 'command_buffer/common/bitfield_helpers_test.cc', |
| 156 'command_buffer/common/command_buffer_mock.cc', |
| 157 'command_buffer/common/command_buffer_mock.h', |
| 158 'command_buffer/common/command_buffer_shared_test.cc', |
| 159 'command_buffer/common/gles2_cmd_format_test.cc', |
| 160 'command_buffer/common/gles2_cmd_format_test_autogen.h', |
| 161 'command_buffer/common/gles2_cmd_utils_unittest.cc', |
| 162 'command_buffer/common/id_allocator_test.cc', |
| 163 'command_buffer/common/trace_event.h', |
| 164 'command_buffer/common/unittest_main.cc', |
| 165 'command_buffer/service/buffer_manager_unittest.cc', |
| 166 'command_buffer/service/cmd_parser_test.cc', |
| 167 'command_buffer/service/command_buffer_service_unittest.cc', |
| 168 'command_buffer/service/common_decoder_unittest.cc', |
| 169 'command_buffer/service/context_group_unittest.cc', |
| 170 'command_buffer/service/feature_info_unittest.cc', |
| 171 'command_buffer/service/framebuffer_manager_unittest.cc', |
| 172 'command_buffer/service/gles2_cmd_decoder_unittest.cc', |
| 173 'command_buffer/service/gles2_cmd_decoder_unittest_1.cc', |
| 174 'command_buffer/service/gles2_cmd_decoder_unittest_1_autogen.h', |
| 175 'command_buffer/service/gles2_cmd_decoder_unittest_2.cc', |
| 176 'command_buffer/service/gles2_cmd_decoder_unittest_2_autogen.h', |
| 177 'command_buffer/service/gles2_cmd_decoder_unittest_3.cc', |
| 178 'command_buffer/service/gles2_cmd_decoder_unittest_3_autogen.h', |
| 179 'command_buffer/service/gles2_cmd_decoder_unittest_base.cc', |
| 180 'command_buffer/service/gles2_cmd_decoder_unittest_base.h', |
| 181 'command_buffer/service/gl_surface_mock.cc', |
| 182 'command_buffer/service/gl_surface_mock.h', |
| 183 'command_buffer/service/gpu_scheduler_unittest.cc', |
| 184 'command_buffer/service/id_manager_unittest.cc', |
| 185 'command_buffer/service/memory_program_cache_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/program_cache_lru_helper_unittest.cc', |
| 192 'command_buffer/service/program_cache_unittest.cc', |
| 193 'command_buffer/service/shader_manager_unittest.cc', |
| 194 'command_buffer/service/shader_translator_unittest.cc', |
| 195 'command_buffer/service/stream_texture_mock.cc', |
| 196 'command_buffer/service/stream_texture_mock.h', |
| 197 'command_buffer/service/stream_texture_manager_mock.cc', |
| 198 'command_buffer/service/stream_texture_manager_mock.h', |
| 199 'command_buffer/service/test_helper.cc', |
| 200 'command_buffer/service/test_helper.h', |
| 201 'command_buffer/service/texture_manager_unittest.cc', |
| 202 'command_buffer/service/transfer_buffer_manager_unittest.cc', |
| 203 'command_buffer/service/vertex_attrib_manager_unittest.cc', |
| 204 ], |
| 205 'conditions': [ |
| 206 ['OS == "android" and gtest_target_type == "shared_library"', { |
| 207 'dependencies': [ |
| 208 '../testing/android/native_test.gyp:native_test_native_code', |
| 209 ], |
| 210 }], |
| 211 ], |
| 212 }, |
| 213 { |
| 214 'target_name': 'gl_tests', |
| 215 'type': 'executable', |
| 216 'dependencies': [ |
| 217 '../base/base.gyp:base', |
| 218 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
| 219 '../testing/gmock.gyp:gmock', |
| 220 '../testing/gtest.gyp:gtest', |
| 221 '../third_party/angle/src/build_angle.gyp:translator_glsl', |
| 222 '../ui/ui.gyp:ui', |
| 223 'command_buffer/command_buffer.gyp:gles2_utils', |
| 224 'command_buffer_client', |
| 225 'command_buffer_common', |
| 226 'command_buffer_service', |
| 227 'gpu', |
| 228 'gpu_unittest_utils', |
| 229 'gles2_implementation_client_side_arrays', |
| 230 'gles2_cmd_helper', |
| 231 #'gl_unittests', |
| 232 ], |
| 233 'defines': [ |
| 234 'GLES2_C_LIB_IMPLEMENTATION', |
| 235 'GL_GLEXT_PROTOTYPES', |
| 236 ], |
| 237 'sources': [ |
| 238 '<@(gles2_c_lib_source_files)', |
| 239 'command_buffer/tests/gl_bind_uniform_location_unittest.cc', |
| 240 'command_buffer/tests/gl_copy_texture_CHROMIUM_unittest.cc', |
| 241 'command_buffer/tests/gl_depth_texture_unittest.cc', |
| 242 'command_buffer/tests/gl_get_error_query_unittests.cc', |
| 243 'command_buffer/tests/gl_manager.cc', |
| 244 'command_buffer/tests/gl_manager.h', |
| 245 'command_buffer/tests/gl_pointcoord_unittest.cc', |
| 246 'command_buffer/tests/gl_tests_main.cc', |
| 247 'command_buffer/tests/gl_test_utils.cc', |
| 248 'command_buffer/tests/gl_test_utils.h', |
| 249 'command_buffer/tests/gl_texture_mailbox_unittests.cc', |
| 250 'command_buffer/tests/gl_unittests.cc', |
| 251 'command_buffer/tests/occlusion_query_unittests.cc', |
| 252 ], |
| 253 }, |
| 254 { |
| 255 'target_name': 'gpu_unittest_utils', |
| 256 'type': 'static_library', |
| 257 'dependencies': [ |
| 258 '../testing/gmock.gyp:gmock', |
| 259 '../testing/gtest.gyp:gtest', |
| 260 '../ui/gl/gl.gyp:gl', |
| 261 ], |
| 262 'include_dirs': [ |
| 263 '..', |
| 264 '<(DEPTH)/third_party/khronos', |
| 265 ], |
| 266 'sources': [ |
| 267 'command_buffer/common/gl_mock.h', |
| 268 'command_buffer/common/gl_mock.cc', |
| 269 'command_buffer/service/gles2_cmd_decoder_mock.cc', |
| 270 'command_buffer/service/gles2_cmd_decoder_mock.cc', |
| 271 ], |
| 272 }, |
| 273 ], |
37 'conditions': [ | 274 'conditions': [ |
38 ['component=="static_library"', { | 275 ['component=="static_library"', { |
39 'targets': [ | 276 'targets': [ |
40 { | 277 { |
41 'target_name': 'gpu', | 278 'target_name': 'gpu', |
42 'type': 'none', | 279 'type': 'none', |
43 'dependencies': [ | 280 'dependencies': [ |
44 'command_buffer_client', | 281 'command_buffer_client', |
45 'command_buffer_common', | 282 'command_buffer_common', |
46 'command_buffer_service', | 283 'command_buffer_service', |
47 'gles2_cmd_helper', | 284 'gles2_cmd_helper', |
48 'gpu_ipc', | 285 'gpu_ipc', |
49 ], | 286 ], |
50 'sources': [ | 287 'sources': [ |
51 'gpu_export.h', | 288 'gpu_export.h', |
52 ], | 289 ], |
53 }, | 290 }, |
54 { | 291 { |
55 'target_name': 'command_buffer_common', | 292 'target_name': 'command_buffer_common', |
56 'type': 'static_library', | 293 'type': 'static_library', |
57 'includes': [ | 294 'includes': [ |
58 'command_buffer_common.gypi', | 295 'command_buffer_common.gypi', |
59 ], | 296 ], |
| 297 'dependencies': [ |
| 298 '../base/base.gyp:base', |
| 299 'command_buffer/command_buffer.gyp:gles2_utils', |
| 300 ], |
60 'export_dependent_settings': [ | 301 'export_dependent_settings': [ |
61 '../base/base.gyp:base', | 302 '../base/base.gyp:base', |
62 ], | 303 ], |
63 }, | 304 }, |
64 { | 305 { |
65 # Library helps make GLES2 command buffers. | 306 # Library helps make GLES2 command buffers. |
66 'target_name': 'gles2_cmd_helper', | 307 'target_name': 'gles2_cmd_helper', |
67 'type': 'static_library', | 308 'type': 'static_library', |
68 'includes': [ | 309 'includes': [ |
69 'gles2_cmd_helper.gypi', | 310 'gles2_cmd_helper.gypi', |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 'target_name': 'gpu_ipc', | 397 'target_name': 'gpu_ipc', |
157 'type': 'none', | 398 'type': 'none', |
158 'dependencies': [ | 399 'dependencies': [ |
159 'gpu', | 400 'gpu', |
160 ], | 401 ], |
161 }, | 402 }, |
162 ], | 403 ], |
163 }], | 404 }], |
164 ], | 405 ], |
165 } | 406 } |
OLD | NEW |