X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finstall.h;h=fd6472fea6fc40d7e4c40d35c09117ffba67002c;hb=2842eeda5aa7c143b3ff54d48f8673bbdcb35c75;hp=3c179c6dc71264798bcabef86fd21b13375fece8;hpb=59ac0a44d6edf179c01604c6ced744873213f855;p=builder.git diff --git a/source/install.h b/source/install.h index 3c179c6..fd6472f 100644 --- a/source/install.h +++ b/source/install.h @@ -1,29 +1,19 @@ #ifndef INSTALL_H_ #define INSTALL_H_ -#include -#include -#include "action.h" +#include "target.h" -class Install: public Action +/** +Represents the installation of a file. +*/ +class Install: public Target { public: - Install(const Msp::Path::Path &, const Msp::Path::Path &); + Install(Builder &, const Package &, Target &, const std::string &); + const char *get_type() const { return "Install"; } + void check_rebuild(); + Action *build(); private: - class Worker: public Msp::Thread - { - public: - Worker(Install &i): install(i), done(false) { launch(); } - private: - Install &install; - bool done; - - void main(); - }; - - Msp::Path::Path src; - Msp::Path::Path dest; - Worker worker; }; #endif