blob: 4880f0f8588a28b040b85de14a1823c1e6abc8fe [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 Etuahoa5316a12015-05-15 15:25:16 +0300164 'compiler/translator/SeparateExpressionsReturningArrays.cpp',
165 'compiler/translator/SeparateExpressionsReturningArrays.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',
Olli Etuahoa6f22092015-05-08 18:31:10 +0300170 'compiler/translator/UnfoldShortCircuitToIf.cpp',
171 'compiler/translator/UnfoldShortCircuitToIf.h',
Daniel Bratell73941de2015-02-25 14:34:49 +0100172 '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',
Cooper Partinaa5cbdc2015-05-18 10:33:00 -0700222 'msvs_application_type_revision' : '<(angle_build_winrt_app_type_revision)',
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700223 }],
224 ['angle_build_winphone==1',
225 {
226 'msvs_enable_winphone' : '1',
227 }],
228 ],
Geoff Lang17732822013-08-29 13:46:49 -0400229 },
Geoff Lang17732822013-08-29 13:46:49 -0400230 {
Jamie Madill006ed1e2014-04-28 15:47:39 -0400231 'target_name': 'translator_lib',
232 'type': 'static_library',
Jamie Madill562e81b2015-01-14 14:31:02 -0500233 'dependencies': [ 'preprocessor', 'angle_common' ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400234 'includes': [ '../build/common_defines.gypi', ],
235 'include_dirs':
236 [
237 '.',
238 '../include',
239 ],
Jamie Madilla2ad4e82014-07-17 14:16:32 -0400240 'defines':
241 [
242 # define the static translator to indicate exported
243 # classes are (in fact) locally defined
244 'ANGLE_TRANSLATOR_STATIC',
245 ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400246 'sources':
247 [
Brett Wilson04bac602014-07-16 14:19:18 -0700248 '<@(angle_translator_lib_sources)',
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400249 ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400250 'msvs_settings':
251 {
252 'VCLibrarianTool':
253 {
254 'AdditionalOptions': ['/ignore:4221']
255 },
256 },
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700257 'conditions':
258 [
259 ['angle_build_winrt==1',
260 {
261 'msvs_enable_winrt' : '1',
Cooper Partinaa5cbdc2015-05-18 10:33:00 -0700262 'msvs_application_type_revision' : '<(angle_build_winrt_app_type_revision)',
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700263 }],
264 ['angle_build_winphone==1',
265 {
266 'msvs_enable_winphone' : '1',
267 }],
Daniel Bratell73941de2015-02-25 14:34:49 +0100268 ['angle_enable_hlsl==1',
269 {
270 'defines':
271 [
272 'ANGLE_ENABLE_HLSL',
273 ],
274 'direct_dependent_settings':
275 {
276 'defines':
277 [
278 'ANGLE_ENABLE_HLSL',
279 ],
280 },
281 'sources':
282 [
283 '<@(angle_translator_lib_hlsl_sources)',
284 ],
285 }],
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700286 ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400287 },
Geoff Lang2b6008c2013-10-08 10:44:05 -0400288
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400289 {
Jamie Madill006ed1e2014-04-28 15:47:39 -0400290 'target_name': 'translator',
291 'type': '<(component)',
Jamie Madill562e81b2015-01-14 14:31:02 -0500292 'dependencies': [ 'translator_lib', 'angle_common' ],
Jamie Madill006ed1e2014-04-28 15:47:39 -0400293 'includes': [ '../build/common_defines.gypi', ],
294 'include_dirs':
295 [
296 '.',
297 '../include',
298 ],
299 'defines':
300 [
301 'ANGLE_TRANSLATOR_IMPLEMENTATION',
302 ],
303 'sources':
304 [
Jamie Madilla2ad4e82014-07-17 14:16:32 -0400305 'compiler/translator/ShaderLang.cpp',
306 'compiler/translator/ShaderVars.cpp'
Jamie Madill006ed1e2014-04-28 15:47:39 -0400307 ],
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700308 'conditions':
309 [
310 ['angle_build_winrt==1',
311 {
312 'msvs_enable_winrt' : '1',
Cooper Partinaa5cbdc2015-05-18 10:33:00 -0700313 'msvs_application_type_revision' : '<(angle_build_winrt_app_type_revision)',
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700314 }],
315 ['angle_build_winphone==1',
316 {
317 'msvs_enable_winphone' : '1',
318 }],
319 ],
Jamie Madill006ed1e2014-04-28 15:47:39 -0400320 },
321
322 {
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400323 'target_name': 'translator_static',
324 'type': 'static_library',
Jamie Madill006ed1e2014-04-28 15:47:39 -0400325 'dependencies': [ 'translator_lib' ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400326 'includes': [ '../build/common_defines.gypi', ],
327 'include_dirs':
328 [
329 '.',
330 '../include',
331 ],
Geoff Lang17732822013-08-29 13:46:49 -0400332 'defines':
333 [
Geoff Lang31f0dc02013-10-08 13:29:13 -0400334 'ANGLE_TRANSLATOR_STATIC',
Geoff Lang17732822013-08-29 13:46:49 -0400335 ],
Geoff Lang2b6008c2013-10-08 10:44:05 -0400336 'direct_dependent_settings':
337 {
338 'defines':
339 [
340 'ANGLE_TRANSLATOR_STATIC',
341 ],
342 },
Jamie Madilld51df462014-02-26 14:18:17 -0500343 'sources':
344 [
Jamie Madilla2ad4e82014-07-17 14:16:32 -0400345 'compiler/translator/ShaderLang.cpp',
346 'compiler/translator/ShaderVars.cpp'
Jamie Madilld51df462014-02-26 14:18:17 -0500347 ],
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700348 'conditions':
349 [
350 ['angle_build_winrt==1',
351 {
352 'msvs_enable_winrt' : '1',
Cooper Partinaa5cbdc2015-05-18 10:33:00 -0700353 'msvs_application_type_revision' : '<(angle_build_winrt_app_type_revision)',
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700354 }],
355 ['angle_build_winphone==1',
356 {
357 'msvs_enable_winphone' : '1',
358 }],
359 ],
Geoff Lang17732822013-08-29 13:46:49 -0400360 },
361 ],
362}