]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/Python/Common/GlobalData.py
BaseTools: Report Structure PCD value and SKU, DefaultStore info
[mirror_edk2.git] / BaseTools / Source / Python / Common / GlobalData.py
1 ## @file
2 # This file is used to define common static strings used by INF/DEC/DSC files
3 #
4 # Copyright (c) 2007 - 2016, 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
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 import re
14
15 gIsWindows = None
16
17 gEdkCompatibilityPkg = "EdkCompatibilityPkg"
18 gWorkspace = "."
19 gEdkSource = "EdkCompatibilityPkg"
20 gEfiSource = "."
21 gEcpSource = "EdkCompatibilityPkg"
22
23 gOptions = None
24 gCaseInsensitive = False
25 gAllFiles = None
26 gCommand = None
27 gSKUID_CMD = None
28
29 gGlobalDefines = {}
30 gPlatformDefines = {}
31 # PCD name and value pair for fixed at build and feature flag
32 gPlatformPcds = {}
33 # PCDs with type that are not fixed at build and feature flag
34 gPlatformOtherPcds = {}
35 gActivePlatform = None
36 gCommandLineDefines = {}
37 gEdkGlobal = {}
38 gOverrideDir = {}
39 gCommandMaxLength = 4096
40 # for debug trace purpose when problem occurs
41 gProcessingFile = ''
42 gBuildingModule = ''
43 gSkuids = []
44 gDefaultStores = []
45
46 ## Regular expression for matching macro used in DSC/DEC/INF file inclusion
47 gMacroRefPattern = re.compile("\$\(([A-Z][_A-Z0-9]*)\)", re.UNICODE)
48 gMacroDefPattern = re.compile("^(DEFINE|EDK_GLOBAL)[ \t]+")
49 gMacroNamePattern = re.compile("^[A-Z][A-Z0-9_]*$")
50 # C-style wide string pattern
51 gWideStringPattern = re.compile('(\W|\A)L"')
52 #
53 # A global variable for whether current build in AutoGen phase or not.
54 #
55 gAutoGenPhase = False
56
57 #
58 # The Conf dir outside the workspace dir
59 #
60 gConfDirectory = ''
61
62 gBuildDirectory = ''
63 #
64 # The relative default database file path
65 #
66 gDatabasePath = ".cache/build.db"
67
68 #
69 # Build flag for binary build
70 #
71 gIgnoreSource = False
72
73 #
74 # FDF parser
75 #
76 gFdfParser = None
77
78 #
79 # If a module is built more than once with different PCDs or library classes
80 # a temporary INF file with same content is created, the temporary file is removed
81 # when build exits.
82 #
83 gTempInfs = []
84
85 BuildOptionPcd = []
86
87 #
88 # Mixed PCD name dict
89 #
90 MixedPcd = {}
91
92 # Structure Pcd dict
93 gStructurePcd = {}
94
95 # Pcd name for the Pcd which used in the Conditional directives
96 gConditionalPcds = []
97
98 gUseHashCache = None
99 gBinCacheDest = None
100 gBinCacheSource = None
101 gPlatformHash = None
102 gPackageHash = {}
103 gModuleHash = {}
104 gEnableGenfdsMultiThread = False