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