gfx/angle/src/libGLESv2/moz.build
author Mike Hommey <mh+mozilla@glandium.org>
Wed, 03 Sep 2014 14:10:54 +0900
changeset 203471 01a0e2c9c595e983605cb0aa5c12c9eceeb8ae7f
parent 195623 970f7c1069c2e8b349cff532464decb697169807
child 203474 8b5e3ba0f83d448eac343b84e95c2caae988524f
permissions -rw-r--r--
Bug 1041941 - Use templates for programs, simple programs, libraries and C++ unit tests. r=gps


# Please note this file is autogenerated from generate_mozbuild.py, so do not modify it directly

UNIFIED_SOURCES += [
    '../common/blocklayout.cpp',
    '../common/debug.cpp',
    '../common/event_tracer.cpp',
    '../common/mathutil.cpp',
    '../common/RefCountObject.cpp',
    '../common/utilities.cpp',
    '../compiler/preprocessor/DiagnosticsBase.cpp',
    '../compiler/preprocessor/DirectiveHandlerBase.cpp',
    '../compiler/preprocessor/DirectiveParser.cpp',
    '../compiler/preprocessor/ExpressionParser.cpp',
    '../compiler/preprocessor/Input.cpp',
    '../compiler/preprocessor/Lexer.cpp',
    '../compiler/preprocessor/Macro.cpp',
    '../compiler/preprocessor/MacroExpander.cpp',
    '../compiler/preprocessor/Preprocessor.cpp',
    '../compiler/preprocessor/Token.cpp',
    '../compiler/preprocessor/Tokenizer.cpp',
    '../compiler/translator/BuiltInFunctionEmulator.cpp',
    '../compiler/translator/CodeGen.cpp',
    '../compiler/translator/Compiler.cpp',
    '../compiler/translator/compilerdebug.cpp',
    '../compiler/translator/depgraph/DependencyGraph.cpp',
    '../compiler/translator/depgraph/DependencyGraphBuilder.cpp',
    '../compiler/translator/depgraph/DependencyGraphOutput.cpp',
    '../compiler/translator/depgraph/DependencyGraphTraverse.cpp',
    '../compiler/translator/DetectCallDepth.cpp',
    '../compiler/translator/DetectDiscontinuity.cpp',
    '../compiler/translator/Diagnostics.cpp',
    '../compiler/translator/DirectiveHandler.cpp',
    '../compiler/translator/FlagStd140Structs.cpp',
    '../compiler/translator/ForLoopUnroll.cpp',
    '../compiler/translator/InfoSink.cpp',
    '../compiler/translator/Initialize.cpp',
    '../compiler/translator/InitializeDll.cpp',
    '../compiler/translator/InitializeParseContext.cpp',
    '../compiler/translator/InitializeVariables.cpp',
    '../compiler/translator/Intermediate.cpp',
    '../compiler/translator/intermOut.cpp',
    '../compiler/translator/IntermTraverse.cpp',
    '../compiler/translator/LoopInfo.cpp',
    '../compiler/translator/ossource_win.cpp',
    '../compiler/translator/OutputESSL.cpp',
    '../compiler/translator/OutputGLSL.cpp',
    '../compiler/translator/OutputGLSLBase.cpp',
    '../compiler/translator/OutputHLSL.cpp',
    '../compiler/translator/parseConst.cpp',
    '../compiler/translator/ParseContext.cpp',
    '../compiler/translator/PoolAlloc.cpp',
    '../compiler/translator/QualifierAlive.cpp',
    '../compiler/translator/RemoveTree.cpp',
    '../compiler/translator/RewriteElseBlocks.cpp',
    '../compiler/translator/SearchSymbol.cpp',
    '../compiler/translator/ShaderLang.cpp',
    '../compiler/translator/SymbolTable.cpp',
    '../compiler/translator/timing/RestrictFragmentShaderTiming.cpp',
    '../compiler/translator/timing/RestrictVertexShaderTiming.cpp',
    '../compiler/translator/TranslatorESSL.cpp',
    '../compiler/translator/TranslatorGLSL.cpp',
    '../compiler/translator/TranslatorHLSL.cpp',
    '../compiler/translator/Types.cpp',
    '../compiler/translator/UnfoldShortCircuit.cpp',
    '../compiler/translator/UnfoldShortCircuitAST.cpp',
    '../compiler/translator/util.cpp',
    '../compiler/translator/ValidateLimitations.cpp',
    '../compiler/translator/ValidateOutputs.cpp',
    '../compiler/translator/VariableInfo.cpp',
    '../compiler/translator/VariablePacker.cpp',
    '../compiler/translator/VersionGLSL.cpp',
    '../third_party/compiler/ArrayBoundsClamper.cpp',
    '../third_party/murmurhash/MurmurHash3.cpp',
    '../third_party/systeminfo/SystemInfo.cpp',
    'angletypes.cpp',
    'Buffer.cpp',
    'Context.cpp',
    'DynamicHLSL.cpp',
    'Fence.cpp',
    'Float16ToFloat32.cpp',
    'formatutils.cpp',
    'Framebuffer.cpp',
    'HandleAllocator.cpp',
    'libGLESv2.cpp',
    'main.cpp',
    'precompiled.cpp',
    'Program.cpp',
    'ProgramBinary.cpp',
    'Query.cpp',
    'queryconversions.cpp',
    'Renderbuffer.cpp',
    'RenderbufferProxySet.cpp',
    'renderer/BufferStorage.cpp',
    'renderer/copyimage.cpp',
    'renderer/d3d/HLSLCompiler.cpp',
    'renderer/d3d9/Blit9.cpp',
    'renderer/d3d9/BufferStorage9.cpp',
    'renderer/d3d9/Fence9.cpp',
    'renderer/d3d9/formatutils9.cpp',
    'renderer/d3d9/Image9.cpp',
    'renderer/d3d9/IndexBuffer9.cpp',
    'renderer/d3d9/Query9.cpp',
    'renderer/d3d9/Renderer9.cpp',
    'renderer/d3d9/renderer9_utils.cpp',
    'renderer/d3d9/RenderTarget9.cpp',
    'renderer/d3d9/ShaderExecutable9.cpp',
    'renderer/d3d9/SwapChain9.cpp',
    'renderer/d3d9/TextureStorage9.cpp',
    'renderer/d3d9/VertexBuffer9.cpp',
    'renderer/d3d9/VertexDeclarationCache.cpp',
    'renderer/Image.cpp',
    'renderer/IndexBuffer.cpp',
    'renderer/IndexDataManager.cpp',
    'renderer/IndexRangeCache.cpp',
    'renderer/loadimage.cpp',
    'renderer/Renderer.cpp',
    'renderer/TextureStorage.cpp',
    'renderer/VertexBuffer.cpp',
    'renderer/VertexDataManager.cpp',
    'ResourceManager.cpp',
    'Sampler.cpp',
    'Shader.cpp',
    'Texture.cpp',
    'TransformFeedback.cpp',
    'Uniform.cpp',
    'validationES.cpp',
    'validationES2.cpp',
    'validationES3.cpp',
    'VertexArray.cpp',
]
SOURCES += [
    '../compiler/translator/glslang_lex.cpp',
    '../compiler/translator/glslang_tab.cpp',
    'renderer/loadimageSSE2.cpp',
]
SOURCES['renderer/loadimageSSE2.cpp'].flags += CONFIG['SSE2_FLAGS']
if CONFIG['MOZ_HAS_WINSDK_WITH_D3D']:
    UNIFIED_SOURCES += [
        'renderer/d3d11/Blit11.cpp',
        'renderer/d3d11/BufferStorage11.cpp',
        'renderer/d3d11/Clear11.cpp',
        'renderer/d3d11/Fence11.cpp',
        'renderer/d3d11/formatutils11.cpp',
        'renderer/d3d11/Image11.cpp',
        'renderer/d3d11/IndexBuffer11.cpp',
        'renderer/d3d11/InputLayoutCache.cpp',
        'renderer/d3d11/PixelTransfer11.cpp',
        'renderer/d3d11/Query11.cpp',
        'renderer/d3d11/Renderer11.cpp',
        'renderer/d3d11/renderer11_utils.cpp',
        'renderer/d3d11/RenderStateCache.cpp',
        'renderer/d3d11/RenderTarget11.cpp',
        'renderer/d3d11/ShaderExecutable11.cpp',
        'renderer/d3d11/SwapChain11.cpp',
        'renderer/d3d11/TextureStorage11.cpp',
        'renderer/d3d11/VertexBuffer11.cpp',
    ]


if CONFIG['GNU_CXX']:
    CXXFLAGS += [
        '-Wno-attributes',
        '-Wno-sign-compare',
        '-Wno-unknown-pragmas',
    ]
    if CONFIG['CLANG_CXX']:
        CXXFLAGS += ['-Wno-unused-private-field']

if CONFIG['MOZ_DIRECTX_SDK_PATH'] and not CONFIG['MOZ_HAS_WINSDK_WITH_D3D']:
    CXXFLAGS += ['-I\'%s/include/\'' % CONFIG['MOZ_DIRECTX_SDK_PATH']]

DEFINES['NOMINMAX'] = True
DEFINES['_CRT_SECURE_NO_DEPRECATE'] = True
DEFINES['_HAS_EXCEPTIONS'] = 0

if not CONFIG['MOZ_DEBUG']:
    DEFINES['_SECURE_SCL'] = 0

DEFINES['ANGLE_ENABLE_D3D9'] = True
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'] = ""

# ANGLE uses the STL, so we can't use our derpy STL wrappers.
DISABLE_STL_WRAPPING = True


LOCAL_INCLUDES += [ '../../include', '../../src' ]


if CONFIG['MOZ_HAS_WINSDK_WITH_D3D']:
  EXTRA_DSO_LDOPTS += [ 'd3d9.lib', 'dxguid.lib' ]
else:
  EXTRA_DSO_LDOPTS += [
    '\'%s/lib/%s/d3d9.lib\'' % (CONFIG['MOZ_DIRECTX_SDK_PATH'], CONFIG['MOZ_D3D_CPU_SUFFIX']),
    '\'%s/lib/%s/dxguid.lib\'' % (CONFIG['MOZ_DIRECTX_SDK_PATH'], CONFIG['MOZ_D3D_CPU_SUFFIX']),
  ]

Library('libGLESv2')
FORCE_SHARED_LIB = True

RCFILE = SRCDIR + '/libGLESv2.rc'
DEFFILE = SRCDIR + '/libGLESv2.def'

DEFINES['ANGLE_PRELOADED_D3DCOMPILER_MODULE_NAMES'] = '{ TEXT("d3dcompiler_47.dll"), TEXT("d3dcompiler_46.dll"), TEXT("d3dcompiler_43.dll") }'