gecko-dev/gfx/angle/moz.build

126 строки
3.0 KiB
Python

# -*- Mode: python; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 40 -*-
# vim: set filetype=python:
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# libEGL depends on (links against!) libGLESv2!
if CONFIG['MOZ_ANGLE_RENDERER']:
DIRS += ['src/libGLESv2', 'src/libEGL']
MODULE = 'angle'
EXPORTS.angle += [
'include/GLSLANG/ShaderLang.h',
'include/KHR/khrplatform.h',
]
# WARNING: CPP_SOURCES seems very dependent on ordering. Grouping all of these
# CPP_SOURCES lines into one list may break webgl tests.
# Target: 'preprocessor'
# src/compiler/preprocessor:
SOURCES += ['src/compiler/preprocessor/' + src for src in [
'DiagnosticsBase.cpp',
'DirectiveHandlerBase.cpp',
'DirectiveParser.cpp',
'ExpressionParser.cpp',
'Input.cpp',
'Lexer.cpp',
'Macro.cpp',
'MacroExpander.cpp',
'Preprocessor.cpp',
'Token.cpp',
'Tokenizer.cpp',
]]
# Target: 'translator_common'
# Requires: 'preprocessor'
# src/compiler:
SOURCES += ['src/compiler/' + src for src in [
'BuiltInFunctionEmulator.cpp',
'Compiler.cpp',
'compiler_debug.cpp',
'CompilerUniform.cpp',
'DetectCallDepth.cpp',
'Diagnostics.cpp',
'DirectiveHandler.cpp',
'ForLoopUnroll.cpp',
'glslang_lex.cpp',
'glslang_tab.cpp',
'InfoSink.cpp',
'Initialize.cpp',
'InitializeDll.cpp',
'InitializeParseContext.cpp',
'Intermediate.cpp',
'intermOut.cpp',
'IntermTraverse.cpp',
'MapLongVariableNames.cpp',
'parseConst.cpp',
'ParseHelper.cpp',
'PoolAlloc.cpp',
'QualifierAlive.cpp',
'RemoveTree.cpp',
'SymbolTable.cpp',
'util.cpp',
'ValidateLimitations.cpp',
'VariableInfo.cpp',
'VariablePacker.cpp',
]]
# src/compiler/depgraph:
SOURCES += ['src/compiler/depgraph/' + src for src in [
'DependencyGraph.cpp',
'DependencyGraphBuilder.cpp',
'DependencyGraphOutput.cpp',
'DependencyGraphTraverse.cpp',
]]
# src/compiler/timing:
SOURCES += ['src/compiler/timing/' + src for src in [
'RestrictFragmentShaderTiming.cpp',
'RestrictVertexShaderTiming.cpp',
]]
# src/third_party/compiler:
SOURCES += ['src/third_party/compiler/' + src for src in [
'ArrayBoundsClamper.cpp',
]]
# src/third_party/murmurhash:
SOURCES += ['src/third_party/murmurhash/' + src for src in [
'MurmurHash3.cpp',
]]
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
SOURCES += [
'src/compiler/ossource_win.cpp',
]
else:
SOURCES += [
'src/compiler/ossource_posix.cpp',
]
# Target: 'translator_glsl'
# Requires: 'translator_common'
# src/compiler:
SOURCES += ['src/compiler/' + src for src in [
'CodeGenGLSL.cpp',
'OutputESSL.cpp',
'OutputGLSL.cpp',
'OutputGLSLBase.cpp',
'ShaderLang.cpp',
'TranslatorESSL.cpp',
'TranslatorGLSL.cpp',
'VersionGLSL.cpp',
]]
LIBRARY_NAME = 'angle'
LIBXUL_LIBRARY = True
MSVC_ENABLE_PGO = True
if CONFIG['OS_TARGET'] == 'WINNT':
NO_VISIBILITY_FLAGS = True