blob: af068bc5dee0c1b13dd7e61429605cc23f5d43e3 [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 {
8 # This file list is shared with the GN build.
9 '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',
Jamie Madill04184fb2015-01-09 16:51:16 +000024 'common/angleutils.h',
25 'common/angleutils.cpp',
26 'common/blocklayout.cpp',
27 'common/blocklayout.h',
28 'common/debug.cpp',
29 'common/debug.h',
30 'common/event_tracer.cpp',
31 'common/event_tracer.h',
32 'common/mathutil.cpp',
33 'common/mathutil.h',
34 'common/platform.h',
35 'common/tls.cpp',
36 'common/tls.h',
37 'common/utilities.cpp',
38 'common/utilities.h',
Brett Wilson04bac602014-07-16 14:19:18 -070039 'compiler/translator/BaseTypes.h',
40 'compiler/translator/BuiltInFunctionEmulator.cpp',
41 'compiler/translator/BuiltInFunctionEmulator.h',
Olli Etuaho5c9cd3d2014-12-18 13:04:25 +020042 'compiler/translator/BuiltInFunctionEmulatorGLSL.cpp',
43 'compiler/translator/BuiltInFunctionEmulatorGLSL.h',
44 'compiler/translator/BuiltInFunctionEmulatorHLSL.cpp',
45 'compiler/translator/BuiltInFunctionEmulatorHLSL.h',
Brett Wilson04bac602014-07-16 14:19:18 -070046 'compiler/translator/CodeGen.cpp',
47 'compiler/translator/Common.h',
48 'compiler/translator/Compiler.cpp',
49 'compiler/translator/Compiler.h',
50 'compiler/translator/ConstantUnion.h',
51 'compiler/translator/DetectCallDepth.cpp',
52 'compiler/translator/DetectCallDepth.h',
53 'compiler/translator/DetectDiscontinuity.cpp',
54 'compiler/translator/DetectDiscontinuity.h',
55 'compiler/translator/Diagnostics.cpp',
56 'compiler/translator/Diagnostics.h',
57 'compiler/translator/DirectiveHandler.cpp',
58 'compiler/translator/DirectiveHandler.h',
Olli Etuaho853dc1a2014-11-06 17:25:48 +020059 'compiler/translator/EmulatePrecision.cpp',
60 'compiler/translator/EmulatePrecision.h',
Brett Wilson04bac602014-07-16 14:19:18 -070061 'compiler/translator/ExtensionBehavior.h',
62 'compiler/translator/FlagStd140Structs.cpp',
63 'compiler/translator/FlagStd140Structs.h',
64 'compiler/translator/ForLoopUnroll.cpp',
65 'compiler/translator/ForLoopUnroll.h',
66 'compiler/translator/HashNames.h',
67 'compiler/translator/InfoSink.cpp',
68 'compiler/translator/InfoSink.h',
69 'compiler/translator/Initialize.cpp',
70 'compiler/translator/Initialize.h',
71 'compiler/translator/InitializeDll.cpp',
72 'compiler/translator/InitializeDll.h',
73 'compiler/translator/InitializeGlobals.h',
74 'compiler/translator/InitializeParseContext.cpp',
75 'compiler/translator/InitializeParseContext.h',
76 'compiler/translator/InitializeVariables.cpp',
77 'compiler/translator/InitializeVariables.h',
78 'compiler/translator/IntermTraverse.cpp',
Jamie Madillb1a85f42014-08-19 15:23:24 -040079 'compiler/translator/Intermediate.h',
Brett Wilson04bac602014-07-16 14:19:18 -070080 'compiler/translator/Intermediate.cpp',
Jamie Madillb1a85f42014-08-19 15:23:24 -040081 'compiler/translator/IntermNode.h',
82 'compiler/translator/IntermNode.cpp',
Brett Wilson04bac602014-07-16 14:19:18 -070083 'compiler/translator/LoopInfo.cpp',
84 'compiler/translator/LoopInfo.h',
85 'compiler/translator/MMap.h',
86 'compiler/translator/NodeSearch.h',
87 'compiler/translator/OutputESSL.cpp',
88 'compiler/translator/OutputESSL.h',
89 'compiler/translator/OutputGLSL.cpp',
90 'compiler/translator/OutputGLSL.h',
91 'compiler/translator/OutputGLSLBase.cpp',
92 'compiler/translator/OutputGLSLBase.h',
93 'compiler/translator/OutputHLSL.cpp',
94 'compiler/translator/OutputHLSL.h',
95 'compiler/translator/ParseContext.cpp',
96 'compiler/translator/ParseContext.h',
97 'compiler/translator/PoolAlloc.cpp',
98 'compiler/translator/PoolAlloc.h',
99 'compiler/translator/Pragma.h',
100 'compiler/translator/QualifierAlive.cpp',
101 'compiler/translator/QualifierAlive.h',
Zhenyao Moe740add2014-07-18 17:01:01 -0700102 'compiler/translator/RegenerateStructNames.cpp',
103 'compiler/translator/RegenerateStructNames.h',
Brett Wilson04bac602014-07-16 14:19:18 -0700104 'compiler/translator/RenameFunction.h',
105 'compiler/translator/RewriteElseBlocks.cpp',
106 'compiler/translator/RewriteElseBlocks.h',
107 'compiler/translator/ScalarizeVecAndMatConstructorArgs.cpp',
108 'compiler/translator/ScalarizeVecAndMatConstructorArgs.h',
109 'compiler/translator/SearchSymbol.cpp',
110 'compiler/translator/SearchSymbol.h',
111 'compiler/translator/StructureHLSL.cpp',
112 'compiler/translator/StructureHLSL.h',
113 'compiler/translator/SymbolTable.cpp',
114 'compiler/translator/SymbolTable.h',
115 'compiler/translator/TranslatorESSL.cpp',
116 'compiler/translator/TranslatorESSL.h',
117 'compiler/translator/TranslatorGLSL.cpp',
118 'compiler/translator/TranslatorGLSL.h',
119 'compiler/translator/TranslatorHLSL.cpp',
120 'compiler/translator/TranslatorHLSL.h',
121 'compiler/translator/Types.cpp',
122 'compiler/translator/Types.h',
123 'compiler/translator/UnfoldShortCircuit.cpp',
124 'compiler/translator/UnfoldShortCircuit.h',
125 'compiler/translator/UnfoldShortCircuitAST.cpp',
126 'compiler/translator/UnfoldShortCircuitAST.h',
127 'compiler/translator/UniformHLSL.cpp',
128 'compiler/translator/UniformHLSL.h',
129 'compiler/translator/UtilsHLSL.cpp',
130 'compiler/translator/UtilsHLSL.h',
131 'compiler/translator/ValidateLimitations.cpp',
132 'compiler/translator/ValidateLimitations.h',
133 'compiler/translator/ValidateOutputs.cpp',
134 'compiler/translator/ValidateOutputs.h',
135 'compiler/translator/VariableInfo.cpp',
136 'compiler/translator/VariableInfo.h',
137 'compiler/translator/VariablePacker.cpp',
138 'compiler/translator/VariablePacker.h',
139 'compiler/translator/VersionGLSL.cpp',
140 'compiler/translator/VersionGLSL.h',
141 'compiler/translator/compilerdebug.cpp',
142 'compiler/translator/compilerdebug.h',
143 'compiler/translator/depgraph/DependencyGraph.cpp',
144 'compiler/translator/depgraph/DependencyGraph.h',
145 'compiler/translator/depgraph/DependencyGraphBuilder.cpp',
146 'compiler/translator/depgraph/DependencyGraphBuilder.h',
147 'compiler/translator/depgraph/DependencyGraphOutput.cpp',
148 'compiler/translator/depgraph/DependencyGraphOutput.h',
149 'compiler/translator/depgraph/DependencyGraphTraverse.cpp',
150 'compiler/translator/glslang.h',
151 'compiler/translator/glslang.l',
152 'compiler/translator/glslang.y',
153 'compiler/translator/glslang_lex.cpp',
154 'compiler/translator/glslang_tab.cpp',
155 'compiler/translator/glslang_tab.h',
156 'compiler/translator/intermOut.cpp',
157 'compiler/translator/intermediate.h',
158 'compiler/translator/length_limits.h',
Brett Wilson04bac602014-07-16 14:19:18 -0700159 'compiler/translator/parseConst.cpp',
160 'compiler/translator/timing/RestrictFragmentShaderTiming.cpp',
161 'compiler/translator/timing/RestrictFragmentShaderTiming.h',
162 'compiler/translator/timing/RestrictVertexShaderTiming.cpp',
163 'compiler/translator/timing/RestrictVertexShaderTiming.h',
164 'compiler/translator/util.cpp',
165 'compiler/translator/util.h',
166 'third_party/compiler/ArrayBoundsClamper.cpp',
167 'third_party/compiler/ArrayBoundsClamper.h',
168 ],
169 'angle_preprocessor_sources':
170 [
171 'compiler/preprocessor/DiagnosticsBase.cpp',
172 'compiler/preprocessor/DiagnosticsBase.h',
173 'compiler/preprocessor/DirectiveHandlerBase.cpp',
174 'compiler/preprocessor/DirectiveHandlerBase.h',
175 'compiler/preprocessor/DirectiveParser.cpp',
176 'compiler/preprocessor/DirectiveParser.h',
177 'compiler/preprocessor/ExpressionParser.cpp',
178 'compiler/preprocessor/ExpressionParser.h',
179 'compiler/preprocessor/ExpressionParser.y',
180 'compiler/preprocessor/Input.cpp',
181 'compiler/preprocessor/Input.h',
182 'compiler/preprocessor/Lexer.cpp',
183 'compiler/preprocessor/Lexer.h',
184 'compiler/preprocessor/Macro.cpp',
185 'compiler/preprocessor/Macro.h',
186 'compiler/preprocessor/MacroExpander.cpp',
187 'compiler/preprocessor/MacroExpander.h',
188 'compiler/preprocessor/Preprocessor.cpp',
189 'compiler/preprocessor/Preprocessor.h',
190 'compiler/preprocessor/SourceLocation.h',
191 'compiler/preprocessor/Token.cpp',
192 'compiler/preprocessor/Token.h',
193 'compiler/preprocessor/Tokenizer.cpp',
194 'compiler/preprocessor/Tokenizer.h',
195 'compiler/preprocessor/Tokenizer.l',
196 'compiler/preprocessor/numeric_lex.h',
197 'compiler/preprocessor/pp_utils.h',
198 ],
199 },
200 # Everything below this is duplicated in the GN build. If you change
201 # anything also change angle/BUILD.gn
Geoff Lang17732822013-08-29 13:46:49 -0400202 'targets':
203 [
204 {
205 'target_name': 'preprocessor',
206 'type': 'static_library',
Geoff Langd095bda2014-04-07 14:21:14 -0400207 'includes': [ '../build/common_defines.gypi', ],
Brett Wilson04bac602014-07-16 14:19:18 -0700208 'sources': [ '<@(angle_preprocessor_sources)', ],
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700209 'conditions':
210 [
211 ['angle_build_winrt==1',
212 {
213 'msvs_enable_winrt' : '1',
214 }],
215 ['angle_build_winphone==1',
216 {
217 'msvs_enable_winphone' : '1',
218 }],
219 ],
Geoff Lang17732822013-08-29 13:46:49 -0400220 },
Geoff Lang17732822013-08-29 13:46:49 -0400221 {
Jamie Madill006ed1e2014-04-28 15:47:39 -0400222 'target_name': 'translator_lib',
223 'type': 'static_library',
Jamie Madill04184fb2015-01-09 16:51:16 +0000224 'dependencies': [ 'preprocessor' ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400225 'includes': [ '../build/common_defines.gypi', ],
226 'include_dirs':
227 [
228 '.',
229 '../include',
230 ],
Jamie Madilla2ad4e82014-07-17 14:16:32 -0400231 'defines':
232 [
233 # define the static translator to indicate exported
234 # classes are (in fact) locally defined
235 'ANGLE_TRANSLATOR_STATIC',
236 ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400237 'sources':
238 [
Brett Wilson04bac602014-07-16 14:19:18 -0700239 '<@(angle_translator_lib_sources)',
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400240 ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400241 'msvs_settings':
242 {
243 'VCLibrarianTool':
244 {
245 'AdditionalOptions': ['/ignore:4221']
246 },
247 },
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700248 'conditions':
249 [
250 ['angle_build_winrt==1',
251 {
252 'msvs_enable_winrt' : '1',
253 }],
254 ['angle_build_winphone==1',
255 {
256 'msvs_enable_winphone' : '1',
257 }],
258 ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400259 },
Geoff Lang2b6008c2013-10-08 10:44:05 -0400260
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400261 {
Jamie Madill006ed1e2014-04-28 15:47:39 -0400262 'target_name': 'translator',
263 'type': '<(component)',
Jamie Madill04184fb2015-01-09 16:51:16 +0000264 'dependencies': [ 'translator_lib' ],
Jamie Madill006ed1e2014-04-28 15:47:39 -0400265 'includes': [ '../build/common_defines.gypi', ],
266 'include_dirs':
267 [
268 '.',
269 '../include',
270 ],
271 'defines':
272 [
273 'ANGLE_TRANSLATOR_IMPLEMENTATION',
274 ],
275 'sources':
276 [
Jamie Madilla2ad4e82014-07-17 14:16:32 -0400277 'compiler/translator/ShaderLang.cpp',
278 'compiler/translator/ShaderVars.cpp'
Jamie Madill006ed1e2014-04-28 15:47:39 -0400279 ],
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700280 'conditions':
281 [
282 ['angle_build_winrt==1',
283 {
284 'msvs_enable_winrt' : '1',
285 }],
286 ['angle_build_winphone==1',
287 {
288 'msvs_enable_winphone' : '1',
289 }],
290 ],
Jamie Madill006ed1e2014-04-28 15:47:39 -0400291 },
292
293 {
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400294 'target_name': 'translator_static',
295 'type': 'static_library',
Jamie Madill006ed1e2014-04-28 15:47:39 -0400296 'dependencies': [ 'translator_lib' ],
Jamie Madill8cc03bf2014-04-11 13:33:57 -0400297 'includes': [ '../build/common_defines.gypi', ],
298 'include_dirs':
299 [
300 '.',
301 '../include',
302 ],
Geoff Lang17732822013-08-29 13:46:49 -0400303 'defines':
304 [
Geoff Lang31f0dc02013-10-08 13:29:13 -0400305 'ANGLE_TRANSLATOR_STATIC',
Geoff Lang17732822013-08-29 13:46:49 -0400306 ],
Geoff Lang2b6008c2013-10-08 10:44:05 -0400307 'direct_dependent_settings':
308 {
309 'defines':
310 [
311 'ANGLE_TRANSLATOR_STATIC',
312 ],
313 },
Jamie Madilld51df462014-02-26 14:18:17 -0500314 'sources':
315 [
Jamie Madilla2ad4e82014-07-17 14:16:32 -0400316 'compiler/translator/ShaderLang.cpp',
317 'compiler/translator/ShaderVars.cpp'
Jamie Madilld51df462014-02-26 14:18:17 -0500318 ],
Cooper Partin88d3b8c2014-10-08 10:41:56 -0700319 'conditions':
320 [
321 ['angle_build_winrt==1',
322 {
323 'msvs_enable_winrt' : '1',
324 }],
325 ['angle_build_winphone==1',
326 {
327 'msvs_enable_winphone' : '1',
328 }],
329 ],
Geoff Lang17732822013-08-29 13:46:49 -0400330 },
331 ],
332}