]> git.tdb.fi Git - builder.git/blob - source/pkgconfiggenerator.h
Refactor InternalTask to take a functor
[builder.git] / source / pkgconfiggenerator.h
1 #ifndef PKGCONFIGGENERATOR_H_
2 #define PKGCONFIGGENERATOR_H_
3
4 #include "tool.h"
5
6 class PkgConfigFile;
7
8 class PkgConfigGenerator: public Tool
9 {
10 public:
11         PkgConfigGenerator(Builder &b): Tool(b, "PCG") { }
12
13         Target *create_target(const std::vector<Target *> &, const std::string &) override;
14         Task *run(const Target &) const override;
15
16 private:
17         static bool _run(const PkgConfigFile &);
18         static std::string prefixify(const Msp::FS::Path &, const Msp::FS::Path &);
19 };
20
21 #endif