]> git.tdb.fi Git - builder.git/blobdiff - source/datatool.cpp
Process paths after merging build info
[builder.git] / source / datatool.cpp
index 4a4fc8a0cd89360d875bc7682de8c8b02afc6cd5..9b101c7bf6187332636615af74a058ed06127c2f 100644 (file)
@@ -1,6 +1,5 @@
 #include <stdexcept>
 #include <msp/fs/utils.h>
-#include <msp/strings/format.h>
 #include "builder.h"
 #include "component.h"
 #include "datacollection.h"
@@ -16,6 +15,7 @@ using namespace Msp;
 DataTool::DataTool(Builder &b):
        Tool(b, "DATA")
 {
+       set_command("mspdatatool");
        input_suffixes.push_back(".mdt");
 }
 
@@ -48,13 +48,6 @@ Target *DataTool::create_target(const list<Target *> &sources, const string &arg
                throw invalid_argument("DataTool::create_target");
 }
 
-void DataTool::do_prepare()
-{
-       executable = builder.get_vfs().find_binary("mspdatatool");
-       if(!executable)
-               builder.problem(string(), format("Can't find executable mspdatatool for tool %s", tag));
-}
-
 Task *DataTool::run(const Target &tgt) const
 {
        const Component &comp = *tgt.get_component();