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', | |
23 'command_buffer/client/gles2_implementation_autogen.h', | 22 'command_buffer/client/gles2_implementation_autogen.h', |
24 'command_buffer/client/gles2_implementation.cc', | 23 'command_buffer/client/gles2_implementation.cc', |
25 'command_buffer/client/gles2_implementation.h', | 24 'command_buffer/client/gles2_implementation.h', |
26 'command_buffer/client/program_info_manager.cc', | 25 'command_buffer/client/program_info_manager.cc', |
27 'command_buffer/client/program_info_manager.h', | 26 'command_buffer/client/program_info_manager.h', |
28 ] | 27 ] |
29 }, | 28 }, |
30 'includes': [ | 29 'targets': [ |
31 'gpu_common.gypi', | 30 { |
32 ], | 31 'target_name': 'command_buffer_common', |
33 'conditions': [ | 32 'type': 'static_library', |
34 ['component=="static_library" or incremental_chrome_dll==1', { | 33 'includes': [ |
35 'targets': [ | 34 'command_buffer_common.gypi', |
36 { | 35 ], |
37 'target_name': 'gpu', | 36 'export_dependent_settings': [ |
38 'type': 'none', | 37 '../base/base.gyp:base', |
39 'dependencies': [ | 38 ], |
40 'command_buffer_client', | 39 }, |
41 'command_buffer_common', | 40 { |
42 'command_buffer_service', | 41 # Library helps make GLES2 command buffers. |
43 'gles2_cmd_helper', | 42 'target_name': 'gles2_cmd_helper', |
44 'gpu_ipc', | 43 'type': 'static_library', |
45 ], | 44 'includes': [ |
46 'sources': [ | 45 'gles2_cmd_helper.gypi', |
47 'gpu_export.h', | 46 ], |
48 ], | 47 'dependencies': [ |
49 }, | 48 'command_buffer_client', |
50 { | 49 ], |
51 'target_name': 'command_buffer_common', | 50 }, |
52 'type': 'static_library', | 51 { |
53 'includes': [ | 52 # Library emulates GLES2 using command_buffers. |
54 'command_buffer_common.gypi', | 53 'target_name': 'gles2_implementation', |
55 ], | 54 'type': 'static_library', |
56 'export_dependent_settings': [ | 55 'includes': [ |
57 '../base/base.gyp:base', | 56 'gles2_implementation.gypi', |
58 ], | 57 ], |
59 }, | 58 'dependencies': [ |
60 { | 59 'gles2_cmd_helper', |
61 # Library helps make GLES2 command buffers. | 60 ], |
62 'target_name': 'gles2_cmd_helper', | 61 }, |
63 'type': 'static_library', | 62 { |
64 'includes': [ | 63 # Library emulates GLES2 using command_buffers. |
65 'gles2_cmd_helper.gypi', | 64 'target_name': 'gles2_implementation_client_side_arrays', |
66 ], | 65 'type': 'static_library', |
67 'dependencies': [ | 66 'defines': [ |
68 'command_buffer_client', | 67 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1', |
69 ], | 68 ], |
70 }, | 69 'dependencies': [ |
71 { | 70 '../base/base.gyp:base', |
72 'target_name': 'command_buffer_client', | 71 'gles2_cmd_helper', |
73 'type': 'static_library', | 72 ], |
74 'includes': [ | 73 'all_dependent_settings': { |
75 'command_buffer_client.gypi', | 74 'include_dirs': [ |
76 ], | 75 # For GLES2/gl2.h |
77 'dependencies': [ | 76 '<(DEPTH)/third_party/khronos', |
78 'command_buffer_common', | 77 ], |
79 ], | 78 }, |
80 }, | 79 'sources': [ |
81 { | 80 '<@(gles2_implementation_source_files)', |
82 'target_name': 'command_buffer_service', | 81 ], |
83 'type': 'static_library', | 82 }, |
84 'includes': [ | 83 { |
85 'command_buffer_service.gypi', | 84 # Library emulates GLES2 using command_buffers. |
86 ], | 85 'target_name': 'gles2_implementation_client_side_arrays_no_check', |
87 'dependencies': [ | 86 'type': 'static_library', |
88 'command_buffer_common', | 87 'defines': [ |
89 ], | 88 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1', |
90 }, | 89 'GLES2_CONFORMANCE_TESTS=1', |
91 { | 90 ], |
92 'target_name': 'gpu_ipc', | 91 'dependencies': [ |
93 'type': 'static_library', | 92 '../base/base.gyp:base', |
94 'includes': [ | 93 'gles2_cmd_helper', |
95 'gpu_ipc.gypi', | 94 ], |
96 ], | 95 'all_dependent_settings': { |
97 'dependencies': [ | 96 'include_dirs': [ |
98 'command_buffer_common', | 97 # For GLES2/gl2.h |
99 ], | 98 '<(DEPTH)/third_party/khronos', |
100 }, | 99 ], |
101 ], | 100 }, |
102 }, | 101 'sources': [ |
103 { # component != static_library | 102 '<@(gles2_implementation_source_files)', |
104 'targets': [ | 103 ], |
105 { | 104 }, |
106 'target_name': 'gpu', | 105 { |
107 'type': 'shared_library', | 106 # Stub to expose gles2_implemenation in C instead of C++. |
108 'includes': [ | 107 # so GLES2 C programs can work with no changes. |
109 'command_buffer_client.gypi', | 108 'target_name': 'gles2_c_lib', |
110 'command_buffer_common.gypi', | 109 'type': '<(component)', |
111 'command_buffer_service.gypi', | 110 'dependencies': [ |
112 'gles2_cmd_helper.gypi', | 111 '../base/base.gyp:base', |
113 'gpu_ipc.gypi', | 112 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
114 ], | 113 'gles2_implementation', |
115 'defines': [ | 114 ], |
116 'GPU_IMPLEMENTATION', | 115 'defines': [ |
117 ], | 116 'GLES2_C_LIB_IMPLEMENTATION', |
118 'sources': [ | 117 ], |
119 'gpu_export.h', | 118 'sources': [ |
120 ], | 119 '<@(gles2_c_lib_source_files)', |
121 }, | 120 ], |
122 { | 121 }, |
123 'target_name': 'command_buffer_common', | 122 { |
124 'type': 'none', | 123 # Same as gles2_c_lib except with no parameter checking. Required for |
125 'dependencies': [ | 124 # OpenGL ES 2.0 conformance tests. |
126 'gpu', | 125 'target_name': 'gles2_c_lib_nocheck', |
127 ], | 126 'type': '<(component)', |
128 }, | 127 'defines': [ |
129 { | 128 'GLES2_C_LIB_IMPLEMENTATION', |
130 # Library helps make GLES2 command buffers. | 129 'GLES2_CONFORMANCE_TESTS=1', |
131 'target_name': 'gles2_cmd_helper', | 130 ], |
132 'type': 'none', | 131 'dependencies': [ |
133 'dependencies': [ | 132 '../base/base.gyp:base', |
134 'gpu', | 133 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
135 ], | 134 'gles2_implementation_client_side_arrays_no_check', |
136 }, | 135 ], |
137 { | 136 'sources': [ |
138 'target_name': 'command_buffer_client', | 137 '<@(gles2_c_lib_source_files)', |
139 'type': 'none', | 138 ], |
140 'dependencies': [ | 139 }, |
141 'gpu', | 140 { |
142 ], | 141 'target_name': 'command_buffer_client', |
143 }, | 142 'type': 'static_library', |
144 { | 143 'includes': [ |
145 'target_name': 'command_buffer_service', | 144 'command_buffer_client.gypi', |
146 'type': 'none', | 145 ], |
147 'dependencies': [ | 146 'dependencies': [ |
148 'gpu', | 147 'command_buffer_common', |
149 ], | 148 ], |
150 }, | 149 }, |
151 { | 150 { |
152 'target_name': 'gpu_ipc', | 151 'target_name': 'command_buffer_service', |
153 'type': 'none', | 152 'type': 'static_library', |
154 'dependencies': [ | 153 'includes': [ |
155 'gpu', | 154 'command_buffer_service.gypi', |
156 ], | 155 ], |
157 }, | 156 'dependencies': [ |
158 ], | 157 'command_buffer_common', |
159 }], | 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 }, |
160 ], | 262 ], |
161 } | 263 } |
OLD | NEW |