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