summaryrefslogtreecommitdiffstats
path: root/Source/cmGraphVizWriter.h
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2010-11-14 18:37:03 (GMT)
committerAlex Neundorf <neundorf@kde.org>2010-11-14 18:37:03 (GMT)
commit5ea1e4cb36d813bcb1377637779a54f18411763b (patch)
tree78eaa1d9ee77ccad958fc243dfd10ffb14855257 /Source/cmGraphVizWriter.h
parent2a5790a080d86c63daf3d2c17d533c919cbef582 (diff)
downloadCMake-5ea1e4cb36d813bcb1377637779a54f18411763b.zip
CMake-5ea1e4cb36d813bcb1377637779a54f18411763b.tar.gz
CMake-5ea1e4cb36d813bcb1377637779a54f18411763b.tar.bz2
Collect targets and libs on demand instead of in the ctor
This is necessary for the next commit which requires that the targets are collected after the settings have been read. Alex
Diffstat (limited to 'Source/cmGraphVizWriter.h')
-rw-r--r--Source/cmGraphVizWriter.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmGraphVizWriter.h b/Source/cmGraphVizWriter.h
index c9e5fbd..88842a6 100644
--- a/Source/cmGraphVizWriter.h
+++ b/Source/cmGraphVizWriter.h
@@ -15,6 +15,7 @@
#include "cmLocalGenerator.h"
#include "cmGeneratedFileStream.h"
#include "cmTarget.h"
+#include <cmsys/RegularExpression.hxx>
/** This class implements writing files for graphviz (dot) for graphs
@@ -34,9 +35,11 @@ public:
protected:
- int collectAllTargets();
+ void CollectTargetsAndLibs();
- int collectAllExternalLibs(int cnt);
+ int CollectAllTargets();
+
+ int CollectAllExternalLibs(int cnt);
void WriteHeader(cmGeneratedFileStream& str) const;
@@ -65,6 +68,8 @@ protected:
bool GenerateForSharedLibs;
bool GenerateForModuleLibs;
+ cmsys::RegularExpression TargetIgnoreRegex;
+
std::set<cmStdString> TargetsToIgnore;
const std::vector<cmLocalGenerator*>& LocalGenerators;
@@ -73,6 +78,7 @@ protected:
// maps from the actual target names to node names in dot:
std::map<cmStdString, cmStdString> TargetNamesNodes;
+ bool HaveTargetsAndLibs;
};
#endif