X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fpkgconfiggenerator.cpp;h=46387d35fda45e4ca4f4817edb2e4c3c6c9eacb7;hb=1ed833343bc83b83c5f61cbfd74423bbba677a04;hp=a6178a7328c5e66fa5ad22df0bc0686013e0367b;hpb=2a23a19ff6717b32ddc45f84681c5c969c967e45;p=builder.git diff --git a/source/pkgconfiggenerator.cpp b/source/pkgconfiggenerator.cpp index a6178a7..46387d3 100644 --- a/source/pkgconfiggenerator.cpp +++ b/source/pkgconfiggenerator.cpp @@ -9,15 +9,15 @@ using namespace std; using namespace Msp; -Target *PkgConfigGenerator::create_target(const vector &, 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 &, const string &) { - const PkgConfigFile &pkgc = dynamic_cast(target); - return new InternalTask([&pkgc]{ return _run(pkgc); }); + throw logic_error("Not implemented"); } bool PkgConfigGenerator::_run(const PkgConfigFile &pkgc)