Package net.sf.antcontrib.cpptasks.gcc
Class WindresResourceCompiler
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.gcc.WindresResourceCompiler
Adapter for the GNU windres resource compiler.
- Author:
- Curt Arnold
-
Field Summary
Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddImpliedArgs(Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, Boolean rtti, OptimizationEnum optimization) protected voidaddWarningSwitch(Vector args, int level) changeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env) protected ParsercreateParser(File source) The include parser for C will work just fine, but we didn't want to inherit from CommandLineCCompilerprotected intprotected voidgetDefineSwitch(StringBuffer buffer, String define, String value) protected File[]Retrieve an identifier that identifies the specific version of the compiler.protected StringgetIncludeDirSwitch(String includeDir) protected StringgetInputFileArgument(File outputDir, String filename, int index) static WindresResourceCompilerGets the linker that is associated with this processorsintprotected intprotected intgetTotalArgumentLengthForInputFile(File outputDir, String inputFile) protected voidgetUndefineSwitch(StringBuffer buffer, String define) Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getCommand, getLibtool, getLibtoolCompiler, runCommand, setCommandMethods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveIncludeMethods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor
bid, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString
-
Method Details
-
getInstance
-
addImpliedArgs
protected void addImpliedArgs(Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, Boolean rtti, OptimizationEnum optimization) - Specified by:
addImpliedArgsin classCommandLineCompiler
-
addWarningSwitch
- Specified by:
addWarningSwitchin classCommandLineCompiler
-
changeEnvironment
public Processor changeEnvironment(boolean newEnvironment, org.apache.tools.ant.types.Environment env) - Specified by:
changeEnvironmentin interfaceProcessor- Overrides:
changeEnvironmentin classAbstractProcessor
-
createParser
The include parser for C will work just fine, but we didn't want to inherit from CommandLineCCompiler- Specified by:
createParserin classAbstractCompiler
-
getArgumentCountPerInputFile
protected int getArgumentCountPerInputFile()- Overrides:
getArgumentCountPerInputFilein classCommandLineCompiler
-
getDefineSwitch
- Specified by:
getDefineSwitchin classCommandLineCompiler
-
getEnvironmentIncludePath
- Specified by:
getEnvironmentIncludePathin classCommandLineCompiler
-
getIncludeDirSwitch
- Specified by:
getIncludeDirSwitchin classCommandLineCompiler
-
getInputFileArgument
- Overrides:
getInputFileArgumentin classCommandLineCompiler
-
getLinker
Description copied from interface:ProcessorGets the linker that is associated with this processors -
getMaximumCommandLength
public int getMaximumCommandLength()- Specified by:
getMaximumCommandLengthin classCommandLineCompiler
-
getMaximumInputFilesPerCommand
protected int getMaximumInputFilesPerCommand()- Overrides:
getMaximumInputFilesPerCommandin classCommandLineCompiler
-
getTotalArgumentLengthForInputFile
- Overrides:
getTotalArgumentLengthForInputFilein classCommandLineCompiler
-
getUndefineSwitch
- Specified by:
getUndefineSwitchin classCommandLineCompiler
-
getIdentifier
Description copied from interface:ProcessorRetrieve an identifier that identifies the specific version of the compiler. Compilers with the same identifier should produce the same output files for the same input files and command line switches.- Specified by:
getIdentifierin interfaceProcessor- Overrides:
getIdentifierin classCommandLineCompiler
-