diff options
Diffstat (limited to 'tools/mhmake/src/fileinfo.h')
-rw-r--r-- | tools/mhmake/src/fileinfo.h | 14 |
1 files changed, 14 insertions, 0 deletions
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<rule> m_pRule;
+ mhmakeparser *m_pAutoDepsMakefile;
vector< refptr<fileinfo> > 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;
|