]> git.tdb.fi Git - builder.git/blobdiff - source/sourcegenerator.h
Redesign how tools are run
[builder.git] / source / sourcegenerator.h
index 3b96799dc81dccc06b199329532d451023cce9b7..e9fe3087e07e7eb864b00c32ab1b8985db3b24b7 100644 (file)
@@ -6,6 +6,8 @@
 #include "sourcepackage.h"
 #include "tool.h"
 
+class SourceFile;
+
 class SourceGenerator: public Tool
 {
 public:
@@ -35,7 +37,8 @@ public:
        Target *create_source(const Component &, const Msp::FS::Path &) const override;
        Target *create_target(const std::vector<Target *> &, const std::string &) override;
 
-       Task *run(const Target &) const override;
+private:
+       static Task *_run(const SourceFile &);
 };
 
 #endif