Package com.github.maven_nar.cpptasks.compiler

Examples of com.github.maven_nar.cpptasks.compiler.Linker


     */
    public void setName(LinkerEnum name) throws BuildException {
        if (isReference()) {
            throw tooManyAttributes();
        }
        Linker linker = name.getLinker();
        super.setProcessor(linker);
    }
View Full Code Here


        }
        Linker linker = name.getLinker();
        super.setProcessor(linker);
    }
    protected void setProcessor(Processor proc) throws BuildException {
        Linker linker = null;
        if (proc instanceof Linker) {
            linker = (Linker) proc;
        } else {
            LinkType linkType = new LinkType();
            linker = proc.getLinker(linkType);
View Full Code Here

   * results in the singleton GCC linker.
   */
  public void testGetGcc() {
    LinkerDef linkerDef = (LinkerDef) create();
    linkerDef.setClassname("com.github.maven_nar.cpptasks.gcc.GccLinker");
    Linker comp = (Linker) linkerDef.getProcessor();
    assertNotNull(comp);
    assertSame(GccLinker.getInstance(), comp);
  }
View Full Code Here

   */
  public void testGetMSVC() {
    LinkerDef linkerDef = (LinkerDef) create();
    linkerDef
        .setClassname("com.github.maven_nar.cpptasks.devstudio.DevStudioLinker");
    Linker comp = (Linker) linkerDef.getProcessor();
    assertNotNull(comp);
    assertSame(DevStudioLinker.getInstance(), comp);
  }
View Full Code Here

   * expect one matching file.
   *
   * @throws IOException if unable to create or delete temporary file
   */
  public final void testLinkerVisitFiles() throws IOException {
    Linker linker = DevStudioLinker.getInstance();
    testVisitFiles(linker, 1);
  }
View Full Code Here

   * expect one matching file.
   *
   * @throws IOException if unable to create or delete temporary file
   */
  public final void testLibrarianVisitFiles() throws IOException {
    Linker linker = DevStudioLibrarian.getInstance();
    testVisitFiles(linker, 0);
  }
View Full Code Here

TOP

Related Classes of com.github.maven_nar.cpptasks.compiler.Linker

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.