net.sf.antcontrib.cpptasks.devstudio

Class DevStudioCompatibleCCompiler

Implemented Interfaces:
Cloneable, Compiler, PrecompilingCompiler, Processor
Known Direct Subclasses:
DevStudioCCompiler, IntelWin32CCompiler, IntelWin64CCompiler

public abstract class DevStudioCompatibleCCompiler
extends PrecompilingCommandLineCCompiler

An abstract base class for compilers that are basically command line compatible with Microsoft(r) C/C++ Optimizing Compiler
Author:
Curt Arnold

Field Summary

Fields inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor

DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID

Constructor Summary

DevStudioCompatibleCCompiler(String command, String identifierArg, boolean newEnvironment, Environment env)

Method Summary

protected void
addImpliedArgs(Vector args, boolean debug, boolean multithreaded, boolean exceptions, LinkType linkType, Boolean rtti, OptimizationEnum optimization)
protected void
addWarningSwitch(Vector args, int level)
protected CompilerConfiguration
createPrecompileGeneratingConfig(CommandLineCompilerConfiguration baseConfig, File prototype, String lastInclude)
protected CompilerConfiguration
createPrecompileUsingConfig(CommandLineCompilerConfiguration baseConfig, File prototype, String lastInclude, String[] exceptFiles)
protected void
getDefineSwitch(StringBuffer buffer, String define, String value)
protected File[]
getEnvironmentIncludePath()
protected String
getIncludeDirSwitch(String includeDir)
protected void
getUndefineSwitch(StringBuffer buffer, String define)

Methods inherited from class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCCompiler

createParser

Methods inherited from class net.sf.antcontrib.cpptasks.compiler.PrecompilingCommandLineCompiler

createPrecompileConfigurations, createPrecompileGeneratingConfig, createPrecompileUsingConfig

Methods inherited from class net.sf.antcontrib.cpptasks.compiler.CommandLineCompiler

addImpliedArgs, addIncludes, addWarningSwitch, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getDefineSwitch, getEnvironmentIncludePath, getIdentifier, getIncludeDirSwitch, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumCommandLength, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, getUndefineSwitch, runCommand, setCommand

Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractCompiler

canParse, createConfiguration, createConfiguration, createParser, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude

Methods inherited from class net.sf.antcontrib.cpptasks.compiler.AbstractProcessor

bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, toString

Constructor Details

DevStudioCompatibleCCompiler

protected DevStudioCompatibleCCompiler(String command,
                                       String identifierArg,
                                       boolean newEnvironment,
                                       Environment env)

Method Details

addImpliedArgs

protected void addImpliedArgs(Vector args,
                              boolean debug,
                              boolean multithreaded,
                              boolean exceptions,
                              LinkType linkType,
                              Boolean rtti,
                              OptimizationEnum optimization)
Overrides:
addImpliedArgs in interface CommandLineCompiler

addWarningSwitch

protected void addWarningSwitch(Vector args,
                                int level)
Overrides:
addWarningSwitch in interface CommandLineCompiler

createPrecompileGeneratingConfig

protected CompilerConfiguration createPrecompileGeneratingConfig(CommandLineCompilerConfiguration baseConfig,
                                                                 File prototype,
                                                                 String lastInclude)
Overrides:
createPrecompileGeneratingConfig in interface PrecompilingCommandLineCompiler

createPrecompileUsingConfig

protected CompilerConfiguration createPrecompileUsingConfig(CommandLineCompilerConfiguration baseConfig,
                                                            File prototype,
                                                            String lastInclude,
                                                            String[] exceptFiles)
Overrides:
createPrecompileUsingConfig in interface PrecompilingCommandLineCompiler

getDefineSwitch

protected void getDefineSwitch(StringBuffer buffer,
                               String define,
                               String value)
Overrides:
getDefineSwitch in interface CommandLineCompiler

getEnvironmentIncludePath

protected File[] getEnvironmentIncludePath()
Overrides:
getEnvironmentIncludePath in interface CommandLineCompiler

getIncludeDirSwitch

protected String getIncludeDirSwitch(String includeDir)
Overrides:
getIncludeDirSwitch in interface CommandLineCompiler

getUndefineSwitch

protected void getUndefineSwitch(StringBuffer buffer,
                                 String define)
Overrides:
getUndefineSwitch in interface CommandLineCompiler

Copyright B) 2001-2006 Ant-Contrib project. All Rights Reserved.