]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/Cpptasks/net/sf/antcontrib/cpptasks/userdefine/UserDefineMapping.java
Restructuring for better separation of Tool packages.
[mirror_edk2.git] / Tools / Source / Cpptasks / net / sf / antcontrib / cpptasks / userdefine / UserDefineMapping.java
diff --git a/Tools/Source/Cpptasks/net/sf/antcontrib/cpptasks/userdefine/UserDefineMapping.java b/Tools/Source/Cpptasks/net/sf/antcontrib/cpptasks/userdefine/UserDefineMapping.java
deleted file mode 100644 (file)
index 491cadd..0000000
+++ /dev/null
@@ -1,87 +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.userdefine;\r
-\r
-/**\r
- * Relationship between {family, command type} and flags\r
- * \r
- */\r
-public class UserDefineMapping {\r
-\r
-    /**\r
-     * Mapping info: include path delimiter <--> family (vendor) + command type\r
-     */\r
-    public static final String[][] includePathFlag = { { "MSFT_CC", "/I" },\r
-                    { "GCC_CC", "-I" }, { "INTEL_CC", "/I" },\r
-                    { "WINDDK_CC", "/I" }, { "MSFT_ASM", "/I" },\r
-                    { "GCC_ASM", "-I" }, { "WINDDK_CC", "/I" },\r
-                    { "MSFT_PP", "/I" }, { "GCC_PP", "-I" },\r
-                    { "WINDDK_PP", "/I" } };\r
-\r
-    /**\r
-     * Mapping info: output file flag <--> family (vendor) + command type\r
-     */\r
-    public static final String[][] outputFileFlag = { { "MSFT_CC", "/Fo" },\r
-                    { "GCC_CC", "-o" }, { "INTEL_CC", "/Fo" },\r
-                    { "WINDDK_CC", "/Fo" }, { "MSFT_SLINK", "/OUT:" },\r
-                    { "GCC_SLINK", "-cr" }, { "INTEL_SLINK", "/OUT:" },\r
-                    { "WINDDK_SLINK", "/OUT:" }, { "MSFT_DLINK", "/OUT:" },\r
-                    { "GCC_DLINK", "-o" }, { "INTEL_DLINK", "/OUT:" },\r
-                    { "WINDDK_DLINK", "/OUT:" }, { "MSFT_ASM", "/Fo" },\r
-                    { "GCC_ASM", "-o" }, { "WINDDK_ASM", "/Fo" },\r
-                    { "WINDDK_IPF_ASM", "-o" } };\r
-\r
-    /**\r
-     * Get include delimiter with vendow and command type.\r
-     * \r
-     * @param vendor\r
-     *            Vendor\r
-     * @param commandType\r
-     *            Command Type\r
-     * @return include path delimiter\r
-     */\r
-    public static String getIncludePathDelimiter(String vendor,\r
-                    String commandType) {\r
-        String key = vendor + "_" + commandType;\r
-        for (int i = 0; i < includePathFlag.length; i++) {\r
-            if (includePathFlag[i][0].equalsIgnoreCase(key)) {\r
-                return includePathFlag[i][1];\r
-            }\r
-        }\r
-        return "/I";\r
-    }\r
-\r
-    /**\r
-     * Get Output Flag with vendor and command type.\r
-     * \r
-     * @param vendor\r
-     *            Vendor\r
-     * @param commandType\r
-     *            Command Type\r
-     * @return Output File Flag\r
-     */\r
-    public static String getOutputFileFlag(String vendor, String commandType) {\r
-        String key = vendor + "_" + commandType;\r
-        for (int i = 0; i < outputFileFlag.length; i++) {\r
-            if (outputFileFlag[i][0].equalsIgnoreCase(key)) {\r
-                return outputFileFlag[i][1];\r
-            }\r
-        }\r
-        return "/Fo";\r
-    }\r
-\r
-}
\ No newline at end of file