]> git.tdb.fi Git - builder.git/blobdiff - source/buildgraph.h
Add gcc's private library directory to ClangLinker's system path
[builder.git] / source / buildgraph.h
index e702b51eb765328da30773c4c4c40943235d6835..371b5447e2e01291f8e902103a34d3cb12065565 100644 (file)
@@ -1,7 +1,8 @@
 #ifndef BUILDGRAPH_H_
 #define BUILDGRAPH_H_
 
-#include "virtualfilesystem.h"
+#include <map>
+#include <string>
 
 class Builder;
 class Target;
@@ -11,12 +12,9 @@ Manages a graph of targets.
 */
 class BuildGraph
 {
-public:
-       typedef std::map<std::string, Target *> TargetMap;
-
 private:
        Builder &builder;
-       TargetMap targets;
+       std::map<std::string, Target *> targets;
        Target *goals;
 
 public:
@@ -26,7 +24,7 @@ public:
        /** Looks up a target by name.  Returns 0 if no such target exists. */
        Target *get_target(const std::string &) const;
 
-       const TargetMap &get_targets() const { return targets; }
+       const std::map<std::string, Target *> &get_targets() const { return targets; }
 
        /** Adds a target.  It can later be retrieved by name.  Called from Target
        constructor. */