Package org.eclipse.cdt.managedbuilder.core

Examples of org.eclipse.cdt.managedbuilder.core.IInputType


  HashMap<String, List<IPath>> myOutputMacros = new HashMap<String, List<IPath>>();

  IInputType[] inTypes = tool.getInputTypes();
  if (inTypes != null && inTypes.length > 0) {
      for (int i = 0; i < inTypes.length; i++) {
    IInputType type = inTypes[i];

    // Handle dependencies from the dependencyCalculator
    IManagedDependencyGeneratorType depGen = type.getDependencyGenerator();
    String[] extensionsList = type.getSourceExtensions(tool);
    if (depGen != null) {
        done = callDependencyCalculator(makeGen, config, handledInputExtensions, depGen, extensionsList, myCommandDependencies,
          myOutputMacros, myAdditionalTargets, h, done);
    }

    // Add additional dependencies specified in AdditionalInput
    // elements
    IAdditionalInput[] addlInputs = type.getAdditionalInputs();
    if (addlInputs != null && addlInputs.length > 0) {
        for (int j = 0; j < addlInputs.length; j++) {
      IAdditionalInput addlInput = addlInputs[j];
      int kind = addlInput.getKind();
      if (kind == IAdditionalInput.KIND_ADDITIONAL_DEPENDENCY || kind == IAdditionalInput.KIND_ADDITIONAL_INPUT_DEPENDENCY) {
View Full Code Here


  // consume the output of those tools. This does not apply to pre-3.0
  // integrations, since
  // the only "multipleOfType" tool is the "target" tool
  for (int i = 0; i < buildTools.length; i++) {
      ITool tool = buildTools[i];
      IInputType type = tool.getPrimaryInputType();
      if (type != null && type.getMultipleOfType()) {
    if (!buildToolsUsed[i]) {
        addRuleForTool(tool, buffer, false, null, null, outputVarsAdditionsList, null, false);
        // Mark the target tool as processed
        buildToolsUsed[i] = true;
        // Look for tools that consume the output
View Full Code Here

    for (String outExt : outExts) {
        for (int k = 0; k < buildTools.length; k++) {
      ITool tool = buildTools[k];
      if (!buildToolsUsed[k]) {
          // Also has to match build variables if specified
          IInputType inType = tool.getInputType(outExt);
          if (inType != null) {
        String inVariable = inType.getBuildVariable();
        if ((outVariable == null && inVariable == null)
          || (outVariable != null && inVariable != null && outVariable.equals(inVariable))) {
            if (addRuleForTool(buildTools[k], buffer, false, null, null, outputVarsAdditionsList, null, false)) {
          buildToolsUsed[k] = true;
          // Look for tools that consume the
View Full Code Here

      }
  }

  if (tool != null) {
      // Generate the rule to build this source file
      IInputType primaryInputType = tool.getPrimaryInputType();
      IInputType inputType = tool.getInputType(ext);
      if ((primaryInputType != null && !primaryInputType.getMultipleOfType()) || (inputType == null && tool != config.calculateTargetTool())) {

    // Try to add the rule for the file
    Vector<IPath> generatedOutputs = new Vector<IPath>(); // IPath's
                      // - build
View Full Code Here

TOP

Related Classes of org.eclipse.cdt.managedbuilder.core.IInputType

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.