]> git.proxmox.com Git - mirror_edk2.git/blob - BaseTools/Source/Python/UPT/Object/POM/PackageObject.py
Sync BaseTools Branch (version r2271) to EDKII main trunk.
[mirror_edk2.git] / BaseTools / Source / Python / UPT / Object / POM / PackageObject.py
1 ## @file
2 # This file is used to define a class object to describe a package
3 #
4 # Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
5 #
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
10 #
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.
13
14 '''
15 PackageObject
16 '''
17
18 ##
19 # Import Modules
20 #
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
25
26 ## StandardIncludeFileObject
27 #
28 class StandardIncludeFileObject(CommonPropertiesObject):
29 def __init__(self):
30 CommonPropertiesObject.__init__(self)
31 self.IncludeFile = ''
32
33 def SetIncludeFile(self, IncludeFile):
34 self.IncludeFile = IncludeFile
35
36 def GetIncludeFile(self):
37 return self.IncludeFile
38
39 ## PackageIncludeFileObject
40 #
41 class PackageIncludeFileObject(StandardIncludeFileObject):
42 pass
43
44 ##
45 # PackageObject
46 #
47 class PackageObject(IdentificationObject, CommonHeaderObject):
48 def __init__(self):
49 IdentificationObject.__init__(self)
50 CommonHeaderObject.__init__(self)
51 #
52 # LibraryClassObject
53 #
54 self.LibraryClassList = []
55 #
56 # FileObject
57 #
58 self.IncludePathList = []
59 #
60 # StandardIncludeFileObject
61 #
62 self.StandardIncludeFileList = []
63 #
64 # PackageIncludeFileObject
65 #
66 self.PackageIncludeFileList = []
67 #
68 # Include and Arch List, item is (IncludePath, SupArchList-List of Arch), used during install package
69 #
70 self.IncludeArchList = []
71 #
72 # ProtocolObject
73 #
74 self.ProtocolList = []
75 #
76 # PpiObject
77 #
78 self.PpiList = []
79 #
80 # GuidObject
81 #
82 self.GuidList = []
83 #
84 # (PcdObject, PcdErrorObject)
85 #
86 self.PcdList = []
87 #
88 # UserExtensionObject
89 #
90 self.UserExtensionList = []
91 #
92 # MiscFileObject
93 #
94 self.MiscFileList = []
95 self.ModuleDict = Sdict()
96 #
97 # ClonedRecordObject
98 #
99 self.ClonedFromList = []
100 #
101 # string object
102 #
103 self.ModuleFileList = []
104
105 self.PcdChecks = []
106
107 def SetLibraryClassList(self, LibraryClassList):
108 self.LibraryClassList = LibraryClassList
109
110 def GetLibraryClassList(self):
111 return self.LibraryClassList
112
113 def SetIncludePathList(self, IncludePathList):
114 self.IncludePathList = IncludePathList
115
116 def GetIncludePathList(self):
117 return self.IncludePathList
118
119 def SetIncludeArchList(self, IncludeArchList):
120 self.IncludeArchList = IncludeArchList
121
122 def GetIncludeArchList(self):
123 return self.IncludeArchList
124
125 def SetStandardIncludeFileList(self, StandardIncludeFileList):
126 self.StandardIncludeFileList = StandardIncludeFileList
127
128 def GetStandardIncludeFileList(self):
129 return self.StandardIncludeFileList
130
131 def SetPackageIncludeFileList(self, PackageIncludeFileList):
132 self.PackageIncludeFileList = PackageIncludeFileList
133
134 def GetPackageIncludeFileList(self):
135 return self.PackageIncludeFileList
136
137 def SetProtocolList(self, ProtocolList):
138 self.ProtocolList = ProtocolList
139
140 def GetProtocolList(self):
141 return self.ProtocolList
142
143 def SetPpiList(self, PpiList):
144 self.PpiList = PpiList
145
146 def GetPpiList(self):
147 return self.PpiList
148
149 def SetGuidList(self, GuidList):
150 self.GuidList = GuidList
151
152 def GetGuidList(self):
153 return self.GuidList
154
155 def SetPcdList(self, PcdList):
156 self.PcdList = PcdList
157
158 def GetPcdList(self):
159 return self.PcdList
160
161 def SetUserExtensionList(self, UserExtensionList):
162 self.UserExtensionList = UserExtensionList
163
164 def GetUserExtensionList(self):
165 return self.UserExtensionList
166
167 def SetMiscFileList(self, MiscFileList):
168 self.MiscFileList = MiscFileList
169
170 def GetMiscFileList(self):
171 return self.MiscFileList
172
173 def SetModuleDict(self, ModuleDict):
174 self.ModuleDict = ModuleDict
175
176 def GetModuleDict(self):
177 return self.ModuleDict
178
179 def SetClonedFromList(self, ClonedFromList):
180 self.ClonedFromList = ClonedFromList
181
182 def GetClonedFromList(self):
183 return self.ClonedFromList
184
185 def SetModuleFileList(self, ModuleFileList):
186 self.ModuleFileList = ModuleFileList
187
188 def GetModuleFileList(self):
189 return self.ModuleFileList
190