From bc39c5cbea30b53c35a32150431bb7ea05a3238d Mon Sep 17 00:00:00 2001 From: Jaben Carsey Date: Fri, 16 Nov 2018 23:40:04 +0800 Subject: 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 Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey Reviewed-by : Bob Feng --- BaseTools/Source/Python/AutoGen/BuildEngine.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'BaseTools/Source/Python/AutoGen/BuildEngine.py') 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 -- cgit v1.2.3