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