X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Finstalledfile.h;h=9e886d580a00976672dcd125742adb5234643380;hb=HEAD;hp=0dd671f42bf56c745d44d860bd2b6448fcbc41e2;hpb=bde362811368647047f3ca13bdec596f092ecffe;p=builder.git diff --git a/source/installedfile.h b/source/installedfile.h deleted file mode 100644 index 0dd671f..0000000 --- a/source/installedfile.h +++ /dev/null @@ -1,39 +0,0 @@ -#ifndef INSTALLEDFILE_H_ -#define INSTALLEDFILE_H_ - -#include "sourcepackage.h" -#include "filetarget.h" - -/** -Represents the installation of a file. -*/ -class InstalledFile: public FileTarget -{ -private: - FileTarget &source; - Msp::FS::Path link; - -public: - InstalledFile(Builder &, const SourcePackage &, FileTarget &, const std::string & =std::string()); -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; } - - Target *get_real_target() override; -private: - void check_rebuild() override; - -public: - void clean() override; -}; - -#endif