blob: c207a5f17e6037163b545ceee7cf2696bec0cd1a [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',
Brett Wilson04bac602014-07-16 14:19:18 -0700102 'compiler/translator/ValidateLimitations.cpp',
103 'compiler/translator/ValidateLimitations.h',
104 'compiler/translator/ValidateOutputs.cpp',
105 'compiler/translator/ValidateOutputs.h',
Olli Etuahoac5274d2015-02-20 10:19:08 +0200106 'compiler/translator/ValidateSwitch.cpp',
107 'compiler/translator/ValidateSwitch.h',
Brett Wilson04bac602014-07-16 14:19:18 -0700108 'compiler/translator/VariableInfo.cpp',
109 'compiler/translator/VariableInfo.h',
110 'compiler/translator/VariablePacker.cpp',
111 'compiler/translator/VariablePacker.h',
112 'compiler/translator/VersionGLSL.cpp',
113 'compiler/translator/VersionGLSL.h',
Jamie Madill9e0478f2015-01-13 11:13:54 -0500114 'compiler/translator/blocklayout.cpp',
115 'compiler/translator/blocklayout.h',
Brett Wilson04bac602014-07-16 14:19:18 -0700116 'compiler/translator/compilerdebug.cpp',
117 'compiler/translator/compilerdebug.h',
118 '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 [
Corentin Wallezf4eab3b2015-03-18 12:55:45 -0700146 'compiler/translator/ASTMetadataHLSL.cpp',
147 'compiler/translator/ASTMetadataHLSL.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100148 'compiler/translator/blocklayoutHLSL.cpp',
149 'compiler/translator/blocklayoutHLSL.h',
150 'compiler/translator/BuiltInFunctionEmulatorHLSL.cpp',
151 'compiler/translator/BuiltInFunctionEmulatorHLSL.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100152 'compiler/translator/OutputHLSL.cpp',
153 'compiler/translator/OutputHLSL.h',
Olli Etuaho2cd7a0e2015-02-27 13:57:32 +0200154 'compiler/translator/RemoveSwitchFallThrough.cpp',
155 'compiler/translator/RemoveSwitchFallThrough.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100156 'compiler/translator/RewriteElseBlocks.cpp',
157 'compiler/translator/RewriteElseBlocks.h',
Olli Etuaho822fa842015-04-16 14:26:10 +0300158 'compiler/translator/SeparateArrayInitialization.cpp',
159 'compiler/translator/SeparateArrayInitialization.h',
Olli Etuahofc0e2bc2015-04-16 13:39:56 +0300160 'compiler/translator/SeparateDeclarations.cpp',
161 'compiler/translator/SeparateDeclarations.h',
Olli Etuahob2d6a9b2015-03-30 16:00:53 +0300162 'compiler/translator/SimplifyArrayAssignment.cpp',
163 'compiler/translator/SimplifyArrayAssignment.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100164 'compiler/translator/StructureHLSL.cpp',
165 'compiler/translator/StructureHLSL.h',
166 'compiler/translator/TranslatorHLSL.cpp',
167 'compiler/translator/TranslatorHLSL.h',
168 'compiler/translator/UnfoldShortCircuit.cpp',
169 'compiler/translator/UnfoldShortCircuit.h',
170 'compiler/translator/UniformHLSL.cpp',
171 'compiler/translator/UniformHLSL.h',
172 'compiler/translator/UtilsHLSL.cpp',
173 'compiler/translator/UtilsHLSL.h',
174 ],
Brett Wilson04bac602014-07-16 14:19:18 -0700175 'angle_preprocessor_sources':
176 [
177 'compiler/preprocessor/DiagnosticsBase.cpp',
178 'compiler/preprocessor/DiagnosticsBase.h',
179 'compiler/preprocessor/DirectiveHandlerBase.cpp',
180 'compiler/preprocessor/DirectiveHandlerBase.h',
181 'compiler/preprocessor/DirectiveParser.cpp',
182 'compiler/preprocessor/DirectiveParser.h',
183 'compiler/preprocessor/ExpressionParser.cpp',
184 'compiler/preprocessor/ExpressionParser.h',
185 'compiler/preprocessor/ExpressionParser.y',
186 'compiler/preprocessor/Input.cpp',
187 'compiler/preprocessor/Input.h',
188 'compiler/preprocessor/Lexer.cpp',
189 'compiler/preprocessor/Lexer.h',
190 'compiler/preprocessor/Macro.cpp',
191 'compiler/preprocessor/Macro.h',
192 'compiler/preprocessor/MacroExpander.cpp',
193 'compiler/preprocessor/MacroExpander.h',
194 'compiler/preprocessor/Preprocessor.cpp',
195 'compiler/preprocessor/Preprocessor.h',
196 'compiler/preprocessor/SourceLocation.h',
197 'compiler/preprocessor/Token.cpp',
198 'compiler/preprocessor/Token.h',
199 'compiler/preprocessor/Tokenizer.cpp',
200 'compiler/preprocessor/Tokenizer.h',
201 'compiler/preprocessor/Tokenizer.l',
202 'compiler/preprocessor/numeric_lex.h',
203 'compiler/preprocessor/pp_utils.h',
204 ],
205 },
206 # Everything below this is duplicated in the GN build. If you change
207 # anything also change angle/BUILD.gn
Geoff Lang17732822013-08-29 13:46:49 -0400208 'targets':
209 [
210 {
211 'target_name': 'preprocessor',
212 'type': 'static_library',
Geoff Langd095bda2014-04-07 14:21:14 -0400213 'includes': [ '../build/common_defines.gypi', ],
Brett Wilson04bac602014-07-16 14:19:18 -0700214 'sources': [ '<@(angle_preprocessor_sources)', ],
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700215 'conditions':
216 [
217 ['angle_build_winrt==1',
218 {
219 'msvs_enable_winrt' : '1',
220 }],
221 ['angle_build_winphone==1',
222 {
223 'msvs_enable_winphone' : '1',
224 }],
225 ],
Geoff Lang17732822013-08-29 13:46:49 -0400226 },
Geoff Lang17732822013-08-29 13:46:49 -0400227 {
Jamie Madill006ed1e2014-04-28 15:47:39 -0400228 'target_name': 'translator_lib',
229 'type': 'static_library',
Jamie Madill562e81b2015-01-14 14:31:02 -0500230 'dependencies': [ 'preprocessor', 'angle_common' ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400231 'includes': [ '../build/common_defines.gypi', ],
232 'include_dirs':
233 [
234 '.',
235 '../include',
236 ],
Jamie Madilla2ad4e82014-07-17 14:16:32 -0400237 'defines':
238 [
239 # define the static translator to indicate exported
240 # classes are (in fact) locally defined
241 'ANGLE_TRANSLATOR_STATIC',
242 ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400243 'sources':
244 [
Brett Wilson04bac602014-07-16 14:19:18 -0700245 '<@(angle_translator_lib_sources)',
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400246 ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400247 'msvs_settings':
248 {
249 'VCLibrarianTool':
250 {
251 'AdditionalOptions': ['/ignore:4221']
252 },
253 },
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700254 'conditions':
255 [
256 ['angle_build_winrt==1',
257 {
258 'msvs_enable_winrt' : '1',
259 }],
260 ['angle_build_winphone==1',
261 {
262 'msvs_enable_winphone' : '1',
263 }],
Daniel Bratell73941de2015-02-25 14:34:49 +0100264 ['angle_enable_hlsl==1',
265 {
266 'defines':
267 [
268 'ANGLE_ENABLE_HLSL',
269 ],
270 'direct_dependent_settings':
271 {
272 'defines':
273 [
274 'ANGLE_ENABLE_HLSL',
275 ],
276 },
277 'sources':
278 [
279 '<@(angle_translator_lib_hlsl_sources)',
280 ],
281 }],
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700282 ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400283 },
Geoff Lang2b6008c2013-10-08 10:44:05 -0400284
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400285 {
Jamie Madill006ed1e2014-04-28 15:47:39 -0400286 'target_name': 'translator',
287 'type': '<(component)',
Jamie Madill562e81b2015-01-14 14:31:02 -0500288 'dependencies': [ 'translator_lib', 'angle_common' ],
Jamie Madill006ed1e2014-04-28 15:47:39 -0400289 'includes': [ '../build/common_defines.gypi', ],
290 'include_dirs':
291 [
292 '.',
293 '../include',
294 ],
295 'defines':
296 [
297 'ANGLE_TRANSLATOR_IMPLEMENTATION',
298 ],
299 'sources':
300 [
Jamie Madilla2ad4e82014-07-17 14:16:32 -0400301 'compiler/translator/ShaderLang.cpp',
302 'compiler/translator/ShaderVars.cpp'
Jamie Madill006ed1e2014-04-28 15:47:39 -0400303 ],
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700304 'conditions':
305 [
306 ['angle_build_winrt==1',
307 {
308 'msvs_enable_winrt' : '1',
309 }],
310 ['angle_build_winphone==1',
311 {
312 'msvs_enable_winphone' : '1',
313 }],
314 ],
Jamie Madill006ed1e2014-04-28 15:47:39 -0400315 },
316
317 {
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400318 'target_name': 'translator_static',
319 'type': 'static_library',
Jamie Madill006ed1e2014-04-28 15:47:39 -0400320 'dependencies': [ 'translator_lib' ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400321 'includes': [ '../build/common_defines.gypi', ],
322 'include_dirs':
323 [
324 '.',
325 '../include',
326 ],
Geoff Lang17732822013-08-29 13:46:49 -0400327 'defines':
328 [
Geoff Lang31f0dc02013-10-08 13:29:13 -0400329 'ANGLE_TRANSLATOR_STATIC',
Geoff Lang17732822013-08-29 13:46:49 -0400330 ],
Geoff Lang2b6008c2013-10-08 10:44:05 -0400331 'direct_dependent_settings':
332 {
333 'defines':
334 [
335 'ANGLE_TRANSLATOR_STATIC',
336 ],
337 },
Jamie Madilld51df462014-02-26 14:18:17 -0500338 'sources':
339 [
Jamie Madilla2ad4e82014-07-17 14:16:32 -0400340 'compiler/translator/ShaderLang.cpp',
341 'compiler/translator/ShaderVars.cpp'
Jamie Madilld51df462014-02-26 14:18:17 -0500342 ],
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700343 'conditions':
344 [
345 ['angle_build_winrt==1',
346 {
347 'msvs_enable_winrt' : '1',
348 }],
349 ['angle_build_winphone==1',
350 {
351 'msvs_enable_winphone' : '1',
352 }],
353 ],
Geoff Lang17732822013-08-29 13:46:49 -0400354 },
355 ],
356}