]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Java/Source/Cpptasks/net/sf/antcontrib/cpptasks/gcc/LdLinker.java
Retiring the ANT/JAVA build and removing the older EDK II packages that required...
[mirror_edk2.git] / Tools / Java / Source / Cpptasks / net / sf / antcontrib / cpptasks / gcc / LdLinker.java
diff --git a/Tools/Java/Source/Cpptasks/net/sf/antcontrib/cpptasks/gcc/LdLinker.java b/Tools/Java/Source/Cpptasks/net/sf/antcontrib/cpptasks/gcc/LdLinker.java
deleted file mode 100644 (file)
index e05fa5b..0000000
+++ /dev/null
@@ -1,57 +0,0 @@
-/*\r
- * \r
- * Copyright 2001-2004 The Ant-Contrib project\r
- *\r
- *  Licensed under the Apache License, Version 2.0 (the "License");\r
- *  you may not use this file except in compliance with the License.\r
- *  You may obtain a copy of the License at\r
- *\r
- *      http://www.apache.org/licenses/LICENSE-2.0\r
- *\r
- *  Unless required by applicable law or agreed to in writing, software\r
- *  distributed under the License is distributed on an "AS IS" BASIS,\r
- *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- *  See the License for the specific language governing permissions and\r
- *  limitations under the License.\r
- */\r
-package net.sf.antcontrib.cpptasks.gcc;\r
-import java.io.File;\r
-\r
-import net.sf.antcontrib.cpptasks.compiler.LinkType;\r
-import net.sf.antcontrib.cpptasks.compiler.Linker;\r
-/**\r
- * Adapter for the 'ld' linker\r
- * \r
- * @author Curt Arnold\r
- */\r
-public final class LdLinker extends AbstractLdLinker {\r
-    private static final String[] discardFiles = new String[0];\r
-    private static final String[] objFiles = new String[]{".o", ".a", ".lib",\r
-            ".dll", ".so", ".sl"};\r
-    private static final LdLinker dllLinker = new LdLinker("ld", objFiles,\r
-            discardFiles, "lib", ".so", false, new LdLinker("ld", objFiles,\r
-                    discardFiles, "lib", ".so", true, null));\r
-    private static final LdLinker instance = new LdLinker("ld", objFiles,\r
-            discardFiles, "", "", false, null);\r
-    private static final String[] libtoolObjFiles = new String[]{".fo", ".a",\r
-            ".lib", ".dll", ".so", ".sl"};\r
-    public static LdLinker getInstance() {\r
-        return instance;\r
-    }\r
-    private File[] libDirs;\r
-    private LdLinker(String command, String[] extensions,\r
-            String[] ignoredExtensions, String outputPrefix,\r
-            String outputSuffix, boolean isLibtool, LdLinker libtoolLinker) {\r
-        super(command, "-version", extensions, ignoredExtensions, outputPrefix,\r
-                outputSuffix, isLibtool, libtoolLinker);\r
-    }\r
-    public Linker getLinker(LinkType type) {\r
-        if (type.isStaticLibrary()) {\r
-            return GccLibrarian.getInstance();\r
-        }\r
-        if (type.isSharedLibrary()) {\r
-            return dllLinker;\r
-        }\r
-        return instance;\r
-    }\r
-}\r