OLD | NEW |
| (Empty) |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 { | |
6 | |
7 'includes': [ | |
8 'gles2_conform.gypi', | |
9 ], | |
10 'target_defaults': { | |
11 'msvs_disabled_warnings': [4005, 4013, 4018, 4101, 4716], | |
12 'include_dirs': [ | |
13 '<(SHARED_INTERMEDIATE_DIR)/gles2_conform_test_embedded_data', | |
14 '../../third_party/gles2_conform/GTF_ES/glsl/GTF/Source', | |
15 ], | |
16 'variables': { | |
17 'clang_warning_flags': [ | |
18 '-Wno-array-bounds', | |
19 # There are some implicit conversions from "int" to "char" in | |
20 # GTFExtensionTestSurfacelessContext.c. | |
21 '-Wno-constant-conversion', | |
22 '-Wno-implicit-function-declaration', | |
23 '-Wno-incompatible-pointer-types', | |
24 '-Wno-logical-op-parentheses', | |
25 # Many struct initializers in the GTF_ES code are missing braces. | |
26 '-Wno-missing-braces', | |
27 '-Wno-parentheses-equality', | |
28 '-Wno-pointer-sign', | |
29 '-Wno-return-type', | |
30 '-Wno-sizeof-pointer-memaccess', | |
31 # A few variables are unitialized if GLVersion != 2.0. | |
32 '-Wno-sometimes-uninitialized', | |
33 '-Wno-tautological-compare', | |
34 # GTFVecBase.h contains static no-inline functions in a header :-/ | |
35 '-Wno-unused-function', | |
36 ], | |
37 }, | |
38 }, | |
39 'targets': [ | |
40 { | |
41 'target_name': 'gles2_conform_test', | |
42 'type': '<(gtest_target_type)', | |
43 'dependencies': [ | |
44 '<(DEPTH)/base/base.gyp:base', | |
45 '<(DEPTH)/base/base.gyp:test_support_base', | |
46 '<(DEPTH)/gpu/gpu.gyp:gpu', | |
47 '<(DEPTH)/testing/gtest.gyp:gtest', | |
48 ], | |
49 'sources': [ | |
50 'gles2_conform_test.cc', | |
51 ], | |
52 'conditions': [ | |
53 ['internal_gles2_conform_tests', { | |
54 'dependencies': [ | |
55 'gles2_conform_test_windowless', | |
56 ], | |
57 'variables': { | |
58 'gles2_conform_test_output_dir': '<(SHARED_INTERMEDIATE_DIR)/gpu/gle
s2_conform_test', | |
59 }, | |
60 'sources': [ | |
61 '<(gles2_conform_test_output_dir)/gles2_conform_test_autogen.cc', | |
62 ], | |
63 'actions': [ | |
64 { | |
65 'action_name': 'generate_gles2_conform_tests', | |
66 'inputs': [ | |
67 'generate_gles2_conform_tests.py', | |
68 'gles2_conform_test.h', | |
69 '<(DEPTH)/third_party/gles2_conform/GTF_ES/glsl/GTF/mustpass_es2
0.run', | |
70 ], | |
71 'outputs': [ | |
72 '<(gles2_conform_test_output_dir)/gles2_conform_test_autogen.cc'
, | |
73 ], | |
74 'action': [ | |
75 'python', | |
76 'generate_gles2_conform_tests.py', | |
77 '<(gles2_conform_test_output_dir)', | |
78 ], | |
79 }, | |
80 ], | |
81 }], # internal_gles2_conform_tests | |
82 ], | |
83 }, | |
84 # TODO(alokp): Add gles2_conform_test_pepper target | |
85 ], | |
86 'conditions': [ | |
87 ['internal_gles2_conform_tests', { | |
88 'targets': [ | |
89 { | |
90 'target_name': 'gles2_conform_test_embedded_data', | |
91 'type': 'none', | |
92 'hard_dependency': 1, | |
93 'actions': [ | |
94 { | |
95 'action_name': 'generate_gles2_conform_embedded_files', | |
96 'variables': { | |
97 'generator_path': 'generate_gles2_embedded_data.py', | |
98 }, | |
99 'inputs': [ | |
100 '<(generator_path)', | |
101 '<!@(python <(generator_path) ../../third_party/gles2_conform/GT
F_ES/glsl/GTF)', | |
102 ], | |
103 'outputs': [ | |
104 #'../../third_party/gles2_conform/GTF_ES/glsl/GTF/Source/FilesDA
TA.c', | |
105 #'../../third_party/gles2_conform/GTF_ES/glsl/GTF/Source/FilesDA
TA.h', | |
106 #'../../third_party/gles2_conform/GTF_ES/glsl/GTF/Source/FilesTO
C.c', | |
107 '<(SHARED_INTERMEDIATE_DIR)/gles2_conform_test_embedded_data/Fil
esDATA.c', | |
108 '<(SHARED_INTERMEDIATE_DIR)/gles2_conform_test_embedded_data/Fil
esDATA.h', | |
109 '<(SHARED_INTERMEDIATE_DIR)/gles2_conform_test_embedded_data/Fil
esTOC.c', | |
110 ], | |
111 'action': [ | |
112 'python', | |
113 '<(generator_path)', | |
114 '../../third_party/gles2_conform/GTF_ES/glsl/GTF', | |
115 '<(SHARED_INTERMEDIATE_DIR)/gles2_conform_test_embedded_data', | |
116 ], | |
117 }, | |
118 ], | |
119 }, | |
120 { | |
121 'target_name': 'gles2_conform_test_windowless', | |
122 'type': 'executable', | |
123 'dependencies': [ | |
124 'gles2_conform_test_embedded_data', | |
125 '<(DEPTH)/gpu/gles2_conform_support/gles2_conform_support.gyp:egl_na
tive', | |
126 '<(DEPTH)/gpu/gles2_conform_support/gles2_conform_support.gyp:egl_ma
in_windowless', | |
127 '<(DEPTH)/gpu/gpu.gyp:gles2_c_lib_nocheck', | |
128 '<(DEPTH)/third_party/expat/expat.gyp:expat', | |
129 ], | |
130 'conditions': [ | |
131 ['OS=="linux"', { | |
132 'conditions': [ | |
133 [ 'chromeos==0', { | |
134 'dependencies': ['../../build/linux/system.gyp:gtk2'] | |
135 }], | |
136 ], | |
137 }], | |
138 ['OS=="win"', { | |
139 'dependencies': [ | |
140 '<(angle_path)/src/angle.gyp:libGLESv2', | |
141 '<(angle_path)/src/angle.gyp:libEGL', | |
142 ], | |
143 'defines': [ | |
144 'EGLAPI=', | |
145 'EGLAPIENTRY=', | |
146 ], | |
147 'msvs_disabled_warnings': [ | |
148 4018, # signed/unsigned mismatch | |
149 4101, # unreferenced local variable | |
150 4715, # not all control paths return a value | |
151 4267, # size_t/unsigned int conversion | |
152 ], | |
153 'defines!': [ 'NOMINMAX' ], | |
154 }], | |
155 ['OS=="mac"', { | |
156 'defines': [ | |
157 '_STDINT', | |
158 '_STDINT_H', | |
159 ], | |
160 'conditions': [ | |
161 [ 'clang==1', { | |
162 'xcode_settings': { | |
163 'LD': 'clang++', | |
164 'WARNING_CFLAGS': [ | |
165 '-Wno-pointer-sign', | |
166 '-Wno-array-bounds', | |
167 '-Wno-sizeof-pointer-memaccess', | |
168 '-Wno-implicit-function-declaration', | |
169 '-Wno-logical-op-parentheses', | |
170 '-Wno-tautological-compare', | |
171 '-Wno-parentheses-equality', | |
172 '-Wno-return-type', | |
173 ], | |
174 }, | |
175 }], | |
176 ], | |
177 }], | |
178 ], | |
179 'defines': [ | |
180 'GTF_API=GTF_GLES20', | |
181 'HKEMBEDDEDFILESYSTEM', | |
182 ], | |
183 'sources': [ | |
184 '<@(gtf_es_sources)', | |
185 '<@(gl2_extension_test_sources)', | |
186 '<@(gl2_fixed_test_sources)', | |
187 '<@(gl2_test_sources)', | |
188 # Include a dummy c++ file to force linking of libstdc++. | |
189 '<(DEPTH)/gpu/gles2_conform_support/dummy.cc', | |
190 ], | |
191 'run_as': { | |
192 'conditions': [ | |
193 ['OS=="win"', { | |
194 'action': [ | |
195 '$(TargetPath)', | |
196 '-noimagefileio', | |
197 '-run=<(DEPTH)/third_party/gles2_conform/GTF_ES/glsl/GTF/mustp
ass.run', | |
198 ], | |
199 }], | |
200 ], | |
201 }, | |
202 }, | |
203 ], | |
204 }], # internal_gles2_conform_tests | |
205 ['OS=="win" and internal_gles2_conform_tests', { | |
206 'targets': [ | |
207 { | |
208 'target_name': 'gles2_conform_test_angle', | |
209 'type': 'executable', | |
210 'dependencies': [ | |
211 'gles2_conform_test_embedded_data', | |
212 '<(DEPTH)/base/base.gyp:base', | |
213 '<(DEPTH)/third_party/expat/expat.gyp:expat', | |
214 '<(angle_path)/src/angle.gyp:libGLESv2', | |
215 '<(angle_path)/src/angle.gyp:libEGL', | |
216 '<(DEPTH)/gpu/gles2_conform_support/gles2_conform_support.gyp:egl_ma
in_native', | |
217 ], | |
218 'defines': [ | |
219 'GTF_API=GTF_GLES20', | |
220 ], | |
221 'include_dirs': [ | |
222 '<(DEPTH)/third_party/angle_dx11/include', | |
223 ], | |
224 'sources': [ | |
225 '<@(gtf_es_sources)', | |
226 '<@(gl2_extension_test_sources)', | |
227 '<@(gl2_fixed_test_sources)', | |
228 '<@(gl2_test_sources)', | |
229 ], | |
230 }, | |
231 ], | |
232 }], | |
233 | |
234 ['chromeos==1 and internal_gles2_conform_tests', { | |
235 'targets': [ | |
236 { | |
237 'target_name': 'gles2_conform_test_chromeos', | |
238 'type': 'executable', | |
239 'dependencies': [ | |
240 'gles2_conform_test_embedded_data', | |
241 '<(DEPTH)/base/base.gyp:*', | |
242 '<(DEPTH)/third_party/expat/expat.gyp:expat', | |
243 '<(DEPTH)/gpu/gles2_conform_support/gles2_conform_support.gyp:egl_ma
in_native', | |
244 ], | |
245 'libraries': [ | |
246 '-lEGL', | |
247 '-lGLESv2', | |
248 ], | |
249 'defines': [ | |
250 'GTF_API=GTF_GLES20', | |
251 'CHROMEOS_GLES2_CONFORMANCE', | |
252 ], | |
253 'sources': [ | |
254 '<@(gtf_es_sources)', | |
255 '<@(gl2_extension_test_sources)', | |
256 '<@(gl2_fixed_test_sources)', | |
257 '<@(gl2_test_sources)', | |
258 ], | |
259 }, | |
260 ], | |
261 }], | |
262 ], | |
263 } | |
264 | |
265 | |
266 # Local Variables: | |
267 # tab-width:2 | |
268 # indent-tabs-mode:nil | |
269 # End: | |
270 # vim: set expandtab tabstop=2 shiftwidth=2: | |
OLD | NEW |