]> git.proxmox.com Git - mirror_edk2.git/blobdiff - BaseTools/Source/Python/Common/GlobalData.py
BaseTools/Workspace/InfBuildData: move functions
[mirror_edk2.git] / BaseTools / Source / Python / Common / GlobalData.py
index e3131b86cc60fe4226cb8c99328b65d9bb2a858d..5eaee066946c9a513b591e8c415a2dd8292f2988 100644 (file)
 import re\r
 \r
 gIsWindows = None\r
-\r
-gEdkCompatibilityPkg = "EdkCompatibilityPkg"\r
 gWorkspace = "."\r
-gEdkSource = "EdkCompatibilityPkg"\r
-gEfiSource = "."\r
-gEcpSource = "EdkCompatibilityPkg"\r
-\r
 gOptions = None\r
 gCaseInsensitive = False\r
 gAllFiles = None\r
@@ -66,6 +60,13 @@ gHexPatternAll = re.compile(r'0[xX]{}+$'.format(_HexChar))
 \r
 ## Regular expressions for string identifier checking\r
 gIdentifierPattern = re.compile('^[a-zA-Z][a-zA-Z0-9_]*$', re.UNICODE)\r
+## Regular expression for GUID c structure format\r
+_GuidCFormatPattern = r"{{\s*0[xX]{Hex}{{1,8}}\s*,\s*0[xX]{Hex}{{1,4}}\s*,\s*0[xX]{Hex}{{1,4}}" \\r
+                      r"\s*,\s*{{\s*0[xX]{Hex}{{1,2}}\s*,\s*0[xX]{Hex}{{1,2}}" \\r
+                      r"\s*,\s*0[xX]{Hex}{{1,2}}\s*,\s*0[xX]{Hex}{{1,2}}" \\r
+                      r"\s*,\s*0[xX]{Hex}{{1,2}}\s*,\s*0[xX]{Hex}{{1,2}}" \\r
+                      r"\s*,\s*0[xX]{Hex}{{1,2}}\s*,\s*0[xX]{Hex}{{1,2}}\s*}}\s*}}".format(Hex=_HexChar)\r
+gGuidCFormatPattern = re.compile(r"{}".format(_GuidCFormatPattern))\r
 \r
 #\r
 # A global variable for whether current build in AutoGen phase or not.\r
@@ -93,13 +94,6 @@ gIgnoreSource = False
 #\r
 gFdfParser = None\r
 \r
-#\r
-# If a module is built more than once with different PCDs or library classes\r
-# a temporary INF file with same content is created, the temporary file is removed\r
-# when build exits.\r
-#\r
-gTempInfs = []\r
-\r
 BuildOptionPcd = []\r
 \r
 #\r
@@ -120,3 +114,4 @@ gPlatformHash = None
 gPackageHash = {}\r
 gModuleHash = {}\r
 gEnableGenfdsMultiThread = False\r
+gSikpAutoGenCache = set()\r