blob: 4bffb3c93bf40812cca9ccebeac39f43ac93b1cf [file] [log] [blame]
Geoff Lang17732822013-08-29 13:46:49 -04001# Copyright (c) 2013 The ANGLE Project 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{
Brett Wilson04bac602014-07-16 14:19:18 -07006 'variables':
7 {
Daniel Bratell73941de2015-02-25 14:34:49 +01008 # These file lists are shared with the GN build.
Brett Wilson04bac602014-07-16 14:19:18 -07009 'angle_translator_lib_sources':
10 [
11 '../include/EGL/egl.h',
12 '../include/EGL/eglext.h',
13 '../include/EGL/eglplatform.h',
14 '../include/GLES2/gl2.h',
15 '../include/GLES2/gl2ext.h',
16 '../include/GLES2/gl2platform.h',
17 '../include/GLES3/gl3.h',
18 '../include/GLES3/gl3ext.h',
19 '../include/GLES3/gl3platform.h',
20 '../include/GLSLANG/ShaderLang.h',
Jamie Madill13cfd272014-07-17 14:16:28 -040021 '../include/GLSLANG/ShaderVars.h',
Brett Wilson04bac602014-07-16 14:19:18 -070022 '../include/KHR/khrplatform.h',
23 '../include/angle_gl.h',
Brett Wilson04bac602014-07-16 14:19:18 -070024 'compiler/translator/BaseTypes.h',
25 'compiler/translator/BuiltInFunctionEmulator.cpp',
26 'compiler/translator/BuiltInFunctionEmulator.h',
Olli Etuaho5c9cd3d2014-12-18 13:04:25 +020027 'compiler/translator/BuiltInFunctionEmulatorGLSL.cpp',
28 'compiler/translator/BuiltInFunctionEmulatorGLSL.h',
Corentin Wallez71d147f2015-02-11 11:15:24 -080029 'compiler/translator/CallDAG.cpp',
30 'compiler/translator/CallDAG.h',
Brett Wilson04bac602014-07-16 14:19:18 -070031 'compiler/translator/CodeGen.cpp',
32 'compiler/translator/Common.h',
33 'compiler/translator/Compiler.cpp',
34 'compiler/translator/Compiler.h',
35 'compiler/translator/ConstantUnion.h',
Brett Wilson04bac602014-07-16 14:19:18 -070036 'compiler/translator/Diagnostics.cpp',
37 'compiler/translator/Diagnostics.h',
38 'compiler/translator/DirectiveHandler.cpp',
39 'compiler/translator/DirectiveHandler.h',
Olli Etuaho853dc1a2014-11-06 17:25:48 +020040 'compiler/translator/EmulatePrecision.cpp',
41 'compiler/translator/EmulatePrecision.h',
Brett Wilson04bac602014-07-16 14:19:18 -070042 'compiler/translator/ExtensionBehavior.h',
43 'compiler/translator/FlagStd140Structs.cpp',
44 'compiler/translator/FlagStd140Structs.h',
45 'compiler/translator/ForLoopUnroll.cpp',
46 'compiler/translator/ForLoopUnroll.h',
47 'compiler/translator/HashNames.h',
48 'compiler/translator/InfoSink.cpp',
49 'compiler/translator/InfoSink.h',
50 'compiler/translator/Initialize.cpp',
51 'compiler/translator/Initialize.h',
52 'compiler/translator/InitializeDll.cpp',
53 'compiler/translator/InitializeDll.h',
54 'compiler/translator/InitializeGlobals.h',
55 'compiler/translator/InitializeParseContext.cpp',
56 'compiler/translator/InitializeParseContext.h',
57 'compiler/translator/InitializeVariables.cpp',
58 'compiler/translator/InitializeVariables.h',
Daniel Bratell73941de2015-02-25 14:34:49 +010059 'compiler/translator/IntermNode.h',
60 'compiler/translator/IntermNode.cpp',
Brett Wilson04bac602014-07-16 14:19:18 -070061 'compiler/translator/IntermTraverse.cpp',
Jamie Madillb1a85f42014-08-19 15:23:24 -040062 'compiler/translator/Intermediate.h',
Brett Wilson04bac602014-07-16 14:19:18 -070063 'compiler/translator/Intermediate.cpp',
64 'compiler/translator/LoopInfo.cpp',
65 'compiler/translator/LoopInfo.h',
66 'compiler/translator/MMap.h',
67 'compiler/translator/NodeSearch.h',
Olli Etuaho1033e1d2015-02-12 12:03:13 +020068 'compiler/translator/Operator.cpp',
69 'compiler/translator/Operator.h',
Brett Wilson04bac602014-07-16 14:19:18 -070070 'compiler/translator/OutputESSL.cpp',
71 'compiler/translator/OutputESSL.h',
72 'compiler/translator/OutputGLSL.cpp',
73 'compiler/translator/OutputGLSL.h',
74 'compiler/translator/OutputGLSLBase.cpp',
75 'compiler/translator/OutputGLSLBase.h',
Brett Wilson04bac602014-07-16 14:19:18 -070076 'compiler/translator/ParseContext.cpp',
77 'compiler/translator/ParseContext.h',
78 'compiler/translator/PoolAlloc.cpp',
79 'compiler/translator/PoolAlloc.h',
80 'compiler/translator/Pragma.h',
81 'compiler/translator/QualifierAlive.cpp',
82 'compiler/translator/QualifierAlive.h',
Zhenyao Moe740add2014-07-18 17:01:01 -070083 'compiler/translator/RegenerateStructNames.cpp',
84 'compiler/translator/RegenerateStructNames.h',
Brett Wilson04bac602014-07-16 14:19:18 -070085 'compiler/translator/RenameFunction.h',
Brett Wilson04bac602014-07-16 14:19:18 -070086 'compiler/translator/ScalarizeVecAndMatConstructorArgs.cpp',
87 'compiler/translator/ScalarizeVecAndMatConstructorArgs.h',
88 'compiler/translator/SearchSymbol.cpp',
89 'compiler/translator/SearchSymbol.h',
Brett Wilson04bac602014-07-16 14:19:18 -070090 'compiler/translator/SymbolTable.cpp',
91 'compiler/translator/SymbolTable.h',
92 'compiler/translator/TranslatorESSL.cpp',
93 'compiler/translator/TranslatorESSL.h',
94 'compiler/translator/TranslatorGLSL.cpp',
95 'compiler/translator/TranslatorGLSL.h',
Brett Wilson04bac602014-07-16 14:19:18 -070096 'compiler/translator/Types.cpp',
97 'compiler/translator/Types.h',
Brett Wilson04bac602014-07-16 14:19:18 -070098 'compiler/translator/UnfoldShortCircuitAST.cpp',
99 'compiler/translator/UnfoldShortCircuitAST.h',
Brett Wilson04bac602014-07-16 14:19:18 -0700100 'compiler/translator/ValidateLimitations.cpp',
101 'compiler/translator/ValidateLimitations.h',
102 'compiler/translator/ValidateOutputs.cpp',
103 'compiler/translator/ValidateOutputs.h',
Olli Etuahoac5274d2015-02-20 10:19:08 +0200104 'compiler/translator/ValidateSwitch.cpp',
105 'compiler/translator/ValidateSwitch.h',
Brett Wilson04bac602014-07-16 14:19:18 -0700106 'compiler/translator/VariableInfo.cpp',
107 'compiler/translator/VariableInfo.h',
108 'compiler/translator/VariablePacker.cpp',
109 'compiler/translator/VariablePacker.h',
110 'compiler/translator/VersionGLSL.cpp',
111 'compiler/translator/VersionGLSL.h',
Jamie Madill9e0478f2015-01-13 11:13:54 -0500112 'compiler/translator/blocklayout.cpp',
113 'compiler/translator/blocklayout.h',
Brett Wilson04bac602014-07-16 14:19:18 -0700114 'compiler/translator/compilerdebug.cpp',
115 'compiler/translator/compilerdebug.h',
116 'compiler/translator/depgraph/DependencyGraph.cpp',
117 'compiler/translator/depgraph/DependencyGraph.h',
118 'compiler/translator/depgraph/DependencyGraphBuilder.cpp',
119 'compiler/translator/depgraph/DependencyGraphBuilder.h',
120 'compiler/translator/depgraph/DependencyGraphOutput.cpp',
121 'compiler/translator/depgraph/DependencyGraphOutput.h',
122 'compiler/translator/depgraph/DependencyGraphTraverse.cpp',
123 'compiler/translator/glslang.h',
124 'compiler/translator/glslang.l',
125 'compiler/translator/glslang.y',
126 'compiler/translator/glslang_lex.cpp',
127 'compiler/translator/glslang_tab.cpp',
128 'compiler/translator/glslang_tab.h',
129 'compiler/translator/intermOut.cpp',
130 'compiler/translator/intermediate.h',
131 'compiler/translator/length_limits.h',
Brett Wilson04bac602014-07-16 14:19:18 -0700132 'compiler/translator/parseConst.cpp',
133 'compiler/translator/timing/RestrictFragmentShaderTiming.cpp',
134 'compiler/translator/timing/RestrictFragmentShaderTiming.h',
135 'compiler/translator/timing/RestrictVertexShaderTiming.cpp',
136 'compiler/translator/timing/RestrictVertexShaderTiming.h',
137 'compiler/translator/util.cpp',
138 'compiler/translator/util.h',
139 'third_party/compiler/ArrayBoundsClamper.cpp',
140 'third_party/compiler/ArrayBoundsClamper.h',
141 ],
Daniel Bratell73941de2015-02-25 14:34:49 +0100142 'angle_translator_lib_hlsl_sources':
143 [
Corentin Wallezf4eab3b2015-03-18 12:55:45 -0700144 'compiler/translator/ASTMetadataHLSL.cpp',
145 'compiler/translator/ASTMetadataHLSL.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100146 'compiler/translator/blocklayoutHLSL.cpp',
147 'compiler/translator/blocklayoutHLSL.h',
148 'compiler/translator/BuiltInFunctionEmulatorHLSL.cpp',
149 'compiler/translator/BuiltInFunctionEmulatorHLSL.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100150 'compiler/translator/OutputHLSL.cpp',
151 'compiler/translator/OutputHLSL.h',
Olli Etuaho2cd7a0e2015-02-27 13:57:32 +0200152 'compiler/translator/RemoveSwitchFallThrough.cpp',
153 'compiler/translator/RemoveSwitchFallThrough.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100154 'compiler/translator/RewriteElseBlocks.cpp',
155 'compiler/translator/RewriteElseBlocks.h',
Olli Etuahofc0e2bc2015-04-16 13:39:56 +0300156 'compiler/translator/SeparateDeclarations.cpp',
157 'compiler/translator/SeparateDeclarations.h',
Olli Etuahob2d6a9b2015-03-30 16:00:53 +0300158 'compiler/translator/SimplifyArrayAssignment.cpp',
159 'compiler/translator/SimplifyArrayAssignment.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100160 'compiler/translator/StructureHLSL.cpp',
161 'compiler/translator/StructureHLSL.h',
162 'compiler/translator/TranslatorHLSL.cpp',
163 'compiler/translator/TranslatorHLSL.h',
164 'compiler/translator/UnfoldShortCircuit.cpp',
165 'compiler/translator/UnfoldShortCircuit.h',
166 'compiler/translator/UniformHLSL.cpp',
167 'compiler/translator/UniformHLSL.h',
168 'compiler/translator/UtilsHLSL.cpp',
169 'compiler/translator/UtilsHLSL.h',
170 ],
Brett Wilson04bac602014-07-16 14:19:18 -0700171 'angle_preprocessor_sources':
172 [
173 'compiler/preprocessor/DiagnosticsBase.cpp',
174 'compiler/preprocessor/DiagnosticsBase.h',
175 'compiler/preprocessor/DirectiveHandlerBase.cpp',
176 'compiler/preprocessor/DirectiveHandlerBase.h',
177 'compiler/preprocessor/DirectiveParser.cpp',
178 'compiler/preprocessor/DirectiveParser.h',
179 'compiler/preprocessor/ExpressionParser.cpp',
180 'compiler/preprocessor/ExpressionParser.h',
181 'compiler/preprocessor/ExpressionParser.y',
182 'compiler/preprocessor/Input.cpp',
183 'compiler/preprocessor/Input.h',
184 'compiler/preprocessor/Lexer.cpp',
185 'compiler/preprocessor/Lexer.h',
186 'compiler/preprocessor/Macro.cpp',
187 'compiler/preprocessor/Macro.h',
188 'compiler/preprocessor/MacroExpander.cpp',
189 'compiler/preprocessor/MacroExpander.h',
190 'compiler/preprocessor/Preprocessor.cpp',
191 'compiler/preprocessor/Preprocessor.h',
192 'compiler/preprocessor/SourceLocation.h',
193 'compiler/preprocessor/Token.cpp',
194 'compiler/preprocessor/Token.h',
195 'compiler/preprocessor/Tokenizer.cpp',
196 'compiler/preprocessor/Tokenizer.h',
197 'compiler/preprocessor/Tokenizer.l',
198 'compiler/preprocessor/numeric_lex.h',
199 'compiler/preprocessor/pp_utils.h',
200 ],
201 },
202 # Everything below this is duplicated in the GN build. If you change
203 # anything also change angle/BUILD.gn
Geoff Lang17732822013-08-29 13:46:49 -0400204 'targets':
205 [
206 {
207 'target_name': 'preprocessor',
208 'type': 'static_library',
Geoff Langd095bda2014-04-07 14:21:14 -0400209 'includes': [ '../build/common_defines.gypi', ],
Brett Wilson04bac602014-07-16 14:19:18 -0700210 'sources': [ '<@(angle_preprocessor_sources)', ],
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700211 'conditions':
212 [
213 ['angle_build_winrt==1',
214 {
215 'msvs_enable_winrt' : '1',
216 }],
217 ['angle_build_winphone==1',
218 {
219 'msvs_enable_winphone' : '1',
220 }],
221 ],
Geoff Lang17732822013-08-29 13:46:49 -0400222 },
Geoff Lang17732822013-08-29 13:46:49 -0400223 {
Jamie Madill006ed1e2014-04-28 15:47:39 -0400224 'target_name': 'translator_lib',
225 'type': 'static_library',
Jamie Madill562e81b2015-01-14 14:31:02 -0500226 'dependencies': [ 'preprocessor', 'angle_common' ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400227 'includes': [ '../build/common_defines.gypi', ],
228 'include_dirs':
229 [
230 '.',
231 '../include',
232 ],
Jamie Madilla2ad4e82014-07-17 14:16:32 -0400233 'defines':
234 [
235 # define the static translator to indicate exported
236 # classes are (in fact) locally defined
237 'ANGLE_TRANSLATOR_STATIC',
238 ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400239 'sources':
240 [
Brett Wilson04bac602014-07-16 14:19:18 -0700241 '<@(angle_translator_lib_sources)',
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400242 ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400243 'msvs_settings':
244 {
245 'VCLibrarianTool':
246 {
247 'AdditionalOptions': ['/ignore:4221']
248 },
249 },
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700250 'conditions':
251 [
252 ['angle_build_winrt==1',
253 {
254 'msvs_enable_winrt' : '1',
255 }],
256 ['angle_build_winphone==1',
257 {
258 'msvs_enable_winphone' : '1',
259 }],
Daniel Bratell73941de2015-02-25 14:34:49 +0100260 ['angle_enable_hlsl==1',
261 {
262 'defines':
263 [
264 'ANGLE_ENABLE_HLSL',
265 ],
266 'direct_dependent_settings':
267 {
268 'defines':
269 [
270 'ANGLE_ENABLE_HLSL',
271 ],
272 },
273 'sources':
274 [
275 '<@(angle_translator_lib_hlsl_sources)',
276 ],
277 }],
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700278 ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400279 },
Geoff Lang2b6008c2013-10-08 10:44:05 -0400280
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400281 {
Jamie Madill006ed1e2014-04-28 15:47:39 -0400282 'target_name': 'translator',
283 'type': '<(component)',
Jamie Madill562e81b2015-01-14 14:31:02 -0500284 'dependencies': [ 'translator_lib', 'angle_common' ],
Jamie Madill006ed1e2014-04-28 15:47:39 -0400285 'includes': [ '../build/common_defines.gypi', ],
286 'include_dirs':
287 [
288 '.',
289 '../include',
290 ],
291 'defines':
292 [
293 'ANGLE_TRANSLATOR_IMPLEMENTATION',
294 ],
295 'sources':
296 [
Jamie Madilla2ad4e82014-07-17 14:16:32 -0400297 'compiler/translator/ShaderLang.cpp',
298 'compiler/translator/ShaderVars.cpp'
Jamie Madill006ed1e2014-04-28 15:47:39 -0400299 ],
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700300 'conditions':
301 [
302 ['angle_build_winrt==1',
303 {
304 'msvs_enable_winrt' : '1',
305 }],
306 ['angle_build_winphone==1',
307 {
308 'msvs_enable_winphone' : '1',
309 }],
310 ],
Jamie Madill006ed1e2014-04-28 15:47:39 -0400311 },
312
313 {
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400314 'target_name': 'translator_static',
315 'type': 'static_library',
Jamie Madill006ed1e2014-04-28 15:47:39 -0400316 'dependencies': [ 'translator_lib' ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400317 'includes': [ '../build/common_defines.gypi', ],
318 'include_dirs':
319 [
320 '.',
321 '../include',
322 ],
Geoff Lang17732822013-08-29 13:46:49 -0400323 'defines':
324 [
Geoff Lang31f0dc02013-10-08 13:29:13 -0400325 'ANGLE_TRANSLATOR_STATIC',
Geoff Lang17732822013-08-29 13:46:49 -0400326 ],
Geoff Lang2b6008c2013-10-08 10:44:05 -0400327 'direct_dependent_settings':
328 {
329 'defines':
330 [
331 'ANGLE_TRANSLATOR_STATIC',
332 ],
333 },
Jamie Madilld51df462014-02-26 14:18:17 -0500334 'sources':
335 [
Jamie Madilla2ad4e82014-07-17 14:16:32 -0400336 'compiler/translator/ShaderLang.cpp',
337 'compiler/translator/ShaderVars.cpp'
Jamie Madilld51df462014-02-26 14:18:17 -0500338 ],
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700339 'conditions':
340 [
341 ['angle_build_winrt==1',
342 {
343 'msvs_enable_winrt' : '1',
344 }],
345 ['angle_build_winphone==1',
346 {
347 'msvs_enable_winphone' : '1',
348 }],
349 ],
Geoff Lang17732822013-08-29 13:46:49 -0400350 },
351 ],
352}