|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.managedbuilder.makegen.gnu.DefaultGCCDependencyCalculator3Commands
public class DefaultGCCDependencyCalculator3Commands
This dependency calculator uses the same dependency management technique as the DefaultGCCDependencyCalculator. That is: 1. An echo command creates the dependency file (.d). 2. A second invocation of the compiler is made in order to append to the dependency file. The additional options -MM -MG -P -w are added to the command line. 3. The dependency files are post-processed to add the empty header rules. This class is used with DefaultGCCDependencyCalculator3. This is an example dependency calculator that is not used by the CDT GCC tool-chain.
Constructor Summary | |
---|---|
DefaultGCCDependencyCalculator3Commands(org.eclipse.core.runtime.IPath source,
IBuildObject buildContext,
ITool tool,
org.eclipse.core.runtime.IPath topBuildDirectory)
Constructor. |
|
DefaultGCCDependencyCalculator3Commands(org.eclipse.core.runtime.IPath source,
org.eclipse.core.resources.IResource resource,
IBuildObject buildContext,
ITool tool,
org.eclipse.core.runtime.IPath topBuildDirectory)
Constructor |
Method Summary | |
---|---|
boolean |
areCommandsGeneric()
Returns true if the command lines and/or options returned by this interface are not specific to the particular source file, but are only specific to, at most, the configuration and tool. |
IBuildObject |
getBuildContext()
|
java.lang.String[] |
getDependencyCommandOptions()
Returns the command line options to be used to calculate dependencies. |
org.eclipse.core.runtime.IPath[] |
getDependencyFiles()
Returns the list of generated dependency files. |
java.lang.String[] |
getPostToolDependencyCommands()
Returns the command lines to be invoked after the normal tool invocation to calculate dependencies. |
java.lang.String[] |
getPreToolDependencyCommands()
Returns the command lines to be invoked before the normal tool invocation to calculate dependencies. |
org.eclipse.core.runtime.IPath |
getSource()
|
ITool |
getTool()
|
org.eclipse.core.runtime.IPath |
getTopBuildDirectory()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultGCCDependencyCalculator3Commands(org.eclipse.core.runtime.IPath source, org.eclipse.core.resources.IResource resource, IBuildObject buildContext, ITool tool, org.eclipse.core.runtime.IPath topBuildDirectory)
source
- The source file for which dependencies should be calculated
The IPath can be either relative to the project directory, or absolute in the file system.buildContext
- The IConfiguration or IResourceConfiguration that
contains the context in which the source file will be builttool
- The tool associated with the source filetopBuildDirectory
- The top build directory of the configuration. This is
the working directory for the tool. This IPath is relative to the project directory.public DefaultGCCDependencyCalculator3Commands(org.eclipse.core.runtime.IPath source, IBuildObject buildContext, ITool tool, org.eclipse.core.runtime.IPath topBuildDirectory)
source
- The source file for which dependencies should be calculated
The IPath can be either relative to the project directory, or
absolute in the file system.buildContext
- The IConfiguration or IResourceConfiguration that contains the
context in which the source file will be builttool
- The tool associated with the source filetopBuildDirectory
- The top build directory of the configuration. This is the
working directory for the tool. This IPath is relative to the
project directory.DefaultGCCDependencyCalculator3Commands(IPath source, IResource resource, IBuildObject buildContext, ITool tool, IPath topBuildDirectory)
Method Detail |
---|
public boolean areCommandsGeneric()
IManagedDependencyCommands
areCommandsGeneric
in interface IManagedDependencyCommands
public java.lang.String[] getDependencyCommandOptions()
IManagedDependencyCommands
getDependencyCommandOptions
in interface IManagedDependencyCommands
public org.eclipse.core.runtime.IPath[] getDependencyFiles()
IManagedDependencyCommands
getDependencyFiles
in interface IManagedDependencyCommands
public java.lang.String[] getPostToolDependencyCommands()
IManagedDependencyCommands
getPostToolDependencyCommands
in interface IManagedDependencyCommands
public java.lang.String[] getPreToolDependencyCommands()
IManagedDependencyCommands
getPreToolDependencyCommands
in interface IManagedDependencyCommands
public IBuildObject getBuildContext()
getBuildContext
in interface IManagedDependencyInfo
public org.eclipse.core.runtime.IPath getSource()
getSource
in interface IManagedDependencyInfo
public ITool getTool()
getTool
in interface IManagedDependencyInfo
public org.eclipse.core.runtime.IPath getTopBuildDirectory()
getTopBuildDirectory
in interface IManagedDependencyInfo
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |