X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=plugins%2Fbuiltin%2Fcopy.h;fp=plugins%2Fbuiltin%2Fcopy.h;h=f6f01fbe037d2b8ef19d135830a073a51a83653f;hb=c8e829c219c65ff8e93b6c7b66212ff0876441c5;hp=0000000000000000000000000000000000000000;hpb=e2c9c3fffcc61a0c102ccf6a7924e2de709092ad;p=builder.git diff --git a/plugins/builtin/copy.h b/plugins/builtin/copy.h new file mode 100644 index 0000000..f6f01fb --- /dev/null +++ b/plugins/builtin/copy.h @@ -0,0 +1,22 @@ +#ifndef COPY_H_ +#define COPY_H_ + +#include + +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 &, const std::string &) override; + +private: + static bool _run(const InstalledFile &); +}; + +#endif