public abstract class PrecompilingCommandLineCompiler extends CommandLineCompiler implements PrecompilingCompiler
objDir, workDir
DEFAULT_DISCARD_BID, DEFAULT_PROCESS_BID
Modifier | Constructor and Description |
---|---|
protected |
PrecompilingCommandLineCompiler(String command,
String identifierArg,
String[] sourceExtensions,
String[] headerExtensions,
String outputSuffix,
boolean libtool,
PrecompilingCommandLineCompiler libtoolCompiler,
boolean newEnvironment,
org.apache.tools.ant.types.Environment env) |
Modifier and Type | Method and Description |
---|---|
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.
|
protected abstract CompilerConfiguration |
createPrecompileGeneratingConfig(CommandLineCompilerConfiguration baseConfig,
File prototype,
String lastInclude) |
protected abstract CompilerConfiguration |
createPrecompileUsingConfig(CommandLineCompilerConfiguration baseConfig,
File prototype,
String lastInclude,
String[] exceptFiles) |
addImpliedArgs, addIncludes, addWarningSwitch, buildDefineArguments, compile, createConfiguration, getArgumentCountPerInputFile, getCommand, getCommandWithPath, getDefineSwitch, getEnvironmentIncludePath, getIdentifier, getIncludeDirSwitch, getIncludeDirSwitch, getInputFileArgument, getLibtool, getLibtoolCompiler, getMaximumCommandLength, getMaximumInputFilesPerCommand, getOutputFileNames, getTotalArgumentLengthForInputFile, getUndefineSwitch, runCommand, setCommand
canParse, createConfiguration, createParser, getBaseOutputName, getOutputSuffix, parseIncludes, resolveInclude, setObjDir, setWorkDir
bid, changeEnvironment, clone, getHeaderExtensions, getIdentifier, getOSArch, getOSName, getSourceExtensions, isDarwin, isWindows, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
bid, changeEnvironment, getLinker
protected PrecompilingCommandLineCompiler(String command, String identifierArg, String[] sourceExtensions, String[] headerExtensions, String outputSuffix, boolean libtool, PrecompilingCommandLineCompiler libtoolCompiler, boolean newEnvironment, org.apache.tools.ant.types.Environment env)
public CompilerConfiguration[] createPrecompileConfigurations(CompilerConfiguration config, File prototype, String[] exceptFiles)
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 configurationprotected abstract CompilerConfiguration createPrecompileGeneratingConfig(CommandLineCompilerConfiguration baseConfig, File prototype, String lastInclude)
protected abstract CompilerConfiguration createPrecompileUsingConfig(CommandLineCompilerConfiguration baseConfig, File prototype, String lastInclude, String[] exceptFiles)
Copyright © 2005-2016 NAR Maven Plugin developers. All Rights Reserved.