Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | # -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*- |
michael@0 | 2 | # vim: set filetype=python: |
michael@0 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 5 | # file, You can obtain one at http://mozilla.org/MPL/2.0/. |
michael@0 | 6 | |
michael@0 | 7 | # Target: 'preprocessor' |
michael@0 | 8 | # src/compiler/preprocessor: |
michael@0 | 9 | SOURCES += ['../compiler/preprocessor/' + src for src in [ |
michael@0 | 10 | 'DiagnosticsBase.cpp', |
michael@0 | 11 | 'DirectiveHandlerBase.cpp', |
michael@0 | 12 | 'DirectiveParser.cpp', |
michael@0 | 13 | 'ExpressionParser.cpp', |
michael@0 | 14 | 'Input.cpp', |
michael@0 | 15 | 'Lexer.cpp', |
michael@0 | 16 | 'Macro.cpp', |
michael@0 | 17 | 'MacroExpander.cpp', |
michael@0 | 18 | 'Preprocessor.cpp', |
michael@0 | 19 | 'Token.cpp', |
michael@0 | 20 | 'Tokenizer.cpp', |
michael@0 | 21 | ]] |
michael@0 | 22 | |
michael@0 | 23 | # Target: 'translator_common' |
michael@0 | 24 | # Requires: 'preprocessor' |
michael@0 | 25 | # src/compiler: |
michael@0 | 26 | SOURCES += ['../compiler/' + src for src in [ |
michael@0 | 27 | 'BuiltInFunctionEmulator.cpp', |
michael@0 | 28 | 'Compiler.cpp', |
michael@0 | 29 | 'compiler_debug.cpp', |
michael@0 | 30 | 'CompilerUniform.cpp', |
michael@0 | 31 | 'DetectCallDepth.cpp', |
michael@0 | 32 | 'Diagnostics.cpp', |
michael@0 | 33 | 'DirectiveHandler.cpp', |
michael@0 | 34 | 'ForLoopUnroll.cpp', |
michael@0 | 35 | 'glslang_lex.cpp', |
michael@0 | 36 | 'glslang_tab.cpp', |
michael@0 | 37 | 'InfoSink.cpp', |
michael@0 | 38 | 'Initialize.cpp', |
michael@0 | 39 | 'InitializeDll.cpp', |
michael@0 | 40 | 'InitializeParseContext.cpp', |
michael@0 | 41 | 'Intermediate.cpp', |
michael@0 | 42 | 'intermOut.cpp', |
michael@0 | 43 | 'IntermTraverse.cpp', |
michael@0 | 44 | 'MapLongVariableNames.cpp', |
michael@0 | 45 | 'parseConst.cpp', |
michael@0 | 46 | 'ParseHelper.cpp', |
michael@0 | 47 | 'PoolAlloc.cpp', |
michael@0 | 48 | 'QualifierAlive.cpp', |
michael@0 | 49 | 'RemoveTree.cpp', |
michael@0 | 50 | 'SymbolTable.cpp', |
michael@0 | 51 | 'util.cpp', |
michael@0 | 52 | 'ValidateLimitations.cpp', |
michael@0 | 53 | 'VariableInfo.cpp', |
michael@0 | 54 | 'VariablePacker.cpp', |
michael@0 | 55 | ]] |
michael@0 | 56 | |
michael@0 | 57 | # src/compiler/depgraph: |
michael@0 | 58 | SOURCES += ['../compiler/depgraph/' + src for src in [ |
michael@0 | 59 | 'DependencyGraph.cpp', |
michael@0 | 60 | 'DependencyGraphBuilder.cpp', |
michael@0 | 61 | 'DependencyGraphOutput.cpp', |
michael@0 | 62 | 'DependencyGraphTraverse.cpp', |
michael@0 | 63 | ]] |
michael@0 | 64 | |
michael@0 | 65 | # src/compiler/timing: |
michael@0 | 66 | SOURCES += ['../compiler/timing/' + src for src in [ |
michael@0 | 67 | 'RestrictFragmentShaderTiming.cpp', |
michael@0 | 68 | 'RestrictVertexShaderTiming.cpp', |
michael@0 | 69 | ]] |
michael@0 | 70 | |
michael@0 | 71 | # src/third_party/compiler: |
michael@0 | 72 | SOURCES += ['../third_party/compiler/' + src for src in [ |
michael@0 | 73 | 'ArrayBoundsClamper.cpp', |
michael@0 | 74 | ]] |
michael@0 | 75 | |
michael@0 | 76 | # src/third_party/murmurhash: |
michael@0 | 77 | SOURCES += ['../third_party/murmurhash/' + src for src in [ |
michael@0 | 78 | 'MurmurHash3.cpp', |
michael@0 | 79 | ]] |
michael@0 | 80 | |
michael@0 | 81 | if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows': |
michael@0 | 82 | SOURCES += [ |
michael@0 | 83 | '../compiler/ossource_win.cpp', |
michael@0 | 84 | ] |
michael@0 | 85 | else: |
michael@0 | 86 | SOURCES += [ |
michael@0 | 87 | '../compiler/ossource_posix.cpp', |
michael@0 | 88 | ] |
michael@0 | 89 | |
michael@0 | 90 | # Target: 'translator_hlsl' |
michael@0 | 91 | # Requires: 'translator_common' |
michael@0 | 92 | # src/compiler: |
michael@0 | 93 | SOURCES += ['../compiler/' + src for src in [ |
michael@0 | 94 | 'CodeGenHLSL.cpp', |
michael@0 | 95 | 'DetectDiscontinuity.cpp', |
michael@0 | 96 | 'OutputHLSL.cpp', |
michael@0 | 97 | 'SearchSymbol.cpp', |
michael@0 | 98 | 'ShaderLang.cpp', |
michael@0 | 99 | 'TranslatorHLSL.cpp', |
michael@0 | 100 | 'UnfoldShortCircuit.cpp', |
michael@0 | 101 | ]] |
michael@0 | 102 | |
michael@0 | 103 | # Target: 'libGLESv2' |
michael@0 | 104 | # Requires: 'translator_hlsl' |
michael@0 | 105 | # src/common: |
michael@0 | 106 | SOURCES += ['../common/' + src for src in [ |
michael@0 | 107 | 'debug.cpp', |
michael@0 | 108 | 'RefCountObject.cpp', |
michael@0 | 109 | ]] |
michael@0 | 110 | |
michael@0 | 111 | # src/libGLESv2: |
michael@0 | 112 | SOURCES += [ |
michael@0 | 113 | 'Buffer.cpp', |
michael@0 | 114 | 'Context.cpp', |
michael@0 | 115 | 'Fence.cpp', |
michael@0 | 116 | 'Float16ToFloat32.cpp', |
michael@0 | 117 | 'Framebuffer.cpp', |
michael@0 | 118 | 'HandleAllocator.cpp', |
michael@0 | 119 | 'libGLESv2.cpp', |
michael@0 | 120 | 'main.cpp', |
michael@0 | 121 | 'precompiled.cpp', |
michael@0 | 122 | 'Program.cpp', |
michael@0 | 123 | 'ProgramBinary.cpp', |
michael@0 | 124 | 'Query.cpp', |
michael@0 | 125 | 'Renderbuffer.cpp', |
michael@0 | 126 | 'ResourceManager.cpp', |
michael@0 | 127 | 'Shader.cpp', |
michael@0 | 128 | 'Texture.cpp', |
michael@0 | 129 | 'Uniform.cpp', |
michael@0 | 130 | 'utilities.cpp', |
michael@0 | 131 | ] |
michael@0 | 132 | |
michael@0 | 133 | # src/libGLESv2/renderer: |
michael@0 | 134 | SOURCES += ['renderer/' + src for src in [ |
michael@0 | 135 | 'Blit.cpp', |
michael@0 | 136 | 'BufferStorage.cpp', |
michael@0 | 137 | 'BufferStorage11.cpp', |
michael@0 | 138 | 'BufferStorage9.cpp', |
michael@0 | 139 | 'Fence11.cpp', |
michael@0 | 140 | 'Fence9.cpp', |
michael@0 | 141 | 'Image.cpp', |
michael@0 | 142 | 'Image11.cpp', |
michael@0 | 143 | 'Image9.cpp', |
michael@0 | 144 | 'ImageSSE2.cpp', |
michael@0 | 145 | 'IndexBuffer.cpp', |
michael@0 | 146 | 'IndexBuffer11.cpp', |
michael@0 | 147 | 'IndexBuffer9.cpp', |
michael@0 | 148 | 'IndexDataManager.cpp', |
michael@0 | 149 | 'IndexRangeCache.cpp', |
michael@0 | 150 | 'InputLayoutCache.cpp', |
michael@0 | 151 | 'Query11.cpp', |
michael@0 | 152 | 'Query9.cpp', |
michael@0 | 153 | 'Renderer.cpp', |
michael@0 | 154 | 'Renderer11.cpp', |
michael@0 | 155 | 'renderer11_utils.cpp', |
michael@0 | 156 | 'Renderer9.cpp', |
michael@0 | 157 | 'renderer9_utils.cpp', |
michael@0 | 158 | 'RenderStateCache.cpp', |
michael@0 | 159 | 'RenderTarget11.cpp', |
michael@0 | 160 | 'RenderTarget9.cpp', |
michael@0 | 161 | 'ShaderExecutable11.cpp', |
michael@0 | 162 | 'ShaderExecutable9.cpp', |
michael@0 | 163 | 'SwapChain11.cpp', |
michael@0 | 164 | 'SwapChain9.cpp', |
michael@0 | 165 | 'TextureStorage.cpp', |
michael@0 | 166 | 'TextureStorage11.cpp', |
michael@0 | 167 | 'TextureStorage9.cpp', |
michael@0 | 168 | 'VertexBuffer.cpp', |
michael@0 | 169 | 'VertexBuffer11.cpp', |
michael@0 | 170 | 'VertexBuffer9.cpp', |
michael@0 | 171 | 'VertexDataManager.cpp', |
michael@0 | 172 | 'VertexDeclarationCache.cpp', |
michael@0 | 173 | ]] |
michael@0 | 174 | |
michael@0 | 175 | SOURCES['renderer/ImageSSE2.cpp'].flags += CONFIG['SSE2_FLAGS'] |
michael@0 | 176 | |
michael@0 | 177 | # On Windows, we don't automatically get "lib" prepended, but we need it. |
michael@0 | 178 | LIBRARY_NAME = 'libGLESv2' |
michael@0 | 179 | |
michael@0 | 180 | FORCE_SHARED_LIB = True |
michael@0 | 181 | |
michael@0 | 182 | LOCAL_INCLUDES += [ |
michael@0 | 183 | '..', |
michael@0 | 184 | '../../include', |
michael@0 | 185 | '../../include/KHR', |
michael@0 | 186 | ] |
michael@0 | 187 | |
michael@0 | 188 | |
michael@0 | 189 | for var in ('LIBGLESV2_EXPORTS', 'ANGLE_BUILD', 'NOMINMAX', |
michael@0 | 190 | '_CRT_SECURE_NO_DEPRECATE', 'ANGLE_DISABLE_TRACE', |
michael@0 | 191 | 'COMPILER_IMPLEMENTATION'): |
michael@0 | 192 | DEFINES[var] = True |
michael@0 | 193 | |
michael@0 | 194 | if not CONFIG['MOZ_DEBUG']: |
michael@0 | 195 | DEFINES['_SECURE_SCL'] = 0 |
michael@0 | 196 | |
michael@0 | 197 | DEFINES['ANGLE_COMPILE_OPTIMIZATION_LEVEL'] = 'D3DCOMPILE_OPTIMIZATION_LEVEL1' |
michael@0 | 198 | |
michael@0 | 199 | RCFILE = SRCDIR + '/libGLESv2.rc' |
michael@0 | 200 | DEFFILE = SRCDIR + '/libGLESv2.def' |
michael@0 | 201 | |
michael@0 | 202 | # ANGLE uses the STL, so we can't use our derpy STL wrappers. |
michael@0 | 203 | DISABLE_STL_WRAPPING = True |