Class BorlandCCompiler
- java.lang.Object
-
- All Implemented Interfaces:
java.lang.Cloneable,Compiler,PrecompilingCompiler,Processor
public class BorlandCCompiler extends PrecompilingCommandLineCCompiler
Adapter for the Borland(r) C/C++ compiler.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.lang.String[]headerExtensionsprivate static BorlandCCompilerinstanceprivate static java.lang.String[]sourceExtensions-
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
-
-
Constructor Summary
Constructors Modifier Constructor Description privateBorlandCCompiler(boolean newEnvironment, org.apache.tools.ant.types.Environment env)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddImpliedArgs(java.util.Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, java.lang.Boolean rtti, OptimizationEnum optimization)protected voidaddWarningSwitch(java.util.Vector args, int level)ProcessorchangeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env)protected CompilerConfigurationcreatePrecompileGeneratingConfig(CommandLineCompilerConfiguration baseConfig, java.io.File prototype, java.lang.String lastInclude)protected CompilerConfigurationcreatePrecompileUsingConfig(CommandLineCompilerConfiguration baseConfig, java.io.File prototype, java.lang.String lastInclude, java.lang.String[] exceptFiles)protected voidgetDefineSwitch(java.lang.StringBuffer buffer, java.lang.String define, java.lang.String value)protected java.io.File[]getEnvironmentIncludePath()protected java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir)static BorlandCCompilergetInstance()LinkergetLinker(LinkType type)Gets the linker that is associated with this processorsintgetMaximumCommandLength()protected voidgetUndefineSwitch(java.lang.StringBuffer buffer, java.lang.String define)-
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCCompiler
createParser
-
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCompiler
createPrecompileConfigurations
-
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getIdentifier, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, 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 Detail
-
headerExtensions
private static final java.lang.String[] headerExtensions
-
sourceExtensions
private static final java.lang.String[] sourceExtensions
-
instance
private static final BorlandCCompiler instance
-
-
Method Detail
-
getInstance
public static BorlandCCompiler getInstance()
-
addImpliedArgs
protected void addImpliedArgs(java.util.Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, java.lang.Boolean rtti, OptimizationEnum optimization)- Specified by:
addImpliedArgsin classCommandLineCompiler
-
addWarningSwitch
protected void addWarningSwitch(java.util.Vector args, int level)- Specified by:
addWarningSwitchin classCommandLineCompiler
-
changeEnvironment
public Processor changeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env)
- Specified by:
changeEnvironmentin interfaceProcessor- Overrides:
changeEnvironmentin classAbstractProcessor
-
createPrecompileGeneratingConfig
protected CompilerConfiguration createPrecompileGeneratingConfig(CommandLineCompilerConfiguration baseConfig, java.io.File prototype, java.lang.String lastInclude)
- Specified by:
createPrecompileGeneratingConfigin classPrecompilingCommandLineCompiler
-
createPrecompileUsingConfig
protected CompilerConfiguration createPrecompileUsingConfig(CommandLineCompilerConfiguration baseConfig, java.io.File prototype, java.lang.String lastInclude, java.lang.String[] exceptFiles)
- Specified by:
createPrecompileUsingConfigin classPrecompilingCommandLineCompiler
-
getDefineSwitch
protected void getDefineSwitch(java.lang.StringBuffer buffer, java.lang.String define, java.lang.String value)- Specified by:
getDefineSwitchin classCommandLineCompiler
-
getEnvironmentIncludePath
protected java.io.File[] getEnvironmentIncludePath()
- Specified by:
getEnvironmentIncludePathin classCommandLineCompiler
-
getIncludeDirSwitch
protected java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
- Specified by:
getIncludeDirSwitchin classCommandLineCompiler
-
getLinker
public Linker getLinker(LinkType type)
Description copied from interface:ProcessorGets the linker that is associated with this processors
-
getMaximumCommandLength
public int getMaximumCommandLength()
- Specified by:
getMaximumCommandLengthin classCommandLineCompiler
-
getUndefineSwitch
protected void getUndefineSwitch(java.lang.StringBuffer buffer, java.lang.String define)- Specified by:
getUndefineSwitchin classCommandLineCompiler
-
-