]> git.tdb.fi Git - builder.git/blob - plugins/builtin/copy.h
Allow plugins to create additional targets in SourcePackages
[builder.git] / plugins / builtin / copy.h
1 #ifndef COPY_H_
2 #define COPY_H_
3
4 #include <msp/builder/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