From f7496d717357b9af78414d19679b073403812340 Mon Sep 17 00:00:00 2001 From: Liming Gao Date: Thu, 5 Jul 2018 17:40:04 +0800 Subject: BaseTools: Clean up source files 1. Do not use tab characters 2. No trailing white space in one line 3. All files must end with CRLF Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Liming Gao Cc: Yonghong Zhu Reviewed-by: Yonghong Zhu --- .../Source/Python/UPT/Object/POM/ModuleObject.py | 276 ++++++++++----------- 1 file changed, 138 insertions(+), 138 deletions(-) (limited to 'BaseTools/Source/Python/UPT/Object/POM/ModuleObject.py') diff --git a/BaseTools/Source/Python/UPT/Object/POM/ModuleObject.py b/BaseTools/Source/Python/UPT/Object/POM/ModuleObject.py index 4052d28835..6bccd2ba4f 100644 --- a/BaseTools/Source/Python/UPT/Object/POM/ModuleObject.py +++ b/BaseTools/Source/Python/UPT/Object/POM/ModuleObject.py @@ -1,11 +1,11 @@ ## @file # This file is used to define a class object to describe a module # -# Copyright (c) 2011 - 2017, Intel Corporation. All rights reserved.
+# Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.
# -# This program and the accompanying materials are licensed and made available -# under the terms and conditions of the BSD License which accompanies this -# distribution. The full text of the license may be found at +# This program and the accompanying materials are licensed and made available +# under the terms and conditions of the BSD License which accompanies this +# distribution. The full text of the license may be found at # http://opensource.org/licenses/bsd-license.php # # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, @@ -17,16 +17,16 @@ ModuleObject ## # Import Modules -# +# from Object.POM.CommonObject import CommonPropertiesObject from Object.POM.CommonObject import IdentificationObject from Object.POM.CommonObject import CommonHeaderObject from Object.POM.CommonObject import BinaryHeaderObject from Object.POM.CommonObject import HelpTextListObject from Object.POM.CommonObject import GuidVersionObject - -## + +## # BootModeObject # class BootModeObject(CommonPropertiesObject, HelpTextListObject): @@ -34,10 +34,10 @@ class BootModeObject(CommonPropertiesObject, HelpTextListObject): self.SupportedBootModes = '' CommonPropertiesObject.__init__(self) HelpTextListObject.__init__(self) - + def SetSupportedBootModes(self, SupportedBootModes): self.SupportedBootModes = SupportedBootModes - + def GetSupportedBootModes(self): return self.SupportedBootModes @@ -49,10 +49,10 @@ class EventObject(CommonPropertiesObject, HelpTextListObject): self.EventType = '' CommonPropertiesObject.__init__(self) HelpTextListObject.__init__(self) - + def SetEventType(self, EventType): self.EventType = EventType - + def GetEventType(self): return self.EventType @@ -64,10 +64,10 @@ class HobObject(CommonPropertiesObject, HelpTextListObject): self.HobType = '' CommonPropertiesObject.__init__(self) HelpTextListObject.__init__(self) - + def SetHobType(self, HobType): self.HobType = HobType - + def GetHobType(self): return self.HobType @@ -78,23 +78,23 @@ class SpecObject(object): def __init__(self): self.Spec = '' self.Version = '' - + def SetSpec(self, Spec): self.Spec = Spec - + def GetSpec(self): return self.Spec - + def SetVersion(self, Version): self.Version = Version - + def GetVersion(self): return self.Version ## ModuleHeaderObject # # This class defined header items used in Module file -# +# class ModuleHeaderObject(IdentificationObject, CommonHeaderObject, BinaryHeaderObject): def __init__(self): self.IsLibrary = False @@ -109,97 +109,97 @@ class ModuleHeaderObject(IdentificationObject, CommonHeaderObject, BinaryHeaderO # # SpecObject # - self.SpecList = [] + self.SpecList = [] # # BootModeObject # - self.BootModeList = [] + self.BootModeList = [] # # EventObject # - self.EventList = [] + self.EventList = [] # # HobObject # self.HobList = [] - # + # # LibraryClassObject # - self.LibraryClassList = [] + self.LibraryClassList = [] self.SupArchList = [] IdentificationObject.__init__(self) CommonHeaderObject.__init__(self) BinaryHeaderObject.__init__(self) - + def SetIsLibrary(self, IsLibrary): self.IsLibrary = IsLibrary - + def GetIsLibrary(self): return self.IsLibrary - + def SetIsLibraryModList(self, IsLibraryModList): self.IsLibraryModList = IsLibraryModList - + def GetIsLibraryModList(self): return self.IsLibraryModList - + def SetModuleType(self, ModuleType): self.ModuleType = ModuleType - + def GetModuleType(self): return self.ModuleType - + def SetBinaryModule(self, BinaryModule): self.BinaryModule = BinaryModule - + def GetBinaryModule(self): return self.BinaryModule - + def SetPcdIsDriver(self, PcdIsDriver): self.PcdIsDriver = PcdIsDriver - + def GetPcdIsDriver(self): return self.PcdIsDriver - + def SetPiSpecificationVersion(self, PiSpecificationVersion): self.PiSpecificationVersion = PiSpecificationVersion - + def GetPiSpecificationVersion(self): return self.PiSpecificationVersion - + def SetUefiSpecificationVersion(self, UefiSpecificationVersion): self.UefiSpecificationVersion = UefiSpecificationVersion - + def GetUefiSpecificationVersion(self): return self.UefiSpecificationVersion - + def SetSpecList(self, SpecList): self.SpecList = SpecList - + def GetSpecList(self): return self.SpecList - + def SetBootModeList(self, BootModeList): self.BootModeList = BootModeList - + def GetBootModeList(self): return self.BootModeList - + def SetEventList(self, EventList): self.EventList = EventList - + def GetEventList(self): return self.EventList - + def SetHobList(self, HobList): self.HobList = HobList - + def GetHobList(self): return self.HobList def SetLibraryClassList(self, LibraryClassList): self.LibraryClassList = LibraryClassList - + def GetLibraryClassList(self): return self.LibraryClassList @@ -225,38 +225,38 @@ class SourceFileObject(CommonPropertiesObject): self.ToolCode = '' self.Family = '' self.FileType = '' - + def SetSourceFile(self, SourceFile): self.SourceFile = SourceFile - + def GetSourceFile(self): return self.SourceFile - + def SetTagName(self, TagName): self.TagName = TagName - + def GetTagName(self): return self.TagName - + def SetToolCode(self, ToolCode): self.ToolCode = ToolCode - + def GetToolCode(self): return self.ToolCode - + def SetFamily(self, Family): self.Family = Family - + def GetFamily(self): return self.Family - + def SetFileType(self, FileType): self.FileType = FileType - + def GetFileType(self): return self.FileType - + ## # BinaryFileObject # @@ -265,7 +265,7 @@ class BinaryFileObject(CommonPropertiesObject): self.FileNamList = [] self.AsBuiltList = [] CommonPropertiesObject.__init__(self) - + def SetFileNameList(self, FileNamList): self.FileNamList = FileNamList @@ -277,7 +277,7 @@ class BinaryFileObject(CommonPropertiesObject): def GetAsBuiltList(self): return self.AsBuiltList - + ## # AsBuildLibraryClassObject @@ -287,12 +287,12 @@ class AsBuildLibraryClassObject(object): self.LibGuid = '' self.LibVersion = '' self.SupArchList = [] - + def SetLibGuid(self, LibGuid): self.LibGuid = LibGuid def GetLibGuid(self): return self.LibGuid - + def SetLibVersion(self, LibVersion): self.LibVersion = LibVersion def GetLibVersion(self): @@ -342,7 +342,7 @@ class AsBuiltObject(object): def GetLibraryInstancesList(self): return self.LibraryInstancesList - + def SetBuildFlagsList(self, BinaryBuildFlagList): self.BinaryBuildFlagList = BinaryBuildFlagList @@ -351,7 +351,7 @@ class AsBuiltObject(object): ## # BinaryBuildFlag, this object will include those fields that are not -# covered by the UPT Spec BinaryFile field +# covered by the UPT Spec BinaryFile field # class BinaryBuildFlagObject(object): def __init__(self): @@ -359,31 +359,31 @@ class BinaryBuildFlagObject(object): self.TagName = '' self.Family = '' self.AsBuiltOptionFlags = '' - + def SetTarget(self, Target): self.Target = Target def GetTarget(self): - return self.Target + return self.Target def SetTagName(self, TagName): self.TagName = TagName - + def GetTagName(self): return self.TagName - + def SetFamily(self, Family): self.Family = Family - + def GetFamily(self): return self.Family - + def SetAsBuiltOptionFlags(self, AsBuiltOptionFlags): self.AsBuiltOptionFlags = AsBuiltOptionFlags def GetAsBuiltOptionFlags(self): return self.AsBuiltOptionFlags - -## + +## # ExternObject # class ExternObject(CommonPropertiesObject): @@ -394,31 +394,31 @@ class ExternObject(CommonPropertiesObject): self.Destructor = '' self.SupModList = [] CommonPropertiesObject.__init__(self) - + def SetEntryPoint(self, EntryPoint): self.EntryPoint = EntryPoint - + def GetEntryPoint(self): return self.EntryPoint - + def SetUnloadImage(self, UnloadImage): self.UnloadImage = UnloadImage - + def GetUnloadImage(self): return self.UnloadImage - + def SetConstructor(self, Constructor): self.Constructor = Constructor - + def GetConstructor(self): return self.Constructor - + def SetDestructor(self, Destructor): self.Destructor = Destructor - + def GetDestructor(self): return self.Destructor - + def SetSupModList(self, SupModList): self.SupModList = SupModList def GetSupModList(self): @@ -432,16 +432,16 @@ class DepexObject(CommonPropertiesObject): self.Depex = '' self.ModuelType = '' CommonPropertiesObject.__init__(self) - + def SetDepex(self, Depex): self.Depex = Depex - + def GetDepex(self): return self.Depex - + def SetModuleType(self, ModuleType): self.ModuelType = ModuleType - + def GetModuleType(self): return self.ModuelType @@ -454,16 +454,16 @@ class PackageDependencyObject(GuidVersionObject, CommonPropertiesObject): self.PackageFilePath = '' GuidVersionObject.__init__(self) CommonPropertiesObject.__init__(self) - + def SetPackageFilePath(self, PackageFilePath): self.PackageFilePath = PackageFilePath - + def GetPackageFilePath(self): return self.PackageFilePath def SetPackage(self, Package): self.Package = Package - + def GetPackage(self): return self.Package @@ -474,13 +474,13 @@ class BuildOptionObject(CommonPropertiesObject): def __init__(self): CommonPropertiesObject.__init__(self) self.BuildOption = '' - + def SetBuildOption(self, BuildOption): self.BuildOption = BuildOption - + def GetBuildOption(self): return self.BuildOption - + ## # ModuleObject # @@ -489,172 +489,172 @@ class ModuleObject(ModuleHeaderObject): # # {Arch : ModuleHeaderObject} # - self.HeaderDict = {} + self.HeaderDict = {} # # LibraryClassObject # - self.LibraryClassList = [] + self.LibraryClassList = [] # # SourceFileObject # - self.SourceFileList = [] + self.SourceFileList = [] # # BinaryFileObject # - self.BinaryFileList = [] + self.BinaryFileList = [] # # PackageDependencyObject # - self.PackageDependencyList = [] + self.PackageDependencyList = [] # # DepexObject # - self.PeiDepex = [] + self.PeiDepex = [] # # DepexObject # - self.DxeDepex = [] + self.DxeDepex = [] # # DepexObject # - self.SmmDepex = [] + self.SmmDepex = [] # # ProtocolObject # - self.ProtocolList = [] + self.ProtocolList = [] # # PpiObject # - self.PpiList = [] + self.PpiList = [] # # GuidObject # - self.GuidList = [] + self.GuidList = [] # # PcdObject # - self.PcdList = [] + self.PcdList = [] # # ExternObject # - self.ExternList = [] + self.ExternList = [] # # BuildOptionObject # - self.BuildOptionList = [] + self.BuildOptionList = [] # # UserExtensionObject # - self.UserExtensionList = [] + self.UserExtensionList = [] # # MiscFileObject # - self.MiscFileList = [] + self.MiscFileList = [] # # ClonedFromObject # - self.ClonedFrom = None - + self.ClonedFrom = None + ModuleHeaderObject.__init__(self) - + def SetHeaderDict(self, HeaderDict): self.HeaderDict = HeaderDict - + def GetHeaderDict(self): return self.HeaderDict - + def SetLibraryClassList(self, LibraryClassList): self.LibraryClassList = LibraryClassList - + def GetLibraryClassList(self): return self.LibraryClassList - + def SetSourceFileList(self, SourceFileList): self.SourceFileList = SourceFileList - + def GetSourceFileList(self): return self.SourceFileList - + def SetBinaryFileList(self, BinaryFileList): self.BinaryFileList = BinaryFileList def GetBinaryFileList(self): return self.BinaryFileList - + def SetPackageDependencyList(self, PackageDependencyList): self.PackageDependencyList = PackageDependencyList - + def GetPackageDependencyList(self): return self.PackageDependencyList - + def SetPeiDepex(self, PeiDepex): self.PeiDepex = PeiDepex - + def GetPeiDepex(self): return self.PeiDepex - + def SetDxeDepex(self, DxeDepex): self.DxeDepex = DxeDepex - + def GetDxeDepex(self): return self.DxeDepex - + def SetSmmDepex(self, SmmDepex): self.SmmDepex = SmmDepex - + def GetSmmDepex(self): return self.SmmDepex - + def SetPpiList(self, PpiList): self.PpiList = PpiList - + def GetPpiList(self): return self.PpiList def SetProtocolList(self, ProtocolList): self.ProtocolList = ProtocolList - + def GetProtocolList(self): return self.ProtocolList def SetPcdList(self, PcdList): self.PcdList = PcdList - + def GetPcdList(self): return self.PcdList - + def SetGuidList(self, GuidList): self.GuidList = GuidList - + def GetGuidList(self): return self.GuidList - + def SetExternList(self, ExternList): self.ExternList = ExternList def GetExternList(self): return self.ExternList - + def SetBuildOptionList(self, BuildOptionList): self.BuildOptionList = BuildOptionList - + def GetBuildOptionList(self): return self.BuildOptionList - + def SetUserExtensionList(self, UserExtensionList): self.UserExtensionList = UserExtensionList - + def GetUserExtensionList(self): return self.UserExtensionList - + def SetMiscFileList(self, MiscFileList): self.MiscFileList = MiscFileList - + def GetMiscFileList(self): return self.MiscFileList - + def SetClonedFrom(self, ClonedFrom): self.ClonedFrom = ClonedFrom - + def GetClonedFrom(self): return self.ClonedFrom -- cgit v1.2.3