2 # This file is used to define a class object to describe a package
4 # Copyright (c) 2011 - 2018, Intel Corporation. All rights reserved.<BR>
6 # SPDX-License-Identifier: BSD-2-Clause-Patent
15 from Object
.POM
.CommonObject
import CommonPropertiesObject
16 from Object
.POM
.CommonObject
import IdentificationObject
17 from Object
.POM
.CommonObject
import CommonHeaderObject
18 from Object
.POM
.CommonObject
import BinaryHeaderObject
19 from Library
.Misc
import Sdict
21 ## StandardIncludeFileObject
23 class StandardIncludeFileObject(CommonPropertiesObject
):
25 CommonPropertiesObject
.__init
__(self
)
28 def SetIncludeFile(self
, IncludeFile
):
29 self
.IncludeFile
= IncludeFile
31 def GetIncludeFile(self
):
32 return self
.IncludeFile
34 ## PackageIncludeFileObject
36 class PackageIncludeFileObject(StandardIncludeFileObject
):
42 class PackageObject(IdentificationObject
, CommonHeaderObject
, BinaryHeaderObject
):
44 IdentificationObject
.__init
__(self
)
45 CommonHeaderObject
.__init
__(self
)
46 BinaryHeaderObject
.__init
__(self
)
50 self
.LibraryClassList
= []
54 self
.IncludePathList
= []
56 # StandardIncludeFileObject
58 self
.StandardIncludeFileList
= []
60 # PackageIncludeFileObject
62 self
.PackageIncludeFileList
= []
64 # Include and Arch List, item is (IncludePath, SupArchList-List of Arch), used during install package
66 self
.IncludeArchList
= []
70 self
.ProtocolList
= []
80 # (PcdObject, PcdErrorObject)
84 # {(PcdTokenSpaceGuidCName, PcdErrroNumber): PcdErrorMessageList}
86 self
.PcdErrorCommentDict
= {}
90 self
.UserExtensionList
= []
94 self
.MiscFileList
= []
95 self
.ModuleDict
= Sdict()
99 self
.ClonedFromList
= []
103 self
.ModuleFileList
= []
109 def SetLibraryClassList(self
, LibraryClassList
):
110 self
.LibraryClassList
= LibraryClassList
112 def GetLibraryClassList(self
):
113 return self
.LibraryClassList
115 def SetIncludePathList(self
, IncludePathList
):
116 self
.IncludePathList
= IncludePathList
118 def GetIncludePathList(self
):
119 return self
.IncludePathList
121 def SetIncludeArchList(self
, IncludeArchList
):
122 self
.IncludeArchList
= IncludeArchList
124 def GetIncludeArchList(self
):
125 return self
.IncludeArchList
127 def SetStandardIncludeFileList(self
, StandardIncludeFileList
):
128 self
.StandardIncludeFileList
= StandardIncludeFileList
130 def GetStandardIncludeFileList(self
):
131 return self
.StandardIncludeFileList
133 def SetPackageIncludeFileList(self
, PackageIncludeFileList
):
134 self
.PackageIncludeFileList
= PackageIncludeFileList
136 def GetPackageIncludeFileList(self
):
137 return self
.PackageIncludeFileList
139 def SetProtocolList(self
, ProtocolList
):
140 self
.ProtocolList
= ProtocolList
142 def GetProtocolList(self
):
143 return self
.ProtocolList
145 def SetPpiList(self
, PpiList
):
146 self
.PpiList
= PpiList
148 def GetPpiList(self
):
151 def SetGuidList(self
, GuidList
):
152 self
.GuidList
= GuidList
154 def GetGuidList(self
):
157 def SetPcdList(self
, PcdList
):
158 self
.PcdList
= PcdList
160 def GetPcdList(self
):
163 def SetUserExtensionList(self
, UserExtensionList
):
164 self
.UserExtensionList
= UserExtensionList
166 def GetUserExtensionList(self
):
167 return self
.UserExtensionList
169 def SetMiscFileList(self
, MiscFileList
):
170 self
.MiscFileList
= MiscFileList
172 def GetMiscFileList(self
):
173 return self
.MiscFileList
175 def SetModuleDict(self
, ModuleDict
):
176 self
.ModuleDict
= ModuleDict
178 def GetModuleDict(self
):
179 return self
.ModuleDict
181 def SetClonedFromList(self
, ClonedFromList
):
182 self
.ClonedFromList
= ClonedFromList
184 def GetClonedFromList(self
):
185 return self
.ClonedFromList
187 def SetModuleFileList(self
, ModuleFileList
):
188 self
.ModuleFileList
= ModuleFileList
190 def GetModuleFileList(self
):
191 return self
.ModuleFileList