blob: 8c57877160195c29d5a74c611d5d04c1f8329deb [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',
Olli Etuahoc6833112015-04-22 15:15:54 +030081 'compiler/translator/PruneEmptyDeclarations.cpp',
82 'compiler/translator/PruneEmptyDeclarations.h',
Brett Wilson04bac602014-07-16 14:19:18 -070083 'compiler/translator/QualifierAlive.cpp',
84 'compiler/translator/QualifierAlive.h',
Zhenyao Moe740add2014-07-18 17:01:01 -070085 'compiler/translator/RegenerateStructNames.cpp',
86 'compiler/translator/RegenerateStructNames.h',
Brett Wilson04bac602014-07-16 14:19:18 -070087 'compiler/translator/RenameFunction.h',
Brett Wilson04bac602014-07-16 14:19:18 -070088 'compiler/translator/ScalarizeVecAndMatConstructorArgs.cpp',
89 'compiler/translator/ScalarizeVecAndMatConstructorArgs.h',
90 'compiler/translator/SearchSymbol.cpp',
91 'compiler/translator/SearchSymbol.h',
Brett Wilson04bac602014-07-16 14:19:18 -070092 'compiler/translator/SymbolTable.cpp',
93 'compiler/translator/SymbolTable.h',
94 'compiler/translator/TranslatorESSL.cpp',
95 'compiler/translator/TranslatorESSL.h',
96 'compiler/translator/TranslatorGLSL.cpp',
97 'compiler/translator/TranslatorGLSL.h',
Brett Wilson04bac602014-07-16 14:19:18 -070098 'compiler/translator/Types.cpp',
99 'compiler/translator/Types.h',
Brett Wilson04bac602014-07-16 14:19:18 -0700100 'compiler/translator/UnfoldShortCircuitAST.cpp',
101 'compiler/translator/UnfoldShortCircuitAST.h',
Olli Etuahob0c645e2015-05-12 14:25:36 +0300102 'compiler/translator/ValidateGlobalInitializer.cpp',
103 'compiler/translator/ValidateGlobalInitializer.h',
Brett Wilson04bac602014-07-16 14:19:18 -0700104 'compiler/translator/ValidateLimitations.cpp',
105 'compiler/translator/ValidateLimitations.h',
106 'compiler/translator/ValidateOutputs.cpp',
107 'compiler/translator/ValidateOutputs.h',
Olli Etuahoac5274d2015-02-20 10:19:08 +0200108 'compiler/translator/ValidateSwitch.cpp',
109 'compiler/translator/ValidateSwitch.h',
Brett Wilson04bac602014-07-16 14:19:18 -0700110 'compiler/translator/VariableInfo.cpp',
111 'compiler/translator/VariableInfo.h',
112 'compiler/translator/VariablePacker.cpp',
113 'compiler/translator/VariablePacker.h',
114 'compiler/translator/VersionGLSL.cpp',
115 'compiler/translator/VersionGLSL.h',
Jamie Madill9e0478f2015-01-13 11:13:54 -0500116 'compiler/translator/blocklayout.cpp',
117 'compiler/translator/blocklayout.h',
Brett Wilson04bac602014-07-16 14:19:18 -0700118 'compiler/translator/depgraph/DependencyGraph.cpp',
119 'compiler/translator/depgraph/DependencyGraph.h',
120 'compiler/translator/depgraph/DependencyGraphBuilder.cpp',
121 'compiler/translator/depgraph/DependencyGraphBuilder.h',
122 'compiler/translator/depgraph/DependencyGraphOutput.cpp',
123 'compiler/translator/depgraph/DependencyGraphOutput.h',
124 'compiler/translator/depgraph/DependencyGraphTraverse.cpp',
125 'compiler/translator/glslang.h',
126 'compiler/translator/glslang.l',
127 'compiler/translator/glslang.y',
128 'compiler/translator/glslang_lex.cpp',
129 'compiler/translator/glslang_tab.cpp',
130 'compiler/translator/glslang_tab.h',
131 'compiler/translator/intermOut.cpp',
132 'compiler/translator/intermediate.h',
133 'compiler/translator/length_limits.h',
Brett Wilson04bac602014-07-16 14:19:18 -0700134 'compiler/translator/parseConst.cpp',
135 'compiler/translator/timing/RestrictFragmentShaderTiming.cpp',
136 'compiler/translator/timing/RestrictFragmentShaderTiming.h',
137 'compiler/translator/timing/RestrictVertexShaderTiming.cpp',
138 'compiler/translator/timing/RestrictVertexShaderTiming.h',
139 'compiler/translator/util.cpp',
140 'compiler/translator/util.h',
141 'third_party/compiler/ArrayBoundsClamper.cpp',
142 'third_party/compiler/ArrayBoundsClamper.h',
143 ],
Daniel Bratell73941de2015-02-25 14:34:49 +0100144 'angle_translator_lib_hlsl_sources':
145 [
Olli Etuahoa8c414b2015-04-16 15:51:03 +0300146 'compiler/translator/ArrayReturnValueToOutParameter.cpp',
147 'compiler/translator/ArrayReturnValueToOutParameter.h',
Corentin Wallezf4eab3b2015-03-18 12:55:45 -0700148 'compiler/translator/ASTMetadataHLSL.cpp',
149 'compiler/translator/ASTMetadataHLSL.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100150 'compiler/translator/blocklayoutHLSL.cpp',
151 'compiler/translator/blocklayoutHLSL.h',
152 'compiler/translator/BuiltInFunctionEmulatorHLSL.cpp',
153 'compiler/translator/BuiltInFunctionEmulatorHLSL.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100154 'compiler/translator/OutputHLSL.cpp',
155 'compiler/translator/OutputHLSL.h',
Olli Etuaho2cd7a0e2015-02-27 13:57:32 +0200156 'compiler/translator/RemoveSwitchFallThrough.cpp',
157 'compiler/translator/RemoveSwitchFallThrough.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100158 'compiler/translator/RewriteElseBlocks.cpp',
159 'compiler/translator/RewriteElseBlocks.h',
Olli Etuaho822fa842015-04-16 14:26:10 +0300160 'compiler/translator/SeparateArrayInitialization.cpp',
161 'compiler/translator/SeparateArrayInitialization.h',
Olli Etuahofc0e2bc2015-04-16 13:39:56 +0300162 'compiler/translator/SeparateDeclarations.cpp',
163 'compiler/translator/SeparateDeclarations.h',
Olli Etuahob2d6a9b2015-03-30 16:00:53 +0300164 'compiler/translator/SimplifyArrayAssignment.cpp',
165 'compiler/translator/SimplifyArrayAssignment.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100166 'compiler/translator/StructureHLSL.cpp',
167 'compiler/translator/StructureHLSL.h',
168 'compiler/translator/TranslatorHLSL.cpp',
169 'compiler/translator/TranslatorHLSL.h',
170 'compiler/translator/UnfoldShortCircuit.cpp',
171 'compiler/translator/UnfoldShortCircuit.h',
172 'compiler/translator/UniformHLSL.cpp',
173 'compiler/translator/UniformHLSL.h',
174 'compiler/translator/UtilsHLSL.cpp',
175 'compiler/translator/UtilsHLSL.h',
176 ],
Brett Wilson04bac602014-07-16 14:19:18 -0700177 'angle_preprocessor_sources':
178 [
179 'compiler/preprocessor/DiagnosticsBase.cpp',
180 'compiler/preprocessor/DiagnosticsBase.h',
181 'compiler/preprocessor/DirectiveHandlerBase.cpp',
182 'compiler/preprocessor/DirectiveHandlerBase.h',
183 'compiler/preprocessor/DirectiveParser.cpp',
184 'compiler/preprocessor/DirectiveParser.h',
185 'compiler/preprocessor/ExpressionParser.cpp',
186 'compiler/preprocessor/ExpressionParser.h',
187 'compiler/preprocessor/ExpressionParser.y',
188 'compiler/preprocessor/Input.cpp',
189 'compiler/preprocessor/Input.h',
190 'compiler/preprocessor/Lexer.cpp',
191 'compiler/preprocessor/Lexer.h',
192 'compiler/preprocessor/Macro.cpp',
193 'compiler/preprocessor/Macro.h',
194 'compiler/preprocessor/MacroExpander.cpp',
195 'compiler/preprocessor/MacroExpander.h',
196 'compiler/preprocessor/Preprocessor.cpp',
197 'compiler/preprocessor/Preprocessor.h',
198 'compiler/preprocessor/SourceLocation.h',
199 'compiler/preprocessor/Token.cpp',
200 'compiler/preprocessor/Token.h',
201 'compiler/preprocessor/Tokenizer.cpp',
202 'compiler/preprocessor/Tokenizer.h',
203 'compiler/preprocessor/Tokenizer.l',
204 'compiler/preprocessor/numeric_lex.h',
205 'compiler/preprocessor/pp_utils.h',
206 ],
207 },
208 # Everything below this is duplicated in the GN build. If you change
209 # anything also change angle/BUILD.gn
Geoff Lang17732822013-08-29 13:46:49 -0400210 'targets':
211 [
212 {
213 'target_name': 'preprocessor',
214 'type': 'static_library',
Geoff Langd095bda2014-04-07 14:21:14 -0400215 'includes': [ '../build/common_defines.gypi', ],
Brett Wilson04bac602014-07-16 14:19:18 -0700216 'sources': [ '<@(angle_preprocessor_sources)', ],
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700217 'conditions':
218 [
219 ['angle_build_winrt==1',
220 {
221 'msvs_enable_winrt' : '1',
222 }],
223 ['angle_build_winphone==1',
224 {
225 'msvs_enable_winphone' : '1',
226 }],
227 ],
Geoff Lang17732822013-08-29 13:46:49 -0400228 },
Geoff Lang17732822013-08-29 13:46:49 -0400229 {
Jamie Madill006ed1e2014-04-28 15:47:39 -0400230 'target_name': 'translator_lib',
231 'type': 'static_library',
Jamie Madill562e81b2015-01-14 14:31:02 -0500232 'dependencies': [ 'preprocessor', 'angle_common' ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400233 'includes': [ '../build/common_defines.gypi', ],
234 'include_dirs':
235 [
236 '.',
237 '../include',
238 ],
Jamie Madilla2ad4e82014-07-17 14:16:32 -0400239 'defines':
240 [
241 # define the static translator to indicate exported
242 # classes are (in fact) locally defined
243 'ANGLE_TRANSLATOR_STATIC',
244 ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400245 'sources':
246 [
Brett Wilson04bac602014-07-16 14:19:18 -0700247 '<@(angle_translator_lib_sources)',
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400248 ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400249 'msvs_settings':
250 {
251 'VCLibrarianTool':
252 {
253 'AdditionalOptions': ['/ignore:4221']
254 },
255 },
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700256 'conditions':
257 [
258 ['angle_build_winrt==1',
259 {
260 'msvs_enable_winrt' : '1',
261 }],
262 ['angle_build_winphone==1',
263 {
264 'msvs_enable_winphone' : '1',
265 }],
Daniel Bratell73941de2015-02-25 14:34:49 +0100266 ['angle_enable_hlsl==1',
267 {
268 'defines':
269 [
270 'ANGLE_ENABLE_HLSL',
271 ],
272 'direct_dependent_settings':
273 {
274 'defines':
275 [
276 'ANGLE_ENABLE_HLSL',
277 ],
278 },
279 'sources':
280 [
281 '<@(angle_translator_lib_hlsl_sources)',
282 ],
283 }],
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700284 ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400285 },
Geoff Lang2b6008c2013-10-08 10:44:05 -0400286
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400287 {
Jamie Madill006ed1e2014-04-28 15:47:39 -0400288 'target_name': 'translator',
289 'type': '<(component)',
Jamie Madill562e81b2015-01-14 14:31:02 -0500290 'dependencies': [ 'translator_lib', 'angle_common' ],
Jamie Madill006ed1e2014-04-28 15:47:39 -0400291 'includes': [ '../build/common_defines.gypi', ],
292 'include_dirs':
293 [
294 '.',
295 '../include',
296 ],
297 'defines':
298 [
299 'ANGLE_TRANSLATOR_IMPLEMENTATION',
300 ],
301 'sources':
302 [
Jamie Madilla2ad4e82014-07-17 14:16:32 -0400303 'compiler/translator/ShaderLang.cpp',
304 'compiler/translator/ShaderVars.cpp'
Jamie Madill006ed1e2014-04-28 15:47:39 -0400305 ],
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700306 'conditions':
307 [
308 ['angle_build_winrt==1',
309 {
310 'msvs_enable_winrt' : '1',
311 }],
312 ['angle_build_winphone==1',
313 {
314 'msvs_enable_winphone' : '1',
315 }],
316 ],
Jamie Madill006ed1e2014-04-28 15:47:39 -0400317 },
318
319 {
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400320 'target_name': 'translator_static',
321 'type': 'static_library',
Jamie Madill006ed1e2014-04-28 15:47:39 -0400322 'dependencies': [ 'translator_lib' ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400323 'includes': [ '../build/common_defines.gypi', ],
324 'include_dirs':
325 [
326 '.',
327 '../include',
328 ],
Geoff Lang17732822013-08-29 13:46:49 -0400329 'defines':
330 [
Geoff Lang31f0dc02013-10-08 13:29:13 -0400331 'ANGLE_TRANSLATOR_STATIC',
Geoff Lang17732822013-08-29 13:46:49 -0400332 ],
Geoff Lang2b6008c2013-10-08 10:44:05 -0400333 'direct_dependent_settings':
334 {
335 'defines':
336 [
337 'ANGLE_TRANSLATOR_STATIC',
338 ],
339 },
Jamie Madilld51df462014-02-26 14:18:17 -0500340 'sources':
341 [
Jamie Madilla2ad4e82014-07-17 14:16:32 -0400342 'compiler/translator/ShaderLang.cpp',
343 'compiler/translator/ShaderVars.cpp'
Jamie Madilld51df462014-02-26 14:18:17 -0500344 ],
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700345 'conditions':
346 [
347 ['angle_build_winrt==1',
348 {
349 'msvs_enable_winrt' : '1',
350 }],
351 ['angle_build_winphone==1',
352 {
353 'msvs_enable_winphone' : '1',
354 }],
355 ],
Geoff Lang17732822013-08-29 13:46:49 -0400356 },
357 ],
358}