]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/Cpptasks/net/sf/antcontrib/cpptasks/ti/ClxxLibrarian.java
Changed spelling to manifest
[mirror_edk2.git] / Tools / Source / Cpptasks / net / sf / antcontrib / cpptasks / ti / ClxxLibrarian.java
CommitLineData
878ddf1f 1/*\r
2 * \r
3 * Copyright 2001-2004 The Ant-Contrib project\r
4 *\r
5 * Licensed under the Apache License, Version 2.0 (the "License");\r
6 * you may not use this file except in compliance with the License.\r
7 * You may obtain a copy of the License at\r
8 *\r
9 * http://www.apache.org/licenses/LICENSE-2.0\r
10 *\r
11 * Unless required by applicable law or agreed to in writing, software\r
12 * distributed under the License is distributed on an "AS IS" BASIS,\r
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
14 * See the License for the specific language governing permissions and\r
15 * limitations under the License.\r
16 */\r
17package net.sf.antcontrib.cpptasks.ti;\r
18import java.io.File;\r
19import java.util.Vector;\r
20\r
21import net.sf.antcontrib.cpptasks.compiler.CommandLineLinker;\r
22import net.sf.antcontrib.cpptasks.compiler.LinkType;\r
23import net.sf.antcontrib.cpptasks.compiler.Linker;\r
24import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum;\r
25\r
26/**\r
27 * \r
28 * Adapter for TI DSP librarian\r
29 * *\r
30 * @author CurtA\r
31 */\r
32public class ClxxLibrarian extends CommandLineLinker {\r
33 private static final ClxxLibrarian cl55Instance = new ClxxLibrarian("ar55");\r
34 private static final ClxxLibrarian cl6xInstance = new ClxxLibrarian("ar6x");\r
35 public static final ClxxLibrarian getCl55Instance() {\r
36 return cl55Instance;\r
37 }\r
38 public static final ClxxLibrarian getCl6xInstance() {\r
39 return cl6xInstance;\r
40 }\r
41 private ClxxLibrarian(String command) {\r
42 super(command, null, new String[]{".o"}, new String[0], ".lib", false,\r
43 null);\r
44 }\r
45 /*\r
46 * (non-Javadoc)\r
47 * \r
48 * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addBase(long,\r
49 * java.util.Vector)\r
50 */\r
51 protected void addBase(long base, Vector args) {\r
52 // TODO Auto-generated method stub\r
53 }\r
54 /*\r
55 * (non-Javadoc)\r
56 * \r
57 * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addFixed(java.lang.Boolean,\r
58 * java.util.Vector)\r
59 */\r
60 protected void addFixed(Boolean fixed, Vector args) {\r
61 // TODO Auto-generated method stub\r
62 }\r
63 /*\r
64 * (non-Javadoc)\r
65 * \r
66 * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addImpliedArgs(boolean,\r
67 * net.sf.antcontrib.cpptasks.compiler.LinkType, java.util.Vector)\r
68 */\r
69 protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args, Boolean defaultflag) {\r
70 // TODO Auto-generated method stub\r
71 }\r
72 /*\r
73 * (non-Javadoc)\r
74 * \r
75 * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addIncremental(boolean,\r
76 * java.util.Vector)\r
77 */\r
78 protected void addIncremental(boolean incremental, Vector args) {\r
79 // TODO Auto-generated method stub\r
80 }\r
81 /*\r
82 * (non-Javadoc)\r
83 * \r
84 * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addMap(boolean,\r
85 * java.util.Vector)\r
86 */\r
87 protected void addMap(boolean map, Vector args) {\r
88 // TODO Auto-generated method stub\r
89 }\r
90 /*\r
91 * (non-Javadoc)\r
92 * \r
93 * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addStack(int,\r
94 * java.util.Vector)\r
95 */\r
96 protected void addStack(int stack, Vector args) {\r
97 // TODO Auto-generated method stub\r
98 }\r
99 /* (non-Javadoc)\r
100 * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addEntry(int, java.util.Vector)\r
101 */\r
102 protected void addEntry(String entry, Vector args) {\r
103 }\r
104 \r
105 /*\r
106 * (non-Javadoc)\r
107 * \r
108 * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#getCommandFileSwitch(java.lang.String)\r
109 */\r
110 protected String getCommandFileSwitch(String commandFile) {\r
111 return "@" + commandFile;\r
112 }\r
113 /*\r
114 * (non-Javadoc)\r
115 * \r
116 * @see net.sf.antcontrib.cpptasks.compiler.Linker#getLibraryPath()\r
117 */\r
118 public File[] getLibraryPath() {\r
119 return new File[0];\r
120 }\r
121 /*\r
122 * (non-Javadoc)\r
123 * \r
124 * @see net.sf.antcontrib.cpptasks.compiler.Linker#getLibraryPatterns(java.lang.String[])\r
125 */\r
126 public String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) {\r
127 return new String[0];\r
128 }\r
129 /*\r
130 * (non-Javadoc)\r
131 * \r
132 * @see net.sf.antcontrib.cpptasks.compiler.Processor#getLinker(net.sf.antcontrib.cpptasks.compiler.LinkType)\r
133 */\r
134 public Linker getLinker(LinkType linkType) {\r
135 return null;\r
136 }\r
137 /*\r
138 * (non-Javadoc)\r
139 * \r
140 * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#getMaximumCommandLength()\r
141 */\r
142 protected int getMaximumCommandLength() {\r
143 return 1024;\r
144 }\r
145 /*\r
146 * (non-Javadoc)\r
147 * \r
148 * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#getOutputFileSwitch(java.lang.String)\r
149 */\r
150 protected String[] getOutputFileSwitch(String outputFile) {\r
151 return new String[]{"-o", outputFile};\r
152 }\r
153 /*\r
154 * (non-Javadoc)\r
155 * \r
156 * @see net.sf.antcontrib.cpptasks.compiler.Linker#isCaseSensitive()\r
157 */\r
158 public boolean isCaseSensitive() {\r
159 // TODO Auto-generated method stub\r
160 return false;\r
161 }\r
162}\r