summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/AutoGen/BuildEngine.py
diff options
context:
space:
mode:
authorJaben Carsey <jaben.carsey@intel.com>2018-11-16 23:40:04 +0800
committerBobCF <bob.c.feng@intel.com>2018-12-06 17:11:24 +0800
commitbc39c5cbea30b53c35a32150431bb7ea05a3238d (patch)
tree78fd7f91b47f437c4f7b78be4ebaa35c50f116d5 /BaseTools/Source/Python/AutoGen/BuildEngine.py
parentea55e37c369ac5b9dc1a6fcc647bd3fa20cb05b1 (diff)
downloadedk2-bc39c5cbea30b53c35a32150431bb7ea05a3238d.tar.gz
edk2-bc39c5cbea30b53c35a32150431bb7ea05a3238d.tar.bz2
edk2-bc39c5cbea30b53c35a32150431bb7ea05a3238d.zip
BaseTools: create and use a standard shared variable for '*'
add a variable for the string '*' and then use it instead of lots of '*' Cc: Yonghong Zhu <yonghong.zhu@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by : Bob Feng <bob.c.feng@intel.com>
Diffstat (limited to 'BaseTools/Source/Python/AutoGen/BuildEngine.py')
-rw-r--r--BaseTools/Source/Python/AutoGen/BuildEngine.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/BaseTools/Source/Python/AutoGen/BuildEngine.py b/BaseTools/Source/Python/AutoGen/BuildEngine.py
index ac7a668755..f9e3ac3a1d 100644
--- a/BaseTools/Source/Python/AutoGen/BuildEngine.py
+++ b/BaseTools/Source/Python/AutoGen/BuildEngine.py
@@ -110,7 +110,7 @@ class FileBuildRule:
self.IncListFileMacro = self.INC_LIST_MACRO
self.SourceFileType = Type
- # source files listed not in "*" or "?" pattern format
+ # source files listed not in TAB_STAR or "?" pattern format
if not ExtraDependency:
self.ExtraSourceFileList = []
else:
@@ -150,12 +150,12 @@ class FileBuildRule:
self.SourceFileExtList = set()
for File in Input:
Base, Ext = os.path.splitext(File)
- if Base.find("*") >= 0:
- # There's "*" in the file name
+ if Base.find(TAB_STAR) >= 0:
+ # There's TAB_STAR in the file name
self.IsMultipleInput = True
self.GenFileListMacro = True
elif Base.find("?") < 0:
- # There's no "*" and "?" in file name
+ # There's no TAB_STAR and "?" in file name
self.ExtraSourceFileList.append(File)
continue
self.SourceFileExtList.add(Ext)
@@ -553,7 +553,7 @@ class BuildRule:
#
# @param FileExt The extension of a file
# @param ToolChainFamily The tool chain family name
- # @param BuildVersion The build version number. "*" means any rule
+ # @param BuildVersion The build version number. TAB_STAR means any rule
# is applicalbe.
#
# @retval FileType The file type string