]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Java/Source/Cpptasks/net/sf/antcontrib/cpptasks/compaq/CompaqVisualFortranLibrarian.java
Restructuring for better separation of Tool packages.
[mirror_edk2.git] / Tools / Java / Source / Cpptasks / net / sf / antcontrib / cpptasks / compaq / CompaqVisualFortranLibrarian.java
1 /*
2 *
3 * Copyright 2002-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.compaq;
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.devstudio.DevStudioLibrarian;
25 import net.sf.antcontrib.cpptasks.devstudio.DevStudioProcessor;
26 import net.sf.antcontrib.cpptasks.types.LibraryTypeEnum;
27
28 /**
29 * Adapter for the Compaq(r) Visual Fortran Librarian
30 *
31 * @author Curt Arnold
32 */
33 public class CompaqVisualFortranLibrarian extends CommandLineLinker {
34 private static final CompaqVisualFortranLibrarian instance = new CompaqVisualFortranLibrarian();
35 public static CompaqVisualFortranLibrarian getInstance() {
36 return instance;
37 }
38 private CompaqVisualFortranLibrarian() {
39 super("lib", "/bogus", new String[]{".obj"}, new String[0], ".lib",
40 false, null);
41 }
42 protected void addBase(long base, Vector args) {
43 }
44 protected void addFixed(Boolean fixed, Vector args) {
45 }
46 protected void addImpliedArgs(boolean debug, LinkType linkType, Vector args, Boolean defaultflag) {
47 args.addElement("/nologo");
48 }
49 protected void addIncremental(boolean incremental, Vector args) {
50 }
51 protected void addMap(boolean map, Vector args) {
52 }
53 protected void addStack(int stack, Vector args) {
54 }
55 /* (non-Javadoc)
56 * @see net.sf.antcontrib.cpptasks.compiler.CommandLineLinker#addEntry(int, java.util.Vector)
57 */
58 protected void addEntry(String entry, Vector args) {
59 }
60
61 protected String getCommandFileSwitch(String commandFile) {
62 return DevStudioProcessor.getCommandFileSwitch(commandFile);
63 }
64 public File[] getLibraryPath() {
65 return new File[0];
66 }
67 public String[] getLibraryPatterns(String[] libnames, LibraryTypeEnum libType) {
68 return new String[0];
69 }
70 public Linker getLinker(LinkType type) {
71 return CompaqVisualFortranLinker.getInstance().getLinker(type);
72 }
73 protected int getMaximumCommandLength() {
74 return DevStudioLibrarian.getInstance().getMaximumCommandLength();
75 }
76 protected String[] getOutputFileSwitch(String outputFile) {
77 return DevStudioLibrarian.getInstance().getOutputFileSwitch(outputFile);
78 }
79 public boolean isCaseSensitive() {
80 return false;
81 }
82 }