MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / GetIncludeFileList

Function GetIncludeFileList

BaseTools/Source/Python/Ecc/c.py:573–592  ·  view source on GitHub ↗
(FullFileName)

Source from the content-addressed store, hash-verified

571 return FileID
572
573def GetIncludeFileList(FullFileName):
574 if os.path.splitext(FullFileName)[1].upper() not in ('.H'):
575 return []
576 IFList = IncludeFileListDict.get(FullFileName)
577 if IFList is not None:
578 return IFList
579
580 FileID = GetTableID(FullFileName)
581 if FileID < 0:
582 return []
583
584 Db = GetDB()
585 FileTable = 'Identifier' + str(FileID)
586 SqlStatement = """ select Value
587 from %s
588 where Model = %d
589 """ % (FileTable, DataClass.MODEL_IDENTIFIER_INCLUDE)
590 ResultSet = Db.TblFile.Exec(SqlStatement)
591 IncludeFileListDict[FullFileName] = ResultSet
592 return ResultSet
593
594def GetFullPathOfIncludeFile(Str, IncludePathList):
595 for IncludePath in IncludePathList:

Callers 1

GetAllIncludeFilesFunction · 0.85

Calls 3

GetTableIDFunction · 0.85
GetDBFunction · 0.70
ExecMethod · 0.45

Tested by

no test coverage detected