From f19a1f2d41337986c94cecfd348aca32a5445993 Mon Sep 17 00:00:00 2001 From: marha Date: Wed, 4 Aug 2010 09:37:27 +0000 Subject: Added possibility to force a dependency scan on a target with .AUTODEPS --- tools/mhmake/src/fileinfo.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tools/mhmake/src/fileinfo.h') diff --git a/tools/mhmake/src/fileinfo.h b/tools/mhmake/src/fileinfo.h index 6c9800f38..e221293e6 100644 --- a/tools/mhmake/src/fileinfo.h +++ b/tools/mhmake/src/fileinfo.h @@ -136,6 +136,7 @@ class fileinfo : public refbase bool m_IsPhony; int m_BuildStatus; /* Bit 0 means the target built is started, Bit 1 means the target is still building */ refptr m_pRule; + mhmakeparser *m_pAutoDepsMakefile; vector< refptr > m_Deps; mh_time_t m_Date; uint32 m_CommandsMd5_32; // 32-bit Md5 checksum of commands to build this target @@ -147,6 +148,7 @@ public: fileinfo(const string &AbsFileName,uint32 Md5_32) { m_IsPhony=false; + m_pAutoDepsMakefile=NULL; m_BuildStatus=0; m_AbsFileName=UnquoteFileName(AbsFileName); InvalidateDate(); @@ -292,6 +294,18 @@ public: return m_Deps; } string GetPrerequisits(void) const; + void SetAutoDepsScan(mhmakeparser *pMakefile) + { + #ifdef _DEBUG + if (m_pAutoDepsMakefile) + throw(string(".AUTODEPS can only defined ones for rule ")+GetFullFileName()); + #endif + m_pAutoDepsMakefile=pMakefile; + } + mhmakeparser *GetAutoDepsMakefile(void) const + { + return m_pAutoDepsMakefile; + } void SetPhony(void) { m_IsPhony=true; -- cgit v1.2.3