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
\r
if Info.GuidList:\r
AutoGenC.Append("\n// Guids\n")\r
\r
if Info.GuidList:\r
AutoGenC.Append("\n// Guids\n")\r
+ AutoGenH.Append("\n// Guids\n")\r
#\r
# GUIDs\r
#\r
for Key in Info.GuidList:\r
AutoGenC.Append('GLOBAL_REMOVE_IF_UNREFERENCED %s %s = %s;\n' % (GuidType, Key, Info.GuidList[Key]))\r
#\r
# GUIDs\r
#\r
for Key in Info.GuidList:\r
AutoGenC.Append('GLOBAL_REMOVE_IF_UNREFERENCED %s %s = %s;\n' % (GuidType, Key, Info.GuidList[Key]))\r
+ AutoGenH.Append('extern %s %s;\n' % (GuidType, Key))\r
\r
## Create code for protocol\r
#\r
\r
## Create code for protocol\r
#\r
\r
if Info.ProtocolList:\r
AutoGenC.Append("\n// Protocols\n")\r
\r
if Info.ProtocolList:\r
AutoGenC.Append("\n// Protocols\n")\r
+ AutoGenH.Append("\n// Protocols\n")\r
#\r
# Protocol GUIDs\r
#\r
for Key in Info.ProtocolList:\r
AutoGenC.Append('GLOBAL_REMOVE_IF_UNREFERENCED %s %s = %s;\n' % (GuidType, Key, Info.ProtocolList[Key]))\r
#\r
# Protocol GUIDs\r
#\r
for Key in Info.ProtocolList:\r
AutoGenC.Append('GLOBAL_REMOVE_IF_UNREFERENCED %s %s = %s;\n' % (GuidType, Key, Info.ProtocolList[Key]))\r
+ AutoGenH.Append('extern %s %s;\n' % (GuidType, Key))\r
\r
## Create code for PPI\r
#\r
\r
## Create code for PPI\r
#\r
\r
if Info.PpiList:\r
AutoGenC.Append("\n// PPIs\n")\r
\r
if Info.PpiList:\r
AutoGenC.Append("\n// PPIs\n")\r
+ AutoGenH.Append("\n// PPIs\n")\r
#\r
# PPI GUIDs\r
#\r
for Key in Info.PpiList:\r
AutoGenC.Append('GLOBAL_REMOVE_IF_UNREFERENCED %s %s = %s;\n' % (GuidType, Key, Info.PpiList[Key]))\r
#\r
# PPI GUIDs\r
#\r
for Key in Info.PpiList:\r
AutoGenC.Append('GLOBAL_REMOVE_IF_UNREFERENCED %s %s = %s;\n' % (GuidType, Key, Info.PpiList[Key]))\r
+ AutoGenH.Append('extern %s %s;\n' % (GuidType, Key))\r
\r
## Create code for PCD\r
#\r
\r
## Create code for PCD\r
#\r