]> git.tdb.fi Git - builder.git/blob - source/copy.h
Redesign how tools are run
[builder.git] / source / copy.h
1 #ifndef COPY_H_
2 #define COPY_H_
3
4 #include "tool.h"
5
6 class InstalledFile;
7
8 /**
9 Copies a file to another place.  Used by the InstalledFile target.
10 */
11 class Copy: public Tool
12 {
13 public:
14         Copy(Builder &);
15
16         Target *create_target(const std::vector<Target *> &, const std::string &) override;
17
18 private:
19         static bool _run(const InstalledFile &);
20 };
21
22 #endif