All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.antcontrib.cpptasks.intel.IntelLinux64CLinker Maven / Gradle / Ivy

Go to download

Third-party release of net.sf.antcontrib:cpptasks-parallel:1.0-beta-5-parallel-1-SNAPSHOT.

The newest version!
// FREEHEP
package net.sf.antcontrib.cpptasks.intel;
import net.sf.antcontrib.cpptasks.compiler.LinkType;
import net.sf.antcontrib.cpptasks.compiler.Linker;
import net.sf.antcontrib.cpptasks.gcc.AbstractLdLinker;
import net.sf.antcontrib.cpptasks.gcc.GccLibrarian;

public final class IntelLinux64CLinker extends AbstractLdLinker {
    private static final String[] discardFiles = new String[0];
    private static final String[] libtoolObjFiles = new String[]{".fo", ".a",
            ".lib", ".dll", ".so", ".sl"};
    private static final String[] objFiles = new String[]{".o", ".a", ".lib",
            ".dll", ".so", ".sl"};
    private static final IntelLinux64CLinker dllLinker = new IntelLinux64CLinker(
            "lib", ".so", false, new IntelLinux64CLinker("lib", ".so", true,
                    null));
    private static final IntelLinux64CLinker instance = new IntelLinux64CLinker(
            "", "", false, null);
    public static IntelLinux64CLinker getInstance() {
        return instance;
    }
    private IntelLinux64CLinker(String outputPrefix, String outputSuffix,
            boolean isLibtool, IntelLinux64CLinker libtoolLinker) {
        super("ecc", "-V", objFiles, discardFiles, outputPrefix, outputSuffix,
                isLibtool, libtoolLinker);
    }
    public Linker getLinker(LinkType type) {
        if (type.isStaticLibrary()) {
            return GccLibrarian.getInstance();
        }
        if (type.isSharedLibrary()) {
            return dllLinker;
        }
        return instance;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy