mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
Bug 912099 - Part c: Make sure CPP_SOURCES only points to existing files in gfx/angle; r=mshal
This commit is contained in:
parent
b84550061a
commit
3d38d84965
@ -20,7 +20,7 @@ EXPORTS.angle += [
|
|||||||
|
|
||||||
# Target: 'preprocessor'
|
# Target: 'preprocessor'
|
||||||
# src/compiler/preprocessor:
|
# src/compiler/preprocessor:
|
||||||
CPP_SOURCES += [
|
CPP_SOURCES += ['src/compiler/preprocessor/' + src for src in [
|
||||||
'DiagnosticsBase.cpp',
|
'DiagnosticsBase.cpp',
|
||||||
'DirectiveHandlerBase.cpp',
|
'DirectiveHandlerBase.cpp',
|
||||||
'DirectiveParser.cpp',
|
'DirectiveParser.cpp',
|
||||||
@ -32,13 +32,13 @@ CPP_SOURCES += [
|
|||||||
'Preprocessor.cpp',
|
'Preprocessor.cpp',
|
||||||
'Token.cpp',
|
'Token.cpp',
|
||||||
'Tokenizer.cpp',
|
'Tokenizer.cpp',
|
||||||
]
|
]]
|
||||||
|
|
||||||
|
|
||||||
# Target: 'translator_common'
|
# Target: 'translator_common'
|
||||||
# Requires: 'preprocessor'
|
# Requires: 'preprocessor'
|
||||||
# src/compiler:
|
# src/compiler:
|
||||||
CPP_SOURCES += [
|
CPP_SOURCES += ['src/compiler/' + src for src in [
|
||||||
'BuiltInFunctionEmulator.cpp',
|
'BuiltInFunctionEmulator.cpp',
|
||||||
'Compiler.cpp',
|
'Compiler.cpp',
|
||||||
'compiler_debug.cpp',
|
'compiler_debug.cpp',
|
||||||
@ -67,46 +67,46 @@ CPP_SOURCES += [
|
|||||||
'ValidateLimitations.cpp',
|
'ValidateLimitations.cpp',
|
||||||
'VariableInfo.cpp',
|
'VariableInfo.cpp',
|
||||||
'VariablePacker.cpp',
|
'VariablePacker.cpp',
|
||||||
]
|
]]
|
||||||
|
|
||||||
# src/compiler/depgraph:
|
# src/compiler/depgraph:
|
||||||
CPP_SOURCES += [
|
CPP_SOURCES += ['src/compiler/depgraph/' + src for src in [
|
||||||
'DependencyGraph.cpp',
|
'DependencyGraph.cpp',
|
||||||
'DependencyGraphBuilder.cpp',
|
'DependencyGraphBuilder.cpp',
|
||||||
'DependencyGraphOutput.cpp',
|
'DependencyGraphOutput.cpp',
|
||||||
'DependencyGraphTraverse.cpp',
|
'DependencyGraphTraverse.cpp',
|
||||||
]
|
]]
|
||||||
|
|
||||||
# src/compiler/timing:
|
# src/compiler/timing:
|
||||||
CPP_SOURCES += [
|
CPP_SOURCES += ['src/compiler/timing/' + src for src in [
|
||||||
'RestrictFragmentShaderTiming.cpp',
|
'RestrictFragmentShaderTiming.cpp',
|
||||||
'RestrictVertexShaderTiming.cpp',
|
'RestrictVertexShaderTiming.cpp',
|
||||||
]
|
]]
|
||||||
|
|
||||||
# src/third_party/compiler:
|
# src/third_party/compiler:
|
||||||
CPP_SOURCES += [
|
CPP_SOURCES += ['src/third_party/compiler/' + src for src in [
|
||||||
'ArrayBoundsClamper.cpp',
|
'ArrayBoundsClamper.cpp',
|
||||||
]
|
]]
|
||||||
|
|
||||||
# src/third_party/murmurhash:
|
# src/third_party/murmurhash:
|
||||||
CPP_SOURCES += [
|
CPP_SOURCES += ['src/third_party/murmurhash/' + src for src in [
|
||||||
'MurmurHash3.cpp',
|
'MurmurHash3.cpp',
|
||||||
]
|
]]
|
||||||
|
|
||||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
||||||
CPP_SOURCES += [
|
CPP_SOURCES += [
|
||||||
'ossource_win.cpp',
|
'src/compiler/ossource_win.cpp',
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
CPP_SOURCES += [
|
CPP_SOURCES += [
|
||||||
'ossource_posix.cpp',
|
'src/compiler/ossource_posix.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
# Target: 'translator_glsl'
|
# Target: 'translator_glsl'
|
||||||
# Requires: 'translator_common'
|
# Requires: 'translator_common'
|
||||||
# src/compiler:
|
# src/compiler:
|
||||||
CPP_SOURCES += [
|
CPP_SOURCES += ['src/compiler/' + src for src in [
|
||||||
'CodeGenGLSL.cpp',
|
'CodeGenGLSL.cpp',
|
||||||
'OutputESSL.cpp',
|
'OutputESSL.cpp',
|
||||||
'OutputGLSLBase.cpp',
|
'OutputGLSLBase.cpp',
|
||||||
@ -115,7 +115,7 @@ CPP_SOURCES += [
|
|||||||
'TranslatorESSL.cpp',
|
'TranslatorESSL.cpp',
|
||||||
'TranslatorGLSL.cpp',
|
'TranslatorGLSL.cpp',
|
||||||
'VersionGLSL.cpp',
|
'VersionGLSL.cpp',
|
||||||
]
|
]]
|
||||||
|
|
||||||
LIBRARY_NAME = 'angle'
|
LIBRARY_NAME = 'angle'
|
||||||
LIBXUL_LIBRARY = True
|
LIBXUL_LIBRARY = True
|
||||||
|
@ -9,10 +9,10 @@ MODULE = 'libegl'
|
|||||||
# Target: 'libEGL'
|
# Target: 'libEGL'
|
||||||
# Requires: 'libGLESv2'
|
# Requires: 'libGLESv2'
|
||||||
# src/common:
|
# src/common:
|
||||||
CPP_SOURCES += [
|
CPP_SOURCES += ['../common/' + src for src in [
|
||||||
'debug.cpp',
|
'debug.cpp',
|
||||||
'RefCountObject.cpp',
|
'RefCountObject.cpp',
|
||||||
]
|
]]
|
||||||
|
|
||||||
# src/libEGL
|
# src/libEGL
|
||||||
CPP_SOURCES += [
|
CPP_SOURCES += [
|
||||||
|
@ -8,7 +8,7 @@ MODULE = 'libglesv2'
|
|||||||
|
|
||||||
# Target: 'preprocessor'
|
# Target: 'preprocessor'
|
||||||
# src/compiler/preprocessor:
|
# src/compiler/preprocessor:
|
||||||
CPP_SOURCES += [
|
CPP_SOURCES += ['../compiler/preprocessor/' + src for src in [
|
||||||
'DiagnosticsBase.cpp',
|
'DiagnosticsBase.cpp',
|
||||||
'DirectiveHandlerBase.cpp',
|
'DirectiveHandlerBase.cpp',
|
||||||
'DirectiveParser.cpp',
|
'DirectiveParser.cpp',
|
||||||
@ -20,13 +20,13 @@ CPP_SOURCES += [
|
|||||||
'Preprocessor.cpp',
|
'Preprocessor.cpp',
|
||||||
'Token.cpp',
|
'Token.cpp',
|
||||||
'Tokenizer.cpp',
|
'Tokenizer.cpp',
|
||||||
]
|
]]
|
||||||
|
|
||||||
|
|
||||||
# Target: 'translator_common'
|
# Target: 'translator_common'
|
||||||
# Requires: 'preprocessor'
|
# Requires: 'preprocessor'
|
||||||
# src/compiler:
|
# src/compiler:
|
||||||
CPP_SOURCES += [
|
CPP_SOURCES += ['../compiler/' + src for src in [
|
||||||
'BuiltInFunctionEmulator.cpp',
|
'BuiltInFunctionEmulator.cpp',
|
||||||
'Compiler.cpp',
|
'Compiler.cpp',
|
||||||
'compiler_debug.cpp',
|
'compiler_debug.cpp',
|
||||||
@ -55,46 +55,46 @@ CPP_SOURCES += [
|
|||||||
'ValidateLimitations.cpp',
|
'ValidateLimitations.cpp',
|
||||||
'VariableInfo.cpp',
|
'VariableInfo.cpp',
|
||||||
'VariablePacker.cpp',
|
'VariablePacker.cpp',
|
||||||
]
|
]]
|
||||||
|
|
||||||
# src/compiler/depgraph:
|
# src/compiler/depgraph:
|
||||||
CPP_SOURCES += [
|
CPP_SOURCES += ['../compiler/depgraph/' + src for src in [
|
||||||
'DependencyGraph.cpp',
|
'DependencyGraph.cpp',
|
||||||
'DependencyGraphBuilder.cpp',
|
'DependencyGraphBuilder.cpp',
|
||||||
'DependencyGraphOutput.cpp',
|
'DependencyGraphOutput.cpp',
|
||||||
'DependencyGraphTraverse.cpp',
|
'DependencyGraphTraverse.cpp',
|
||||||
]
|
]]
|
||||||
|
|
||||||
# src/compiler/timing:
|
# src/compiler/timing:
|
||||||
CPP_SOURCES += [
|
CPP_SOURCES += ['../compiler/timing/' + src for src in [
|
||||||
'RestrictFragmentShaderTiming.cpp',
|
'RestrictFragmentShaderTiming.cpp',
|
||||||
'RestrictVertexShaderTiming.cpp',
|
'RestrictVertexShaderTiming.cpp',
|
||||||
]
|
]]
|
||||||
|
|
||||||
# src/third_party/compiler:
|
# src/third_party/compiler:
|
||||||
CPP_SOURCES += [
|
CPP_SOURCES += ['../third_party/compiler/' + src for src in [
|
||||||
'ArrayBoundsClamper.cpp',
|
'ArrayBoundsClamper.cpp',
|
||||||
]
|
]]
|
||||||
|
|
||||||
# src/third_party/murmurhash:
|
# src/third_party/murmurhash:
|
||||||
CPP_SOURCES += [
|
CPP_SOURCES += ['../third_party/murmurhash/' + src for src in [
|
||||||
'MurmurHash3.cpp',
|
'MurmurHash3.cpp',
|
||||||
]
|
]]
|
||||||
|
|
||||||
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
|
||||||
CPP_SOURCES += [
|
CPP_SOURCES += [
|
||||||
'ossource_win.cpp',
|
'../compiler/ossource_win.cpp',
|
||||||
]
|
]
|
||||||
else:
|
else:
|
||||||
CPP_SOURCES += [
|
CPP_SOURCES += [
|
||||||
'ossource_posix.cpp',
|
'../compiler/ossource_posix.cpp',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
# Target: 'translator_hlsl'
|
# Target: 'translator_hlsl'
|
||||||
# Requires: 'translator_common'
|
# Requires: 'translator_common'
|
||||||
# src/compiler:
|
# src/compiler:
|
||||||
CPP_SOURCES += [
|
CPP_SOURCES += ['../compiler/' + src for src in [
|
||||||
'ShaderLang.cpp',
|
'ShaderLang.cpp',
|
||||||
'DetectDiscontinuity.cpp',
|
'DetectDiscontinuity.cpp',
|
||||||
'CodeGenHLSL.cpp',
|
'CodeGenHLSL.cpp',
|
||||||
@ -102,16 +102,16 @@ CPP_SOURCES += [
|
|||||||
'TranslatorHLSL.cpp',
|
'TranslatorHLSL.cpp',
|
||||||
'UnfoldShortCircuit.cpp',
|
'UnfoldShortCircuit.cpp',
|
||||||
'SearchSymbol.cpp',
|
'SearchSymbol.cpp',
|
||||||
]
|
]]
|
||||||
|
|
||||||
|
|
||||||
# Target: 'libGLESv2'
|
# Target: 'libGLESv2'
|
||||||
# Requires: 'translator_hlsl'
|
# Requires: 'translator_hlsl'
|
||||||
# src/common:
|
# src/common:
|
||||||
CPP_SOURCES += [
|
CPP_SOURCES += ['../common/' + src for src in [
|
||||||
'debug.cpp',
|
'debug.cpp',
|
||||||
'RefCountObject.cpp',
|
'RefCountObject.cpp',
|
||||||
]
|
]]
|
||||||
|
|
||||||
# src/libGLESv2:
|
# src/libGLESv2:
|
||||||
CPP_SOURCES += [
|
CPP_SOURCES += [
|
||||||
@ -136,7 +136,7 @@ CPP_SOURCES += [
|
|||||||
]
|
]
|
||||||
|
|
||||||
# src/libGLESv2/renderer:
|
# src/libGLESv2/renderer:
|
||||||
CPP_SOURCES += [
|
CPP_SOURCES += ['renderer/' + src for src in [
|
||||||
'Blit.cpp',
|
'Blit.cpp',
|
||||||
'BufferStorage.cpp',
|
'BufferStorage.cpp',
|
||||||
'BufferStorage9.cpp',
|
'BufferStorage9.cpp',
|
||||||
@ -175,6 +175,6 @@ CPP_SOURCES += [
|
|||||||
'VertexBuffer11.cpp',
|
'VertexBuffer11.cpp',
|
||||||
'VertexDataManager.cpp',
|
'VertexDataManager.cpp',
|
||||||
'VertexDeclarationCache.cpp',
|
'VertexDeclarationCache.cpp',
|
||||||
]
|
]]
|
||||||
|
|
||||||
LIBRARY_NAME = 'libGLESv2'
|
LIBRARY_NAME = 'libGLESv2'
|
||||||
|
@ -126,7 +126,7 @@ class TreeMetadataEmitter(LoggingMixin):
|
|||||||
yield XPIDLFile(sandbox, mozpath.join(sandbox['SRCDIR'], idl),
|
yield XPIDLFile(sandbox, mozpath.join(sandbox['SRCDIR'], idl),
|
||||||
xpidl_module)
|
xpidl_module)
|
||||||
|
|
||||||
exclusions = ('gfx', 'toolkit/crashreporter')
|
exclusions = ('gfx/layers', 'gfx/skia', 'toolkit/crashreporter')
|
||||||
|
|
||||||
if sandbox['CPP_SOURCES'] and not sandbox['RELATIVEDIR'].startswith(exclusions) and os.path.join('js', 'src') not in sandbox.main_path:
|
if sandbox['CPP_SOURCES'] and not sandbox['RELATIVEDIR'].startswith(exclusions) and os.path.join('js', 'src') not in sandbox.main_path:
|
||||||
for src in sandbox['CPP_SOURCES']:
|
for src in sandbox['CPP_SOURCES']:
|
||||||
|
Loading…
Reference in New Issue
Block a user