summaryrefslogtreecommitdiffstats
path: root/BaseTools/Source/Python/Workspace/DscBuildData.py
diff options
context:
space:
mode:
authorFeng, Bob C <bob.c.feng@intel.com>2018-01-29 14:09:36 +0800
committerLiming Gao <liming.gao@intel.com>2018-02-01 09:21:45 +0800
commit81add864f4af238a2dfb702904a6abec12738b9d (patch)
tree09c4e62ecbc1e16db17b125544fb2ac5e4d07c38 /BaseTools/Source/Python/Workspace/DscBuildData.py
parent5db9414cc1b9b449c70a974f0aa0d17b41d09629 (diff)
downloadedk2-81add864f4af238a2dfb702904a6abec12738b9d.tar.gz
edk2-81add864f4af238a2dfb702904a6abec12738b9d.tar.bz2
edk2-81add864f4af238a2dfb702904a6abec12738b9d.zip
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>
Diffstat (limited to 'BaseTools/Source/Python/Workspace/DscBuildData.py')
-rw-r--r--BaseTools/Source/Python/Workspace/DscBuildData.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/BaseTools/Source/Python/Workspace/DscBuildData.py b/BaseTools/Source/Python/Workspace/DscBuildData.py
index 8c5afb5bf4..84f7b6a237 100644
--- a/BaseTools/Source/Python/Workspace/DscBuildData.py
+++ b/BaseTools/Source/Python/Workspace/DscBuildData.py
@@ -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: