X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpkgconfiggenerator.h;h=761a2c0e8eaccb7e3276f40d2e2aa4971ecb26d1;hb=1ed833343bc83b83c5f61cbfd74423bbba677a04;hp=727b3e29536e0e24c14cb42c054d3d8179e05ca4;hpb=451ef4f33b5a57dcb56bd7cb671bed359ac86247;p=builder.git diff --git a/source/pkgconfiggenerator.h b/source/pkgconfiggenerator.h index 727b3e2..761a2c0 100644 --- a/source/pkgconfiggenerator.h +++ b/source/pkgconfiggenerator.h @@ -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 &t): target(t) { } - - private: - void main() override; - - std::string prefixify(const Msp::FS::Path &, const Msp::FS::Path &); - }; - public: - PkgConfigGenerator(Builder &b): Tool(b, "PCG") { } + PkgConfigGenerator(Builder &); Target *create_target(const std::vector &, const std::string &) override; - Task *run(const Target &) const override; + +private: + static bool _run(const PkgConfigFile &); + static std::string prefixify(const Msp::FS::Path &, const Msp::FS::Path &); }; #endif