gfx/angle/moz.build

Tue, 06 Jan 2015 21:39:09 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 06 Jan 2015 21:39:09 +0100
branch
TOR_BUG_9701
changeset 8
97036ab72558
permissions
-rw-r--r--

Conditionally force memory storage according to privacy.thirdparty.isolate;
This solves Tor bug #9701, complying with disk avoidance documented in
https://www.torproject.org/projects/torbrowser/design/#disk-avoidance.

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 # libEGL depends on (links against!) libGLESv2!
michael@0 8 if CONFIG['MOZ_ANGLE_RENDERER']:
michael@0 9 DIRS += ['src/libGLESv2', 'src/libEGL']
michael@0 10
michael@0 11 EXPORTS.angle += [
michael@0 12 'include/GLSLANG/ShaderLang.h',
michael@0 13 'include/KHR/khrplatform.h',
michael@0 14 ]
michael@0 15
michael@0 16 # WARNING: CPP_SOURCES seems very dependent on ordering. Grouping all of these
michael@0 17 # CPP_SOURCES lines into one list may break webgl tests.
michael@0 18
michael@0 19 # Target: 'preprocessor'
michael@0 20 # src/compiler/preprocessor:
michael@0 21 UNIFIED_SOURCES += ['src/compiler/preprocessor/' + src for src in [
michael@0 22 'DiagnosticsBase.cpp',
michael@0 23 'DirectiveHandlerBase.cpp',
michael@0 24 'DirectiveParser.cpp',
michael@0 25 'ExpressionParser.cpp',
michael@0 26 'Input.cpp',
michael@0 27 'Lexer.cpp',
michael@0 28 'Macro.cpp',
michael@0 29 'MacroExpander.cpp',
michael@0 30 'Preprocessor.cpp',
michael@0 31 'Token.cpp',
michael@0 32 'Tokenizer.cpp',
michael@0 33 ]]
michael@0 34
michael@0 35 # Target: 'translator_common'
michael@0 36 # Requires: 'preprocessor'
michael@0 37 # src/compiler:
michael@0 38 UNIFIED_SOURCES += ['src/compiler/' + src for src in [
michael@0 39 'BuiltInFunctionEmulator.cpp',
michael@0 40 'Compiler.cpp',
michael@0 41 'compiler_debug.cpp',
michael@0 42 'CompilerUniform.cpp',
michael@0 43 'DetectCallDepth.cpp',
michael@0 44 'Diagnostics.cpp',
michael@0 45 'DirectiveHandler.cpp',
michael@0 46 'ForLoopUnroll.cpp',
michael@0 47 'InfoSink.cpp',
michael@0 48 'Initialize.cpp',
michael@0 49 'InitializeDll.cpp',
michael@0 50 'InitializeParseContext.cpp',
michael@0 51 'Intermediate.cpp',
michael@0 52 'intermOut.cpp',
michael@0 53 'IntermTraverse.cpp',
michael@0 54 'MapLongVariableNames.cpp',
michael@0 55 'parseConst.cpp',
michael@0 56 'ParseHelper.cpp',
michael@0 57 'PoolAlloc.cpp',
michael@0 58 'QualifierAlive.cpp',
michael@0 59 'RemoveTree.cpp',
michael@0 60 'SymbolTable.cpp',
michael@0 61 'util.cpp',
michael@0 62 'ValidateLimitations.cpp',
michael@0 63 'VariableInfo.cpp',
michael@0 64 'VariablePacker.cpp',
michael@0 65 ]]
michael@0 66 # The yacc source files need to be built separately.
michael@0 67 SOURCES += ['src/compiler/' + src for src in [
michael@0 68 'glslang_lex.cpp',
michael@0 69 'glslang_tab.cpp',
michael@0 70 ]]
michael@0 71
michael@0 72 # src/compiler/depgraph:
michael@0 73 UNIFIED_SOURCES += ['src/compiler/depgraph/' + src for src in [
michael@0 74 'DependencyGraph.cpp',
michael@0 75 'DependencyGraphBuilder.cpp',
michael@0 76 'DependencyGraphOutput.cpp',
michael@0 77 'DependencyGraphTraverse.cpp',
michael@0 78 ]]
michael@0 79
michael@0 80 # src/compiler/timing:
michael@0 81 UNIFIED_SOURCES += ['src/compiler/timing/' + src for src in [
michael@0 82 'RestrictFragmentShaderTiming.cpp',
michael@0 83 'RestrictVertexShaderTiming.cpp',
michael@0 84 ]]
michael@0 85
michael@0 86 # src/third_party/compiler:
michael@0 87 UNIFIED_SOURCES += ['src/third_party/compiler/' + src for src in [
michael@0 88 'ArrayBoundsClamper.cpp',
michael@0 89 ]]
michael@0 90
michael@0 91 # src/third_party/murmurhash:
michael@0 92 UNIFIED_SOURCES += ['src/third_party/murmurhash/' + src for src in [
michael@0 93 'MurmurHash3.cpp',
michael@0 94 ]]
michael@0 95
michael@0 96 if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
michael@0 97 UNIFIED_SOURCES += [
michael@0 98 'src/compiler/ossource_win.cpp',
michael@0 99 ]
michael@0 100 else:
michael@0 101 UNIFIED_SOURCES += [
michael@0 102 'src/compiler/ossource_posix.cpp',
michael@0 103 ]
michael@0 104
michael@0 105 # Target: 'translator_glsl'
michael@0 106 # Requires: 'translator_common'
michael@0 107 # src/compiler:
michael@0 108 UNIFIED_SOURCES += ['src/compiler/' + src for src in [
michael@0 109 'CodeGenGLSL.cpp',
michael@0 110 'OutputESSL.cpp',
michael@0 111 'OutputGLSL.cpp',
michael@0 112 'OutputGLSLBase.cpp',
michael@0 113 'ShaderLang.cpp',
michael@0 114 'TranslatorESSL.cpp',
michael@0 115 'TranslatorGLSL.cpp',
michael@0 116 'VersionGLSL.cpp',
michael@0 117 ]]
michael@0 118 MSVC_ENABLE_PGO = True
michael@0 119
michael@0 120 LOCAL_INCLUDES += [
michael@0 121 'include',
michael@0 122 'include/KHR',
michael@0 123 'src',
michael@0 124 ]
michael@0 125
michael@0 126 if CONFIG['GKMEDIAS_SHARED_LIBRARY']:
michael@0 127 NO_VISIBILITY_FLAGS = True
michael@0 128
michael@0 129 FINAL_LIBRARY = 'gkmedias'
michael@0 130
michael@0 131 DEFINES['ANGLE_DISABLE_TRACE'] = True
michael@0 132 DEFINES['ANGLE_COMPILE_OPTIMIZATION_LEVEL'] = 'D3DCOMPILE_OPTIMIZATION_LEVEL1'
michael@0 133 DEFINES['COMPILER_IMPLEMENTATION'] = True
michael@0 134
michael@0 135 # Suppress warnings in third-party code.
michael@0 136 if CONFIG['GNU_CXX']:
michael@0 137 CXXFLAGS += [
michael@0 138 '-Wno-attributes',
michael@0 139 '-Wno-sign-compare',
michael@0 140 '-Wno-unknown-pragmas',
michael@0 141 ]
michael@0 142 if CONFIG['CLANG_CXX']:
michael@0 143 CXXFLAGS += ['-Wno-unused-private-field']

mercurial