1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/angle/src/libGLESv2/moz.build Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,203 @@ 1.4 +# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- 1.5 +# vim: set filetype=python: 1.6 +# This Source Code Form is subject to the terms of the Mozilla Public 1.7 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.8 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.9 + 1.10 +# Target: 'preprocessor' 1.11 +# src/compiler/preprocessor: 1.12 +SOURCES += ['../compiler/preprocessor/' + src for src in [ 1.13 + 'DiagnosticsBase.cpp', 1.14 + 'DirectiveHandlerBase.cpp', 1.15 + 'DirectiveParser.cpp', 1.16 + 'ExpressionParser.cpp', 1.17 + 'Input.cpp', 1.18 + 'Lexer.cpp', 1.19 + 'Macro.cpp', 1.20 + 'MacroExpander.cpp', 1.21 + 'Preprocessor.cpp', 1.22 + 'Token.cpp', 1.23 + 'Tokenizer.cpp', 1.24 +]] 1.25 + 1.26 +# Target: 'translator_common' 1.27 +# Requires: 'preprocessor' 1.28 +# src/compiler: 1.29 +SOURCES += ['../compiler/' + src for src in [ 1.30 + 'BuiltInFunctionEmulator.cpp', 1.31 + 'Compiler.cpp', 1.32 + 'compiler_debug.cpp', 1.33 + 'CompilerUniform.cpp', 1.34 + 'DetectCallDepth.cpp', 1.35 + 'Diagnostics.cpp', 1.36 + 'DirectiveHandler.cpp', 1.37 + 'ForLoopUnroll.cpp', 1.38 + 'glslang_lex.cpp', 1.39 + 'glslang_tab.cpp', 1.40 + 'InfoSink.cpp', 1.41 + 'Initialize.cpp', 1.42 + 'InitializeDll.cpp', 1.43 + 'InitializeParseContext.cpp', 1.44 + 'Intermediate.cpp', 1.45 + 'intermOut.cpp', 1.46 + 'IntermTraverse.cpp', 1.47 + 'MapLongVariableNames.cpp', 1.48 + 'parseConst.cpp', 1.49 + 'ParseHelper.cpp', 1.50 + 'PoolAlloc.cpp', 1.51 + 'QualifierAlive.cpp', 1.52 + 'RemoveTree.cpp', 1.53 + 'SymbolTable.cpp', 1.54 + 'util.cpp', 1.55 + 'ValidateLimitations.cpp', 1.56 + 'VariableInfo.cpp', 1.57 + 'VariablePacker.cpp', 1.58 +]] 1.59 + 1.60 +# src/compiler/depgraph: 1.61 +SOURCES += ['../compiler/depgraph/' + src for src in [ 1.62 + 'DependencyGraph.cpp', 1.63 + 'DependencyGraphBuilder.cpp', 1.64 + 'DependencyGraphOutput.cpp', 1.65 + 'DependencyGraphTraverse.cpp', 1.66 +]] 1.67 + 1.68 +# src/compiler/timing: 1.69 +SOURCES += ['../compiler/timing/' + src for src in [ 1.70 + 'RestrictFragmentShaderTiming.cpp', 1.71 + 'RestrictVertexShaderTiming.cpp', 1.72 +]] 1.73 + 1.74 +# src/third_party/compiler: 1.75 +SOURCES += ['../third_party/compiler/' + src for src in [ 1.76 + 'ArrayBoundsClamper.cpp', 1.77 +]] 1.78 + 1.79 +# src/third_party/murmurhash: 1.80 +SOURCES += ['../third_party/murmurhash/' + src for src in [ 1.81 + 'MurmurHash3.cpp', 1.82 +]] 1.83 + 1.84 +if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows': 1.85 + SOURCES += [ 1.86 + '../compiler/ossource_win.cpp', 1.87 + ] 1.88 +else: 1.89 + SOURCES += [ 1.90 + '../compiler/ossource_posix.cpp', 1.91 + ] 1.92 + 1.93 +# Target: 'translator_hlsl' 1.94 +# Requires: 'translator_common' 1.95 +# src/compiler: 1.96 +SOURCES += ['../compiler/' + src for src in [ 1.97 + 'CodeGenHLSL.cpp', 1.98 + 'DetectDiscontinuity.cpp', 1.99 + 'OutputHLSL.cpp', 1.100 + 'SearchSymbol.cpp', 1.101 + 'ShaderLang.cpp', 1.102 + 'TranslatorHLSL.cpp', 1.103 + 'UnfoldShortCircuit.cpp', 1.104 +]] 1.105 + 1.106 +# Target: 'libGLESv2' 1.107 +# Requires: 'translator_hlsl' 1.108 +# src/common: 1.109 +SOURCES += ['../common/' + src for src in [ 1.110 + 'debug.cpp', 1.111 + 'RefCountObject.cpp', 1.112 +]] 1.113 + 1.114 +# src/libGLESv2: 1.115 +SOURCES += [ 1.116 + 'Buffer.cpp', 1.117 + 'Context.cpp', 1.118 + 'Fence.cpp', 1.119 + 'Float16ToFloat32.cpp', 1.120 + 'Framebuffer.cpp', 1.121 + 'HandleAllocator.cpp', 1.122 + 'libGLESv2.cpp', 1.123 + 'main.cpp', 1.124 + 'precompiled.cpp', 1.125 + 'Program.cpp', 1.126 + 'ProgramBinary.cpp', 1.127 + 'Query.cpp', 1.128 + 'Renderbuffer.cpp', 1.129 + 'ResourceManager.cpp', 1.130 + 'Shader.cpp', 1.131 + 'Texture.cpp', 1.132 + 'Uniform.cpp', 1.133 + 'utilities.cpp', 1.134 +] 1.135 + 1.136 +# src/libGLESv2/renderer: 1.137 +SOURCES += ['renderer/' + src for src in [ 1.138 + 'Blit.cpp', 1.139 + 'BufferStorage.cpp', 1.140 + 'BufferStorage11.cpp', 1.141 + 'BufferStorage9.cpp', 1.142 + 'Fence11.cpp', 1.143 + 'Fence9.cpp', 1.144 + 'Image.cpp', 1.145 + 'Image11.cpp', 1.146 + 'Image9.cpp', 1.147 + 'ImageSSE2.cpp', 1.148 + 'IndexBuffer.cpp', 1.149 + 'IndexBuffer11.cpp', 1.150 + 'IndexBuffer9.cpp', 1.151 + 'IndexDataManager.cpp', 1.152 + 'IndexRangeCache.cpp', 1.153 + 'InputLayoutCache.cpp', 1.154 + 'Query11.cpp', 1.155 + 'Query9.cpp', 1.156 + 'Renderer.cpp', 1.157 + 'Renderer11.cpp', 1.158 + 'renderer11_utils.cpp', 1.159 + 'Renderer9.cpp', 1.160 + 'renderer9_utils.cpp', 1.161 + 'RenderStateCache.cpp', 1.162 + 'RenderTarget11.cpp', 1.163 + 'RenderTarget9.cpp', 1.164 + 'ShaderExecutable11.cpp', 1.165 + 'ShaderExecutable9.cpp', 1.166 + 'SwapChain11.cpp', 1.167 + 'SwapChain9.cpp', 1.168 + 'TextureStorage.cpp', 1.169 + 'TextureStorage11.cpp', 1.170 + 'TextureStorage9.cpp', 1.171 + 'VertexBuffer.cpp', 1.172 + 'VertexBuffer11.cpp', 1.173 + 'VertexBuffer9.cpp', 1.174 + 'VertexDataManager.cpp', 1.175 + 'VertexDeclarationCache.cpp', 1.176 +]] 1.177 + 1.178 +SOURCES['renderer/ImageSSE2.cpp'].flags += CONFIG['SSE2_FLAGS'] 1.179 + 1.180 +# On Windows, we don't automatically get "lib" prepended, but we need it. 1.181 +LIBRARY_NAME = 'libGLESv2' 1.182 + 1.183 +FORCE_SHARED_LIB = True 1.184 + 1.185 +LOCAL_INCLUDES += [ 1.186 + '..', 1.187 + '../../include', 1.188 + '../../include/KHR', 1.189 +] 1.190 + 1.191 + 1.192 +for var in ('LIBGLESV2_EXPORTS', 'ANGLE_BUILD', 'NOMINMAX', 1.193 + '_CRT_SECURE_NO_DEPRECATE', 'ANGLE_DISABLE_TRACE', 1.194 + 'COMPILER_IMPLEMENTATION'): 1.195 + DEFINES[var] = True 1.196 + 1.197 +if not CONFIG['MOZ_DEBUG']: 1.198 + DEFINES['_SECURE_SCL'] = 0 1.199 + 1.200 +DEFINES['ANGLE_COMPILE_OPTIMIZATION_LEVEL'] = 'D3DCOMPILE_OPTIMIZATION_LEVEL1' 1.201 + 1.202 +RCFILE = SRCDIR + '/libGLESv2.rc' 1.203 +DEFFILE = SRCDIR + '/libGLESv2.def' 1.204 + 1.205 +# ANGLE uses the STL, so we can't use our derpy STL wrappers. 1.206 +DISABLE_STL_WRAPPING = True