X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finstalledfile.h;h=0dd671f42bf56c745d44d860bd2b6448fcbc41e2;hb=bde362811368647047f3ca13bdec596f092ecffe;hp=ef76ae7f60e8ca79b204c7e10122a4c46ec09bb5;hpb=608d496e0fbad60cc8a110b78c7fb46bad4d2b4a;p=builder.git diff --git a/source/installedfile.h b/source/installedfile.h index ef76ae7..0dd671f 100644 --- a/source/installedfile.h +++ b/source/installedfile.h @@ -15,14 +15,25 @@ private: public: InstalledFile(Builder &, const SourcePackage &, FileTarget &, const std::string & =std::string()); - virtual const char *get_type() const { return "InstalledFile"; } +private: + static Msp::FS::Path generate_target_path(const Msp::FS::Path &, const FileTarget &i, const std::string &); + +public: + const char *get_type() const override { return "InstalledFile"; } FileTarget &get_source() const { return source; } + + /** Sets a symlink for the file. A relative path will be rooted at the + directory the file resides in. */ + void set_symlink(const Msp::FS::Path &); + const Msp::FS::Path &get_symlink() const { return link; } - virtual Target *get_real_target(); + + Target *get_real_target() override; private: - virtual void check_rebuild(); + void check_rebuild() override; - static Msp::FS::Path generate_target_path(const Msp::FS::Path &, const FileTarget &i, const std::string &); +public: + void clean() override; }; #endif