gecko-dev/gfx/angle/moz.build

207 строки
8.4 KiB
Plaintext
Исходник Обычный вид История

#
# 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
#
UNIFIED_SOURCES += [
'src/common/angleutils.cpp',
'src/common/debug.cpp',
'src/common/Float16ToFloat32.cpp',
'src/common/mathutil.cpp',
'src/common/MemoryBuffer.cpp',
'src/common/string_utils.cpp',
'src/common/third_party/base/anglebase/sha1.cc',
'src/common/tls.cpp',
'src/common/uniform_type_info_autogen.cpp',
'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/translator/AddAndTrueToLoopCondition.cpp',
'src/compiler/translator/AddDefaultReturnStatements.cpp',
'src/compiler/translator/ArrayReturnValueToOutParameter.cpp',
'src/compiler/translator/ASTMetadataHLSL.cpp',
'src/compiler/translator/blocklayout.cpp',
'src/compiler/translator/blocklayoutHLSL.cpp',
'src/compiler/translator/BreakVariableAliasingInInnerLoops.cpp',
'src/compiler/translator/BuiltInFunctionEmulator.cpp',
'src/compiler/translator/BuiltInFunctionEmulatorGLSL.cpp',
'src/compiler/translator/BuiltInFunctionEmulatorHLSL.cpp',
'src/compiler/translator/Cache.cpp',
'src/compiler/translator/CallDAG.cpp',
'src/compiler/translator/ClampPointSize.cpp',
'src/compiler/translator/CodeGen.cpp',
'src/compiler/translator/CollectVariables.cpp',
'src/compiler/translator/Compiler.cpp',
'src/compiler/translator/ConstantUnion.cpp',
'src/compiler/translator/DeclareAndInitBuiltinsForInstancedMultiview.cpp',
Bug 1281687 - Update ANGLE to chromium/2776. r=jrmuizel MozReview-Commit-ID: DfAaesaHiWx --HG-- rename : gfx/angle/src/libANGLE/renderer/ImplFactory.h => gfx/angle/src/libANGLE/renderer/GLImplFactory.h rename : gfx/angle/src/libANGLE/renderer/d3d/copyimage.h => gfx/angle/src/libANGLE/renderer/copyimage.h rename : gfx/angle/src/libANGLE/renderer/d3d/copyimage.inl => gfx/angle/src/libANGLE/renderer/copyimage.inl rename : gfx/angle/src/libANGLE/renderer/gl/RendererGL.h => gfx/angle/src/libANGLE/renderer/d3d/d3d11/Context11.h rename : gfx/angle/src/libANGLE/renderer/d3d/d3d11/win32/NativeWindow.cpp => gfx/angle/src/libANGLE/renderer/d3d/d3d11/win32/NativeWindow11Win32.cpp rename : gfx/angle/src/libANGLE/renderer/gl/RendererGL.h => gfx/angle/src/libANGLE/renderer/d3d/d3d9/Context9.h rename : gfx/angle/src/libANGLE/renderer/d3d/DisplayD3D.h => gfx/angle/src/libANGLE/renderer/gl/egl/android/DisplayAndroid.h rename : gfx/angle/src/libANGLE/renderer/gl/wgl/WindowSurfaceWGL.h => gfx/angle/src/libANGLE/renderer/gl/egl/ozone/SurfaceOzone.h rename : gfx/angle/src/libANGLE/renderer/d3d/imageformats.h => gfx/angle/src/libANGLE/renderer/imageformats.h rename : gfx/angle/src/libANGLE/renderer/d3d/formatutilsD3D.cpp => gfx/angle/src/libANGLE/renderer/renderer_utils.cpp rename : gfx/angle/src/libANGLE/renderer/gl/RendererGL.h => gfx/angle/src/libANGLE/renderer/vulkan/ContextVk.h rename : gfx/angle/src/libANGLE/renderer/d3d/DisplayD3D.h => gfx/angle/src/libANGLE/renderer/vulkan/DisplayVk.h rename : gfx/angle/src/tests/gl_tests/FramebufferFormatsTest.cpp => gfx/angle/src/tests/gl_tests/FramebufferTest.cpp
2016-06-28 10:41:24 +03:00
'src/compiler/translator/DeferGlobalInitializers.cpp',
'src/compiler/translator/Diagnostics.cpp',
'src/compiler/translator/DirectiveHandler.cpp',
'src/compiler/translator/emulated_builtin_functions_hlsl_autogen.cpp',
'src/compiler/translator/EmulatePrecision.cpp',
'src/compiler/translator/ExpandIntegerPowExpressions.cpp',
'src/compiler/translator/ExtensionBehavior.cpp',
'src/compiler/translator/ExtensionGLSL.cpp',
'src/compiler/translator/FindMain.cpp',
'src/compiler/translator/FindSymbolNode.cpp',
'src/compiler/translator/FlagStd140Structs.cpp',
'src/compiler/translator/HashNames.cpp',
'src/compiler/translator/InfoSink.cpp',
'src/compiler/translator/Initialize.cpp',
'src/compiler/translator/InitializeDll.cpp',
'src/compiler/translator/InitializeVariables.cpp',
'src/compiler/translator/IntermNode.cpp',
'src/compiler/translator/IntermNode_util.cpp',
'src/compiler/translator/IntermNodePatternMatcher.cpp',
'src/compiler/translator/IntermTraverse.cpp',
'src/compiler/translator/IsASTDepthBelowLimit.cpp',
'src/compiler/translator/Operator.cpp',
'src/compiler/translator/OutputESSL.cpp',
'src/compiler/translator/OutputGLSL.cpp',
'src/compiler/translator/OutputGLSLBase.cpp',
'src/compiler/translator/OutputHLSL.cpp',
'src/compiler/translator/OutputTree.cpp',
'src/compiler/translator/ParseContext.cpp',
'src/compiler/translator/PoolAlloc.cpp',
'src/compiler/translator/PruneEmptyDeclarations.cpp',
'src/compiler/translator/PrunePureLiteralStatements.cpp',
'src/compiler/translator/QualifierTypes.cpp',
'src/compiler/translator/RecordConstantPrecision.cpp',
'src/compiler/translator/RegenerateStructNames.cpp',
'src/compiler/translator/RemoveArrayLengthMethod.cpp',
'src/compiler/translator/RemoveDynamicIndexing.cpp',
'src/compiler/translator/RemoveInvariantDeclaration.cpp',
'src/compiler/translator/RemovePow.cpp',
'src/compiler/translator/RemoveSwitchFallThrough.cpp',
'src/compiler/translator/RewriteDoWhile.cpp',
'src/compiler/translator/RewriteElseBlocks.cpp',
'src/compiler/translator/RewriteUnaryMinusOperatorFloat.cpp',
'src/compiler/translator/RunAtTheEndOfShader.cpp',
'src/compiler/translator/ScalarizeVecAndMatConstructorArgs.cpp',
'src/compiler/translator/SearchSymbol.cpp',
'src/compiler/translator/SeparateArrayInitialization.cpp',
'src/compiler/translator/SeparateDeclarations.cpp',
'src/compiler/translator/SeparateExpressionsReturningArrays.cpp',
'src/compiler/translator/ShaderVars.cpp',
'src/compiler/translator/SimplifyLoopConditions.cpp',
'src/compiler/translator/SplitSequenceOperator.cpp',
'src/compiler/translator/StructureHLSL.cpp',
'src/compiler/translator/SymbolTable.cpp',
Bug 1281687 - Update ANGLE to chromium/2776. r=jrmuizel MozReview-Commit-ID: DfAaesaHiWx --HG-- rename : gfx/angle/src/libANGLE/renderer/ImplFactory.h => gfx/angle/src/libANGLE/renderer/GLImplFactory.h rename : gfx/angle/src/libANGLE/renderer/d3d/copyimage.h => gfx/angle/src/libANGLE/renderer/copyimage.h rename : gfx/angle/src/libANGLE/renderer/d3d/copyimage.inl => gfx/angle/src/libANGLE/renderer/copyimage.inl rename : gfx/angle/src/libANGLE/renderer/gl/RendererGL.h => gfx/angle/src/libANGLE/renderer/d3d/d3d11/Context11.h rename : gfx/angle/src/libANGLE/renderer/d3d/d3d11/win32/NativeWindow.cpp => gfx/angle/src/libANGLE/renderer/d3d/d3d11/win32/NativeWindow11Win32.cpp rename : gfx/angle/src/libANGLE/renderer/gl/RendererGL.h => gfx/angle/src/libANGLE/renderer/d3d/d3d9/Context9.h rename : gfx/angle/src/libANGLE/renderer/d3d/DisplayD3D.h => gfx/angle/src/libANGLE/renderer/gl/egl/android/DisplayAndroid.h rename : gfx/angle/src/libANGLE/renderer/gl/wgl/WindowSurfaceWGL.h => gfx/angle/src/libANGLE/renderer/gl/egl/ozone/SurfaceOzone.h rename : gfx/angle/src/libANGLE/renderer/d3d/imageformats.h => gfx/angle/src/libANGLE/renderer/imageformats.h rename : gfx/angle/src/libANGLE/renderer/d3d/formatutilsD3D.cpp => gfx/angle/src/libANGLE/renderer/renderer_utils.cpp rename : gfx/angle/src/libANGLE/renderer/gl/RendererGL.h => gfx/angle/src/libANGLE/renderer/vulkan/ContextVk.h rename : gfx/angle/src/libANGLE/renderer/d3d/DisplayD3D.h => gfx/angle/src/libANGLE/renderer/vulkan/DisplayVk.h rename : gfx/angle/src/tests/gl_tests/FramebufferFormatsTest.cpp => gfx/angle/src/tests/gl_tests/FramebufferTest.cpp
2016-06-28 10:41:24 +03:00
'src/compiler/translator/TextureFunctionHLSL.cpp',
'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',
'src/compiler/translator/UnfoldShortCircuitToIf.cpp',
'src/compiler/translator/UniformHLSL.cpp',
'src/compiler/translator/UseInterfaceBlockFields.cpp',
'src/compiler/translator/util.cpp',
'src/compiler/translator/UtilsHLSL.cpp',
'src/compiler/translator/ValidateGlobalInitializer.cpp',
'src/compiler/translator/ValidateLimitations.cpp',
Bug 1281687 - Update ANGLE to chromium/2776. r=jrmuizel MozReview-Commit-ID: DfAaesaHiWx --HG-- rename : gfx/angle/src/libANGLE/renderer/ImplFactory.h => gfx/angle/src/libANGLE/renderer/GLImplFactory.h rename : gfx/angle/src/libANGLE/renderer/d3d/copyimage.h => gfx/angle/src/libANGLE/renderer/copyimage.h rename : gfx/angle/src/libANGLE/renderer/d3d/copyimage.inl => gfx/angle/src/libANGLE/renderer/copyimage.inl rename : gfx/angle/src/libANGLE/renderer/gl/RendererGL.h => gfx/angle/src/libANGLE/renderer/d3d/d3d11/Context11.h rename : gfx/angle/src/libANGLE/renderer/d3d/d3d11/win32/NativeWindow.cpp => gfx/angle/src/libANGLE/renderer/d3d/d3d11/win32/NativeWindow11Win32.cpp rename : gfx/angle/src/libANGLE/renderer/gl/RendererGL.h => gfx/angle/src/libANGLE/renderer/d3d/d3d9/Context9.h rename : gfx/angle/src/libANGLE/renderer/d3d/DisplayD3D.h => gfx/angle/src/libANGLE/renderer/gl/egl/android/DisplayAndroid.h rename : gfx/angle/src/libANGLE/renderer/gl/wgl/WindowSurfaceWGL.h => gfx/angle/src/libANGLE/renderer/gl/egl/ozone/SurfaceOzone.h rename : gfx/angle/src/libANGLE/renderer/d3d/imageformats.h => gfx/angle/src/libANGLE/renderer/imageformats.h rename : gfx/angle/src/libANGLE/renderer/d3d/formatutilsD3D.cpp => gfx/angle/src/libANGLE/renderer/renderer_utils.cpp rename : gfx/angle/src/libANGLE/renderer/gl/RendererGL.h => gfx/angle/src/libANGLE/renderer/vulkan/ContextVk.h rename : gfx/angle/src/libANGLE/renderer/d3d/DisplayD3D.h => gfx/angle/src/libANGLE/renderer/vulkan/DisplayVk.h rename : gfx/angle/src/tests/gl_tests/FramebufferFormatsTest.cpp => gfx/angle/src/tests/gl_tests/FramebufferTest.cpp
2016-06-28 10:41:24 +03:00
'src/compiler/translator/ValidateMaxParameters.cpp',
'src/compiler/translator/ValidateSwitch.cpp',
'src/compiler/translator/ValidateVaryingLocations.cpp',
'src/compiler/translator/VariablePacker.cpp',
'src/compiler/translator/VersionGLSL.cpp',
'src/third_party/compiler/ArrayBoundsClamper.cpp',
]
SOURCES += [
'src/compiler/preprocessor/Tokenizer.cpp',
'src/compiler/translator/EmulateGLFragColorBroadcast.cpp',
'src/compiler/translator/glslang_lex.cpp',
'src/compiler/translator/glslang_tab.cpp',
'src/compiler/translator/RewriteTexelFetchOffset.cpp',
'src/compiler/translator/RewriteUnaryMinusOperatorInt.cpp',
'src/compiler/translator/ShaderLang.cpp',
'src/compiler/translator/ValidateOutputs.cpp',
]
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
UNIFIED_SOURCES += [
'src/common/system_utils_mac.cpp',
]
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
UNIFIED_SOURCES += [
'src/common/system_utils_win.cpp',
]
2016-03-16 03:26:14 +03:00
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
CXXFLAGS += [
'-Wno-attributes',
'-Wno-shadow',
'-Wno-sign-compare',
'-Wno-unknown-pragmas',
'-Wno-unreachable-code',
]
if CONFIG['CC_TYPE'] == 'clang':
2016-03-16 03:26:14 +03:00
CXXFLAGS += [
'-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',
]
if CONFIG['CC_TYPE'] in ('msvc', 'clang-cl'):
Bug 1415470 - build: Enable VS2017 C5038 initializer list order warnings (like gcc -Wreorder). r=glandium C5038 is a new warning in VS2017, similar to gcc and clang's -Wreorder, which is enabled by -Wall. We should enable C5038 so Windows developers can see these warnings locally instead of when gcc and clang fail with warnings-as-errors on Try. https://blogs.msdn.microsoft.com/vcblog/2017/07/21/diagnostic-improvements-in-vs2017-15-3-0/ We need to suppress C5038 warnings from Windows Runtime Library header files (wrl.h) included in ANGLE and widget/windows: z:\build\build\src\vs2017_15.4.2\SDK\Include\10.0.15063.0\winrt\wrl\wrappers\corewrappers.h(515): error C5038: data member 'Microsoft::WRL::Wrappers::Details::SyncLockWithStatusT<Microsoft::WRL::Wrappers::HandleTraits::SemaphoreTraits>::sync_' will be initialized after data member 'Microsoft::WRL::Wrappers::Details::SyncLockWithStatusT<Microsoft::WRL::Wrappers::HandleTraits::SemaphoreTraits>::status_' ... And suppress C5038 warnings in upstream webrtc code: media/webrtc/trunk/webrtc/modules/video_capture/windows/BaseFilter.cpp(176): error C5038: data member 'mozilla::media::BaseFilter::mClsId' will be initialized after data member 'mozilla::media::BaseFilter::mState' media/webrtc/trunk/webrtc/modules/video_capture/windows/BasePin.cpp(169): error C5038: data member 'mozilla::media::BasePin::mFilter' will be initialized after data member 'mozilla::media::BasePin::mLock' media/webrtc/trunk/webrtc/modules/video_capture/windows/BasePin.cpp(170): error C5038: data member 'mozilla::media::BasePin::mLock' will be initialized after data member 'mozilla::media::BasePin::mName' media/webrtc/trunk/webrtc/modules/video_capture/windows/BasePin.cpp(172): error C5038: data member 'mozilla::media::BasePin::mDirection' will be initialized after data member 'mozilla::media::BasePin::mQualitySink' MozReview-Commit-ID: BMDVkvQXNoq --HG-- extra : rebase_source : 0d5ede9530d0d0750b8fffdc1cdfdc646ec8f22a
2017-11-08 06:52:10 +03:00
CXXFLAGS += ['-wd5038'] # C5038: initializer list order warnings
if CONFIG['MOZ_DIRECTX_SDK_PATH'] and not CONFIG['MOZ_HAS_WINSDK_WITH_D3D']:
LOCAL_INCLUDES += ['%' + '%s/include/' % CONFIG['MOZ_DIRECTX_SDK_PATH']]
DEFINES['_CRT_SECURE_NO_DEPRECATE'] = True
DEFINES['_HAS_EXCEPTIONS'] = 0
if not CONFIG['MOZ_DEBUG']:
DEFINES['_SECURE_SCL'] = 0
DEFINES['ANGLE_SKIP_DXGI_1_2_CHECK'] = True
if CONFIG['MOZ_HAS_WINSDK_WITH_D3D']:
DEFINES['ANGLE_ENABLE_D3D9'] = True
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'] = ""
# Only build libEGL/libGLESv2 on Windows
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
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"
DEFINES['ANGLE_ENABLE_KEYEDMUTEX'] = "1"
EXPORTS.angle += [ 'include/GLSLANG/ShaderLang.h', 'include/GLSLANG/ShaderVars.h', 'include/platform/Platform.h' ]
EXPORTS.angle.KHR += [ 'include/KHR/khrplatform.h' ]
LOCAL_INCLUDES += [ 'include', 'src', 'src/common/third_party/base']
# We allow warnings for third-party code that can be updated from upstream.
AllowCompilerWarnings()
FINAL_LIBRARY = 'gkmedias'