org.eclipse.cdt.managedbuilder.makegen.gnu
Class DefaultGCCDependencyCalculator

java.lang.Object
  extended by org.eclipse.cdt.managedbuilder.makegen.gnu.DefaultGCCDependencyCalculator
All Implemented Interfaces:
IManagedDependencyGenerator, IManagedDependencyGeneratorType

public class DefaultGCCDependencyCalculator
extends java.lang.Object
implements IManagedDependencyGenerator

Since:
2.0

Field Summary
 java.lang.String WHITESPACE
           
 
Fields inherited from interface org.eclipse.cdt.managedbuilder.makegen.IManagedDependencyGeneratorType
TYPE_BUILD_COMMANDS, TYPE_COMMAND, TYPE_CUSTOM, TYPE_EXTERNAL, TYPE_INDEXER, TYPE_NODEPENDENCIES, TYPE_NODEPS, TYPE_OLD_TYPE_LIMIT, TYPE_PREBUILD_COMMANDS
 
Constructor Summary
DefaultGCCDependencyCalculator()
           
 
Method Summary
 org.eclipse.core.resources.IResource[] findDependencies(org.eclipse.core.resources.IResource resource, org.eclipse.core.resources.IProject project)
           
 int getCalculatorType()
          Returns the type of dependency generator that is implemented.
 java.lang.String getDependencyCommand(org.eclipse.core.resources.IResource resource, IManagedBuildInfo info)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WHITESPACE

public final java.lang.String WHITESPACE
See Also:
Constant Field Values
Constructor Detail

DefaultGCCDependencyCalculator

public DefaultGCCDependencyCalculator()
Method Detail

findDependencies

public org.eclipse.core.resources.IResource[] findDependencies(org.eclipse.core.resources.IResource resource,
                                                               org.eclipse.core.resources.IProject project)
Specified by:
findDependencies in interface IManagedDependencyGenerator

getCalculatorType

public int getCalculatorType()
Description copied from interface: IManagedDependencyGeneratorType
Returns the type of dependency generator that is implemented. TYPE_NODEPENDENCIES indicates that no dependency generator is supplied or needed. TYPE_CUSTOM indicates that a custom, "build file generation time" dependency calculator is implemented. Note that the dependency calculator will be called when the makefile is generated, and for every source file that is built by this tool in the build file, not just for those that have changed since the last build file generation. TYPE_BUILD_COMMANDS indicates that command lines or options will be returned to be used to calculate dependencies. These commands/options are added to the build file to perform dependency calculation at "build time". This currently supports compilers/tools that generate .d files either as a side-effect of tool invocation, or as a separate step that is invoked immediately before or after the tool invocation. TYPE_PREBUILD_COMMANDS indicates that a separate build step is invoked, prior to the the normal build steps, to update the dependency information. These commands are added to the build file to perform dependency calculation at "build time". Note that this step will be invoked every time a build is done in order to determine if dependency files need to be re-generated.

Specified by:
getCalculatorType in interface IManagedDependencyGeneratorType
Returns:
int

getDependencyCommand

public java.lang.String getDependencyCommand(org.eclipse.core.resources.IResource resource,
                                             IManagedBuildInfo info)
Specified by:
getDependencyCommand in interface IManagedDependencyGenerator