• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright (c) 2012 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{
6  'variables': {
7    'angle_code': 1,
8    'translator_sources': [
9        'compiler/BaseTypes.h',
10        'compiler/BuiltInFunctionEmulator.cpp',
11        'compiler/BuiltInFunctionEmulator.h',
12        'compiler/CodeGen.cpp',
13        'compiler/Common.h',
14        'compiler/Compiler.cpp',
15        'compiler/ConstantUnion.h',
16        'compiler/debug.cpp',
17        'compiler/debug.h',
18        'compiler/DetectCallDepth.cpp',
19        'compiler/DetectCallDepth.h',
20        'compiler/DetectDiscontinuity.cpp',
21        'compiler/DetectDiscontinuity.h',
22        'compiler/Diagnostics.h',
23        'compiler/Diagnostics.cpp',
24        'compiler/DirectiveHandler.h',
25        'compiler/DirectiveHandler.cpp',
26        'compiler/ExtensionBehavior.h',
27        'compiler/ForLoopUnroll.cpp',
28        'compiler/ForLoopUnroll.h',
29        'compiler/glslang.h',
30        'compiler/glslang_lex.cpp',
31        'compiler/glslang_tab.cpp',
32        'compiler/glslang_tab.h',
33        'compiler/HashNames.h',
34        'compiler/InfoSink.cpp',
35        'compiler/InfoSink.h',
36        'compiler/Initialize.cpp',
37        'compiler/Initialize.h',
38        'compiler/InitializeDll.cpp',
39        'compiler/InitializeDll.h',
40        'compiler/InitializeGlobals.h',
41        'compiler/InitializeGLPosition.cpp',
42        'compiler/InitializeGLPosition.h',
43        'compiler/InitializeParseContext.cpp',
44        'compiler/InitializeParseContext.h',
45        'compiler/Intermediate.cpp',
46        'compiler/intermediate.h',
47        'compiler/intermOut.cpp',
48        'compiler/IntermTraverse.cpp',
49        'compiler/localintermediate.h',
50        'compiler/MapLongVariableNames.cpp',
51        'compiler/MapLongVariableNames.h',
52        'compiler/MMap.h',
53        'compiler/osinclude.h',
54        'compiler/OutputESSL.cpp',
55        'compiler/OutputESSL.h',
56        'compiler/OutputGLSLBase.cpp',
57        'compiler/OutputGLSLBase.h',
58        'compiler/OutputGLSL.cpp',
59        'compiler/OutputGLSL.h',
60        'compiler/OutputHLSL.cpp',
61        'compiler/OutputHLSL.h',
62        'compiler/parseConst.cpp',
63        'compiler/ParseContext.cpp',
64        'compiler/ParseContext.h',
65        'compiler/PoolAlloc.cpp',
66        'compiler/PoolAlloc.h',
67        'compiler/QualifierAlive.cpp',
68        'compiler/QualifierAlive.h',
69        'compiler/RemoveTree.cpp',
70        'compiler/RemoveTree.h',
71        'compiler/RenameFunction.h',
72        'compiler/SearchSymbol.cpp',
73        'compiler/SearchSymbol.h',
74        'compiler/ShaderLang.cpp',
75        'compiler/ShHandle.h',
76        'compiler/SymbolTable.cpp',
77        'compiler/SymbolTable.h',
78        'compiler/TranslatorESSL.cpp',
79        'compiler/TranslatorESSL.h',
80        'compiler/TranslatorGLSL.cpp',
81        'compiler/TranslatorGLSL.h',
82        'compiler/TranslatorHLSL.cpp',
83        'compiler/TranslatorHLSL.h',
84        'compiler/Types.h',
85        'compiler/UnfoldShortCircuitAST.cpp',
86        'compiler/UnfoldShortCircuitAST.h',
87        'compiler/UnfoldShortCircuit.cpp',
88        'compiler/UnfoldShortCircuit.h',
89        'compiler/Uniform.cpp',
90        'compiler/Uniform.h',
91        'compiler/util.cpp',
92        'compiler/util.h',
93        'compiler/ValidateLimitations.cpp',
94        'compiler/ValidateLimitations.h',
95        'compiler/VariableInfo.cpp',
96        'compiler/VariableInfo.h',
97        'compiler/VariablePacker.cpp',
98        'compiler/VariablePacker.h',
99        'compiler/VersionGLSL.cpp',
100        'compiler/VersionGLSL.h',
101        # Dependency graph
102        'compiler/depgraph/DependencyGraph.cpp',
103        'compiler/depgraph/DependencyGraph.h',
104        'compiler/depgraph/DependencyGraphBuilder.cpp',
105        'compiler/depgraph/DependencyGraphBuilder.h',
106        'compiler/depgraph/DependencyGraphOutput.cpp',
107        'compiler/depgraph/DependencyGraphOutput.h',
108        'compiler/depgraph/DependencyGraphTraverse.cpp',
109        # Timing restrictions
110        'compiler/timing/RestrictFragmentShaderTiming.cpp',
111        'compiler/timing/RestrictFragmentShaderTiming.h',
112        'compiler/timing/RestrictVertexShaderTiming.cpp',
113        'compiler/timing/RestrictVertexShaderTiming.h',
114        'third_party/compiler/ArrayBoundsClamper.cpp',
115        'third_party/compiler/ArrayBoundsClamper.h',
116      ],
117  },
118  'target_defaults': {
119    'defines': [
120      'ANGLE_DISABLE_TRACE',
121      'ANGLE_COMPILE_OPTIMIZATION_LEVEL=D3DCOMPILE_OPTIMIZATION_LEVEL1',
122      'ANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES={ TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }',
123    ],
124  },
125  'targets': [
126    {
127      'target_name': 'preprocessor',
128      'type': 'static_library',
129      'include_dirs': [
130      ],
131      'sources': [
132        'compiler/preprocessor/DiagnosticsBase.cpp',
133        'compiler/preprocessor/DiagnosticsBase.h',
134        'compiler/preprocessor/DirectiveHandlerBase.cpp',
135        'compiler/preprocessor/DirectiveHandlerBase.h',
136        'compiler/preprocessor/DirectiveParser.cpp',
137        'compiler/preprocessor/DirectiveParser.h',
138        'compiler/preprocessor/ExpressionParser.cpp',
139        'compiler/preprocessor/ExpressionParser.h',
140        'compiler/preprocessor/Input.cpp',
141        'compiler/preprocessor/Input.h',
142        'compiler/preprocessor/length_limits.h',
143        'compiler/preprocessor/Lexer.cpp',
144        'compiler/preprocessor/Lexer.h',
145        'compiler/preprocessor/Macro.cpp',
146        'compiler/preprocessor/Macro.h',
147        'compiler/preprocessor/MacroExpander.cpp',
148        'compiler/preprocessor/MacroExpander.h',
149        'compiler/preprocessor/numeric_lex.h',
150        'compiler/preprocessor/pp_utils.h',
151        'compiler/preprocessor/Preprocessor.cpp',
152        'compiler/preprocessor/Preprocessor.h',
153        'compiler/preprocessor/SourceLocation.h',
154        'compiler/preprocessor/Token.cpp',
155        'compiler/preprocessor/Token.h',
156        'compiler/preprocessor/Tokenizer.cpp',
157        'compiler/preprocessor/Tokenizer.h',
158      ],
159      # TODO(jschuh): http://crbug.com/167187
160      'msvs_disabled_warnings': [
161        4267,
162      ],
163    },
164    {
165      'target_name': 'translator',
166      'type': '<(component)',
167      'dependencies': ['preprocessor'],
168      'include_dirs': [
169        '.',
170        '../include',
171      ],
172      'defines': [
173        'ANGLE_TRANSLATOR_IMPLEMENTATION',
174      ],
175      'sources': ['<@(translator_sources)'],
176      # TODO(jschuh): http://crbug.com/167187 size_t -> int
177      'msvs_disabled_warnings': [ 4267 ],
178      'conditions': [
179        ['OS=="win"', {
180          'sources': ['compiler/ossource_win.cpp'],
181        }, { # else: posix
182          'sources': ['compiler/ossource_posix.cpp'],
183        }],
184      ],
185    },
186    {
187      'target_name': 'translator_static',
188      'type': 'static_library',
189      'dependencies': ['preprocessor'],
190      'include_dirs': [
191        '.',
192        '../include',
193      ],
194      'direct_dependent_settings': {
195        'defines': [
196          'ANGLE_TRANSLATOR_STATIC',
197        ],
198      },
199      'defines': [
200        'ANGLE_TRANSLATOR_STATIC',
201      ],
202      'sources': ['<@(translator_sources)'],
203      # TODO(jschuh): http://crbug.com/167187 size_t -> int
204      'msvs_disabled_warnings': [ 4267 ],
205      'conditions': [
206        ['OS=="win"', {
207          'sources': ['compiler/ossource_win.cpp'],
208        }, { # else: posix
209          'sources': ['compiler/ossource_posix.cpp'],
210        }],
211      ],
212    },
213  ],
214  'conditions': [
215    ['OS=="win"', {
216      'targets': [
217        {
218          'target_name': 'libGLESv2',
219          'type': 'shared_library',
220          'dependencies': ['translator'],
221          'include_dirs': [
222            '.',
223            '../include',
224            'libGLESv2',
225          ],
226          'sources': [
227            'third_party/murmurhash/MurmurHash3.h',
228            'third_party/murmurhash/MurmurHash3.cpp',
229            'third_party/trace_event/trace_event.h',
230            'common/angleutils.h',
231            'common/debug.cpp',
232            'common/debug.h',
233            'common/event_tracer.cpp',
234            'common/event_tracer.h',
235            'common/RefCountObject.cpp',
236            'common/RefCountObject.h',
237            'common/version.h',
238            'libGLESv2/precompiled.h',
239            'libGLESv2/precompiled.cpp',
240            'libGLESv2/BinaryStream.h',
241            'libGLESv2/Buffer.cpp',
242            'libGLESv2/Buffer.h',
243            'libGLESv2/constants.h',
244            'libGLESv2/Context.cpp',
245            'libGLESv2/Context.h',
246            'libGLESv2/angletypes.h',
247            'libGLESv2/Fence.cpp',
248            'libGLESv2/Fence.h',
249            'libGLESv2/Float16ToFloat32.cpp',
250            'libGLESv2/Framebuffer.cpp',
251            'libGLESv2/Framebuffer.h',
252            'libGLESv2/HandleAllocator.cpp',
253            'libGLESv2/HandleAllocator.h',
254            'libGLESv2/libGLESv2.cpp',
255            'libGLESv2/libGLESv2.def',
256            'libGLESv2/libGLESv2.rc',
257            'libGLESv2/main.cpp',
258            'libGLESv2/main.h',
259            'libGLESv2/mathutil.h',
260            'libGLESv2/Program.cpp',
261            'libGLESv2/Program.h',
262            'libGLESv2/ProgramBinary.cpp',
263            'libGLESv2/ProgramBinary.h',
264            'libGLESv2/Query.h',
265            'libGLESv2/Query.cpp',
266            'libGLESv2/Renderbuffer.cpp',
267            'libGLESv2/Renderbuffer.h',
268            'libGLESv2/renderer/Blit.cpp',
269            'libGLESv2/renderer/Blit.h',
270            'libGLESv2/renderer/BufferStorage.h',
271            'libGLESv2/renderer/BufferStorage.cpp',
272            'libGLESv2/renderer/BufferStorage9.cpp',
273            'libGLESv2/renderer/BufferStorage9.h',
274            'libGLESv2/renderer/BufferStorage11.cpp',
275            'libGLESv2/renderer/BufferStorage11.h',
276            'libGLESv2/renderer/FenceImpl.h',
277            'libGLESv2/renderer/Fence9.cpp',
278            'libGLESv2/renderer/Fence9.h',
279            'libGLESv2/renderer/Fence11.cpp',
280            'libGLESv2/renderer/Fence11.h',
281            'libGLESv2/renderer/generatemip.h',
282            'libGLESv2/renderer/Image.cpp',
283            'libGLESv2/renderer/Image.h',
284            'libGLESv2/renderer/Image11.cpp',
285            'libGLESv2/renderer/Image11.h',
286            'libGLESv2/renderer/Image9.cpp',
287            'libGLESv2/renderer/Image9.h',
288            'libGLESv2/renderer/ImageSSE2.cpp',
289            'libGLESv2/renderer/IndexBuffer.cpp',
290            'libGLESv2/renderer/IndexBuffer.h',
291            'libGLESv2/renderer/IndexBuffer9.cpp',
292            'libGLESv2/renderer/IndexBuffer9.h',
293            'libGLESv2/renderer/IndexBuffer11.cpp',
294            'libGLESv2/renderer/IndexBuffer11.h',
295            'libGLESv2/renderer/IndexDataManager.cpp',
296            'libGLESv2/renderer/IndexDataManager.h',
297            'libGLESv2/renderer/IndexRangeCache.cpp',
298            'libGLESv2/renderer/IndexRangeCache.h',
299            'libGLESv2/renderer/InputLayoutCache.cpp',
300            'libGLESv2/renderer/InputLayoutCache.h',
301            'libGLESv2/renderer/QueryImpl.h',
302            'libGLESv2/renderer/Query9.cpp',
303            'libGLESv2/renderer/Query9.h',
304            'libGLESv2/renderer/Query11.cpp',
305            'libGLESv2/renderer/Query11.h',
306            'libGLESv2/renderer/Renderer.cpp',
307            'libGLESv2/renderer/Renderer.h',
308            'libGLESv2/renderer/Renderer11.cpp',
309            'libGLESv2/renderer/Renderer11.h',
310            'libGLESv2/renderer/renderer11_utils.cpp',
311            'libGLESv2/renderer/renderer11_utils.h',
312            'libGLESv2/renderer/Renderer9.cpp',
313            'libGLESv2/renderer/Renderer9.h',
314            'libGLESv2/renderer/renderer9_utils.cpp',
315            'libGLESv2/renderer/renderer9_utils.h',
316            'libGLESv2/renderer/RenderStateCache.cpp',
317            'libGLESv2/renderer/RenderStateCache.h',
318            'libGLESv2/renderer/RenderTarget.h',
319            'libGLESv2/renderer/RenderTarget11.h',
320            'libGLESv2/renderer/RenderTarget11.cpp',
321            'libGLESv2/renderer/RenderTarget9.h',
322            'libGLESv2/renderer/RenderTarget9.cpp',
323            'libGLESv2/renderer/ShaderCache.h',
324            'libGLESv2/renderer/ShaderExecutable.h',
325            'libGLESv2/renderer/ShaderExecutable9.cpp',
326            'libGLESv2/renderer/ShaderExecutable9.h',
327            'libGLESv2/renderer/ShaderExecutable11.cpp',
328            'libGLESv2/renderer/ShaderExecutable11.h',
329            'libGLESv2/renderer/SwapChain.h',
330            'libGLESv2/renderer/SwapChain9.cpp',
331            'libGLESv2/renderer/SwapChain9.h',
332            'libGLESv2/renderer/SwapChain11.cpp',
333            'libGLESv2/renderer/SwapChain11.h',
334            'libGLESv2/renderer/TextureStorage.cpp',
335            'libGLESv2/renderer/TextureStorage.h',
336            'libGLESv2/renderer/TextureStorage11.cpp',
337            'libGLESv2/renderer/TextureStorage11.h',
338            'libGLESv2/renderer/TextureStorage9.cpp',
339            'libGLESv2/renderer/TextureStorage9.h',
340            'libGLESv2/renderer/VertexBuffer.cpp',
341            'libGLESv2/renderer/VertexBuffer.h',
342            'libGLESv2/renderer/VertexBuffer9.cpp',
343            'libGLESv2/renderer/VertexBuffer9.h',
344            'libGLESv2/renderer/VertexBuffer11.cpp',
345            'libGLESv2/renderer/VertexBuffer11.h',
346            'libGLESv2/renderer/vertexconversion.h',
347            'libGLESv2/renderer/VertexDataManager.cpp',
348            'libGLESv2/renderer/VertexDataManager.h',
349            'libGLESv2/renderer/VertexDeclarationCache.cpp',
350            'libGLESv2/renderer/VertexDeclarationCache.h',
351            'libGLESv2/ResourceManager.cpp',
352            'libGLESv2/ResourceManager.h',
353            'libGLESv2/Shader.cpp',
354            'libGLESv2/Shader.h',
355            'libGLESv2/Texture.cpp',
356            'libGLESv2/Texture.h',
357            'libGLESv2/Uniform.cpp',
358            'libGLESv2/Uniform.h',
359            'libGLESv2/utilities.cpp',
360            'libGLESv2/utilities.h',
361          ],
362          # TODO(jschuh): http://crbug.com/167187 size_t -> int
363          'msvs_disabled_warnings': [ 4267 ],
364          'msvs_settings': {
365            'VCLinkerTool': {
366              'AdditionalDependencies': [
367                'd3d9.lib',
368                'dxguid.lib',
369              ],
370            }
371          },
372          'copies': [
373            {
374              'destination': '<(PRODUCT_DIR)',
375              'files': [
376                '<(windows_sdk_path)/Redist/D3D/<(winsdk_arch)/d3dcompiler_46.dll',
377              ],
378            },
379          ],
380        },
381        {
382          'target_name': 'libEGL',
383          'type': 'shared_library',
384          'dependencies': ['libGLESv2'],
385          'include_dirs': [
386            '.',
387            '../include',
388            'libGLESv2',
389          ],
390          'sources': [
391            'common/angleutils.h',
392            'common/debug.cpp',
393            'common/debug.h',
394            'common/RefCountObject.cpp',
395            'common/RefCountObject.h',
396            'common/version.h',
397            'libEGL/Config.cpp',
398            'libEGL/Config.h',
399            'libEGL/Display.cpp',
400            'libEGL/Display.h',
401            'libEGL/libEGL.cpp',
402            'libEGL/libEGL.def',
403            'libEGL/libEGL.rc',
404            'libEGL/main.cpp',
405            'libEGL/main.h',
406            'libEGL/Surface.cpp',
407            'libEGL/Surface.h',
408          ],
409          # TODO(jschuh): http://crbug.com/167187 size_t -> int
410          'msvs_disabled_warnings': [ 4267 ],
411          'msvs_settings': {
412            'VCLinkerTool': {
413              'AdditionalDependencies': [
414                'd3d9.lib',
415              ],
416            }
417          },
418        },
419      ],
420    }],
421  ],
422}
423
424# Local Variables:
425# tab-width:2
426# indent-tabs-mode:nil
427# End:
428# vim: set expandtab tabstop=2 shiftwidth=2:
429# Copyright (c) 2012 The ANGLE Project Authors. All rights reserved.
430# Use of this source code is governed by a BSD-style license that can be
431# found in the LICENSE file.
432