]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/Cpptasks/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleLibrarian.java
Restructuring for better separation of Tool packages.
[mirror_edk2.git] / Tools / Source / Cpptasks / net / sf / antcontrib / cpptasks / devstudio / DevStudioCompatibleLibrarian.java
diff --git a/Tools/Source/Cpptasks/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleLibrarian.java b/Tools/Source/Cpptasks/net/sf/antcontrib/cpptasks/devstudio/DevStudioCompatibleLibrarian.java
deleted file mode 100644 (file)
index 40bef6e..0000000
+++ /dev/null
@@ -1,86 +0,0 @@
-/*\r
- * \r
- * Copyright 2002-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.devstudio;\r
-import java.io.File;\r
-import java.util.Vector;\r
-\r
-import net.sf.antcontrib.cpptasks.compiler.CommandLineLinker;\r
-import net.sf.antcontrib.cpptasks.compiler.LinkType;\r
-import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum;\r
-/**\r
- * Abstract base adapter for librarians with command line options compatible\r
- * with the Microsoft(r) Library Manager\r
- * \r
- * @author Curt Arnold\r
- */\r
-public abstract class DevStudioCompatibleLibrarian extends CommandLineLinker {\r
-    private static String[] defaultflags = new String[]{"/nologo"};\r
-    public DevStudioCompatibleLibrarian(String command, String identifierArg) {\r
-        super(command, identifierArg, new String[]{".obj"}, new String[0],\r
-                ".lib", false, null);\r
-    }\r
-    protected void addBase(long base, Vector args) {\r
-    }\r
-    protected void addFixed(Boolean fixed, Vector args) {\r
-    }\r
-    protected void addImpliedArgs(boolean debug, LinkType linkType, \r
-        Vector args, Boolean defaultflag) {\r
-        if(defaultflag != null && defaultflag.booleanValue()){\r
-            for (int i = 0; i < defaultflags.length; i++) {\r
-                args.addElement(defaultflags[i]);\r
-            }\r
-        }\r
-    }\r
-    protected void addIncremental(boolean incremental, Vector args) {\r
-    }\r
-    protected void addMap(boolean map, Vector args) {\r
-    }\r
-    protected void addStack(int stack, Vector args) {\r
-    }\r
-    /* (non-Javadoc)\r
-     * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addEntry(int, java.util.Vector)\r
-     */\r
-    protected void addEntry(String entry, Vector args) {\r
-    }\r
-    \r
-    protected String getCommandFileSwitch(String cmdFile) {\r
-        return "@" + cmdFile;\r
-    }\r
-    public File[] getLibraryPath() {\r
-        return new File[0];\r
-    }\r
-    public String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) {\r
-        return new String[0];\r
-    }\r
-    public int getMaximumCommandLength() {\r
-        return 4096;\r
-    }\r
-    public String[] getOutputFileSwitch(String outFile) {\r
-        StringBuffer buf = new StringBuffer("/OUT:");\r
-        if (outFile.indexOf(' ') >= 0) {\r
-            buf.append('"');\r
-            buf.append(outFile);\r
-            buf.append('"');\r
-        } else {\r
-            buf.append(outFile);\r
-        }\r
-        return new String[]{buf.toString()};\r
-    }\r
-    public boolean isCaseSensitive() {\r
-        return false;\r
-    }\r
-}\r