X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpkgconfiggenerator.h;h=0f0886b851aa2583176d1499dcb0100d9a058168;hb=d1eb133ab529cdae131be7b150209f03189248f3;hp=14ba317df9c6a31e12f120c911c81ed53c3b9c36;hpb=64d69068586a764b8a8ee35b0efd98cd5a5bbf32;p=builder.git diff --git a/source/pkgconfiggenerator.h b/source/pkgconfiggenerator.h index 14ba317..0f0886b 100644 --- a/source/pkgconfiggenerator.h +++ b/source/pkgconfiggenerator.h @@ -1,33 +1,21 @@ #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 &); + PkgConfigGenerator(Builder &b): Tool(b, "PCG") { } + + Target *create_target(const std::vector &, const std::string &) override; + Task *run(const Target &) const override; - virtual Target *create_target(const std::list &, const std::string &) const; - virtual Task *run(const Target &) const; +private: + static bool _run(const PkgConfigFile &); + static std::string prefixify(const Msp::FS::Path &, const Msp::FS::Path &); }; #endif