Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Added extra files in build_rule.txt to source file's dependency
git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@1250 7335b38e-4728-0410-8992-fb3ffe349368
  • Loading branch information
jwang36 committed Jun 5, 2008
1 parent 7af6710 commit c2edd62
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/Python/AutoGen/GenMake.py
Expand Up @@ -556,6 +556,7 @@ def ProcessSourceFileList(self):

ForceIncludedFile = []
SourceFileList = []
ExtraDenpendencies = {}

if "CC" not in self.PlatformInfo.ToolChainFamily:
EdkLogger.error("AutoGen", AUTOGEN_ERROR, "No CC tool found",
Expand Down Expand Up @@ -589,6 +590,7 @@ def ProcessSourceFileList(self):
self.SourceFileDatabase[SrcFileType] = []
self.SourceFileDatabase[SrcFileType].append(SrcFile)
SourceFileList.append(SrcFileRelativePath)
ExtraDenpendencies[SrcFileRelativePath] = ExtraSrcFileList

BuildTargetTemplate = "${BEGIN}%s : ${deps}\n"\
"${END}\t%s\n" % (DstFile, "\n\t".join(CommandList))
Expand Down Expand Up @@ -696,6 +698,7 @@ def ProcessSourceFileList(self):
self.SourceFileDatabase[SrcFileType] = []
self.SourceFileDatabase[SrcFileType].append(SrcFile)
SourceFileList.append(SrcFileRelativePath)
ExtraDenpendencies[SrcFileRelativePath] = ExtraSrcFileList

BuildTargetTemplate = "${BEGIN}%s : ${deps}\n"\
"${END}\t%s\n" % (DstFile, "\n\t".join(CommandList))
Expand Down Expand Up @@ -734,6 +737,8 @@ def ProcessSourceFileList(self):
self.FileDependency = self.GetFileDependency(SourceFileList, ForceIncludedFile, self._AutoGenObject.IncludePathList)
DepSet = None
for File in self.FileDependency:
if File in ExtraDenpendencies:
self.FileDependency[File] += ExtraDenpendencies[File]
# skip non-C files
if (not File.endswith(".c") and not File.endswith(".C")) or File.endswith("AutoGen.c"):
continue
Expand Down

0 comments on commit c2edd62

Please sign in to comment.