public final class CommandLineCompilerConfiguration extends Object implements CompilerConfiguration
| Constructor and Description |
|---|
CommandLineCompilerConfiguration(CommandLineCompilerConfiguration base,
String[] additionalArgs,
String[] exceptFiles,
boolean isPrecompileHeaderGeneration) |
CommandLineCompilerConfiguration(CommandLineCompiler compiler,
String identifier,
File[] includePath,
File[] sysIncludePath,
File[] envIncludePath,
String includePathIdentifier,
String[] args,
ProcessorParam[] params,
boolean rebuild,
String[] endArgs) |
| Modifier and Type | Method and Description |
|---|---|
int |
bid(String inputFile)
An indication of how much this compiler would like to process this file
|
void |
compile(CCTask task,
File outputDir,
String[] sourceFiles,
boolean relentless,
ProgressMonitor monitor) |
CompilerConfiguration[] |
createPrecompileConfigurations(File prototype,
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.
|
String |
getCommand() |
Compiler |
getCompiler() |
String[] |
getEndArguments() |
String |
getIdentifier()
Returns a string representation of this configuration.
|
File[] |
getIncludePath() |
String |
getIncludePathIdentifier()
Returns an digest for the include path for the configuration.
|
String[] |
getOutputFileNames(String inputFile,
VersionInfo versionInfo)
Output file name (no path components) corresponding to source file
|
CompilerParam |
getParam(String name) |
ProcessorParam[] |
getParams() |
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,
File baseDir,
File source) |
String |
toString() |
public CommandLineCompilerConfiguration(CommandLineCompiler compiler, String identifier, File[] includePath, File[] sysIncludePath, File[] envIncludePath, String includePathIdentifier, String[] args, ProcessorParam[] params, boolean rebuild, String[] endArgs)
public CommandLineCompilerConfiguration(CommandLineCompilerConfiguration base, String[] additionalArgs, String[] exceptFiles, boolean isPrecompileHeaderGeneration)
public int bid(String inputFile)
ProcessorConfigurationbid in interface ProcessorConfigurationpublic void compile(CCTask task, File outputDir, String[] sourceFiles, boolean relentless, ProgressMonitor monitor) throws org.apache.tools.ant.BuildException
compile in interface CompilerConfigurationorg.apache.tools.ant.BuildExceptionpublic CompilerConfiguration[] createPrecompileConfigurations(File prototype, 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 String getIdentifier()
getIdentifier in interface ProcessorConfigurationpublic String getIncludePathIdentifier()
CompilerConfigurationgetIncludePathIdentifier in interface CompilerConfigurationpublic String[] getOutputFileNames(String inputFile, VersionInfo versionInfo)
ProcessorConfigurationgetOutputFileNames in interface ProcessorConfigurationinputFile - input filepublic CompilerParam getParam(String name)
getParam in interface CompilerConfigurationpublic ProcessorParam[] getParams()
getParams in interface ProcessorConfigurationpublic boolean getRebuild()
ProcessorConfigurationgetRebuild in interface ProcessorConfigurationpublic boolean isPrecompileGeneration()
isPrecompileGeneration in interface CompilerConfigurationpublic DependencyInfo parseIncludes(CCTask task, File baseDir, File source)
parseIncludes in interface CompilerConfigurationpublic String[] getPreArguments()
public String[] getEndArguments()
public File[] getIncludePath()
public Compiler getCompiler()
public String getCommand()
Copyright © 2001–2025 Ant-Contrib Project. All rights reserved.