Class BorlandResourceCompiler
java.lang.Object
net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
net.sf.antcontrib.cpptasks.borland.BorlandResourceCompiler
Adapter for the Borland(r) brc32 Resource compiler.
-
Field Summary
FieldsFields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
BorlandResourceCompiler
(boolean newEnvironment, org.apache.tools.ant.types.Environment env) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addImpliedArgs
(Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, Boolean rtti, OptimizationEnum optimization) protected void
addWarningSwitch
(Vector args, int level) changeEnvironment
(boolean newEnvironment, org.apache.tools.ant.types.Environment env) void
compile
(CCTask task, File outputDir, String[] sourceFiles, String[] args, String[] endArgs, boolean relentless, CommandLineCompilerConfiguration config, ProgressMonitor monitor) Compiles a source file.protected Parser
createParser
(File source) The include parser for C will work just fine, but we didn't want to inherit from CommandLineCCompilerprotected int
protected void
getDefineSwitch
(StringBuffer buffer, String define, String value) protected File[]
protected String
getIncludeDirSwitch
(String includeDir) protected String
getInputFileArgument
(File outputDir, String filename, int index) static BorlandResourceCompiler
Gets the linker that is associated with this processorsint
protected int
protected int
getTotalArgumentLengthForInputFile
(File outputDir, String inputFile) protected void
getUndefineSwitch
(StringBuffer buffer, String define) Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, createConfiguration, getCommand, getIdentifier, getLibtool, getLibtoolCompiler, runCommand, setCommand
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
-
Field Details
-
instance
-
-
Constructor Details
-
BorlandResourceCompiler
private BorlandResourceCompiler(boolean newEnvironment, org.apache.tools.ant.types.Environment env)
-
-
Method Details
-
getInstance
-
addImpliedArgs
protected void addImpliedArgs(Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, Boolean rtti, OptimizationEnum optimization) - Specified by:
addImpliedArgs
in classCommandLineCompiler
-
addWarningSwitch
- Specified by:
addWarningSwitch
in classCommandLineCompiler
-
changeEnvironment
public Processor changeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env) - Specified by:
changeEnvironment
in interfaceProcessor
- Overrides:
changeEnvironment
in classAbstractProcessor
-
compile
public void compile(CCTask task, File outputDir, String[] sourceFiles, String[] args, String[] endArgs, boolean relentless, CommandLineCompilerConfiguration config, ProgressMonitor monitor) throws org.apache.tools.ant.BuildException Description copied from class:CommandLineCompiler
Compiles a source file.- Overrides:
compile
in classCommandLineCompiler
- Throws:
org.apache.tools.ant.BuildException
-
createParser
The include parser for C will work just fine, but we didn't want to inherit from CommandLineCCompiler- Specified by:
createParser
in classAbstractCompiler
-
getArgumentCountPerInputFile
protected int getArgumentCountPerInputFile()- Overrides:
getArgumentCountPerInputFile
in classCommandLineCompiler
-
getDefineSwitch
- Specified by:
getDefineSwitch
in classCommandLineCompiler
-
getEnvironmentIncludePath
- Specified by:
getEnvironmentIncludePath
in classCommandLineCompiler
-
getIncludeDirSwitch
- Specified by:
getIncludeDirSwitch
in classCommandLineCompiler
-
getInputFileArgument
- Overrides:
getInputFileArgument
in classCommandLineCompiler
-
getLinker
Description copied from interface:Processor
Gets the linker that is associated with this processors -
getMaximumCommandLength
public int getMaximumCommandLength()- Specified by:
getMaximumCommandLength
in classCommandLineCompiler
-
getMaximumInputFilesPerCommand
protected int getMaximumInputFilesPerCommand()- Overrides:
getMaximumInputFilesPerCommand
in classCommandLineCompiler
-
getTotalArgumentLengthForInputFile
- Overrides:
getTotalArgumentLengthForInputFile
in classCommandLineCompiler
-
getUndefineSwitch
- Specified by:
getUndefineSwitch
in classCommandLineCompiler
-