]> git.tdb.fi Git - builder.git/blobdiff - source/vssolutiongenerator.cpp
Redesign how tools are run
[builder.git] / source / vssolutiongenerator.cpp
index 5fd8e4dff2a10d0371227f9f76c136ef0d04ba4b..7dce0767e78ebd1138966d80442c80e9606c1436 100644 (file)
 using namespace std;
 using namespace Msp;
 
-Target *VsSolutionGenerator::create_target(const vector<Target *> &, const string &)
+VsSolutionGenerator::VsSolutionGenerator(Builder &b):
+       Tool(b, "VSSG")
 {
-       throw logic_error("Not implemented");
+       set_run_internal(_run);
 }
 
-Task *VsSolutionGenerator::run(const Target &target) const
+Target *VsSolutionGenerator::create_target(const vector<Target *> &, const string &)
 {
-       const VsSolutionFile &solution = dynamic_cast<const VsSolutionFile &>(target);
-       return new InternalTask([&solution]{ return _run(solution); });
+       throw logic_error("Not implemented");
 }
 
 bool VsSolutionGenerator::_run(const VsSolutionFile &solution)