]> git.proxmox.com Git - mirror_edk2.git/blame - BaseTools/Source/Python/Common/GlobalData.py
Sync BaseTool trunk (version r2460) into EDKII BaseTools. The change mainly includes:
[mirror_edk2.git] / BaseTools / Source / Python / Common / GlobalData.py
CommitLineData
30fdf114
LG
1## @file
2# This file is used to define common static strings used by INF/DEC/DSC files
3#
40d841f6
LG
4# Copyright (c) 2007, Intel Corporation. All rights reserved.<BR>
5# This program and the accompanying materials
30fdf114
LG
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
13import re
14
15gIsWindows = None
16
17gEdkCompatibilityPkg = "EdkCompatibilityPkg"
18gWorkspace = "."
19gEdkSource = "EdkCompatibilityPkg"
20gEfiSource = "."
21gEcpSource = "EdkCompatibilityPkg"
22
23gOptions = None
24gCaseInsensitive = False
30fdf114
LG
25gAllFiles = None
26
0d2711a6
LG
27gGlobalDefines = {}
28gPlatformDefines = {}
d0acc87a 29gActivePlatform = None
0d2711a6 30gCommandLineDefines = {}
30fdf114
LG
31gEdkGlobal = {}
32gOverrideDir = {}
33
34# for debug trace purpose when problem occurs
35gProcessingFile = ''
36gBuildingModule = ''
37
38## Regular expression for matching macro used in DSC/DEC/INF file inclusion
0d2711a6
LG
39gMacroRefPattern = re.compile("\$\(([A-Z][_A-Z0-9]*)\)", re.UNICODE)
40gMacroDefPattern = re.compile("^(DEFINE|EDK_GLOBAL)[ \t]+")
41gMacroNamePattern = re.compile("^[A-Z][A-Z0-9_]*$")
42# C-style wide string pattern
43gWideStringPattern = re.compile('(\W|\A)L"')
df692f02
LG
44#
45# A global variable for whether current build in AutoGen phase or not.
46#
47gAutoGenPhase = False
0d2711a6 48