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_implementation_autogen.h', | |
23 'command_buffer/client/gles2_implementation.cc', | |
24 'command_buffer/client/gles2_implementation.h', | |
25 'command_buffer/client/program_info_manager.cc', | |
26 'command_buffer/client/program_info_manager.h', | |
27 ] | |
28 }, | |
29 'targets': [ | 6 'targets': [ |
30 { | 7 { |
31 'target_name': 'command_buffer_common', | |
32 'type': 'static_library', | |
33 'includes': [ | |
34 'command_buffer_common.gypi', | |
35 ], | |
36 'export_dependent_settings': [ | |
37 '../base/base.gyp:base', | |
38 ], | |
39 }, | |
40 { | |
41 # Library helps make GLES2 command buffers. | |
42 'target_name': 'gles2_cmd_helper', | |
43 'type': 'static_library', | |
44 'includes': [ | |
45 'gles2_cmd_helper.gypi', | |
46 ], | |
47 'dependencies': [ | |
48 'command_buffer_client', | |
49 ], | |
50 }, | |
51 { | |
52 # Library emulates GLES2 using command_buffers. | 8 # Library emulates GLES2 using command_buffers. |
53 'target_name': 'gles2_implementation', | 9 'target_name': 'gles2_implementation', |
54 'type': 'static_library', | 10 'type': '<(component)', |
55 'includes': [ | 11 'dependencies': [ |
56 'gles2_implementation.gypi', | 12 '../base/base.gyp:base', |
| 13 '../ui/gfx/gl/gl.gyp:gl', |
| 14 'command_buffer/command_buffer.gyp:gles2_utils', |
| 15 'gles2_cmd_helper', |
57 ], | 16 ], |
58 'dependencies': [ | 17 'all_dependent_settings': { |
59 'gles2_cmd_helper', | 18 'include_dirs': [ |
| 19 # For GLES2/gl2.h |
| 20 '<(DEPTH)/third_party/khronos', |
| 21 ], |
| 22 }, |
| 23 'defines': [ |
| 24 'GLES2_IMPL_IMPLEMENTATION', |
| 25 ], |
| 26 'sources': [ |
| 27 '<@(gles2_implementation_source_files)', |
60 ], | 28 ], |
61 }, | 29 }, |
62 { | 30 { |
63 # Library emulates GLES2 using command_buffers. | 31 # Library emulates GLES2 using command_buffers. |
64 'target_name': 'gles2_implementation_client_side_arrays', | 32 'target_name': 'gles2_implementation_client_side_arrays', |
65 'type': 'static_library', | 33 'type': '<(component)', |
66 'defines': [ | 34 'defines': [ |
| 35 'GLES2_IMPL_IMPLEMENTATION', |
67 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1', | 36 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1', |
68 ], | 37 ], |
69 'dependencies': [ | 38 'dependencies': [ |
70 '../base/base.gyp:base', | 39 '../base/base.gyp:base', |
| 40 '../ui/gfx/gl/gl.gyp:gl', |
| 41 'command_buffer/command_buffer.gyp:gles2_utils', |
71 'gles2_cmd_helper', | 42 'gles2_cmd_helper', |
72 ], | 43 ], |
73 'all_dependent_settings': { | 44 'all_dependent_settings': { |
74 'include_dirs': [ | 45 'include_dirs': [ |
75 # For GLES2/gl2.h | 46 # For GLES2/gl2.h |
76 '<(DEPTH)/third_party/khronos', | 47 '<(DEPTH)/third_party/khronos', |
77 ], | 48 ], |
78 }, | 49 }, |
79 'sources': [ | 50 'sources': [ |
80 '<@(gles2_implementation_source_files)', | 51 '<@(gles2_implementation_source_files)', |
81 ], | 52 ], |
82 }, | 53 }, |
83 { | 54 { |
84 # Library emulates GLES2 using command_buffers. | 55 # Library emulates GLES2 using command_buffers. |
85 'target_name': 'gles2_implementation_client_side_arrays_no_check', | 56 'target_name': 'gles2_implementation_client_side_arrays_no_check', |
86 'type': 'static_library', | 57 'type': '<(component)', |
87 'defines': [ | 58 'defines': [ |
| 59 'GLES2_IMPL_IMPLEMENTATION', |
88 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1', | 60 'GLES2_SUPPORT_CLIENT_SIDE_ARRAYS=1', |
89 'GLES2_CONFORMANCE_TESTS=1', | 61 'GLES2_CONFORMANCE_TESTS=1', |
90 ], | 62 ], |
91 'dependencies': [ | 63 'dependencies': [ |
92 '../base/base.gyp:base', | 64 '../base/base.gyp:base', |
| 65 'command_buffer/command_buffer.gyp:gles2_utils', |
93 'gles2_cmd_helper', | 66 'gles2_cmd_helper', |
94 ], | 67 ], |
95 'all_dependent_settings': { | 68 'all_dependent_settings': { |
96 'include_dirs': [ | 69 'include_dirs': [ |
97 # For GLES2/gl2.h | 70 # For GLES2/gl2.h |
98 '<(DEPTH)/third_party/khronos', | 71 '<(DEPTH)/third_party/khronos', |
99 ], | 72 ], |
100 }, | 73 }, |
101 'sources': [ | 74 'sources': [ |
102 '<@(gles2_implementation_source_files)', | 75 '<@(gles2_implementation_source_files)', |
103 ], | 76 ], |
104 }, | 77 }, |
105 { | 78 { |
106 # Stub to expose gles2_implemenation in C instead of C++. | 79 # Stub to expose gles2_implemenation in C instead of C++. |
107 # so GLES2 C programs can work with no changes. | 80 # so GLES2 C programs can work with no changes. |
108 'target_name': 'gles2_c_lib', | 81 'target_name': 'gles2_c_lib', |
109 'type': '<(component)', | 82 'type': '<(component)', |
110 'dependencies': [ | 83 'dependencies': [ |
111 '../base/base.gyp:base', | 84 '../base/base.gyp:base', |
112 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 85 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
| 86 'command_buffer/command_buffer.gyp:gles2_utils', |
113 'gles2_implementation', | 87 'gles2_implementation', |
114 ], | 88 ], |
115 'defines': [ | 89 'defines': [ |
116 'GLES2_C_LIB_IMPLEMENTATION', | 90 'GLES2_C_LIB_IMPLEMENTATION', |
117 ], | 91 ], |
118 'sources': [ | 92 'sources': [ |
119 '<@(gles2_c_lib_source_files)', | 93 '<@(gles2_c_lib_source_files)', |
120 ], | 94 ], |
121 }, | 95 }, |
122 { | 96 { |
123 # Same as gles2_c_lib except with no parameter checking. Required for | 97 # Same as gles2_c_lib except with no parameter checking. Required for |
124 # OpenGL ES 2.0 conformance tests. | 98 # OpenGL ES 2.0 conformance tests. |
125 'target_name': 'gles2_c_lib_nocheck', | 99 'target_name': 'gles2_c_lib_nocheck', |
126 'type': '<(component)', | 100 'type': '<(component)', |
127 'defines': [ | 101 'defines': [ |
128 'GLES2_C_LIB_IMPLEMENTATION', | 102 'GLES2_C_LIB_IMPLEMENTATION', |
129 'GLES2_CONFORMANCE_TESTS=1', | 103 'GLES2_CONFORMANCE_TESTS=1', |
130 ], | 104 ], |
131 'dependencies': [ | 105 'dependencies': [ |
132 '../base/base.gyp:base', | 106 '../base/base.gyp:base', |
133 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 107 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
| 108 'command_buffer/command_buffer.gyp:gles2_utils', |
134 'gles2_implementation_client_side_arrays_no_check', | 109 'gles2_implementation_client_side_arrays_no_check', |
135 ], | 110 ], |
136 'sources': [ | 111 'sources': [ |
137 '<@(gles2_c_lib_source_files)', | 112 '<@(gles2_c_lib_source_files)', |
138 ], | 113 ], |
139 }, | 114 }, |
140 { | 115 { |
141 'target_name': 'command_buffer_client', | |
142 'type': 'static_library', | |
143 'includes': [ | |
144 'command_buffer_client.gypi', | |
145 ], | |
146 'dependencies': [ | |
147 'command_buffer_common', | |
148 ], | |
149 }, | |
150 { | |
151 'target_name': 'command_buffer_service', | |
152 'type': 'static_library', | |
153 'includes': [ | |
154 'command_buffer_service.gypi', | |
155 ], | |
156 'dependencies': [ | |
157 'command_buffer_common', | |
158 ], | |
159 }, | |
160 { | |
161 'target_name': 'gpu_unittests', | 116 'target_name': 'gpu_unittests', |
162 'type': 'executable', | 117 'type': 'executable', |
163 'dependencies': [ | 118 'dependencies': [ |
| 119 '../base/base.gyp:base', |
164 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 120 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
165 '../testing/gmock.gyp:gmock', | 121 '../testing/gmock.gyp:gmock', |
166 '../testing/gmock.gyp:gmock_main', | 122 '../testing/gmock.gyp:gmock_main', |
167 '../testing/gtest.gyp:gtest', | 123 '../testing/gtest.gyp:gtest', |
| 124 '../third_party/angle/src/build_angle.gyp:translator_glsl', |
168 '../ui/gfx/gl/gl.gyp:gl', | 125 '../ui/gfx/gl/gl.gyp:gl', |
| 126 '../ui/ui.gyp:ui', |
| 127 'command_buffer/command_buffer.gyp:gles2_utils', |
169 'command_buffer_client', | 128 'command_buffer_client', |
170 'command_buffer_common', | 129 'command_buffer_common', |
171 'command_buffer_service', | 130 'command_buffer_service', |
172 'gpu_unittest_utils', | 131 'gpu_unittest_utils', |
173 'gles2_implementation_client_side_arrays', | 132 'gles2_implementation_client_side_arrays', |
174 'gles2_cmd_helper', | 133 'gles2_cmd_helper', |
175 ], | 134 ], |
176 'defines': [ | 135 'defines': [ |
177 'GLES2_C_LIB_IMPLEMENTATION', | 136 'GLES2_C_LIB_IMPLEMENTATION', |
178 ], | 137 ], |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 '..', | 201 '..', |
243 '<(DEPTH)/third_party/khronos', | 202 '<(DEPTH)/third_party/khronos', |
244 ], | 203 ], |
245 'sources': [ | 204 'sources': [ |
246 'command_buffer/common/gl_mock.h', | 205 'command_buffer/common/gl_mock.h', |
247 'command_buffer/common/gl_mock.cc', | 206 'command_buffer/common/gl_mock.cc', |
248 'command_buffer/service/gles2_cmd_decoder_mock.cc', | 207 'command_buffer/service/gles2_cmd_decoder_mock.cc', |
249 'command_buffer/service/gles2_cmd_decoder_mock.cc', | 208 'command_buffer/service/gles2_cmd_decoder_mock.cc', |
250 ], | 209 ], |
251 }, | 210 }, |
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 }, | |
262 ], | 211 ], |
263 } | 212 } |
OLD | NEW |