Examples of TargetInfo


Examples of com.android.builder.sdk.TargetInfo

        }

        SdkLoader sdkLoader = getSdkLoader();

        SdkInfo sdkInfo = sdkLoader.getSdkInfo(logger);
        TargetInfo targetInfo = sdkLoader.getTargetInfo(targetHash, buildToolRevision, logger);

        androidBuilder.setTargetInfo(sdkInfo, targetInfo);
    }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.TargetInfo

        //
        //   get the first target and assume that it is representative
        //
        Iterator<TargetInfo> targetIter = targets.values().iterator();
        while (targetIter.hasNext()) {
            TargetInfo targetInfo = targetIter.next();
            ProcessorConfiguration config = targetInfo.getConfiguration();
            //
            //   for the first cl compiler
            //
            if (config instanceof CommandLineCompilerConfiguration) {
                CommandLineCompilerConfiguration compilerConfig =
View Full Code Here

Examples of com.github.maven_nar.cpptasks.TargetInfo

    //
    //   get the first target and assume that it is representative
    //
    Iterator<TargetInfo> targetIter = targets.values().iterator();
    while (targetIter.hasNext()) {
      TargetInfo targetInfo = targetIter.next();
      ProcessorConfiguration config = targetInfo.getConfiguration();
      //
      //   for the first cl compiler
      //
      if (config instanceof CommandLineCompilerConfiguration) {
        compilerConfig = (CommandLineCompilerConfiguration) config;
View Full Code Here

Examples of com.github.maven_nar.cpptasks.TargetInfo

  public void testGetTargetsToBuildByConfiguration1() {
    CompilerConfiguration config1 = new CommandLineCompilerConfiguration(
        (GccCCompiler) GccCCompiler.getInstance(), "dummy",
        new File[0], new File[0], new File[0], "", new String[0],
        new ProcessorParam[0], true, new String[0]);
    TargetInfo target1 = new TargetInfo(config1, new File[] {new File(
        "src/foo.bar")}
                                        , null, new File("foo.obj"), true);
    Map targets = new HashMap();
    targets.put(target1.getOutput(), target1);
    Map targetsByConfig = CCTask
        .getTargetsToBuildByConfiguration(targets);
    Vector targetsForConfig1 = (Vector) targetsByConfig.get(config1);
    assertNotNull(targetsForConfig1);
    assertEquals(1, targetsForConfig1.size());
    TargetInfo targetx = (TargetInfo) targetsForConfig1.elementAt(0);
    assertSame(target1, targetx);
  }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.TargetInfo

        new File[0], new File[0], new File[0], "", new String[0],
        new ProcessorParam[0], false, new String[0]);
    //
    //    target doesn't need to be rebuilt
    //
    TargetInfo target1 = new TargetInfo(config1, new File[] {new File(
        "src/foo.bar")}
                                        , null, new File("foo.obj"), false);
    Map targets = new HashMap();
    targets.put(target1.getOutput(), target1);
    //
    //    no targets need to be built, return a zero-length hashtable
    //
    Map targetsByConfig = CCTask
        .getTargetsToBuildByConfiguration(targets);
View Full Code Here

Examples of com.github.maven_nar.cpptasks.TargetInfo

    public TestTargetInfo(String name) {
        super(name);
    }
    public void testConstructorNullConfig() {
        try {
            new TargetInfo(null, new File[]{new File("")}, null, new File(""),
                    false);
            fail("Didn't throw exception");
        } catch (NullPointerException ex) {
        }
    }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.TargetInfo

        }
    }
    public void testConstructorNullOutput() {
        CompilerConfiguration config = new DummyConfiguration();
        try {
            new TargetInfo(config, new File[]{new File("")}, null, null, false);
            fail("Didn't throw exception");
        } catch (NullPointerException ex) {
        }
    }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.TargetInfo

        }
    }
    public void testConstructorNullSource() {
        CompilerConfiguration config = new DummyConfiguration();
        try {
            new TargetInfo(config, null, null, new File(""), false);
            fail("Didn't throw exception");
        } catch (NullPointerException ex) {
        }
    }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.TargetInfo

        } catch (NullPointerException ex) {
        }
    }
    public void testGetRebuild() {
        CompilerConfiguration config = new DummyConfiguration();
        TargetInfo targetInfo = new TargetInfo(config, new File[]{new File(
                "FoO.BaR")}, null, new File("foo.o"), false);
        assertEquals(false, targetInfo.getRebuild());
        targetInfo = new TargetInfo(config, new File[]{new File("FoO.BaR")},
                null, new File("foo.o"), true);
        assertEquals(true, targetInfo.getRebuild());
    }
View Full Code Here

Examples of com.github.maven_nar.cpptasks.TargetInfo

                null, new File("foo.o"), true);
        assertEquals(true, targetInfo.getRebuild());
    }
    public void testGetSource() {
        CompilerConfiguration config = new DummyConfiguration();
        TargetInfo targetInfo = new TargetInfo(config, new File[]{new File(
                "FoO.BaR")}, null, new File("foo.o"), false);
        String source = targetInfo.getSources()[0].getName();
        assertEquals(source, "FoO.BaR");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.