Class OpenWatcomCompiler
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.openwatcom.OpenWatcomCompiler
- Direct Known Subclasses:
OpenWatcomCCompiler
,OpenWatcomFortranCompiler
An abstract base class for the OpenWatcom C and Fortran compilers.
-
Field Summary
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
OpenWatcomCompiler
(String command, String identifierArg, String[] sourceExtensions, String[] headerExtensions, boolean newEnvironment, org.apache.tools.ant.types.Environment env) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected final void
addImpliedArgs
(Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, Boolean rtti, OptimizationEnum optimization) Add implied arguments.protected final void
addWarningSwitch
(Vector args, int level) Add warning switch.final Processor
changeEnvironment
(boolean newEnvironment, org.apache.tools.ant.types.Environment env) Change enviroment.protected final void
getDefineSwitch
(StringBuffer buffer, String define, String value) Get define switch.protected final File[]
Get include path from environment.protected final String
getIncludeDirSwitch
(String includeDir) Get include directory switch.final int
Get maximum command line length.protected final void
getUndefineSwitch
(StringBuffer buffer, String define) Get undefine switch.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, createParser, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
-
Constructor Details
-
OpenWatcomCompiler
protected OpenWatcomCompiler(String command, String identifierArg, String[] sourceExtensions, String[] headerExtensions, boolean newEnvironment, org.apache.tools.ant.types.Environment env) Constructor.- Parameters:
command
- String commandidentifierArg
- String identifiersourceExtensions
- String[] source extensionheaderExtensions
- String[] header extensionnewEnvironment
- boolean use new enviromentenv
- Environment environment
-
-
Method Details
-
addImpliedArgs
protected final void addImpliedArgs(Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, Boolean rtti, OptimizationEnum optimization) Add implied arguments.- Specified by:
addImpliedArgs
in classCommandLineCompiler
- Parameters:
args
- Vector command line argumentsdebug
- boolean is debugmultithreaded
- boolean multithreaderdexceptions
- boolean support exceptionslinkType
- LinkType link typertti
- Boolean run time type informationoptimization
- OptimizationEnum
-
addWarningSwitch
Add warning switch.- Specified by:
addWarningSwitch
in classCommandLineCompiler
- Parameters:
args
- Vector command line argumentslevel
- int warning level
-
changeEnvironment
public final Processor changeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env) Change enviroment.- Specified by:
changeEnvironment
in interfaceProcessor
- Overrides:
changeEnvironment
in classAbstractProcessor
- Parameters:
newEnvironment
- boolean use new enviromentenv
- Environment environment- Returns:
- Processor modified processor
-
getDefineSwitch
Get define switch.- Specified by:
getDefineSwitch
in classCommandLineCompiler
- Parameters:
buffer
- StringBuffer bufferdefine
- String preprocessor macrovalue
- String value, may be null.
-
getEnvironmentIncludePath
Get include path from environment.- Specified by:
getEnvironmentIncludePath
in classCommandLineCompiler
- Returns:
- File[]
-
getIncludeDirSwitch
Get include directory switch.- Specified by:
getIncludeDirSwitch
in classCommandLineCompiler
- Parameters:
includeDir
- String include directory- Returns:
- String command line argument
-
getMaximumCommandLength
public final int getMaximumCommandLength()Get maximum command line length.- Specified by:
getMaximumCommandLength
in classCommandLineCompiler
- Returns:
- int maximum command line length
-
getUndefineSwitch
Get undefine switch.- Specified by:
getUndefineSwitch
in classCommandLineCompiler
- Parameters:
buffer
- StringBuffer argument destinationdefine
- String preprocessor macro
-