1 #ifndef INSTALLEDFILE_H_
2 #define INSTALLEDFILE_H_
4 #include "sourcepackage.h"
5 #include "filetarget.h"
8 Represents the installation of a file.
10 class InstalledFile: public FileTarget
17 InstalledFile(Builder &, const SourcePackage &, FileTarget &, const std::string & =std::string());
18 virtual const char *get_type() const { return "InstalledFile"; }
19 FileTarget &get_source() const { return source; }
20 const Msp::FS::Path &get_symlink() const { return link; }
21 virtual Target *get_real_target();
23 virtual void check_rebuild();
25 static Msp::FS::Path generate_target_path(const Msp::FS::Path &, const FileTarget &i, const std::string &);