Sync BaseTools Trunk (version r2518) to EDKII main trunk.
Signed-off-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13178 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@ -354,6 +354,7 @@ class BuildRule:
|
||||
self._FamilyList = []
|
||||
self._TotalToolChainFamilySet = set()
|
||||
self._RuleObjectList = [] # FileBuildRule object list
|
||||
self._FileVersion = ""
|
||||
|
||||
self.Parse()
|
||||
|
||||
@ -368,7 +369,11 @@ class BuildRule:
|
||||
# Clean up the line and replace path separator with native one
|
||||
Line = self.RuleContent[Index].strip().replace(self._PATH_SEP, os.path.sep)
|
||||
self.RuleContent[Index] = Line
|
||||
|
||||
|
||||
# find the build_rule_version
|
||||
if Line and Line[0] == "#" and Line.find(TAB_BUILD_RULE_VERSION) <> -1:
|
||||
if Line.find("=") <> -1 and Line.find("=") < (len(Line)-1) and (Line[(Line.find("=") + 1):]).split():
|
||||
self._FileVersion = (Line[(Line.find("=") + 1):]).split()[0]
|
||||
# skip empty or comment line
|
||||
if Line == "" or Line[0] == "#":
|
||||
continue
|
||||
|
Reference in New Issue
Block a user