]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/Cpptasks/net/sf/antcontrib/cpptasks/devstudio/DevStudioAslcompiler.java
Changed spelling to manifest
[mirror_edk2.git] / Tools / Source / Cpptasks / net / sf / antcontrib / cpptasks / devstudio / DevStudioAslcompiler.java
CommitLineData
878ddf1f 1/*\r
2 * \r
3 * Copyright 2001-2005 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
17package net.sf.antcontrib.cpptasks.devstudio;\r
18\r
19import java.util.Vector;\r
20\r
21import net.sf.antcontrib.cpptasks.compiler.CommandLineAslcompiler;\r
22import net.sf.antcontrib.cpptasks.compiler.LinkType;\r
23import net.sf.antcontrib.cpptasks.compiler.Linker;\r
24\r
25/**\r
26 * Adaptor for Microsoft ASL compiler.\r
27 * \r
28 */\r
29public final class DevStudioAslcompiler extends CommandLineAslcompiler {\r
30 private final static String[] sourceExtensions = new String[] { ".asl" };\r
31\r
32 private final static String[] headerExtensions = new String[] {};\r
33\r
34 private final static String[] defaultflags = new String[] {};\r
35\r
36 private static final DevStudioAslcompiler instance = new DevStudioAslcompiler(\r
37 "asl", sourceExtensions, headerExtensions, false);\r
38\r
39 /**\r
40 * Gets asl adapter\r
41 */\r
42 public static DevStudioAslcompiler getInstance() {\r
43 return instance;\r
44 }\r
45\r
46 /**\r
47 * Private constructor. Use DevStudioAslcompiler.getInstance() to get\r
48 * singleton instance of this class.\r
49 */\r
50 private DevStudioAslcompiler (String command, String[] sourceExtensions,\r
51 String[] headerExtensions, boolean isLibtool) {\r
52 super(command, null, sourceExtensions, headerExtensions, ".aml");\r
53 }\r
54\r
55 public void addImpliedArgs(Vector args, boolean debug, Boolean defaultflag) {\r
56 if (defaultflag != null && defaultflag.booleanValue()) {\r
57 for (int i = 0; i < defaultflags.length; i++) {\r
58 args.addElement(defaultflags[i]);\r
59 }\r
60 }\r
61 }\r
62\r
63 public int getMaximumCommandLength() {\r
64 return Integer.MAX_VALUE;\r
65 }\r
66\r
67 public Linker getLinker(LinkType linkType) {\r
68 return DevStudioLinker.getInstance().getLinker(linkType);\r
69 }\r
70}