]> git.tdb.fi Git - builder.git/blobdiff - source/target.h
Cache result of parsing $PATH
[builder.git] / source / target.h
index 114a51ec35ae934faf1ed89acdf9b99a749c9382..c4a822b48df43f5747479c67bc7e955ee0ce1031 100644 (file)
@@ -9,6 +9,7 @@
 #include <msp/time/timestamp.h>
 
 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<Target *> Dependencies;
+       using Dependencies = std::list<Target *>;
 
 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; }