BaseTools: Workspace classes refactor properties
1) use decorators 2) also change some private functions to public when all callers are external 3) change external callers to use functions instead of directly accessing private data. Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
committed by
Yonghong Zhu
parent
6c204ed4f2
commit
71cac3f791
@ -1006,7 +1006,7 @@ class Build():
|
||||
else:
|
||||
self.Db.InitDatabase()
|
||||
self.Db_Flag = True
|
||||
Platform = self.Db._MapPlatform(str(self.PlatformFile))
|
||||
Platform = self.Db.MapPlatform(str(self.PlatformFile))
|
||||
self.Prebuild = str(Platform.Prebuild)
|
||||
if self.Prebuild:
|
||||
PrebuildList = []
|
||||
@ -1045,7 +1045,7 @@ class Build():
|
||||
if 'POSTBUILD' in GlobalData.gCommandLineDefines:
|
||||
self.Postbuild = GlobalData.gCommandLineDefines.get('POSTBUILD')
|
||||
else:
|
||||
Platform = self.Db._MapPlatform(str(self.PlatformFile))
|
||||
Platform = self.Db.MapPlatform(str(self.PlatformFile))
|
||||
self.Postbuild = str(Platform.Postbuild)
|
||||
if self.Postbuild:
|
||||
PostbuildList = []
|
||||
|
Reference in New Issue
Block a user