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 # This program and the accompanying materials are licensed and made available
7 # under the terms and conditions of the BSD License which accompanies this
8 # distribution. The full text of the license may be found at
9 # http://opensource.org/licenses/bsd-license.php
11 # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
21 from Object
.POM
.CommonObject
import CommonPropertiesObject
22 from Object
.POM
.CommonObject
import IdentificationObject
23 from Object
.POM
.CommonObject
import CommonHeaderObject
24 from Object
.POM
.CommonObject
import BinaryHeaderObject
25 from Library
.Misc
import Sdict
27 ## StandardIncludeFileObject
29 class StandardIncludeFileObject(CommonPropertiesObject
):
31 CommonPropertiesObject
.__init
__(self
)
34 def SetIncludeFile(self
, IncludeFile
):
35 self
.IncludeFile
= IncludeFile
37 def GetIncludeFile(self
):
38 return self
.IncludeFile
40 ## PackageIncludeFileObject
42 class PackageIncludeFileObject(StandardIncludeFileObject
):
48 class PackageObject(IdentificationObject
, CommonHeaderObject
, BinaryHeaderObject
):
50 IdentificationObject
.__init
__(self
)
51 CommonHeaderObject
.__init
__(self
)
52 BinaryHeaderObject
.__init
__(self
)
56 self
.LibraryClassList
= []
60 self
.IncludePathList
= []
62 # StandardIncludeFileObject
64 self
.StandardIncludeFileList
= []
66 # PackageIncludeFileObject
68 self
.PackageIncludeFileList
= []
70 # Include and Arch List, item is (IncludePath, SupArchList-List of Arch), used during install package
72 self
.IncludeArchList
= []
76 self
.ProtocolList
= []
86 # (PcdObject, PcdErrorObject)
90 # {(PcdTokenSpaceGuidCName, PcdErrroNumber): PcdErrorMessageList}
92 self
.PcdErrorCommentDict
= {}
96 self
.UserExtensionList
= []
100 self
.MiscFileList
= []
101 self
.ModuleDict
= Sdict()
105 self
.ClonedFromList
= []
109 self
.ModuleFileList
= []
115 def SetLibraryClassList(self
, LibraryClassList
):
116 self
.LibraryClassList
= LibraryClassList
118 def GetLibraryClassList(self
):
119 return self
.LibraryClassList
121 def SetIncludePathList(self
, IncludePathList
):
122 self
.IncludePathList
= IncludePathList
124 def GetIncludePathList(self
):
125 return self
.IncludePathList
127 def SetIncludeArchList(self
, IncludeArchList
):
128 self
.IncludeArchList
= IncludeArchList
130 def GetIncludeArchList(self
):
131 return self
.IncludeArchList
133 def SetStandardIncludeFileList(self
, StandardIncludeFileList
):
134 self
.StandardIncludeFileList
= StandardIncludeFileList
136 def GetStandardIncludeFileList(self
):
137 return self
.StandardIncludeFileList
139 def SetPackageIncludeFileList(self
, PackageIncludeFileList
):
140 self
.PackageIncludeFileList
= PackageIncludeFileList
142 def GetPackageIncludeFileList(self
):
143 return self
.PackageIncludeFileList
145 def SetProtocolList(self
, ProtocolList
):
146 self
.ProtocolList
= ProtocolList
148 def GetProtocolList(self
):
149 return self
.ProtocolList
151 def SetPpiList(self
, PpiList
):
152 self
.PpiList
= PpiList
154 def GetPpiList(self
):
157 def SetGuidList(self
, GuidList
):
158 self
.GuidList
= GuidList
160 def GetGuidList(self
):
163 def SetPcdList(self
, PcdList
):
164 self
.PcdList
= PcdList
166 def GetPcdList(self
):
169 def SetUserExtensionList(self
, UserExtensionList
):
170 self
.UserExtensionList
= UserExtensionList
172 def GetUserExtensionList(self
):
173 return self
.UserExtensionList
175 def SetMiscFileList(self
, MiscFileList
):
176 self
.MiscFileList
= MiscFileList
178 def GetMiscFileList(self
):
179 return self
.MiscFileList
181 def SetModuleDict(self
, ModuleDict
):
182 self
.ModuleDict
= ModuleDict
184 def GetModuleDict(self
):
185 return self
.ModuleDict
187 def SetClonedFromList(self
, ClonedFromList
):
188 self
.ClonedFromList
= ClonedFromList
190 def GetClonedFromList(self
):
191 return self
.ClonedFromList
193 def SetModuleFileList(self
, ModuleFileList
):
194 self
.ModuleFileList
= ModuleFileList
196 def GetModuleFileList(self
):
197 return self
.ModuleFileList