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