]> git.tdb.fi Git - builder.git/blobdiff - source/sourcegenerator.h
Refactor the use of external tasks in tools
[builder.git] / source / sourcegenerator.h
index 3b96799dc81dccc06b199329532d451023cce9b7..b8dee24acfd8796de62900df56b5975261f98876 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 ExternalTask::Arguments _run(const SourceFile &, Msp::FS::Path &);
 };
 
 #endif