2014-07-23 05:38:23 +04:00
|
|
|
|
2015-09-30 02:04:17 +03:00
|
|
|
#
|
|
|
|
# WARNING WARNING WARNING
|
|
|
|
#
|
|
|
|
# This file is generated by generate_mozbuild.py (from
|
|
|
|
# https://github.com/mozilla/angle). Do not modify it without also modifying
|
|
|
|
# generate_mozbuild.py.
|
|
|
|
#
|
|
|
|
# WARNING WARNING WARNING
|
|
|
|
#
|
2014-07-23 05:38:23 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2014-10-09 23:08:59 +04:00
|
|
|
'src/common/angleutils.cpp',
|
2014-07-23 05:38:23 +04:00
|
|
|
'src/common/debug.cpp',
|
2015-09-30 02:04:17 +03:00
|
|
|
'src/common/Float16ToFloat32.cpp',
|
2014-07-23 05:38:23 +04:00
|
|
|
'src/common/mathutil.cpp',
|
2015-09-30 02:04:17 +03:00
|
|
|
'src/common/MemoryBuffer.cpp',
|
|
|
|
'src/common/string_utils.cpp',
|
2014-09-20 03:35:54 +04:00
|
|
|
'src/common/tls.cpp',
|
2014-07-23 05:38:23 +04:00
|
|
|
'src/common/utilities.cpp',
|
|
|
|
'src/compiler/preprocessor/DiagnosticsBase.cpp',
|
|
|
|
'src/compiler/preprocessor/DirectiveHandlerBase.cpp',
|
|
|
|
'src/compiler/preprocessor/DirectiveParser.cpp',
|
|
|
|
'src/compiler/preprocessor/ExpressionParser.cpp',
|
|
|
|
'src/compiler/preprocessor/Input.cpp',
|
|
|
|
'src/compiler/preprocessor/Lexer.cpp',
|
|
|
|
'src/compiler/preprocessor/Macro.cpp',
|
|
|
|
'src/compiler/preprocessor/MacroExpander.cpp',
|
|
|
|
'src/compiler/preprocessor/Preprocessor.cpp',
|
|
|
|
'src/compiler/preprocessor/Token.cpp',
|
|
|
|
'src/compiler/preprocessor/Tokenizer.cpp',
|
2016-10-26 02:29:00 +03:00
|
|
|
'src/compiler/translator/AddAndTrueToLoopCondition.cpp',
|
2016-09-08 11:28:30 +03:00
|
|
|
'src/compiler/translator/AddDefaultReturnStatements.cpp',
|
2015-09-30 02:04:17 +03:00
|
|
|
'src/compiler/translator/ArrayReturnValueToOutParameter.cpp',
|
|
|
|
'src/compiler/translator/ASTMetadataHLSL.cpp',
|
|
|
|
'src/compiler/translator/blocklayout.cpp',
|
|
|
|
'src/compiler/translator/blocklayoutHLSL.cpp',
|
2016-10-26 02:29:00 +03:00
|
|
|
'src/compiler/translator/BreakVariableAliasingInInnerLoops.cpp',
|
2014-07-23 05:38:23 +04:00
|
|
|
'src/compiler/translator/BuiltInFunctionEmulator.cpp',
|
2015-09-30 02:04:17 +03:00
|
|
|
'src/compiler/translator/BuiltInFunctionEmulatorGLSL.cpp',
|
|
|
|
'src/compiler/translator/BuiltInFunctionEmulatorHLSL.cpp',
|
|
|
|
'src/compiler/translator/Cache.cpp',
|
|
|
|
'src/compiler/translator/CallDAG.cpp',
|
2014-07-23 05:38:23 +04:00
|
|
|
'src/compiler/translator/CodeGen.cpp',
|
|
|
|
'src/compiler/translator/Compiler.cpp',
|
2016-10-26 02:29:00 +03:00
|
|
|
'src/compiler/translator/ConstantUnion.cpp',
|
2016-06-28 10:41:24 +03:00
|
|
|
'src/compiler/translator/DeferGlobalInitializers.cpp',
|
2014-07-23 05:38:23 +04:00
|
|
|
'src/compiler/translator/Diagnostics.cpp',
|
|
|
|
'src/compiler/translator/DirectiveHandler.cpp',
|
2015-09-30 02:04:17 +03:00
|
|
|
'src/compiler/translator/EmulatePrecision.cpp',
|
2016-09-08 11:28:30 +03:00
|
|
|
'src/compiler/translator/ExpandIntegerPowExpressions.cpp',
|
2015-11-30 18:31:12 +03:00
|
|
|
'src/compiler/translator/ExtensionGLSL.cpp',
|
2014-07-23 05:38:23 +04:00
|
|
|
'src/compiler/translator/FlagStd140Structs.cpp',
|
|
|
|
'src/compiler/translator/InfoSink.cpp',
|
|
|
|
'src/compiler/translator/Initialize.cpp',
|
|
|
|
'src/compiler/translator/InitializeDll.cpp',
|
|
|
|
'src/compiler/translator/InitializeParseContext.cpp',
|
|
|
|
'src/compiler/translator/InitializeVariables.cpp',
|
|
|
|
'src/compiler/translator/Intermediate.cpp',
|
2014-09-20 03:35:54 +04:00
|
|
|
'src/compiler/translator/IntermNode.cpp',
|
2016-09-08 11:28:30 +03:00
|
|
|
'src/compiler/translator/IntermNodePatternMatcher.cpp',
|
2014-07-23 05:38:23 +04:00
|
|
|
'src/compiler/translator/intermOut.cpp',
|
|
|
|
'src/compiler/translator/IntermTraverse.cpp',
|
2015-09-30 02:04:17 +03:00
|
|
|
'src/compiler/translator/Operator.cpp',
|
2014-07-23 05:38:23 +04:00
|
|
|
'src/compiler/translator/OutputESSL.cpp',
|
|
|
|
'src/compiler/translator/OutputGLSL.cpp',
|
|
|
|
'src/compiler/translator/OutputGLSLBase.cpp',
|
|
|
|
'src/compiler/translator/OutputHLSL.cpp',
|
|
|
|
'src/compiler/translator/ParseContext.cpp',
|
|
|
|
'src/compiler/translator/PoolAlloc.cpp',
|
2015-09-30 02:04:17 +03:00
|
|
|
'src/compiler/translator/PruneEmptyDeclarations.cpp',
|
2016-10-26 02:29:00 +03:00
|
|
|
'src/compiler/translator/QualifierTypes.cpp',
|
2015-09-30 02:04:17 +03:00
|
|
|
'src/compiler/translator/RecordConstantPrecision.cpp',
|
2014-09-20 03:35:54 +04:00
|
|
|
'src/compiler/translator/RegenerateStructNames.cpp',
|
2015-10-05 20:48:44 +03:00
|
|
|
'src/compiler/translator/RemoveDynamicIndexing.cpp',
|
2016-11-23 04:15:00 +03:00
|
|
|
'src/compiler/translator/RemoveInvariantDeclaration.cpp',
|
2015-09-30 02:04:17 +03:00
|
|
|
'src/compiler/translator/RemovePow.cpp',
|
|
|
|
'src/compiler/translator/RemoveSwitchFallThrough.cpp',
|
2015-10-15 07:07:30 +03:00
|
|
|
'src/compiler/translator/RewriteDoWhile.cpp',
|
2014-07-23 05:38:23 +04:00
|
|
|
'src/compiler/translator/RewriteElseBlocks.cpp',
|
2016-11-23 04:15:00 +03:00
|
|
|
'src/compiler/translator/RewriteUnaryMinusOperatorInt.cpp',
|
2014-09-20 03:35:54 +04:00
|
|
|
'src/compiler/translator/ScalarizeVecAndMatConstructorArgs.cpp',
|
2014-07-23 05:38:23 +04:00
|
|
|
'src/compiler/translator/SearchSymbol.cpp',
|
2015-09-30 02:04:17 +03:00
|
|
|
'src/compiler/translator/SeparateArrayInitialization.cpp',
|
|
|
|
'src/compiler/translator/SeparateDeclarations.cpp',
|
|
|
|
'src/compiler/translator/SeparateExpressionsReturningArrays.cpp',
|
2014-09-20 03:35:54 +04:00
|
|
|
'src/compiler/translator/ShaderVars.cpp',
|
2016-09-08 11:28:30 +03:00
|
|
|
'src/compiler/translator/SimplifyLoopConditions.cpp',
|
|
|
|
'src/compiler/translator/SplitSequenceOperator.cpp',
|
2014-09-20 03:35:54 +04:00
|
|
|
'src/compiler/translator/StructureHLSL.cpp',
|
2014-07-23 05:38:23 +04:00
|
|
|
'src/compiler/translator/SymbolTable.cpp',
|
2016-06-28 10:41:24 +03:00
|
|
|
'src/compiler/translator/TextureFunctionHLSL.cpp',
|
2014-07-23 05:38:23 +04:00
|
|
|
'src/compiler/translator/TranslatorESSL.cpp',
|
|
|
|
'src/compiler/translator/TranslatorGLSL.cpp',
|
|
|
|
'src/compiler/translator/TranslatorHLSL.cpp',
|
|
|
|
'src/compiler/translator/Types.cpp',
|
|
|
|
'src/compiler/translator/UnfoldShortCircuitAST.cpp',
|
2015-09-30 02:04:17 +03:00
|
|
|
'src/compiler/translator/UnfoldShortCircuitToIf.cpp',
|
2014-09-20 03:35:54 +04:00
|
|
|
'src/compiler/translator/UniformHLSL.cpp',
|
2016-11-23 04:15:00 +03:00
|
|
|
'src/compiler/translator/UseInterfaceBlockFields.cpp',
|
2014-07-23 05:38:23 +04:00
|
|
|
'src/compiler/translator/util.cpp',
|
2014-09-20 03:35:54 +04:00
|
|
|
'src/compiler/translator/UtilsHLSL.cpp',
|
2015-09-30 02:04:17 +03:00
|
|
|
'src/compiler/translator/ValidateGlobalInitializer.cpp',
|
2014-07-23 05:38:23 +04:00
|
|
|
'src/compiler/translator/ValidateLimitations.cpp',
|
2016-06-28 10:41:24 +03:00
|
|
|
'src/compiler/translator/ValidateMaxParameters.cpp',
|
2014-07-23 05:38:23 +04:00
|
|
|
'src/compiler/translator/ValidateOutputs.cpp',
|
2015-09-30 02:04:17 +03:00
|
|
|
'src/compiler/translator/ValidateSwitch.cpp',
|
2014-07-23 05:38:23 +04:00
|
|
|
'src/compiler/translator/VariableInfo.cpp',
|
|
|
|
'src/compiler/translator/VariablePacker.cpp',
|
|
|
|
'src/compiler/translator/VersionGLSL.cpp',
|
|
|
|
'src/third_party/compiler/ArrayBoundsClamper.cpp',
|
|
|
|
]
|
|
|
|
SOURCES += [
|
2016-09-08 11:28:30 +03:00
|
|
|
'src/compiler/translator/EmulateGLFragColorBroadcast.cpp',
|
2014-07-23 05:38:23 +04:00
|
|
|
'src/compiler/translator/glslang_lex.cpp',
|
|
|
|
'src/compiler/translator/glslang_tab.cpp',
|
2016-11-23 04:15:00 +03:00
|
|
|
'src/compiler/translator/RewriteTexelFetchOffset.cpp',
|
|
|
|
'src/compiler/translator/ShaderLang.cpp',
|
2014-07-23 05:38:23 +04:00
|
|
|
]
|
|
|
|
|
2016-03-16 03:26:14 +03:00
|
|
|
|
|
|
|
if CONFIG['GNU_CXX']:
|
2014-07-23 05:38:23 +04:00
|
|
|
CXXFLAGS += [
|
|
|
|
'-Wno-attributes',
|
2015-10-17 23:29:16 +03:00
|
|
|
'-Wno-shadow',
|
2014-07-23 05:38:23 +04:00
|
|
|
'-Wno-sign-compare',
|
|
|
|
'-Wno-unknown-pragmas',
|
2015-10-17 23:29:16 +03:00
|
|
|
'-Wno-unreachable-code',
|
2014-07-23 05:38:23 +04:00
|
|
|
]
|
2016-03-16 03:26:14 +03:00
|
|
|
if CONFIG['CLANG_CXX']:
|
|
|
|
CXXFLAGS += [
|
2017-06-07 10:52:43 +03:00
|
|
|
'-Wno-implicit-fallthrough',
|
2016-03-16 03:26:14 +03:00
|
|
|
'-Wno-inconsistent-missing-override',
|
|
|
|
'-Wno-unused-private-field',
|
|
|
|
]
|
|
|
|
else:
|
|
|
|
CXXFLAGS += [
|
|
|
|
'-Wno-shadow-compatible-local',
|
|
|
|
'-Wno-shadow-local',
|
|
|
|
]
|
2014-07-23 05:38:23 +04:00
|
|
|
|
2017-04-10 11:26:52 +03:00
|
|
|
if CONFIG['MOZ_DIRECTX_SDK_PATH'] and not CONFIG['MOZ_HAS_WINSDK_WITH_D3D']:
|
|
|
|
LOCAL_INCLUDES += ['%' + '%s/include/' % CONFIG['MOZ_DIRECTX_SDK_PATH']]
|
|
|
|
|
2014-07-23 05:38:23 +04:00
|
|
|
DEFINES['_CRT_SECURE_NO_DEPRECATE'] = True
|
|
|
|
DEFINES['_HAS_EXCEPTIONS'] = 0
|
|
|
|
|
|
|
|
if not CONFIG['MOZ_DEBUG']:
|
|
|
|
DEFINES['_SECURE_SCL'] = 0
|
|
|
|
|
|
|
|
DEFINES['ANGLE_ENABLE_D3D9'] = True
|
2016-05-12 17:39:43 +03:00
|
|
|
DEFINES['ANGLE_SKIP_DXGI_1_2_CHECK'] = True
|
2014-07-23 05:38:23 +04:00
|
|
|
if CONFIG['MOZ_HAS_WINSDK_WITH_D3D']:
|
|
|
|
DEFINES['ANGLE_ENABLE_D3D11'] = True
|
|
|
|
|
|
|
|
DEFINES['ANGLE_COMPILE_OPTIMIZATION_LEVEL'] = 'D3DCOMPILE_OPTIMIZATION_LEVEL1'
|
|
|
|
DEFINES['ANGLE_NO_EXCEPTIONS'] = True
|
|
|
|
|
|
|
|
# We need these defined to nothing so that we don't get bogus dllimport declspecs
|
|
|
|
DEFINES['GL_APICALL'] = ""
|
|
|
|
DEFINES['GL_GLEXT_PROTOTYPES'] = ""
|
|
|
|
DEFINES['EGLAPI'] = ""
|
|
|
|
|
|
|
|
|
2017-05-13 01:12:04 +03:00
|
|
|
# Enable asserts for UNIMPLEMENTED()
|
|
|
|
DEFINES['NOASSERT_UNIMPLEMENTED'] = '0'
|
|
|
|
|
2014-07-23 05:38:23 +04:00
|
|
|
# Only build libEGL/libGLESv2 on Windows
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
2015-09-30 02:04:17 +03:00
|
|
|
DIRS += [ 'src/libANGLE', 'src/libGLESv2', 'src/libEGL' ]
|
|
|
|
|
|
|
|
DEFINES['ANGLE_ENABLE_HLSL'] = "1"
|
2016-03-16 03:26:14 +03:00
|
|
|
DEFINES['ANGLE_ENABLE_GLSL'] = "1"
|
|
|
|
DEFINES['ANGLE_ENABLE_ESSL'] = "1"
|
2015-09-30 02:04:17 +03:00
|
|
|
DEFINES['ANGLE_ENABLE_KEYEDMUTEX'] = "1"
|
2014-07-23 05:38:23 +04:00
|
|
|
|
2016-07-16 01:12:46 +03:00
|
|
|
EXPORTS.angle += [ 'include/GLSLANG/ShaderLang.h', 'include/GLSLANG/ShaderVars.h', 'include/platform/Platform.h' ]
|
2014-07-23 05:38:23 +04:00
|
|
|
EXPORTS.angle.KHR += [ 'include/KHR/khrplatform.h' ]
|
|
|
|
|
2016-06-28 10:41:24 +03:00
|
|
|
LOCAL_INCLUDES += [ 'include', 'src', 'src/common/third_party/numerics' ]
|
2014-07-23 05:38:23 +04:00
|
|
|
|
2015-10-20 04:05:20 +03:00
|
|
|
# We allow warnings for third-party code that can be updated from upstream.
|
2015-08-28 06:44:53 +03:00
|
|
|
ALLOW_COMPILER_WARNINGS = True
|
|
|
|
|
2014-07-23 05:38:23 +04:00
|
|
|
FINAL_LIBRARY = 'gkmedias'
|