|
|
@@ -23,6 +23,9 @@ class cmLocalGenerator;
|
|
|
*/
|
|
|
class cmDepends
|
|
|
{
|
|
|
+public:
|
|
|
+ typedef std::map<std::string, std::vector<std::string>> DependencyMap;
|
|
|
+
|
|
|
public:
|
|
|
/** Instances need to know the build directory name and the relative
|
|
|
path from the build directory to the target file. */
|
|
|
@@ -55,17 +58,13 @@ 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.
|
|
|
Dependencies which are still valid will be stored in validDeps. */
|
|
|
bool Check(const std::string& makeFile, const std::string& internalFile,
|
|
|
- std::map<std::string, DependencyVector>& validDeps);
|
|
|
+ DependencyMap& validDeps);
|
|
|
|
|
|
/** Clear dependencies for the target file so they will be regenerated. */
|
|
|
void Clear(const std::string& file);
|
|
|
@@ -84,9 +83,9 @@ 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, const std::string& internalDependsFileName,
|
|
|
- std::map<std::string, DependencyVector>& validDeps);
|
|
|
+ virtual bool CheckDependencies(std::istream& internalDepends,
|
|
|
+ const std::string& internalDependsFileName,
|
|
|
+ DependencyMap& validDeps);
|
|
|
|
|
|
// Finalize the dependency information for the target.
|
|
|
virtual bool Finalize(std::ostream& makeDepends,
|