+++ /dev/null
-/*\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.ti;\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.compiler.Linker;\r
-import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum;\r
-\r
-/**\r
- * \r
- * Adapter for TI DSP librarian\r
- * *\r
- * @author CurtA\r
- */\r
-public class ClxxLibrarian extends CommandLineLinker {\r
- private static final ClxxLibrarian cl55Instance = new ClxxLibrarian("ar55");\r
- private static final ClxxLibrarian cl6xInstance = new ClxxLibrarian("ar6x");\r
- public static final ClxxLibrarian getCl55Instance() {\r
- return cl55Instance;\r
- }\r
- public static final ClxxLibrarian getCl6xInstance() {\r
- return cl6xInstance;\r
- }\r
- private ClxxLibrarian(String command) {\r
- super(command, null, new String[]{".o"}, new String[0], ".lib", false,\r
- null);\r
- }\r
- /*\r
- * (non-Javadoc)\r
- * \r
- * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addBase(long,\r
- * java.util.Vector)\r
- */\r
- protected void addBase(long base, Vector args) {\r
- // TODO Auto-generated method stub\r
- }\r
- /*\r
- * (non-Javadoc)\r
- * \r
- * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addFixed(java.lang.Boolean,\r
- * java.util.Vector)\r
- */\r
- protected void addFixed(Boolean fixed, Vector args) {\r
- // TODO Auto-generated method stub\r
- }\r
- /*\r
- * (non-Javadoc)\r
- * \r
- * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addImpliedArgs(boolean,\r
- * net.sf.antcontrib.cpptasks.compiler.LinkType, java.util.Vector)\r
- */\r
- protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args, Boolean defaultflag) {\r
- // TODO Auto-generated method stub\r
- }\r
- /*\r
- * (non-Javadoc)\r
- * \r
- * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addIncremental(boolean,\r
- * java.util.Vector)\r
- */\r
- protected void addIncremental(boolean incremental, Vector args) {\r
- // TODO Auto-generated method stub\r
- }\r
- /*\r
- * (non-Javadoc)\r
- * \r
- * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addMap(boolean,\r
- * java.util.Vector)\r
- */\r
- protected void addMap(boolean map, Vector args) {\r
- // TODO Auto-generated method stub\r
- }\r
- /*\r
- * (non-Javadoc)\r
- * \r
- * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addStack(int,\r
- * java.util.Vector)\r
- */\r
- protected void addStack(int stack, Vector args) {\r
- // TODO Auto-generated method stub\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
- /*\r
- * (non-Javadoc)\r
- * \r
- * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#getCommandFileSwitch(java.lang.String)\r
- */\r
- protected String getCommandFileSwitch(String commandFile) {\r
- return "@" + commandFile;\r
- }\r
- /*\r
- * (non-Javadoc)\r
- * \r
- * @see net.sf.antcontrib.cpptasks.compiler.Linker#getLibraryPath()\r
- */\r
- public File[] getLibraryPath() {\r
- return new File[0];\r
- }\r
- /*\r
- * (non-Javadoc)\r
- * \r
- * @see net.sf.antcontrib.cpptasks.compiler.Linker#getLibraryPatterns(java.lang.String[])\r
- */\r
- public String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) {\r
- return new String[0];\r
- }\r
- /*\r
- * (non-Javadoc)\r
- * \r
- * @see net.sf.antcontrib.cpptasks.compiler.Processor#getLinker(net.sf.antcontrib.cpptasks.compiler.LinkType)\r
- */\r
- public Linker getLinker(LinkType linkType) {\r
- return null;\r
- }\r
- /*\r
- * (non-Javadoc)\r
- * \r
- * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#getMaximumCommandLength()\r
- */\r
- protected int getMaximumCommandLength() {\r
- return 1024;\r
- }\r
- /*\r
- * (non-Javadoc)\r
- * \r
- * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#getOutputFileSwitch(java.lang.String)\r
- */\r
- protected String[] getOutputFileSwitch(String outputFile) {\r
- return new String[]{"-o", outputFile};\r
- }\r
- /*\r
- * (non-Javadoc)\r
- * \r
- * @see net.sf.antcontrib.cpptasks.compiler.Linker#isCaseSensitive()\r
- */\r
- public boolean isCaseSensitive() {\r
- // TODO Auto-generated method stub\r
- return false;\r
- }\r
-}\r