X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbuildgraph.h;h=371b5447e2e01291f8e902103a34d3cb12065565;hb=5e00719d0c63e306786ff36df61797cdbc86f3e9;hp=e702b51eb765328da30773c4c4c40943235d6835;hpb=09366b5da31707942f66e386cd0c07e5ece17b7f;p=builder.git diff --git a/source/buildgraph.h b/source/buildgraph.h index e702b51..371b544 100644 --- a/source/buildgraph.h +++ b/source/buildgraph.h @@ -1,7 +1,8 @@ #ifndef BUILDGRAPH_H_ #define BUILDGRAPH_H_ -#include "virtualfilesystem.h" +#include +#include class Builder; class Target; @@ -11,12 +12,9 @@ Manages a graph of targets. */ class BuildGraph { -public: - typedef std::map TargetMap; - private: Builder &builder; - TargetMap targets; + std::map 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 &get_targets() const { return targets; } /** Adds a target. It can later be retrieved by name. Called from Target constructor. */