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