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