summaryrefslogtreecommitdiffstats
path: root/Source/cmDepends.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2007-12-19 21:36:30 (GMT)
committerBrad King <brad.king@kitware.com>2007-12-19 21:36:30 (GMT)
commitde96fd1df995f5b7d3f79514a5a3bf90c6b4b205 (patch)
tree381cb2630c9854fb72f0580b910789dc62882a7b /Source/cmDepends.h
parentc7bf320539c12de919b34868a6af558459f2ddc0 (diff)
downloadCMake-de96fd1df995f5b7d3f79514a5a3bf90c6b4b205.zip
CMake-de96fd1df995f5b7d3f79514a5a3bf90c6b4b205.tar.gz
CMake-de96fd1df995f5b7d3f79514a5a3bf90c6b4b205.tar.bz2
ENH: Moved dependency integrity check from CheckBuildSystem over to a per-target UpdateDependencies step. This greatly reduces the startup time for make processes and allows individual targets to be built without a global dependency check.
Diffstat (limited to 'Source/cmDepends.h')
-rw-r--r--Source/cmDepends.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/Source/cmDepends.h b/Source/cmDepends.h
index b6eda70..40dc59a 100644
--- a/Source/cmDepends.h
+++ b/Source/cmDepends.h
@@ -55,8 +55,11 @@ public:
bool Write(const char *src, const char *obj,
std::ostream &makeDepends, std::ostream &internalDepends);
- /** Check dependencies for the target file. */
- void Check(const char *makeFile, const char* internalFile);
+ /** Check dependencies for the target file. Returns true if
+ dependencies are okay and false if they must be generated. If
+ they must be generated Clear has already been called to wipe out
+ the old dependencies. */
+ bool Check(const char *makeFile, const char* internalFile);
/** Clear dependencies for the target file so they will be regenerated. */
void Clear(const char *file);
@@ -70,7 +73,7 @@ protected:
// Write dependencies for the target file to the given stream.
// Return true for success and false for failure.
virtual bool WriteDependencies(const char *src, const char* obj,
- std::ostream& makeDepends, std::ostream& internalDepends)=0;
+ std::ostream& makeDepends, std::ostream& internalDepends);
// Check dependencies for the target file in the given stream.
// Return false if dependencies must be regenerated and true