|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.managedbuilder.makegen.gnu.DefaultGCCDependencyCalculator2Commands
public class DefaultGCCDependencyCalculator2Commands
This dependency calculator uses the GCC -MMD -MF -MP -MT options in order to generate .d files as a side effect of compilation. See bugzilla 108715 for the discussion of dependency management that led to the creation of this dependency calculator. Note also that this technique exhibits the failure modes discussed in comment #5. This class is used with DefaultGCCDependencyCalculator2.
Constructor Summary | |
---|---|
DefaultGCCDependencyCalculator2Commands(org.eclipse.core.runtime.IPath source,
IBuildObject buildContext,
ITool tool,
org.eclipse.core.runtime.IPath topBuildDirectory)
Constructor. |
|
DefaultGCCDependencyCalculator2Commands(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 DefaultGCCDependencyCalculator2Commands(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.resource
- The IResource corresponding to the source file.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 DefaultGCCDependencyCalculator2Commands(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.DefaultGCCDependencyCalculator2Commands(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 |