]>
git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/Python/Common/GlobalData.py
4a85a8e0db63ccf5d26055bc012d0d657abbd156
2 # This file is used to define common static strings used by INF/DEC/DSC files
4 # Copyright (c) 2007 - 2018, Intel Corporation. All rights reserved.<BR>
5 # 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
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.
17 gEdkCompatibilityPkg
= "EdkCompatibilityPkg"
19 gEdkSource
= "EdkCompatibilityPkg"
21 gEcpSource
= "EdkCompatibilityPkg"
24 gCaseInsensitive
= False
31 # PCD name and value pair for fixed at build and feature flag
33 # PCDs with type that are not fixed at build and feature flag
34 gPlatformOtherPcds
= {}
35 gActivePlatform
= None
36 gCommandLineDefines
= {}
39 gCommandMaxLength
= 4096
40 # for debug trace purpose when problem occurs
46 # definition for a MACRO name. used to create regular expressions below.
47 _MacroNamePattern
= "[A-Z][A-Z0-9_]*"
49 ## Regular expression for matching macro used in DSC/DEC/INF file inclusion
50 gMacroRefPattern
= re
.compile("\$\(({})\)".format(_MacroNamePattern
), re
.UNICODE
)
51 gMacroDefPattern
= re
.compile("^(DEFINE|EDK_GLOBAL)[ \t]+")
52 gMacroNamePattern
= re
.compile("^{}$".format(_MacroNamePattern
))
54 # definition for a GUID. used to create regular expressions below.
55 _GuidPattern
= r
"[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}"
57 ## Regular expressions for GUID matching
58 gGuidPattern
= re
.compile(r
'{}'.format(_GuidPattern
))
59 gGuidPatternEnd
= re
.compile(r
'{}$'.format(_GuidPattern
))
62 # A global variable for whether current build in AutoGen phase or not.
67 # The Conf dir outside the workspace dir
73 # The relative default database file path
75 gDatabasePath
= ".cache/build.db"
78 # Build flag for binary build
88 # If a module is built more than once with different PCDs or library classes
89 # a temporary INF file with same content is created, the temporary file is removed
104 # Pcd name for the Pcd which used in the Conditional directives
105 gConditionalPcds
= []
109 gBinCacheSource
= None
113 gEnableGenfdsMultiThread
= False