using namespace std;
using namespace Msp;
-Target *PkgConfigGenerator::create_target(const vector<Target *> &, const string &)
+PkgConfigGenerator::PkgConfigGenerator(Builder &b):
+ Tool(b, "PCG")
{
- throw logic_error("Not implemented");
+ set_run_internal(_run);
}
-Task *PkgConfigGenerator::run(const Target &target) const
+Target *PkgConfigGenerator::create_target(const vector<Target *> &, const string &)
{
- const PkgConfigFile &pkgc = dynamic_cast<const PkgConfigFile &>(target);
- return new InternalTask([&pkgc]{ return _run(pkgc); });
+ throw logic_error("Not implemented");
}
bool PkgConfigGenerator::_run(const PkgConfigFile &pkgc)