]>
Commit | Line | Data |
---|---|---|
5f42a4ba | 1 | /** @file\r |
2 | This file is to define ToolChainAttribute class.\r | |
3 | \r | |
4 | Copyright (c) 2006, Intel Corporation\r | |
5 | All rights reserved. This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | **/\r | |
13 | \r | |
a29c47e0 | 14 | package org.tianocore.build.toolchain;\r |
5f42a4ba | 15 | \r |
a29c47e0 | 16 | /**\r |
5f42a4ba | 17 | \r |
18 | ToolChainAttribute is used to define the enumeration value for the attributes\r | |
19 | used in tool chain definition file. \r | |
20 | \r | |
21 | **/\r | |
a29c47e0 | 22 | public class ToolChainAttribute {\r |
23 | private static int nextValue = 0;\r | |
24 | \r | |
5f42a4ba | 25 | //\r |
26 | // "NAME", "PATH", "DPATH", "SPATH", "EXT", "FAMILY", "FLAGS"\r | |
27 | // \r | |
a29c47e0 | 28 | public final static ToolChainAttribute NAME = new ToolChainAttribute("NAME");\r |
29 | public final static ToolChainAttribute PATH = new ToolChainAttribute("PATH");\r | |
30 | public final static ToolChainAttribute DPATH = new ToolChainAttribute("DPATH");\r | |
31 | public final static ToolChainAttribute SPATH = new ToolChainAttribute("SPATH");\r | |
32 | public final static ToolChainAttribute EXT = new ToolChainAttribute("EXT");\r | |
33 | public final static ToolChainAttribute FAMILY = new ToolChainAttribute("FAMILY");\r | |
34 | public final static ToolChainAttribute FLAGS = new ToolChainAttribute("FLAGS");\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 ToolChainAttribute(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 |