2 ToolChainAttribute class
4 This file is to define enumeration value for tool chain attribute names.
6 Copyright (c) 2006, Intel Corporation
7 All rights reserved. This program and the accompanying materials
8 are licensed and made available under the terms and conditions of the BSD License
9 which accompanies this distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
13 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 package org
.tianocore
.build
.toolchain
;
20 ToolChainAttribute is used to define the enumeration value for the attributes
21 used in tool chain definition file.
24 public class ToolChainAttribute
{
25 private static int nextValue
= 0;
28 /// "NAME", "PATH", "DPATH", "SPATH", "EXT", "FAMILY", "FLAGS"
30 public final static ToolChainAttribute NAME
= new ToolChainAttribute("NAME");
31 public final static ToolChainAttribute PATH
= new ToolChainAttribute("PATH");
32 public final static ToolChainAttribute DPATH
= new ToolChainAttribute("DPATH");
33 public final static ToolChainAttribute SPATH
= new ToolChainAttribute("SPATH");
34 public final static ToolChainAttribute EXT
= new ToolChainAttribute("EXT");
35 public final static ToolChainAttribute FAMILY
= new ToolChainAttribute("FAMILY");
36 public final static ToolChainAttribute FLAGS
= new ToolChainAttribute("FLAGS");
38 private final String name
;
39 public final int value
= nextValue
++;
44 private ToolChainAttribute(String name
) {
48 public String
toString() {