|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.antcontrib.cpptasks.compiler.CommandLineCompilerConfiguration
public final class CommandLineCompilerConfiguration
A configuration for a C++ compiler
| Constructor Summary | |
|---|---|
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)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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)
| Method Detail |
|---|
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 CompilerConfigurationorg.apache.tools.ant.BuildException
public CompilerConfiguration[] createPrecompileConfigurations(java.io.File prototype,
java.lang.String[] nonPrecompiledFiles)
createPrecompileConfigurations in interface CompilerConfigurationprototype - 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 ProcessorConfigurationpublic java.lang.String getIncludePathIdentifier()
CompilerConfiguration
getIncludePathIdentifier in interface CompilerConfiguration
public java.lang.String[] getOutputFileNames(java.lang.String inputFile,
VersionInfo versionInfo)
ProcessorConfiguration
getOutputFileNames in interface ProcessorConfigurationinputFile - input file
public CompilerParam getParam(java.lang.String name)
getParam in interface CompilerConfigurationpublic ProcessorParam[] getParams()
getParams in interface ProcessorConfigurationpublic boolean getRebuild()
ProcessorConfiguration
getRebuild in interface ProcessorConfigurationpublic boolean isPrecompileGeneration()
isPrecompileGeneration in interface CompilerConfiguration
public DependencyInfo parseIncludes(CCTask task,
java.io.File baseDir,
java.io.File source)
parseIncludes in interface CompilerConfigurationpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String[] getPreArguments()
public java.lang.String[] getEndArguments()
public java.io.File[] getIncludePath()
public Compiler getCompiler()
public java.lang.String getCommand()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||