com.github.maven_nar.cpptasks.devstudio
Class DevStudioCompatibleCCompiler

java.lang.Object
  extended by com.github.maven_nar.cpptasks.compiler.AbstractProcessor
      extended by com.github.maven_nar.cpptasks.compiler.AbstractCompiler
          extended by com.github.maven_nar.cpptasks.compiler.CommandLineCompiler
              extended by com.github.maven_nar.cpptasks.compiler.PrecompilingCommandLineCompiler
                  extended by com.github.maven_nar.cpptasks.compiler.PrecompilingCommandLineCCompiler
                      extended by com.github.maven_nar.cpptasks.devstudio.DevStudioCompatibleCCompiler
All Implemented Interfaces:
Compiler, PrecompilingCompiler, Processor, Cloneable
Direct Known Subclasses:
DevStudio2005CCompiler, 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 com.github.maven_nar.cpptasks.compiler.AbstractProcessor
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
 
Constructor Summary
protected DevStudioCompatibleCCompiler(String command, String identifierArg, boolean newEnvironment, org.apache.tools.ant.types.Environment env)
           
 
Method Summary
protected  void addDebugSwitch(Vector args)
           
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 com.github.maven_nar.cpptasks.compiler.PrecompilingCommandLineCCompiler
createParser
 
Methods inherited from class com.github.maven_nar.cpptasks.compiler.PrecompilingCommandLineCompiler
createPrecompileConfigurations
 
Methods inherited from class com.github.maven_nar.cpptasks.compiler.CommandLineCompiler
addIncludes, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getCommandWithPath, getIdentifier, getIncludeDirSwitch, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumCommandLength, getMaximumInputFilesPerCommand, getTotalArgumentLengthForInputFile, runCommand, setCommand
 
Methods inherited from class com.github.maven_nar.cpptasks.compiler.AbstractCompiler
canParse, createConfiguration, getBaseOutputName, getOutputFileNames, parseIncludes, resolveInclude
 
Methods inherited from class com.github.maven_nar.cpptasks.compiler.AbstractProcessor
bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, isWindows, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.github.maven_nar.cpptasks.compiler.Processor
bid, changeEnvironment, getLinker
 

Constructor Detail

DevStudioCompatibleCCompiler

protected DevStudioCompatibleCCompiler(String command,
                                       String identifierArg,
                                       boolean newEnvironment,
                                       org.apache.tools.ant.types.Environment env)
Method Detail

addImpliedArgs

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

addDebugSwitch

protected void addDebugSwitch(Vector args)

addWarningSwitch

protected void addWarningSwitch(Vector args,
                                int level)
Specified by:
addWarningSwitch in class CommandLineCompiler

createPrecompileGeneratingConfig

protected CompilerConfiguration createPrecompileGeneratingConfig(CommandLineCompilerConfiguration baseConfig,
                                                                 File prototype,
                                                                 String lastInclude)
Specified by:
createPrecompileGeneratingConfig in class PrecompilingCommandLineCompiler

createPrecompileUsingConfig

protected CompilerConfiguration createPrecompileUsingConfig(CommandLineCompilerConfiguration baseConfig,
                                                            File prototype,
                                                            String lastInclude,
                                                            String[] exceptFiles)
Specified by:
createPrecompileUsingConfig in class PrecompilingCommandLineCompiler

getDefineSwitch

protected void getDefineSwitch(StringBuffer buffer,
                               String define,
                               String value)
Specified by:
getDefineSwitch in class CommandLineCompiler

getEnvironmentIncludePath

protected File[] getEnvironmentIncludePath()
Specified by:
getEnvironmentIncludePath in class CommandLineCompiler

getIncludeDirSwitch

protected String getIncludeDirSwitch(String includeDir)
Specified by:
getIncludeDirSwitch in class CommandLineCompiler

getUndefineSwitch

protected void getUndefineSwitch(StringBuffer buffer,
                                 String define)
Specified by:
getUndefineSwitch in class CommandLineCompiler


Copyright © 2001-2013. All Rights Reserved.