## @file
# This file is used to parse a Package file of .PKG file
#
# Copyright (c) 2011, Intel Corporation. All rights reserved.<BR>
#
# 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
#
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
'''
PackageSurfaceAreaXml
'''
##
# IndustryStandardHeaderXml
#
Include = IncludeObject()
HelpTxt = TextObject()
return Include
if self.HeaderFile:
pass
AttributeList = []
return Root
return Str
##
# PackageIncludeHeaderXml
#
Include = IncludeObject()
HelpTxt = TextObject()
return Include
if self.HeaderFile:
pass
Tmp = HelpTextXml()
return Root
return Str
##
# PcdCheckXml
#
if Key:
pass
pass
return Root
##
# PackageSurfaceAreaXml
#
if Key:
pass
#
# Create a package object
#
Package = PackageObject()
#
# Header
#
Tmp = PackageHeaderXml()
#
# ClonedFrom
#
Tmp = ClonedFromXml()
#
# LibraryClass
#
Tmp = LibraryClassXml()
Package.SetLibraryClassList([None])
#
# IndustryStandardHeader
#
for SubItem in XmlList(Item, '/PackageSurfaceArea/IndustryStandardIncludes/IndustryStandardHeader'):
Package.SetStandardIncludeFileList([None])
#
# PackageHeader
#
Package.SetPackageIncludeFileList([None])
#
# Guid
#
Package.SetGuidList([None])
#
# Protocol
#
Package.SetProtocolList([None])
#
# Ppi
#
Package.SetPpiList([None])
#
# PcdEntry
#
Tmp = PcdEntryXml()
Package.SetPcdList([None])
#
# PcdCheck
#
Tmp = PcdCheckXml()
#
# Modules
#
#
# MiscellaneousFile
#
MiscFileList = Tmp.FromXml(XmlNode(Item, '/PackageSurfaceArea/MiscellaneousFiles'), 'MiscellaneousFiles')
if MiscFileList:
else:
#
# UserExtensions
#
Tmp = UserExtensionsXml()
pass
#
# Create PackageSurfaceArea node
#
#
# Header
#
Tmp = PackageHeaderXml()
#
# ClonedFrom
#
Tmp = ClonedFromXml()
if Package.GetClonedFromList() != []:
#
# LibraryClass
#
Tmp = LibraryClassXml()
#
# IndustryStandardHeader
#
#
# PackageHeader
#
#
# Guid
#
(GuidProtocolPpi, 'Entry'))
#
# Protocol
#
#
# Ppi
#
#
# PcdEntry
#
Tmp = PcdEntryXml()
#
# MiscellaneousFile
#
if Package.GetMiscFileList():
#
# UserExtensions
#
if Package.GetUserExtensionList():
Tmp = UserExtensionsXml()
return DomPackage