]> git.tdb.fi Git - builder.git/blobdiff - plugins/builtin/copy.h
Rearrange sources into subdirectories
[builder.git] / plugins / builtin / copy.h
diff --git a/plugins/builtin/copy.h b/plugins/builtin/copy.h
new file mode 100644 (file)
index 0000000..f6f01fb
--- /dev/null
@@ -0,0 +1,22 @@
+#ifndef COPY_H_
+#define COPY_H_
+
+#include <msp/builder/tool.h>
+
+class InstalledFile;
+
+/**
+Copies a file to another place.  Used by the InstalledFile target.
+*/
+class Copy: public Tool
+{
+public:
+       Copy(Builder &);
+
+       Target *create_target(const std::vector<Target *> &, const std::string &) override;
+
+private:
+       static bool _run(const InstalledFile &);
+};
+
+#endif