net.sf.antcontrib.cpptasks.compiler

Interface CompilerConfiguration

public interface CompilerConfiguration extends ProcessorConfiguration

A configuration for a compiler

Author: Curt Arnold

Method Summary
voidcompile(CCTask task, File outputDir, String[] sourceFiles, boolean relentless, ProgressMonitor monitor)
CompilerConfiguration[]createPrecompileConfigurations(File prototype, String[] nonPrecompiledFiles)
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.
StringgetIncludePathIdentifier()
Returns an digest for the include path for the configuration.
CompilerParamgetParam(String name)
booleanisPrecompileGeneration()
DependencyInfoparseIncludes(CCTask task, File baseDir, File source)

Method Detail

compile

public void compile(CCTask task, File outputDir, String[] sourceFiles, boolean relentless, ProgressMonitor monitor)

createPrecompileConfigurations

public CompilerConfiguration[] createPrecompileConfigurations(File prototype, String[] nonPrecompiledFiles)
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.

Parameters: prototype 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

getIncludePathIdentifier

public String getIncludePathIdentifier()
Returns an digest for the include path for the configuration. This is used to determine if cached dependency information is invalid because the include paths have changed

getParam

public CompilerParam getParam(String name)

isPrecompileGeneration

public boolean isPrecompileGeneration()

parseIncludes

public DependencyInfo parseIncludes(CCTask task, File baseDir, File source)
Copyright ? 2001-2011 Ant-Contrib project. All Rights Reserved.