summaryrefslogtreecommitdiffstats
path: root/Source/cmDepends.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmDepends.h')
-rw-r--r--Source/cmDepends.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/Source/cmDepends.h b/Source/cmDepends.h
index 75afaaf..0fc66f8 100644
--- a/Source/cmDepends.h
+++ b/Source/cmDepends.h
@@ -59,12 +59,16 @@ public:
/** Write dependencies for the target file. */
bool Write(std::ostream &makeDepends, std::ostream &internalDepends);
-
+
+ class DependencyVector: public std::vector<std::string> {};
+
/** 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);
+ the old dependencies.
+ Dependencies which are still valid will be stored in validDeps. */
+ bool Check(const char *makeFile, const char* internalFile,
+ std::map<std::string, DependencyVector>& validDeps);
/** Clear dependencies for the target file so they will be regenerated. */
void Clear(const char *file);
@@ -83,7 +87,8 @@ protected:
// Check dependencies for the target file in the given stream.
// Return false if dependencies must be regenerated and true
// otherwise.
- virtual bool CheckDependencies(std::istream& internalDepends);
+ virtual bool CheckDependencies(std::istream& internalDepends,
+ std::map<std::string, DependencyVector>& validDeps);
// Finalize the dependency information for the target.
virtual bool Finalize(std::ostream& makeDepends,