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
public abstract class OpenWatcomCompiler extends CommandLineCompiler
An abstract base class for the OpenWatcom C and Fortran compilers.- Author:
- Curt Arnold
-
-
Field Summary
-
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedOpenWatcomCompiler(java.lang.String command, java.lang.String identifierArg, java.lang.String[] sourceExtensions, java.lang.String[] headerExtensions, boolean newEnvironment, org.apache.tools.ant.types.Environment env)Constructor.
-
Method Summary
All 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)Add implied arguments.protected voidaddWarningSwitch(java.util.Vector args, int level)Add warning switch.ProcessorchangeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env)Change enviroment.protected voidgetDefineSwitch(java.lang.StringBuffer buffer, java.lang.String define, java.lang.String value)Get define switch.protected java.io.File[]getEnvironmentIncludePath()Get include path from environment.protected java.lang.StringgetIncludeDirSwitch(java.lang.String includeDir)Get include directory switch.intgetMaximumCommandLength()Get maximum command line length.protected voidgetUndefineSwitch(java.lang.StringBuffer buffer, java.lang.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 Detail
-
OpenWatcomCompiler
protected OpenWatcomCompiler(java.lang.String command, java.lang.String identifierArg, java.lang.String[] sourceExtensions, java.lang.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 Detail
-
addImpliedArgs
protected final void addImpliedArgs(java.util.Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, java.lang.Boolean rtti, OptimizationEnum optimization)Add implied arguments.- Specified by:
addImpliedArgsin 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
protected final void addWarningSwitch(java.util.Vector args, int level)Add warning switch.- Specified by:
addWarningSwitchin 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:
changeEnvironmentin interfaceProcessor- Overrides:
changeEnvironmentin classAbstractProcessor- Parameters:
newEnvironment- boolean use new enviromentenv- Environment environment- Returns:
- Processor modified processor
-
getDefineSwitch
protected final void getDefineSwitch(java.lang.StringBuffer buffer, java.lang.String define, java.lang.String value)Get define switch.- Specified by:
getDefineSwitchin classCommandLineCompiler- Parameters:
buffer- StringBuffer bufferdefine- String preprocessor macrovalue- String value, may be null.
-
getEnvironmentIncludePath
protected final java.io.File[] getEnvironmentIncludePath()
Get include path from environment.- Specified by:
getEnvironmentIncludePathin classCommandLineCompiler- Returns:
- File[]
-
getIncludeDirSwitch
protected final java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
Get include directory switch.- Specified by:
getIncludeDirSwitchin classCommandLineCompiler- Parameters:
includeDir- String include directory- Returns:
- String command line argument
-
getMaximumCommandLength
public final int getMaximumCommandLength()
Get maximum command line length.- Specified by:
getMaximumCommandLengthin classCommandLineCompiler- Returns:
- int maximum command line length
-
getUndefineSwitch
protected final void getUndefineSwitch(java.lang.StringBuffer buffer, java.lang.String define)Get undefine switch.- Specified by:
getUndefineSwitchin classCommandLineCompiler- Parameters:
buffer- StringBuffer argument destinationdefine- String preprocessor macro
-
-