blob: feb8a0ee723d35301022290e963e064f914a0798 [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',
Olli Etuaho3d932d82016-04-12 11:10:30 +030037 'compiler/translator/DeferGlobalInitializers.cpp',
38 'compiler/translator/DeferGlobalInitializers.h',
Brett Wilson04bac602014-07-16 14:19:18 -070039 'compiler/translator/Diagnostics.cpp',
40 'compiler/translator/Diagnostics.h',
41 'compiler/translator/DirectiveHandler.cpp',
42 'compiler/translator/DirectiveHandler.h',
Olli Etuaho853dc1a2014-11-06 17:25:48 +020043 'compiler/translator/EmulatePrecision.cpp',
44 'compiler/translator/EmulatePrecision.h',
Brett Wilson04bac602014-07-16 14:19:18 -070045 'compiler/translator/ExtensionBehavior.h',
46 'compiler/translator/FlagStd140Structs.cpp',
47 'compiler/translator/FlagStd140Structs.h',
48 'compiler/translator/ForLoopUnroll.cpp',
49 'compiler/translator/ForLoopUnroll.h',
50 'compiler/translator/HashNames.h',
51 'compiler/translator/InfoSink.cpp',
52 'compiler/translator/InfoSink.h',
53 'compiler/translator/Initialize.cpp',
54 'compiler/translator/Initialize.h',
55 'compiler/translator/InitializeDll.cpp',
56 'compiler/translator/InitializeDll.h',
57 'compiler/translator/InitializeGlobals.h',
58 'compiler/translator/InitializeParseContext.cpp',
59 'compiler/translator/InitializeParseContext.h',
60 'compiler/translator/InitializeVariables.cpp',
61 'compiler/translator/InitializeVariables.h',
Daniel Bratell73941de2015-02-25 14:34:49 +010062 'compiler/translator/IntermNode.h',
63 'compiler/translator/IntermNode.cpp',
Brett Wilson04bac602014-07-16 14:19:18 -070064 'compiler/translator/IntermTraverse.cpp',
Jamie Madillb1a85f42014-08-19 15:23:24 -040065 'compiler/translator/Intermediate.h',
Brett Wilson04bac602014-07-16 14:19:18 -070066 'compiler/translator/Intermediate.cpp',
67 'compiler/translator/LoopInfo.cpp',
68 'compiler/translator/LoopInfo.h',
69 'compiler/translator/MMap.h',
70 'compiler/translator/NodeSearch.h',
Olli Etuaho1033e1d2015-02-12 12:03:13 +020071 'compiler/translator/Operator.cpp',
72 'compiler/translator/Operator.h',
Brett Wilson04bac602014-07-16 14:19:18 -070073 'compiler/translator/ParseContext.cpp',
74 'compiler/translator/ParseContext.h',
75 'compiler/translator/PoolAlloc.cpp',
76 'compiler/translator/PoolAlloc.h',
77 'compiler/translator/Pragma.h',
Olli Etuahoc6833112015-04-22 15:15:54 +030078 'compiler/translator/PruneEmptyDeclarations.cpp',
79 'compiler/translator/PruneEmptyDeclarations.h',
Olli Etuahoa4aa4e32015-06-04 15:54:30 +030080 'compiler/translator/RecordConstantPrecision.cpp',
81 'compiler/translator/RecordConstantPrecision.h',
Zhenyao Moe740add2014-07-18 17:01:01 -070082 'compiler/translator/RegenerateStructNames.cpp',
83 'compiler/translator/RegenerateStructNames.h',
Olli Etuaho5c407bb2015-06-01 12:20:39 +030084 'compiler/translator/RemovePow.cpp',
85 'compiler/translator/RemovePow.h',
Corentin Wallezd4b50542015-09-28 12:19:26 -070086 'compiler/translator/RewriteDoWhile.cpp',
87 'compiler/translator/RewriteDoWhile.h',
Brett Wilson04bac602014-07-16 14:19:18 -070088 'compiler/translator/RenameFunction.h',
Brett Wilson04bac602014-07-16 14:19:18 -070089 'compiler/translator/ScalarizeVecAndMatConstructorArgs.cpp',
90 'compiler/translator/ScalarizeVecAndMatConstructorArgs.h',
91 'compiler/translator/SearchSymbol.cpp',
92 'compiler/translator/SearchSymbol.h',
Brett Wilson04bac602014-07-16 14:19:18 -070093 'compiler/translator/SymbolTable.cpp',
94 'compiler/translator/SymbolTable.h',
Brett Wilson04bac602014-07-16 14:19:18 -070095 'compiler/translator/Types.cpp',
96 'compiler/translator/Types.h',
Brett Wilson04bac602014-07-16 14:19:18 -070097 'compiler/translator/UnfoldShortCircuitAST.cpp',
98 'compiler/translator/UnfoldShortCircuitAST.h',
Olli Etuahob0c645e2015-05-12 14:25:36 +030099 'compiler/translator/ValidateGlobalInitializer.cpp',
100 'compiler/translator/ValidateGlobalInitializer.h',
Brett Wilson04bac602014-07-16 14:19:18 -0700101 'compiler/translator/ValidateLimitations.cpp',
102 'compiler/translator/ValidateLimitations.h',
Olli Etuaho19d1dc92016-03-08 17:18:46 +0200103 'compiler/translator/ValidateMaxParameters.h',
104 'compiler/translator/ValidateMaxParameters.cpp',
Brett Wilson04bac602014-07-16 14:19:18 -0700105 'compiler/translator/ValidateOutputs.cpp',
106 'compiler/translator/ValidateOutputs.h',
Olli Etuahoac5274d2015-02-20 10:19:08 +0200107 'compiler/translator/ValidateSwitch.cpp',
108 'compiler/translator/ValidateSwitch.h',
Brett Wilson04bac602014-07-16 14:19:18 -0700109 'compiler/translator/VariableInfo.cpp',
110 'compiler/translator/VariableInfo.h',
111 'compiler/translator/VariablePacker.cpp',
112 'compiler/translator/VariablePacker.h',
Jamie Madill9e0478f2015-01-13 11:13:54 -0500113 'compiler/translator/blocklayout.cpp',
114 'compiler/translator/blocklayout.h',
Brett Wilson04bac602014-07-16 14:19:18 -0700115 'compiler/translator/depgraph/DependencyGraph.cpp',
116 'compiler/translator/depgraph/DependencyGraph.h',
117 'compiler/translator/depgraph/DependencyGraphBuilder.cpp',
118 'compiler/translator/depgraph/DependencyGraphBuilder.h',
119 'compiler/translator/depgraph/DependencyGraphOutput.cpp',
120 'compiler/translator/depgraph/DependencyGraphOutput.h',
121 'compiler/translator/depgraph/DependencyGraphTraverse.cpp',
122 'compiler/translator/glslang.h',
123 'compiler/translator/glslang.l',
124 'compiler/translator/glslang.y',
125 'compiler/translator/glslang_lex.cpp',
126 'compiler/translator/glslang_tab.cpp',
127 'compiler/translator/glslang_tab.h',
128 'compiler/translator/intermOut.cpp',
Brett Wilson04bac602014-07-16 14:19:18 -0700129 'compiler/translator/length_limits.h',
Brett Wilson04bac602014-07-16 14:19:18 -0700130 'compiler/translator/timing/RestrictFragmentShaderTiming.cpp',
131 'compiler/translator/timing/RestrictFragmentShaderTiming.h',
132 'compiler/translator/timing/RestrictVertexShaderTiming.cpp',
133 'compiler/translator/timing/RestrictVertexShaderTiming.h',
134 'compiler/translator/util.cpp',
135 'compiler/translator/util.h',
136 'third_party/compiler/ArrayBoundsClamper.cpp',
137 'third_party/compiler/ArrayBoundsClamper.h',
138 ],
Austin Kinross82b5ab62015-12-11 09:30:15 -0800139 'angle_translator_lib_essl_sources':
140 [
141 'compiler/translator/OutputESSL.cpp',
142 'compiler/translator/OutputESSL.h',
143 'compiler/translator/TranslatorESSL.cpp',
144 'compiler/translator/TranslatorESSL.h',
145 ],
146 'angle_translator_lib_glsl_sources':
147 [
148 'compiler/translator/BuiltInFunctionEmulatorGLSL.cpp',
149 'compiler/translator/BuiltInFunctionEmulatorGLSL.h',
150 'compiler/translator/ExtensionGLSL.cpp',
151 'compiler/translator/ExtensionGLSL.h',
152 'compiler/translator/OutputGLSL.cpp',
153 'compiler/translator/OutputGLSL.h',
154 'compiler/translator/OutputGLSLBase.cpp',
155 'compiler/translator/OutputGLSLBase.h',
156 'compiler/translator/TranslatorGLSL.cpp',
157 'compiler/translator/TranslatorGLSL.h',
158 'compiler/translator/VersionGLSL.cpp',
159 'compiler/translator/VersionGLSL.h',
160 ],
Daniel Bratell73941de2015-02-25 14:34:49 +0100161 'angle_translator_lib_hlsl_sources':
162 [
Olli Etuahoa8c414b2015-04-16 15:51:03 +0300163 'compiler/translator/ArrayReturnValueToOutParameter.cpp',
164 'compiler/translator/ArrayReturnValueToOutParameter.h',
Corentin Wallezf4eab3b2015-03-18 12:55:45 -0700165 'compiler/translator/ASTMetadataHLSL.cpp',
166 'compiler/translator/ASTMetadataHLSL.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100167 'compiler/translator/blocklayoutHLSL.cpp',
168 'compiler/translator/blocklayoutHLSL.h',
169 'compiler/translator/BuiltInFunctionEmulatorHLSL.cpp',
170 'compiler/translator/BuiltInFunctionEmulatorHLSL.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100171 'compiler/translator/OutputHLSL.cpp',
172 'compiler/translator/OutputHLSL.h',
Olli Etuaho5d91dda2015-06-18 15:47:46 +0300173 'compiler/translator/RemoveDynamicIndexing.cpp',
174 'compiler/translator/RemoveDynamicIndexing.h',
Olli Etuaho2cd7a0e2015-02-27 13:57:32 +0200175 'compiler/translator/RemoveSwitchFallThrough.cpp',
176 'compiler/translator/RemoveSwitchFallThrough.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100177 'compiler/translator/RewriteElseBlocks.cpp',
178 'compiler/translator/RewriteElseBlocks.h',
Olli Etuaho822fa842015-04-16 14:26:10 +0300179 'compiler/translator/SeparateArrayInitialization.cpp',
180 'compiler/translator/SeparateArrayInitialization.h',
Olli Etuahofc0e2bc2015-04-16 13:39:56 +0300181 'compiler/translator/SeparateDeclarations.cpp',
182 'compiler/translator/SeparateDeclarations.h',
Olli Etuahoa5316a12015-05-15 15:25:16 +0300183 'compiler/translator/SeparateExpressionsReturningArrays.cpp',
184 'compiler/translator/SeparateExpressionsReturningArrays.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100185 'compiler/translator/StructureHLSL.cpp',
186 'compiler/translator/StructureHLSL.h',
Olli Etuaho5858f7e2016-04-08 13:08:46 +0300187 'compiler/translator/TextureFunctionHLSL.cpp',
188 'compiler/translator/TextureFunctionHLSL.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100189 'compiler/translator/TranslatorHLSL.cpp',
190 'compiler/translator/TranslatorHLSL.h',
Olli Etuahoa6f22092015-05-08 18:31:10 +0300191 'compiler/translator/UnfoldShortCircuitToIf.cpp',
192 'compiler/translator/UnfoldShortCircuitToIf.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100193 'compiler/translator/UniformHLSL.cpp',
194 'compiler/translator/UniformHLSL.h',
195 'compiler/translator/UtilsHLSL.cpp',
196 'compiler/translator/UtilsHLSL.h',
197 ],
Brett Wilson04bac602014-07-16 14:19:18 -0700198 'angle_preprocessor_sources':
199 [
200 'compiler/preprocessor/DiagnosticsBase.cpp',
201 'compiler/preprocessor/DiagnosticsBase.h',
202 'compiler/preprocessor/DirectiveHandlerBase.cpp',
203 'compiler/preprocessor/DirectiveHandlerBase.h',
204 'compiler/preprocessor/DirectiveParser.cpp',
205 'compiler/preprocessor/DirectiveParser.h',
206 'compiler/preprocessor/ExpressionParser.cpp',
207 'compiler/preprocessor/ExpressionParser.h',
208 'compiler/preprocessor/ExpressionParser.y',
209 'compiler/preprocessor/Input.cpp',
210 'compiler/preprocessor/Input.h',
211 'compiler/preprocessor/Lexer.cpp',
212 'compiler/preprocessor/Lexer.h',
213 'compiler/preprocessor/Macro.cpp',
214 'compiler/preprocessor/Macro.h',
215 'compiler/preprocessor/MacroExpander.cpp',
216 'compiler/preprocessor/MacroExpander.h',
217 'compiler/preprocessor/Preprocessor.cpp',
218 'compiler/preprocessor/Preprocessor.h',
219 'compiler/preprocessor/SourceLocation.h',
220 'compiler/preprocessor/Token.cpp',
221 'compiler/preprocessor/Token.h',
222 'compiler/preprocessor/Tokenizer.cpp',
223 'compiler/preprocessor/Tokenizer.h',
224 'compiler/preprocessor/Tokenizer.l',
225 'compiler/preprocessor/numeric_lex.h',
226 'compiler/preprocessor/pp_utils.h',
227 ],
228 },
229 # Everything below this is duplicated in the GN build. If you change
230 # anything also change angle/BUILD.gn
Geoff Lang17732822013-08-29 13:46:49 -0400231 'targets':
232 [
233 {
234 'target_name': 'preprocessor',
235 'type': 'static_library',
Geoff Langd095bda2014-04-07 14:21:14 -0400236 'includes': [ '../build/common_defines.gypi', ],
Brett Wilson04bac602014-07-16 14:19:18 -0700237 'sources': [ '<@(angle_preprocessor_sources)', ],
Geoff Lang17732822013-08-29 13:46:49 -0400238 },
Geoff Lang17732822013-08-29 13:46:49 -0400239 {
Jamie Madill006ed1e2014-04-28 15:47:39 -0400240 'target_name': 'translator_lib',
241 'type': 'static_library',
Jamie Madill562e81b2015-01-14 14:31:02 -0500242 'dependencies': [ 'preprocessor', 'angle_common' ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400243 'includes': [ '../build/common_defines.gypi', ],
244 'include_dirs':
245 [
246 '.',
247 '../include',
248 ],
Jamie Madilla2ad4e82014-07-17 14:16:32 -0400249 'defines':
250 [
251 # define the static translator to indicate exported
252 # classes are (in fact) locally defined
253 'ANGLE_TRANSLATOR_STATIC',
254 ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400255 'sources':
256 [
Brett Wilson04bac602014-07-16 14:19:18 -0700257 '<@(angle_translator_lib_sources)',
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400258 ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400259 'msvs_settings':
260 {
261 'VCLibrarianTool':
262 {
263 'AdditionalOptions': ['/ignore:4221']
264 },
265 },
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700266 'conditions':
267 [
Austin Kinross82b5ab62015-12-11 09:30:15 -0800268 ['angle_enable_essl==1',
269 {
270 'defines':
271 [
272 'ANGLE_ENABLE_ESSL',
273 ],
274 'direct_dependent_settings':
275 {
276 'defines':
277 [
278 'ANGLE_ENABLE_ESSL',
279 ],
280 },
281 'sources':
282 [
283 '<@(angle_translator_lib_essl_sources)',
284 ],
285 }],
286 ['angle_enable_glsl==1',
287 {
288 'defines':
289 [
290 'ANGLE_ENABLE_GLSL',
291 ],
292 'direct_dependent_settings':
293 {
294 'defines':
295 [
296 'ANGLE_ENABLE_GLSL',
297 ],
298 },
299 'sources':
300 [
301 '<@(angle_translator_lib_glsl_sources)',
302 ],
303 }],
Daniel Bratell73941de2015-02-25 14:34:49 +0100304 ['angle_enable_hlsl==1',
305 {
306 'defines':
307 [
308 'ANGLE_ENABLE_HLSL',
309 ],
310 'direct_dependent_settings':
311 {
312 'defines':
313 [
314 'ANGLE_ENABLE_HLSL',
315 ],
316 },
317 'sources':
318 [
319 '<@(angle_translator_lib_hlsl_sources)',
320 ],
321 }],
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700322 ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400323 },
Geoff Lang2b6008c2013-10-08 10:44:05 -0400324
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400325 {
Jamie Madill006ed1e2014-04-28 15:47:39 -0400326 'target_name': 'translator',
327 'type': '<(component)',
Jamie Madill562e81b2015-01-14 14:31:02 -0500328 'dependencies': [ 'translator_lib', 'angle_common' ],
Jamie Madill006ed1e2014-04-28 15:47:39 -0400329 'includes': [ '../build/common_defines.gypi', ],
330 'include_dirs':
331 [
332 '.',
333 '../include',
334 ],
335 'defines':
336 [
337 'ANGLE_TRANSLATOR_IMPLEMENTATION',
338 ],
339 'sources':
340 [
Jamie Madilla2ad4e82014-07-17 14:16:32 -0400341 'compiler/translator/ShaderLang.cpp',
342 'compiler/translator/ShaderVars.cpp'
Jamie Madill006ed1e2014-04-28 15:47:39 -0400343 ],
344 },
345
346 {
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400347 'target_name': 'translator_static',
348 'type': 'static_library',
Jamie Madill006ed1e2014-04-28 15:47:39 -0400349 'dependencies': [ 'translator_lib' ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400350 'includes': [ '../build/common_defines.gypi', ],
351 'include_dirs':
352 [
353 '.',
354 '../include',
355 ],
Geoff Lang17732822013-08-29 13:46:49 -0400356 'defines':
357 [
Geoff Lang31f0dc02013-10-08 13:29:13 -0400358 'ANGLE_TRANSLATOR_STATIC',
Geoff Lang17732822013-08-29 13:46:49 -0400359 ],
Geoff Lang2b6008c2013-10-08 10:44:05 -0400360 'direct_dependent_settings':
361 {
362 'defines':
363 [
364 'ANGLE_TRANSLATOR_STATIC',
365 ],
366 },
Jamie Madilld51df462014-02-26 14:18:17 -0500367 'sources':
368 [
Jamie Madilla2ad4e82014-07-17 14:16:32 -0400369 'compiler/translator/ShaderLang.cpp',
370 'compiler/translator/ShaderVars.cpp'
Jamie Madilld51df462014-02-26 14:18:17 -0500371 ],
Geoff Lang17732822013-08-29 13:46:49 -0400372 },
373 ],
374}