#include "tier1/interface.h" #include "helper.h" static BuildFileInfo_t buildfileinfo = {}; BuildFileInfo_t *GetBuildFileInfo() { return &buildfileinfo; } CBuildStage::CBuildStage( const char *psz, int(*pMainFn)() ) { m_psz = psz; m_pMainFn = pMainFn; if (psz == 0 || pMainFn == 0) Plat_FatalErrorFunc("Name and function pointer must be set\n"); GetBuildFileInfo()->m_stages.AppendTail(this); }; CBuildDependentFile::CBuildDependentFile( const char *psz ) { GetBuildFileInfo()->m_dependantFiles.AppendTail(psz); } EXPOSE_INTERFACE_GLOBALVAR(BuildFileInfo_t, BuildFileInfo_t, BUILD_FILE_INFO_INTERFACE_NAME, buildfileinfo);