diff options
author | marha <marha@users.sourceforge.net> | 2010-08-04 09:37:27 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-08-04 09:37:27 +0000 |
commit | f19a1f2d41337986c94cecfd348aca32a5445993 (patch) | |
tree | b50688dc07bfb1afadb4649d175bcbc64f1eb754 /tools/mhmake/src/fileinfo.h | |
parent | 240baf59a219841c5f8942c82f7ed61da9d2323b (diff) | |
download | vcxsrv-f19a1f2d41337986c94cecfd348aca32a5445993.tar.gz vcxsrv-f19a1f2d41337986c94cecfd348aca32a5445993.tar.bz2 vcxsrv-f19a1f2d41337986c94cecfd348aca32a5445993.zip |
Added possibility to force a dependency scan on a target with .AUTODEPS
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;
|