]> git.tdb.fi Git - builder.git/blobdiff - source/tool.h
Refactor transitive dependencies to work on all targets
[builder.git] / source / tool.h
diff --git a/source/tool.h b/source/tool.h
deleted file mode 100644 (file)
index 5f21065..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-#ifndef TOOL_H_
-#define TOOL_H_
-
-#include <list>
-#include <string>
-#include <msp/fs/path.h>
-
-class Builder;
-class Component;
-class Target;
-class Task;
-
-class Tool
-{
-protected:
-       Builder &builder;
-       std::string tag;
-       std::list<std::string> input_suffixes;
-
-       Tool(Builder &, const std::string &);
-public:
-       virtual ~Tool() { }
-
-       const std::string &get_tag() const { return tag; }
-       const std::list<std::string> &get_input_suffixes() const { return input_suffixes; }
-       bool accepts_suffix(const std::string &) const;
-
-       virtual Target *create_source(const Component &, const Msp::FS::Path &) const { return 0; }
-       Target *create_target(Target &, const std::string & = std::string()) const;
-       virtual Target *create_target(const std::list<Target *> &, const std::string & = std::string()) const = 0;
-       virtual Task *run(const Target &) const = 0;
-};
-
-#endif