]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - Tools/Source/GenBuild/org/tianocore/build/toolchain/ToolChainElement.java
Change module build sequence. 1. Get FvImageName list according to their declaration...
[mirror_edk2.git] / Tools / Source / GenBuild / org / tianocore / build / toolchain / ToolChainElement.java
... / ...
CommitLineData
1/** @file\r
2ToolChainElement class\r
3\r
4ToolChainElement class is defining enumeration value of key part names.\r
5\r
6Copyright (c) 2006, Intel Corporation\r
7All rights reserved. This program and the accompanying materials\r
8are licensed and made available under the terms and conditions of the BSD License\r
9which accompanies this distribution. The full text of the license may be found at\r
10http://opensource.org/licenses/bsd-license.php\r
11\r
12THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
13WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
14**/\r
15\r
16package org.tianocore.build.toolchain;\r
17\r
18/**\r
19\r
20 This class is an enumeration definition for key elements in tool chain definition\r
21 file.\r
22 \r
23 **/\r
24public class ToolChainElement {\r
25 private static int nextValue = 0;\r
26\r
27 //\r
28 // "TARGET", "TOOLCHAIN", "ARCH", "TOOLCODE", "ATTRIBUTE"\r
29 // \r
30 public final static ToolChainElement TARGET = new ToolChainElement("TARGET");\r
31 public final static ToolChainElement TOOLCHAIN = new ToolChainElement("TOOLCHAIN");\r
32 public final static ToolChainElement ARCH = new ToolChainElement("ARCH");\r
33 public final static ToolChainElement TOOLCODE = new ToolChainElement("TOOLCODE");\r
34 public final static ToolChainElement ATTRIBUTE = new ToolChainElement("ATTRIBUTE");\r
35\r
36 private final String name;\r
37 public final int value = nextValue++;\r
38\r
39 /**\r
40 * Default constructor\r
41 */\r
42 private ToolChainElement(String name) {\r
43 this.name = name;\r
44 }\r
45\r
46 public String toString() {\r
47 return name;\r
48 }\r
49}\r
50\r
51\r
52\r
53\r
54\r