]>
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 | |
0f17c9fe | 4 | # Copyright (c) 2007 - 2018, 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 | 45 | \r |
0f17c9fe CJ |
46 | # definition for a MACRO name. used to create regular expressions below.\r |
47 | _MacroNamePattern = "[A-Z][A-Z0-9_]*"\r | |
48 | \r | |
f51461c8 | 49 | ## Regular expression for matching macro used in DSC/DEC/INF file inclusion\r |
0f17c9fe | 50 | gMacroRefPattern = re.compile("\$\(({})\)".format(_MacroNamePattern), re.UNICODE)\r |
f51461c8 | 51 | gMacroDefPattern = re.compile("^(DEFINE|EDK_GLOBAL)[ \t]+")\r |
0f17c9fe | 52 | gMacroNamePattern = re.compile("^{}$".format(_MacroNamePattern))\r |
7878f706 | 53 | \r |
cd67d664 | 54 | # definition for a GUID. used to create regular expressions below.\r |
256e2d88 CJ |
55 | _HexChar = r"[0-9a-fA-F]"\r |
56 | _GuidPattern = r"{Hex}{{8}}-{Hex}{{4}}-{Hex}{{4}}-{Hex}{{4}}-{Hex}{{12}}".format(Hex=_HexChar)\r | |
cd67d664 CJ |
57 | \r |
58 | ## Regular expressions for GUID matching\r | |
59 | gGuidPattern = re.compile(r'{}'.format(_GuidPattern))\r | |
60 | gGuidPatternEnd = re.compile(r'{}$'.format(_GuidPattern))\r | |
61 | \r | |
0760ed06 | 62 | ## Regular expressions for HEX matching\r |
9e7790a3 | 63 | g4HexChar = re.compile(r'{}{{4}}'.format(_HexChar))\r |
0760ed06 | 64 | gHexPattern = re.compile(r'0[xX]{}+'.format(_HexChar))\r |
6553c617 | 65 | gHexPatternAll = re.compile(r'0[xX]{}+$'.format(_HexChar))\r |
9e7790a3 | 66 | \r |
7da06eee CJ |
67 | ## Regular expressions for string identifier checking\r |
68 | gIdentifierPattern = re.compile('^[a-zA-Z][a-zA-Z0-9_]*$', re.UNICODE)\r | |
69 | \r | |
f51461c8 LG |
70 | #\r |
71 | # A global variable for whether current build in AutoGen phase or not.\r | |
72 | #\r | |
73 | gAutoGenPhase = False\r | |
74 | \r | |
75 | #\r | |
76 | # The Conf dir outside the workspace dir\r | |
77 | #\r | |
78 | gConfDirectory = ''\r | |
79 | \r | |
97058144 | 80 | gBuildDirectory = ''\r |
f51461c8 LG |
81 | #\r |
82 | # The relative default database file path\r | |
83 | #\r | |
84 | gDatabasePath = ".cache/build.db"\r | |
85 | \r | |
86 | #\r | |
87 | # Build flag for binary build\r | |
88 | #\r | |
89 | gIgnoreSource = False\r | |
90 | \r | |
91 | #\r | |
92 | # FDF parser\r | |
93 | #\r | |
94 | gFdfParser = None\r | |
97fa0ee9 | 95 | \r |
763e8edf | 96 | BuildOptionPcd = []\r |
c8d07c5e | 97 | \r |
2a29017e YZ |
98 | #\r |
99 | # Mixed PCD name dict\r | |
100 | #\r | |
101 | MixedPcd = {}\r | |
102 | \r | |
ae7b6df8 LG |
103 | # Structure Pcd dict\r |
104 | gStructurePcd = {}\r | |
105 | \r | |
c8d07c5e YZ |
106 | # Pcd name for the Pcd which used in the Conditional directives\r |
107 | gConditionalPcds = []\r | |
36d083ef YZ |
108 | \r |
109 | gUseHashCache = None\r | |
110 | gBinCacheDest = None\r | |
111 | gBinCacheSource = None\r | |
112 | gPlatformHash = None\r | |
113 | gPackageHash = {}\r | |
114 | gModuleHash = {}\r | |
37de70b7 | 115 | gEnableGenfdsMultiThread = False\r |