X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finstalledfile.h;h=9e886d580a00976672dcd125742adb5234643380;hb=8c9e5422b0ef5ee6d80cc23db8fe84f4a0812ddc;hp=0b9a4557ab35313a064997739df1b557322948cd;hpb=f0c501af5d99233efd3a45076ffbe69a71294863;p=builder.git diff --git a/source/installedfile.h b/source/installedfile.h index 0b9a455..9e886d5 100644 --- a/source/installedfile.h +++ b/source/installedfile.h @@ -21,10 +21,19 @@ private: public: virtual const char *get_type() const { 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(); private: virtual void check_rebuild(); + +public: + virtual void clean(); }; #endif