BaseTools: Support multiple .h file
for structure Pcd declaration in DEC file.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Bob Feng <bob.c.feng@intel.com>
Cc: Liming Gao <liming.gao@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
(cherry picked from commit 81add864f4
)
This commit is contained in:
committed by
Yonghong Zhu
parent
cb3a39107e
commit
fde92af67d
@ -1470,10 +1470,10 @@ class DscBuildData(PlatformBuildClassObject):
|
||||
Includes = {}
|
||||
for PcdName in StructuredPcds:
|
||||
Pcd = StructuredPcds[PcdName]
|
||||
IncludeFile = Pcd.StructuredPcdIncludeFile
|
||||
if IncludeFile not in Includes:
|
||||
Includes[IncludeFile] = True
|
||||
CApp = CApp + '#include <%s>\n' % (IncludeFile)
|
||||
for IncludeFile in Pcd.StructuredPcdIncludeFile:
|
||||
if IncludeFile not in Includes:
|
||||
Includes[IncludeFile] = True
|
||||
CApp = CApp + '#include <%s>\n' % (IncludeFile)
|
||||
CApp = CApp + '\n'
|
||||
|
||||
for PcdName in StructuredPcds:
|
||||
|
Reference in New Issue
Block a user