Class DevStudioMIDLCompiler
- 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.devstudio.DevStudioMIDLCompiler
-
public final class DevStudioMIDLCompiler extends CommandLineCompiler
Adapter for the Microsoft (r) MIDL Compiler- Author:
- Curt Arnold
-
-
Field Summary
-
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addImpliedArgs(java.util.Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, java.lang.Boolean rtti, OptimizationEnum optimization)
protected void
addWarningSwitch(java.util.Vector args, int level)
Processor
changeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env)
protected Parser
createParser(java.io.File source)
The include parser for C will work just fine, but we didn't want to inherit from CommandLineCCompilerprotected int
getArgumentCountPerInputFile()
protected void
getDefineSwitch(java.lang.StringBuffer buffer, java.lang.String define, java.lang.String value)
protected java.io.File[]
getEnvironmentIncludePath()
protected java.lang.String
getIncludeDirSwitch(java.lang.String includeDir)
protected java.lang.String
getInputFileArgument(java.io.File outputDir, java.lang.String filename, int index)
static DevStudioMIDLCompiler
getInstance()
Linker
getLinker(LinkType type)
Gets the linker that is associated with this processorsint
getMaximumCommandLength()
protected int
getMaximumInputFilesPerCommand()
protected int
getTotalArgumentLengthForInputFile(java.io.File outputDir, java.lang.String inputFile)
protected void
getUndefineSwitch(java.lang.StringBuffer buffer, java.lang.String define)
-
Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, 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
-
-
-
-
Method Detail
-
getInstance
public static DevStudioMIDLCompiler 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:
addImpliedArgs
in classCommandLineCompiler
-
addWarningSwitch
protected void addWarningSwitch(java.util.Vector args, int level)
- 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
-
createParser
protected Parser createParser(java.io.File source)
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
protected void getDefineSwitch(java.lang.StringBuffer buffer, java.lang.String define, java.lang.String value)
- Specified by:
getDefineSwitch
in classCommandLineCompiler
-
getEnvironmentIncludePath
protected java.io.File[] getEnvironmentIncludePath()
- Specified by:
getEnvironmentIncludePath
in classCommandLineCompiler
-
getIncludeDirSwitch
protected java.lang.String getIncludeDirSwitch(java.lang.String includeDir)
- Specified by:
getIncludeDirSwitch
in classCommandLineCompiler
-
getInputFileArgument
protected java.lang.String getInputFileArgument(java.io.File outputDir, java.lang.String filename, int index)
- Overrides:
getInputFileArgument
in classCommandLineCompiler
-
getLinker
public Linker getLinker(LinkType type)
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
protected int getTotalArgumentLengthForInputFile(java.io.File outputDir, java.lang.String inputFile)
- Overrides:
getTotalArgumentLengthForInputFile
in classCommandLineCompiler
-
getUndefineSwitch
protected void getUndefineSwitch(java.lang.StringBuffer buffer, java.lang.String define)
- Specified by:
getUndefineSwitch
in classCommandLineCompiler
-
-