Package org.eclipse.cdt.managedbuilder.makegen

Examples of org.eclipse.cdt.managedbuilder.makegen.IManagedDependencyCalculator


        for (int i = 0; i < inputs.size(); i++) {

      depInfo = depGen2.getDependencySourceInfo(Path.fromOSString(inputs.get(i)), config, tool, makeGen.getBuildWorkingDir());

      if (depInfo instanceof IManagedDependencyCalculator) {
          IManagedDependencyCalculator depCalc = (IManagedDependencyCalculator) depInfo;
          IPath[] depPaths = depCalc.getDependencies();
          if (depPaths != null) {
        for (int j = 0; j < depPaths.length; j++) {
            if (!depPaths[j].isAbsolute()) {
          // Convert from project relative to
          // build directory relative
          IPath absolutePath = project.getLocation().append(depPaths[j]);
          depPaths[j] = ManagedBuildManager.calculateRelativePath(makeGen.getTopBuildDir(), absolutePath);
            }
            myCommandDependencies.add(depPaths[j].toString());
        }
          }
          IPath[] targetPaths = depCalc.getAdditionalTargets();
          if (targetPaths != null) {
        for (int j = 0; j < targetPaths.length; j++) {
            myAdditionalTargets.add(targetPaths[j].toString());
        }
          }
View Full Code Here


  if (oldDepGen != null && oldDepGen.getCalculatorType() != IManagedDependencyGeneratorType.TYPE_COMMAND) {
      addlDeps = oldCalculateDependenciesForSource(oldDepGen, tool, relativePath, resource);
  } else {
      if (depGen != null && depGen.getCalculatorType() == IManagedDependencyGeneratorType.TYPE_CUSTOM) {
    if (depInfo instanceof IManagedDependencyCalculator) {
        IManagedDependencyCalculator depCalculator = (IManagedDependencyCalculator) depInfo;
        addlDeps = calculateDependenciesForSource(depCalculator);
        addlTargets = depCalculator.getAdditionalTargets();
    }
      }
  }

  if (addlDeps != null && addlDeps.length > 0) {
View Full Code Here

TOP

Related Classes of org.eclipse.cdt.managedbuilder.makegen.IManagedDependencyCalculator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.