X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftarget.h;h=c4a822b48df43f5747479c67bc7e955ee0ce1031;hb=799d256e952913524c5e51a59c836e7a4cb52ea5;hp=114a51ec35ae934faf1ed89acdf9b99a749c9382;hpb=df88e22a258f169b9505acb0cb8d0ba7e66af7b6;p=builder.git diff --git a/source/target.h b/source/target.h index 114a51e..c4a822b 100644 --- a/source/target.h +++ b/source/target.h @@ -9,6 +9,7 @@ #include class Builder; +class BuildInfo; class Component; class SourcePackage; class Task; @@ -26,7 +27,7 @@ dependencies can be used by other targets further down the chain. class Target { public: - typedef std::list Dependencies; + using Dependencies = std::list; protected: enum State @@ -114,6 +115,8 @@ public: the build() function. */ const Tool *get_tool() const { return tool; } + virtual void collect_build_info(BuildInfo &) const; + /** Indicates if it's possible to build this target. */ bool is_buildable() const { return tool!=0; }