2 # This file is used to define a class object to describe a package
4 # Copyright (c) 2011, 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 Library
.Misc
import Sdict
26 ## StandardIncludeFileObject
28 class StandardIncludeFileObject(CommonPropertiesObject
):
30 CommonPropertiesObject
.__init
__(self
)
33 def SetIncludeFile(self
, IncludeFile
):
34 self
.IncludeFile
= IncludeFile
36 def GetIncludeFile(self
):
37 return self
.IncludeFile
39 ## PackageIncludeFileObject
41 class PackageIncludeFileObject(StandardIncludeFileObject
):
47 class PackageObject(IdentificationObject
, CommonHeaderObject
):
49 IdentificationObject
.__init
__(self
)
50 CommonHeaderObject
.__init
__(self
)
54 self
.LibraryClassList
= []
58 self
.IncludePathList
= []
60 # StandardIncludeFileObject
62 self
.StandardIncludeFileList
= []
64 # PackageIncludeFileObject
66 self
.PackageIncludeFileList
= []
68 # Include and Arch List, item is (IncludePath, SupArchList-List of Arch), used during install package
70 self
.IncludeArchList
= []
74 self
.ProtocolList
= []
84 # (PcdObject, PcdErrorObject)
90 self
.UserExtensionList
= []
94 self
.MiscFileList
= []
95 self
.ModuleDict
= Sdict()
99 self
.ClonedFromList
= []
103 self
.ModuleFileList
= []
107 def SetLibraryClassList(self
, LibraryClassList
):
108 self
.LibraryClassList
= LibraryClassList
110 def GetLibraryClassList(self
):
111 return self
.LibraryClassList
113 def SetIncludePathList(self
, IncludePathList
):
114 self
.IncludePathList
= IncludePathList
116 def GetIncludePathList(self
):
117 return self
.IncludePathList
119 def SetIncludeArchList(self
, IncludeArchList
):
120 self
.IncludeArchList
= IncludeArchList
122 def GetIncludeArchList(self
):
123 return self
.IncludeArchList
125 def SetStandardIncludeFileList(self
, StandardIncludeFileList
):
126 self
.StandardIncludeFileList
= StandardIncludeFileList
128 def GetStandardIncludeFileList(self
):
129 return self
.StandardIncludeFileList
131 def SetPackageIncludeFileList(self
, PackageIncludeFileList
):
132 self
.PackageIncludeFileList
= PackageIncludeFileList
134 def GetPackageIncludeFileList(self
):
135 return self
.PackageIncludeFileList
137 def SetProtocolList(self
, ProtocolList
):
138 self
.ProtocolList
= ProtocolList
140 def GetProtocolList(self
):
141 return self
.ProtocolList
143 def SetPpiList(self
, PpiList
):
144 self
.PpiList
= PpiList
146 def GetPpiList(self
):
149 def SetGuidList(self
, GuidList
):
150 self
.GuidList
= GuidList
152 def GetGuidList(self
):
155 def SetPcdList(self
, PcdList
):
156 self
.PcdList
= PcdList
158 def GetPcdList(self
):
161 def SetUserExtensionList(self
, UserExtensionList
):
162 self
.UserExtensionList
= UserExtensionList
164 def GetUserExtensionList(self
):
165 return self
.UserExtensionList
167 def SetMiscFileList(self
, MiscFileList
):
168 self
.MiscFileList
= MiscFileList
170 def GetMiscFileList(self
):
171 return self
.MiscFileList
173 def SetModuleDict(self
, ModuleDict
):
174 self
.ModuleDict
= ModuleDict
176 def GetModuleDict(self
):
177 return self
.ModuleDict
179 def SetClonedFromList(self
, ClonedFromList
):
180 self
.ClonedFromList
= ClonedFromList
182 def GetClonedFromList(self
):
183 return self
.ClonedFromList
185 def SetModuleFileList(self
, ModuleFileList
):
186 self
.ModuleFileList
= ModuleFileList
188 def GetModuleFileList(self
):
189 return self
.ModuleFileList