public final class CommandLineCompilerConfiguration extends java.lang.Object implements CompilerConfiguration
Modifier and Type | Field and Description |
---|---|
private java.lang.String[] |
args |
private CommandLineCompiler |
compiler |
private java.lang.String[] |
endArgs |
private java.io.File[] |
envIncludePath |
private java.lang.String[] |
exceptFiles |
private java.lang.String |
identifier |
private java.io.File[] |
includePath |
private java.lang.String |
includePathIdentifier |
private boolean |
isPrecompiledHeaderGeneration |
private ProcessorParam[] |
params |
private boolean |
rebuild |
private java.io.File[] |
sysIncludePath |
Constructor and Description |
---|
CommandLineCompilerConfiguration(CommandLineCompilerConfiguration base,
java.lang.String[] additionalArgs,
java.lang.String[] exceptFiles,
boolean isPrecompileHeaderGeneration) |
CommandLineCompilerConfiguration(CommandLineCompiler compiler,
java.lang.String identifier,
java.io.File[] includePath,
java.io.File[] sysIncludePath,
java.io.File[] envIncludePath,
java.lang.String includePathIdentifier,
java.lang.String[] args,
ProcessorParam[] params,
boolean rebuild,
java.lang.String[] endArgs) |
Modifier and Type | Method and Description |
---|---|
int |
bid(java.lang.String inputFile)
An indication of how much this compiler would like to process this file
|
void |
compile(CCTask task,
java.io.File outputDir,
java.lang.String[] sourceFiles,
boolean relentless,
ProgressMonitor monitor) |
CompilerConfiguration[] |
createPrecompileConfigurations(java.io.File prototype,
java.lang.String[] nonPrecompiledFiles)
This method may be used to get two distinct compiler configurations, one
for compiling the specified file and producing a precompiled header
file, and a second for compiling other files using the precompiled
header file.
|
java.lang.String |
getCommand() |
Compiler |
getCompiler() |
java.lang.String[] |
getEndArguments() |
java.lang.String |
getIdentifier()
Returns a string representation of this configuration.
|
java.io.File[] |
getIncludePath() |
java.lang.String |
getIncludePathIdentifier()
Returns an digest for the include path for the configuration.
|
java.lang.String[] |
getOutputFileNames(java.lang.String inputFile,
VersionInfo versionInfo)
Output file name (no path components) corresponding to source file
|
CompilerParam |
getParam(java.lang.String name) |
ProcessorParam[] |
getParams() |
java.lang.String[] |
getPreArguments() |
boolean |
getRebuild()
If true, all files using this configuration should be rebuilt and any
existing output files should be ignored
|
boolean |
isPrecompileGeneration() |
DependencyInfo |
parseIncludes(CCTask task,
java.io.File baseDir,
java.io.File source) |
java.lang.String |
toString() |
private java.lang.String[] args
private CommandLineCompiler compiler
private java.lang.String[] endArgs
private java.io.File[] envIncludePath
private java.lang.String[] exceptFiles
private java.lang.String identifier
private java.io.File[] includePath
private java.lang.String includePathIdentifier
private boolean isPrecompiledHeaderGeneration
private ProcessorParam[] params
private boolean rebuild
private java.io.File[] sysIncludePath
public CommandLineCompilerConfiguration(CommandLineCompiler compiler, java.lang.String identifier, java.io.File[] includePath, java.io.File[] sysIncludePath, java.io.File[] envIncludePath, java.lang.String includePathIdentifier, java.lang.String[] args, ProcessorParam[] params, boolean rebuild, java.lang.String[] endArgs)
public CommandLineCompilerConfiguration(CommandLineCompilerConfiguration base, java.lang.String[] additionalArgs, java.lang.String[] exceptFiles, boolean isPrecompileHeaderGeneration)
public int bid(java.lang.String inputFile)
ProcessorConfiguration
bid
in interface ProcessorConfiguration
public void compile(CCTask task, java.io.File outputDir, java.lang.String[] sourceFiles, boolean relentless, ProgressMonitor monitor) throws org.apache.tools.ant.BuildException
compile
in interface CompilerConfiguration
org.apache.tools.ant.BuildException
public CompilerConfiguration[] createPrecompileConfigurations(java.io.File prototype, java.lang.String[] nonPrecompiledFiles)
createPrecompileConfigurations
in interface CompilerConfiguration
prototype
- A source file (for example, stdafx.cpp) that is used to build
the precompiled header file. @returns null if precompiled
headers are not supported or a two element array containing
the precompiled header generation configuration and the
consuming configurationpublic java.lang.String getIdentifier()
getIdentifier
in interface ProcessorConfiguration
public java.lang.String getIncludePathIdentifier()
CompilerConfiguration
getIncludePathIdentifier
in interface CompilerConfiguration
public java.lang.String[] getOutputFileNames(java.lang.String inputFile, VersionInfo versionInfo)
ProcessorConfiguration
getOutputFileNames
in interface ProcessorConfiguration
inputFile
- input filepublic CompilerParam getParam(java.lang.String name)
getParam
in interface CompilerConfiguration
public ProcessorParam[] getParams()
getParams
in interface ProcessorConfiguration
public boolean getRebuild()
ProcessorConfiguration
getRebuild
in interface ProcessorConfiguration
public boolean isPrecompileGeneration()
isPrecompileGeneration
in interface CompilerConfiguration
public DependencyInfo parseIncludes(CCTask task, java.io.File baseDir, java.io.File source)
parseIncludes
in interface CompilerConfiguration
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String[] getPreArguments()
public java.lang.String[] getEndArguments()
public java.io.File[] getIncludePath()
public Compiler getCompiler()
public java.lang.String getCommand()