net.sf.antcontrib.cpptasks.compiler
Class PrecompilingCommandLineCompiler
- Cloneable, Compiler, PrecompilingCompiler, Processor
public abstract class PrecompilingCommandLineCompiler
A command line C compiler that can utilize precompilation of header files
addImpliedArgs , addIncludes , addWarningSwitch , buildDefineArguments , compile , createConfiguration , getArgumentCountPerInputFile , getCommand , getDefineSwitch , getEnvironmentIncludePath , getIdentifier , getIncludeDirSwitch , getInputFileArgument , getLibtool , getLibtoolCompiler , getMaximumCommandLength , getMaximumInputFilesPerCommand , getTotalArgumentLengthForInputFile , getUndefineSwitch , runCommand , setCommand |
bid , changeEnvironment , clone , getHeaderExtensions , getIdentifier , getIdentifier , getOSArch , getOSName , getSourceExtensions , isDarwin , toString |
PrecompilingCommandLineCompiler
protected PrecompilingCommandLineCompiler(String command,
String identifierArg,
String[] sourceExtensions,
String[] headerExtensions,
String outputSuffix,
boolean libtool,
PrecompilingCommandLineCompiler libtoolCompiler,
boolean newEnvironment,
Environment env)
createPrecompileConfigurations
public CompilerConfiguration[] createPrecompileConfigurations(CompilerConfiguration config,
File prototype,
String[] exceptFiles)
This method may be used to get two distinct compiler configurations, one
for compiling the specified file and producing a precompiled header
file, and a second for compiling other files using the precompiled
header file.
The last (preferrably only) include directive in the prototype file will
be used to mark the boundary between pre-compiled and normally compiled
headers.
- createPrecompileConfigurations in interface PrecompilingCompiler
config
- base configurationprototype
- A source file (for example, stdafx.cpp) that is used to build
the precompiled header file. @returns null if precompiled
headers are not supported or a two element array containing
the precompiled header generation configuration and the
consuming configuration
Copyright B) 2001-2006 Ant-Contrib project. All Rights Reserved.