mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-29 08:34:07 +02:00
BaseTools: Added extern declaration for protocols/PPI/GUID in AutoGhen.h
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yingke Liu <yingke.d.liu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17573 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
2befbc82cc
commit
8262037ff8
@ -1319,11 +1319,13 @@ def CreateGuidDefinitionCode(Info, AutoGenC, AutoGenH):
|
|||||||
|
|
||||||
if Info.GuidList:
|
if Info.GuidList:
|
||||||
AutoGenC.Append("\n// Guids\n")
|
AutoGenC.Append("\n// Guids\n")
|
||||||
|
AutoGenH.Append("\n// Guids\n")
|
||||||
#
|
#
|
||||||
# GUIDs
|
# GUIDs
|
||||||
#
|
#
|
||||||
for Key in Info.GuidList:
|
for Key in Info.GuidList:
|
||||||
AutoGenC.Append('GLOBAL_REMOVE_IF_UNREFERENCED %s %s = %s;\n' % (GuidType, Key, Info.GuidList[Key]))
|
AutoGenC.Append('GLOBAL_REMOVE_IF_UNREFERENCED %s %s = %s;\n' % (GuidType, Key, Info.GuidList[Key]))
|
||||||
|
AutoGenH.Append('extern %s %s;\n' % (GuidType, Key))
|
||||||
|
|
||||||
## Create code for protocol
|
## Create code for protocol
|
||||||
#
|
#
|
||||||
@ -1342,11 +1344,13 @@ def CreateProtocolDefinitionCode(Info, AutoGenC, AutoGenH):
|
|||||||
|
|
||||||
if Info.ProtocolList:
|
if Info.ProtocolList:
|
||||||
AutoGenC.Append("\n// Protocols\n")
|
AutoGenC.Append("\n// Protocols\n")
|
||||||
|
AutoGenH.Append("\n// Protocols\n")
|
||||||
#
|
#
|
||||||
# Protocol GUIDs
|
# Protocol GUIDs
|
||||||
#
|
#
|
||||||
for Key in Info.ProtocolList:
|
for Key in Info.ProtocolList:
|
||||||
AutoGenC.Append('GLOBAL_REMOVE_IF_UNREFERENCED %s %s = %s;\n' % (GuidType, Key, Info.ProtocolList[Key]))
|
AutoGenC.Append('GLOBAL_REMOVE_IF_UNREFERENCED %s %s = %s;\n' % (GuidType, Key, Info.ProtocolList[Key]))
|
||||||
|
AutoGenH.Append('extern %s %s;\n' % (GuidType, Key))
|
||||||
|
|
||||||
## Create code for PPI
|
## Create code for PPI
|
||||||
#
|
#
|
||||||
@ -1365,11 +1369,13 @@ def CreatePpiDefinitionCode(Info, AutoGenC, AutoGenH):
|
|||||||
|
|
||||||
if Info.PpiList:
|
if Info.PpiList:
|
||||||
AutoGenC.Append("\n// PPIs\n")
|
AutoGenC.Append("\n// PPIs\n")
|
||||||
|
AutoGenH.Append("\n// PPIs\n")
|
||||||
#
|
#
|
||||||
# PPI GUIDs
|
# PPI GUIDs
|
||||||
#
|
#
|
||||||
for Key in Info.PpiList:
|
for Key in Info.PpiList:
|
||||||
AutoGenC.Append('GLOBAL_REMOVE_IF_UNREFERENCED %s %s = %s;\n' % (GuidType, Key, Info.PpiList[Key]))
|
AutoGenC.Append('GLOBAL_REMOVE_IF_UNREFERENCED %s %s = %s;\n' % (GuidType, Key, Info.PpiList[Key]))
|
||||||
|
AutoGenH.Append('extern %s %s;\n' % (GuidType, Key))
|
||||||
|
|
||||||
## Create code for PCD
|
## Create code for PCD
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user