X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finstalledfile.h;h=9e886d580a00976672dcd125742adb5234643380;hb=407b96515a5246384847d1835a2d69704e941ea1;hp=1ce5f1e3851475f65b4eea3ab3fa212a5043f5bc;hpb=1c43971ed99fd2f72ae171d6cdafabab74e37f4e;p=builder.git diff --git a/source/installedfile.h b/source/installedfile.h index 1ce5f1e..9e886d5 100644 --- a/source/installedfile.h +++ b/source/installedfile.h @@ -21,7 +21,13 @@ 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();