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
Adapter for the Microsoft (r) MIDL Compiler
-
Field Summary
FieldsFields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
DevStudioMIDLCompiler
(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) 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 DevStudioMIDLCompiler
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, 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
-
Field Details
-
instance
-
-
Constructor Details
-
DevStudioMIDLCompiler
private DevStudioMIDLCompiler(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
-
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
-