1 2# 3# WARNING WARNING WARNING 4# 5# This file is generated by generate_mozbuild.py (from 6# https://github.com/mozilla/angle). Do not modify it without also modifying 7# generate_mozbuild.py. 8# 9# WARNING WARNING WARNING 10# 11UNIFIED_SOURCES += [ 12 'src/common/angleutils.cpp', 13 'src/common/debug.cpp', 14 'src/common/Float16ToFloat32.cpp', 15 'src/common/mathutil.cpp', 16 'src/common/MemoryBuffer.cpp', 17 'src/common/string_utils.cpp', 18 'src/common/tls.cpp', 19 'src/common/utilities.cpp', 20 'src/compiler/preprocessor/DiagnosticsBase.cpp', 21 'src/compiler/preprocessor/DirectiveHandlerBase.cpp', 22 'src/compiler/preprocessor/DirectiveParser.cpp', 23 'src/compiler/preprocessor/ExpressionParser.cpp', 24 'src/compiler/preprocessor/Input.cpp', 25 'src/compiler/preprocessor/Lexer.cpp', 26 'src/compiler/preprocessor/Macro.cpp', 27 'src/compiler/preprocessor/MacroExpander.cpp', 28 'src/compiler/preprocessor/Preprocessor.cpp', 29 'src/compiler/preprocessor/Token.cpp', 30 'src/compiler/preprocessor/Tokenizer.cpp', 31 'src/compiler/translator/AddAndTrueToLoopCondition.cpp', 32 'src/compiler/translator/AddDefaultReturnStatements.cpp', 33 'src/compiler/translator/ArrayReturnValueToOutParameter.cpp', 34 'src/compiler/translator/ASTMetadataHLSL.cpp', 35 'src/compiler/translator/blocklayout.cpp', 36 'src/compiler/translator/blocklayoutHLSL.cpp', 37 'src/compiler/translator/BreakVariableAliasingInInnerLoops.cpp', 38 'src/compiler/translator/BuiltInFunctionEmulator.cpp', 39 'src/compiler/translator/BuiltInFunctionEmulatorGLSL.cpp', 40 'src/compiler/translator/BuiltInFunctionEmulatorHLSL.cpp', 41 'src/compiler/translator/Cache.cpp', 42 'src/compiler/translator/CallDAG.cpp', 43 'src/compiler/translator/CodeGen.cpp', 44 'src/compiler/translator/Compiler.cpp', 45 'src/compiler/translator/ConstantUnion.cpp', 46 'src/compiler/translator/DeferGlobalInitializers.cpp', 47 'src/compiler/translator/Diagnostics.cpp', 48 'src/compiler/translator/DirectiveHandler.cpp', 49 'src/compiler/translator/EmulatePrecision.cpp', 50 'src/compiler/translator/ExpandIntegerPowExpressions.cpp', 51 'src/compiler/translator/ExtensionGLSL.cpp', 52 'src/compiler/translator/FlagStd140Structs.cpp', 53 'src/compiler/translator/ForLoopUnroll.cpp', 54 'src/compiler/translator/InfoSink.cpp', 55 'src/compiler/translator/Initialize.cpp', 56 'src/compiler/translator/InitializeDll.cpp', 57 'src/compiler/translator/InitializeParseContext.cpp', 58 'src/compiler/translator/InitializeVariables.cpp', 59 'src/compiler/translator/Intermediate.cpp', 60 'src/compiler/translator/IntermNode.cpp', 61 'src/compiler/translator/IntermNodePatternMatcher.cpp', 62 'src/compiler/translator/intermOut.cpp', 63 'src/compiler/translator/IntermTraverse.cpp', 64 'src/compiler/translator/LoopInfo.cpp', 65 'src/compiler/translator/Operator.cpp', 66 'src/compiler/translator/OutputESSL.cpp', 67 'src/compiler/translator/OutputGLSL.cpp', 68 'src/compiler/translator/OutputGLSLBase.cpp', 69 'src/compiler/translator/OutputHLSL.cpp', 70 'src/compiler/translator/ParseContext.cpp', 71 'src/compiler/translator/PoolAlloc.cpp', 72 'src/compiler/translator/PruneEmptyDeclarations.cpp', 73 'src/compiler/translator/QualifierTypes.cpp', 74 'src/compiler/translator/RecordConstantPrecision.cpp', 75 'src/compiler/translator/RegenerateStructNames.cpp', 76 'src/compiler/translator/RemoveDynamicIndexing.cpp', 77 'src/compiler/translator/RemoveInvariantDeclaration.cpp', 78 'src/compiler/translator/RemovePow.cpp', 79 'src/compiler/translator/RemoveSwitchFallThrough.cpp', 80 'src/compiler/translator/RewriteDoWhile.cpp', 81 'src/compiler/translator/RewriteElseBlocks.cpp', 82 'src/compiler/translator/RewriteUnaryMinusOperatorInt.cpp', 83 'src/compiler/translator/ScalarizeVecAndMatConstructorArgs.cpp', 84 'src/compiler/translator/SearchSymbol.cpp', 85 'src/compiler/translator/SeparateArrayInitialization.cpp', 86 'src/compiler/translator/SeparateDeclarations.cpp', 87 'src/compiler/translator/SeparateExpressionsReturningArrays.cpp', 88 'src/compiler/translator/ShaderVars.cpp', 89 'src/compiler/translator/SimplifyLoopConditions.cpp', 90 'src/compiler/translator/SplitSequenceOperator.cpp', 91 'src/compiler/translator/StructureHLSL.cpp', 92 'src/compiler/translator/SymbolTable.cpp', 93 'src/compiler/translator/TextureFunctionHLSL.cpp', 94 'src/compiler/translator/TranslatorESSL.cpp', 95 'src/compiler/translator/TranslatorGLSL.cpp', 96 'src/compiler/translator/TranslatorHLSL.cpp', 97 'src/compiler/translator/Types.cpp', 98 'src/compiler/translator/UnfoldShortCircuitAST.cpp', 99 'src/compiler/translator/UnfoldShortCircuitToIf.cpp', 100 'src/compiler/translator/UniformHLSL.cpp', 101 'src/compiler/translator/UseInterfaceBlockFields.cpp', 102 'src/compiler/translator/util.cpp', 103 'src/compiler/translator/UtilsHLSL.cpp', 104 'src/compiler/translator/ValidateGlobalInitializer.cpp', 105 'src/compiler/translator/ValidateLimitations.cpp', 106 'src/compiler/translator/ValidateMaxParameters.cpp', 107 'src/compiler/translator/ValidateOutputs.cpp', 108 'src/compiler/translator/ValidateSwitch.cpp', 109 'src/compiler/translator/VariableInfo.cpp', 110 'src/compiler/translator/VariablePacker.cpp', 111 'src/compiler/translator/VersionGLSL.cpp', 112 'src/third_party/compiler/ArrayBoundsClamper.cpp', 113] 114SOURCES += [ 115 'src/compiler/translator/EmulateGLFragColorBroadcast.cpp', 116 'src/compiler/translator/glslang_lex.cpp', 117 'src/compiler/translator/glslang_tab.cpp', 118 'src/compiler/translator/RewriteTexelFetchOffset.cpp', 119 'src/compiler/translator/ShaderLang.cpp', 120] 121 122 123if CONFIG['GNU_CXX']: 124 CXXFLAGS += [ 125 '-Wno-attributes', 126 '-Wno-shadow', 127 '-Wno-sign-compare', 128 '-Wno-unknown-pragmas', 129 '-Wno-unreachable-code', 130 ] 131 if CONFIG['CLANG_CXX']: 132 CXXFLAGS += [ 133 '-Wno-inconsistent-missing-override', 134 '-Wno-unused-private-field', 135 ] 136 else: 137 CXXFLAGS += [ 138 '-Wno-shadow-compatible-local', 139 '-Wno-shadow-local', 140 ] 141 142if CONFIG['MOZ_DIRECTX_SDK_PATH'] and not CONFIG['MOZ_HAS_WINSDK_WITH_D3D']: 143 LOCAL_INCLUDES += ['%' + '%s/include/' % CONFIG['MOZ_DIRECTX_SDK_PATH']] 144 145DEFINES['_CRT_SECURE_NO_DEPRECATE'] = True 146DEFINES['_HAS_EXCEPTIONS'] = 0 147 148if not CONFIG['MOZ_DEBUG']: 149 DEFINES['_SECURE_SCL'] = 0 150 151DEFINES['ANGLE_ENABLE_D3D9'] = True 152DEFINES['ANGLE_SKIP_DXGI_1_2_CHECK'] = True 153if CONFIG['MOZ_HAS_WINSDK_WITH_D3D']: 154 DEFINES['ANGLE_ENABLE_D3D11'] = True 155 156DEFINES['ANGLE_COMPILE_OPTIMIZATION_LEVEL'] = 'D3DCOMPILE_OPTIMIZATION_LEVEL1' 157DEFINES['ANGLE_NO_EXCEPTIONS'] = True 158 159# We need these defined to nothing so that we don't get bogus dllimport declspecs 160DEFINES['GL_APICALL'] = "" 161DEFINES['GL_GLEXT_PROTOTYPES'] = "" 162DEFINES['EGLAPI'] = "" 163 164 165# Only build libEGL/libGLESv2 on Windows 166if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows': 167 DIRS += [ 'src/libANGLE', 'src/libGLESv2', 'src/libEGL' ] 168 169DEFINES['ANGLE_ENABLE_HLSL'] = "1" 170DEFINES['ANGLE_ENABLE_GLSL'] = "1" 171DEFINES['ANGLE_ENABLE_ESSL'] = "1" 172DEFINES['ANGLE_ENABLE_KEYEDMUTEX'] = "1" 173 174EXPORTS.angle += [ 'include/GLSLANG/ShaderLang.h', 'include/GLSLANG/ShaderVars.h', 'include/platform/Platform.h' ] 175EXPORTS.angle.KHR += [ 'include/KHR/khrplatform.h' ] 176 177LOCAL_INCLUDES += [ 'include', 'src', 'src/common/third_party/numerics' ] 178 179# We allow warnings for third-party code that can be updated from upstream. 180ALLOW_COMPILER_WARNINGS = True 181 182FINAL_LIBRARY = 'gkmedias' 183