blob: c58891325f68eb94b328d18a8945dbedf72fdf01 [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',
Brett Wilson04bac602014-07-16 14:19:18 -070018 '../include/GLES3/gl3platform.h',
Geoff Langee483762015-09-15 13:12:07 -040019 '../include/GLES3/gl31.h',
20 '../include/GLES3/gl32.h',
Brett Wilson04bac602014-07-16 14:19:18 -070021 '../include/GLSLANG/ShaderLang.h',
Jamie Madill13cfd272014-07-17 14:16:28 -040022 '../include/GLSLANG/ShaderVars.h',
Brett Wilson04bac602014-07-16 14:19:18 -070023 '../include/KHR/khrplatform.h',
24 '../include/angle_gl.h',
Brett Wilson04bac602014-07-16 14:19:18 -070025 'compiler/translator/BaseTypes.h',
26 'compiler/translator/BuiltInFunctionEmulator.cpp',
27 'compiler/translator/BuiltInFunctionEmulator.h',
Dmitry Skiba01971112015-07-10 14:54:00 -040028 'compiler/translator/Cache.cpp',
29 'compiler/translator/Cache.h',
Corentin Wallez71d147f2015-02-11 11:15:24 -080030 'compiler/translator/CallDAG.cpp',
31 'compiler/translator/CallDAG.h',
Brett Wilson04bac602014-07-16 14:19:18 -070032 'compiler/translator/CodeGen.cpp',
33 'compiler/translator/Common.h',
34 'compiler/translator/Compiler.cpp',
35 'compiler/translator/Compiler.h',
36 'compiler/translator/ConstantUnion.h',
Brett Wilson04bac602014-07-16 14:19:18 -070037 'compiler/translator/Diagnostics.cpp',
38 'compiler/translator/Diagnostics.h',
39 'compiler/translator/DirectiveHandler.cpp',
40 'compiler/translator/DirectiveHandler.h',
Olli Etuaho853dc1a2014-11-06 17:25:48 +020041 'compiler/translator/EmulatePrecision.cpp',
42 'compiler/translator/EmulatePrecision.h',
Brett Wilson04bac602014-07-16 14:19:18 -070043 'compiler/translator/ExtensionBehavior.h',
44 'compiler/translator/FlagStd140Structs.cpp',
45 'compiler/translator/FlagStd140Structs.h',
46 'compiler/translator/ForLoopUnroll.cpp',
47 'compiler/translator/ForLoopUnroll.h',
48 'compiler/translator/HashNames.h',
49 'compiler/translator/InfoSink.cpp',
50 'compiler/translator/InfoSink.h',
51 'compiler/translator/Initialize.cpp',
52 'compiler/translator/Initialize.h',
53 'compiler/translator/InitializeDll.cpp',
54 'compiler/translator/InitializeDll.h',
55 'compiler/translator/InitializeGlobals.h',
56 'compiler/translator/InitializeParseContext.cpp',
57 'compiler/translator/InitializeParseContext.h',
58 'compiler/translator/InitializeVariables.cpp',
59 'compiler/translator/InitializeVariables.h',
Daniel Bratell73941de2015-02-25 14:34:49 +010060 'compiler/translator/IntermNode.h',
61 'compiler/translator/IntermNode.cpp',
Brett Wilson04bac602014-07-16 14:19:18 -070062 'compiler/translator/IntermTraverse.cpp',
Jamie Madillb1a85f42014-08-19 15:23:24 -040063 'compiler/translator/Intermediate.h',
Brett Wilson04bac602014-07-16 14:19:18 -070064 'compiler/translator/Intermediate.cpp',
65 'compiler/translator/LoopInfo.cpp',
66 'compiler/translator/LoopInfo.h',
67 'compiler/translator/MMap.h',
68 'compiler/translator/NodeSearch.h',
Olli Etuaho1033e1d2015-02-12 12:03:13 +020069 'compiler/translator/Operator.cpp',
70 'compiler/translator/Operator.h',
Brett Wilson04bac602014-07-16 14:19:18 -070071 'compiler/translator/ParseContext.cpp',
72 'compiler/translator/ParseContext.h',
73 'compiler/translator/PoolAlloc.cpp',
74 'compiler/translator/PoolAlloc.h',
75 'compiler/translator/Pragma.h',
Olli Etuahoc6833112015-04-22 15:15:54 +030076 'compiler/translator/PruneEmptyDeclarations.cpp',
77 'compiler/translator/PruneEmptyDeclarations.h',
Olli Etuahoa4aa4e32015-06-04 15:54:30 +030078 'compiler/translator/RecordConstantPrecision.cpp',
79 'compiler/translator/RecordConstantPrecision.h',
Zhenyao Moe740add2014-07-18 17:01:01 -070080 'compiler/translator/RegenerateStructNames.cpp',
81 'compiler/translator/RegenerateStructNames.h',
Olli Etuaho5c407bb2015-06-01 12:20:39 +030082 'compiler/translator/RemovePow.cpp',
83 'compiler/translator/RemovePow.h',
Corentin Wallezd4b50542015-09-28 12:19:26 -070084 'compiler/translator/RewriteDoWhile.cpp',
85 'compiler/translator/RewriteDoWhile.h',
Brett Wilson04bac602014-07-16 14:19:18 -070086 'compiler/translator/RenameFunction.h',
Brett Wilson04bac602014-07-16 14:19:18 -070087 'compiler/translator/ScalarizeVecAndMatConstructorArgs.cpp',
88 'compiler/translator/ScalarizeVecAndMatConstructorArgs.h',
89 'compiler/translator/SearchSymbol.cpp',
90 'compiler/translator/SearchSymbol.h',
Brett Wilson04bac602014-07-16 14:19:18 -070091 'compiler/translator/SymbolTable.cpp',
92 'compiler/translator/SymbolTable.h',
Brett Wilson04bac602014-07-16 14:19:18 -070093 'compiler/translator/Types.cpp',
94 'compiler/translator/Types.h',
Brett Wilson04bac602014-07-16 14:19:18 -070095 'compiler/translator/UnfoldShortCircuitAST.cpp',
96 'compiler/translator/UnfoldShortCircuitAST.h',
Olli Etuahob0c645e2015-05-12 14:25:36 +030097 'compiler/translator/ValidateGlobalInitializer.cpp',
98 'compiler/translator/ValidateGlobalInitializer.h',
Brett Wilson04bac602014-07-16 14:19:18 -070099 'compiler/translator/ValidateLimitations.cpp',
100 'compiler/translator/ValidateLimitations.h',
Olli Etuaho19d1dc92016-03-08 17:18:46 +0200101 'compiler/translator/ValidateMaxParameters.h',
102 'compiler/translator/ValidateMaxParameters.cpp',
Brett Wilson04bac602014-07-16 14:19:18 -0700103 'compiler/translator/ValidateOutputs.cpp',
104 'compiler/translator/ValidateOutputs.h',
Olli Etuahoac5274d2015-02-20 10:19:08 +0200105 'compiler/translator/ValidateSwitch.cpp',
106 'compiler/translator/ValidateSwitch.h',
Brett Wilson04bac602014-07-16 14:19:18 -0700107 'compiler/translator/VariableInfo.cpp',
108 'compiler/translator/VariableInfo.h',
109 'compiler/translator/VariablePacker.cpp',
110 'compiler/translator/VariablePacker.h',
Jamie Madill9e0478f2015-01-13 11:13:54 -0500111 'compiler/translator/blocklayout.cpp',
112 'compiler/translator/blocklayout.h',
Brett Wilson04bac602014-07-16 14:19:18 -0700113 'compiler/translator/depgraph/DependencyGraph.cpp',
114 'compiler/translator/depgraph/DependencyGraph.h',
115 'compiler/translator/depgraph/DependencyGraphBuilder.cpp',
116 'compiler/translator/depgraph/DependencyGraphBuilder.h',
117 'compiler/translator/depgraph/DependencyGraphOutput.cpp',
118 'compiler/translator/depgraph/DependencyGraphOutput.h',
119 'compiler/translator/depgraph/DependencyGraphTraverse.cpp',
120 'compiler/translator/glslang.h',
121 'compiler/translator/glslang.l',
122 'compiler/translator/glslang.y',
123 'compiler/translator/glslang_lex.cpp',
124 'compiler/translator/glslang_tab.cpp',
125 'compiler/translator/glslang_tab.h',
126 'compiler/translator/intermOut.cpp',
Brett Wilson04bac602014-07-16 14:19:18 -0700127 'compiler/translator/length_limits.h',
Brett Wilson04bac602014-07-16 14:19:18 -0700128 'compiler/translator/timing/RestrictFragmentShaderTiming.cpp',
129 'compiler/translator/timing/RestrictFragmentShaderTiming.h',
130 'compiler/translator/timing/RestrictVertexShaderTiming.cpp',
131 'compiler/translator/timing/RestrictVertexShaderTiming.h',
132 'compiler/translator/util.cpp',
133 'compiler/translator/util.h',
134 'third_party/compiler/ArrayBoundsClamper.cpp',
135 'third_party/compiler/ArrayBoundsClamper.h',
136 ],
Austin Kinross82b5ab62015-12-11 09:30:15 -0800137 'angle_translator_lib_essl_sources':
138 [
139 'compiler/translator/OutputESSL.cpp',
140 'compiler/translator/OutputESSL.h',
141 'compiler/translator/TranslatorESSL.cpp',
142 'compiler/translator/TranslatorESSL.h',
143 ],
144 'angle_translator_lib_glsl_sources':
145 [
146 'compiler/translator/BuiltInFunctionEmulatorGLSL.cpp',
147 'compiler/translator/BuiltInFunctionEmulatorGLSL.h',
148 'compiler/translator/ExtensionGLSL.cpp',
149 'compiler/translator/ExtensionGLSL.h',
150 'compiler/translator/OutputGLSL.cpp',
151 'compiler/translator/OutputGLSL.h',
152 'compiler/translator/OutputGLSLBase.cpp',
153 'compiler/translator/OutputGLSLBase.h',
154 'compiler/translator/TranslatorGLSL.cpp',
155 'compiler/translator/TranslatorGLSL.h',
156 'compiler/translator/VersionGLSL.cpp',
157 'compiler/translator/VersionGLSL.h',
158 ],
Daniel Bratell73941de2015-02-25 14:34:49 +0100159 'angle_translator_lib_hlsl_sources':
160 [
Olli Etuahoa8c414b2015-04-16 15:51:03 +0300161 'compiler/translator/ArrayReturnValueToOutParameter.cpp',
162 'compiler/translator/ArrayReturnValueToOutParameter.h',
Corentin Wallezf4eab3b2015-03-18 12:55:45 -0700163 'compiler/translator/ASTMetadataHLSL.cpp',
164 'compiler/translator/ASTMetadataHLSL.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100165 'compiler/translator/blocklayoutHLSL.cpp',
166 'compiler/translator/blocklayoutHLSL.h',
167 'compiler/translator/BuiltInFunctionEmulatorHLSL.cpp',
168 'compiler/translator/BuiltInFunctionEmulatorHLSL.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100169 'compiler/translator/OutputHLSL.cpp',
170 'compiler/translator/OutputHLSL.h',
Olli Etuaho5d91dda2015-06-18 15:47:46 +0300171 'compiler/translator/RemoveDynamicIndexing.cpp',
172 'compiler/translator/RemoveDynamicIndexing.h',
Olli Etuaho2cd7a0e2015-02-27 13:57:32 +0200173 'compiler/translator/RemoveSwitchFallThrough.cpp',
174 'compiler/translator/RemoveSwitchFallThrough.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100175 'compiler/translator/RewriteElseBlocks.cpp',
176 'compiler/translator/RewriteElseBlocks.h',
Olli Etuaho822fa842015-04-16 14:26:10 +0300177 'compiler/translator/SeparateArrayInitialization.cpp',
178 'compiler/translator/SeparateArrayInitialization.h',
Olli Etuahofc0e2bc2015-04-16 13:39:56 +0300179 'compiler/translator/SeparateDeclarations.cpp',
180 'compiler/translator/SeparateDeclarations.h',
Olli Etuahoa5316a12015-05-15 15:25:16 +0300181 'compiler/translator/SeparateExpressionsReturningArrays.cpp',
182 'compiler/translator/SeparateExpressionsReturningArrays.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100183 'compiler/translator/StructureHLSL.cpp',
184 'compiler/translator/StructureHLSL.h',
185 'compiler/translator/TranslatorHLSL.cpp',
186 'compiler/translator/TranslatorHLSL.h',
Olli Etuahoa6f22092015-05-08 18:31:10 +0300187 'compiler/translator/UnfoldShortCircuitToIf.cpp',
188 'compiler/translator/UnfoldShortCircuitToIf.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100189 'compiler/translator/UniformHLSL.cpp',
190 'compiler/translator/UniformHLSL.h',
191 'compiler/translator/UtilsHLSL.cpp',
192 'compiler/translator/UtilsHLSL.h',
193 ],
Brett Wilson04bac602014-07-16 14:19:18 -0700194 'angle_preprocessor_sources':
195 [
196 'compiler/preprocessor/DiagnosticsBase.cpp',
197 'compiler/preprocessor/DiagnosticsBase.h',
198 'compiler/preprocessor/DirectiveHandlerBase.cpp',
199 'compiler/preprocessor/DirectiveHandlerBase.h',
200 'compiler/preprocessor/DirectiveParser.cpp',
201 'compiler/preprocessor/DirectiveParser.h',
202 'compiler/preprocessor/ExpressionParser.cpp',
203 'compiler/preprocessor/ExpressionParser.h',
204 'compiler/preprocessor/ExpressionParser.y',
205 'compiler/preprocessor/Input.cpp',
206 'compiler/preprocessor/Input.h',
207 'compiler/preprocessor/Lexer.cpp',
208 'compiler/preprocessor/Lexer.h',
209 'compiler/preprocessor/Macro.cpp',
210 'compiler/preprocessor/Macro.h',
211 'compiler/preprocessor/MacroExpander.cpp',
212 'compiler/preprocessor/MacroExpander.h',
213 'compiler/preprocessor/Preprocessor.cpp',
214 'compiler/preprocessor/Preprocessor.h',
215 'compiler/preprocessor/SourceLocation.h',
216 'compiler/preprocessor/Token.cpp',
217 'compiler/preprocessor/Token.h',
218 'compiler/preprocessor/Tokenizer.cpp',
219 'compiler/preprocessor/Tokenizer.h',
220 'compiler/preprocessor/Tokenizer.l',
221 'compiler/preprocessor/numeric_lex.h',
222 'compiler/preprocessor/pp_utils.h',
223 ],
224 },
225 # Everything below this is duplicated in the GN build. If you change
226 # anything also change angle/BUILD.gn
Geoff Lang17732822013-08-29 13:46:49 -0400227 'targets':
228 [
229 {
230 'target_name': 'preprocessor',
231 'type': 'static_library',
Geoff Langd095bda2014-04-07 14:21:14 -0400232 'includes': [ '../build/common_defines.gypi', ],
Brett Wilson04bac602014-07-16 14:19:18 -0700233 'sources': [ '<@(angle_preprocessor_sources)', ],
Geoff Lang17732822013-08-29 13:46:49 -0400234 },
Geoff Lang17732822013-08-29 13:46:49 -0400235 {
Jamie Madill006ed1e2014-04-28 15:47:39 -0400236 'target_name': 'translator_lib',
237 'type': 'static_library',
Jamie Madill562e81b2015-01-14 14:31:02 -0500238 'dependencies': [ 'preprocessor', 'angle_common' ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400239 'includes': [ '../build/common_defines.gypi', ],
240 'include_dirs':
241 [
242 '.',
243 '../include',
244 ],
Jamie Madilla2ad4e82014-07-17 14:16:32 -0400245 'defines':
246 [
247 # define the static translator to indicate exported
248 # classes are (in fact) locally defined
249 'ANGLE_TRANSLATOR_STATIC',
250 ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400251 'sources':
252 [
Brett Wilson04bac602014-07-16 14:19:18 -0700253 '<@(angle_translator_lib_sources)',
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400254 ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400255 'msvs_settings':
256 {
257 'VCLibrarianTool':
258 {
259 'AdditionalOptions': ['/ignore:4221']
260 },
261 },
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700262 'conditions':
263 [
Austin Kinross82b5ab62015-12-11 09:30:15 -0800264 ['angle_enable_essl==1',
265 {
266 'defines':
267 [
268 'ANGLE_ENABLE_ESSL',
269 ],
270 'direct_dependent_settings':
271 {
272 'defines':
273 [
274 'ANGLE_ENABLE_ESSL',
275 ],
276 },
277 'sources':
278 [
279 '<@(angle_translator_lib_essl_sources)',
280 ],
281 }],
282 ['angle_enable_glsl==1',
283 {
284 'defines':
285 [
286 'ANGLE_ENABLE_GLSL',
287 ],
288 'direct_dependent_settings':
289 {
290 'defines':
291 [
292 'ANGLE_ENABLE_GLSL',
293 ],
294 },
295 'sources':
296 [
297 '<@(angle_translator_lib_glsl_sources)',
298 ],
299 }],
Daniel Bratell73941de2015-02-25 14:34:49 +0100300 ['angle_enable_hlsl==1',
301 {
302 'defines':
303 [
304 'ANGLE_ENABLE_HLSL',
305 ],
306 'direct_dependent_settings':
307 {
308 'defines':
309 [
310 'ANGLE_ENABLE_HLSL',
311 ],
312 },
313 'sources':
314 [
315 '<@(angle_translator_lib_hlsl_sources)',
316 ],
317 }],
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700318 ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400319 },
Geoff Lang2b6008c2013-10-08 10:44:05 -0400320
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400321 {
Jamie Madill006ed1e2014-04-28 15:47:39 -0400322 'target_name': 'translator',
323 'type': '<(component)',
Jamie Madill562e81b2015-01-14 14:31:02 -0500324 'dependencies': [ 'translator_lib', 'angle_common' ],
Jamie Madill006ed1e2014-04-28 15:47:39 -0400325 'includes': [ '../build/common_defines.gypi', ],
326 'include_dirs':
327 [
328 '.',
329 '../include',
330 ],
331 'defines':
332 [
333 'ANGLE_TRANSLATOR_IMPLEMENTATION',
334 ],
335 'sources':
336 [
Jamie Madilla2ad4e82014-07-17 14:16:32 -0400337 'compiler/translator/ShaderLang.cpp',
338 'compiler/translator/ShaderVars.cpp'
Jamie Madill006ed1e2014-04-28 15:47:39 -0400339 ],
340 },
341
342 {
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400343 'target_name': 'translator_static',
344 'type': 'static_library',
Jamie Madill006ed1e2014-04-28 15:47:39 -0400345 'dependencies': [ 'translator_lib' ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400346 'includes': [ '../build/common_defines.gypi', ],
347 'include_dirs':
348 [
349 '.',
350 '../include',
351 ],
Geoff Lang17732822013-08-29 13:46:49 -0400352 'defines':
353 [
Geoff Lang31f0dc02013-10-08 13:29:13 -0400354 'ANGLE_TRANSLATOR_STATIC',
Geoff Lang17732822013-08-29 13:46:49 -0400355 ],
Geoff Lang2b6008c2013-10-08 10:44:05 -0400356 'direct_dependent_settings':
357 {
358 'defines':
359 [
360 'ANGLE_TRANSLATOR_STATIC',
361 ],
362 },
Jamie Madilld51df462014-02-26 14:18:17 -0500363 'sources':
364 [
Jamie Madilla2ad4e82014-07-17 14:16:32 -0400365 'compiler/translator/ShaderLang.cpp',
366 'compiler/translator/ShaderVars.cpp'
Jamie Madilld51df462014-02-26 14:18:17 -0500367 ],
Geoff Lang17732822013-08-29 13:46:49 -0400368 },
369 ],
370}