]> git.tdb.fi Git - builder.git/blobdiff - source/pkgconfiggenerator.h
Redesign how tools are run
[builder.git] / source / pkgconfiggenerator.h
index a9adbc6fe2a86100a26d9c032375b47e48442a72..761a2c0e8eaccb7e3276f40d2e2aa4971ecb26d1 100644 (file)
@@ -1,33 +1,20 @@
 #ifndef PKGCONFIGGENERATOR_H_
 #define PKGCONFIGGENERATOR_H_
 
-#include "internaltask.h"
 #include "tool.h"
 
 class PkgConfigFile;
 
 class PkgConfigGenerator: public Tool
 {
-private:
-       class Worker: public InternalTask::Worker
-       {
-       private:
-               const PkgConfigFile ⌖
-
-       public:
-               Worker(const PkgConfigFile &);
-
-       private:
-               virtual void main();
-
-               std::string prefixify(const Msp::FS::Path &, const Msp::FS::Path &);
-       };
-
 public:
        PkgConfigGenerator(Builder &);
 
-       virtual Target *create_target(const std::list<Target *> &, const std::string &);
-       virtual Task *run(const Target &) const;
+       Target *create_target(const std::vector<Target *> &, const std::string &) override;
+
+private:
+       static bool _run(const PkgConfigFile &);
+       static std::string prefixify(const Msp::FS::Path &, const Msp::FS::Path &);
 };
 
 #endif