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