3 * Copyright 2001-2004 The Ant-Contrib project
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
9 * http://www.apache.org/licenses/LICENSE-2.0
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.
17 package net
.sf
.antcontrib
.cpptasks
.ti
;
19 import java
.util
.Vector
;
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
;
28 * Adapter for TI DSP librarian
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() {
38 public static final ClxxLibrarian
getCl6xInstance() {
41 private ClxxLibrarian(String command
) {
42 super(command
, null, new String
[]{".o"}, new String
[0], ".lib", false,
48 * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addBase(long,
51 protected void addBase(long base
, Vector args
) {
52 // TODO Auto-generated method stub
57 * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addFixed(java.lang.Boolean,
60 protected void addFixed(Boolean fixed
, Vector args
) {
61 // TODO Auto-generated method stub
66 * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addImpliedArgs(boolean,
67 * net.sf.antcontrib.cpptasks.compiler.LinkType, java.util.Vector)
69 protected void addImpliedArgs(boolean debug
, LinkType linkType
, Vector args
, Boolean defaultflag
) {
70 // TODO Auto-generated method stub
75 * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addIncremental(boolean,
78 protected void addIncremental(boolean incremental
, Vector args
) {
79 // TODO Auto-generated method stub
84 * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addMap(boolean,
87 protected void addMap(boolean map
, Vector args
) {
88 // TODO Auto-generated method stub
93 * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addStack(int,
96 protected void addStack(int stack
, Vector args
) {
97 // TODO Auto-generated method stub
100 * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addEntry(int, java.util.Vector)
102 protected void addEntry(String entry
, Vector args
) {
108 * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#getCommandFileSwitch(java.lang.String)
110 protected String
getCommandFileSwitch(String commandFile
) {
111 return "@" + commandFile
;
116 * @see net.sf.antcontrib.cpptasks.compiler.Linker#getLibraryPath()
118 public File
[] getLibraryPath() {
124 * @see net.sf.antcontrib.cpptasks.compiler.Linker#getLibraryPatterns(java.lang.String[])
126 public String
[] getLibraryPatterns(String
[] libnames
, LibraryTypeEnum libType
) {
127 return new String
[0];
132 * @see net.sf.antcontrib.cpptasks.compiler.Processor#getLinker(net.sf.antcontrib.cpptasks.compiler.LinkType)
134 public Linker
getLinker(LinkType linkType
) {
140 * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#getMaximumCommandLength()
142 protected int getMaximumCommandLength() {
148 * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#getOutputFileSwitch(java.lang.String)
150 protected String
[] getOutputFileSwitch(String outputFile
) {
151 return new String
[]{"-o", outputFile
};
156 * @see net.sf.antcontrib.cpptasks.compiler.Linker#isCaseSensitive()
158 public boolean isCaseSensitive() {
159 // TODO Auto-generated method stub