]> git.tdb.fi Git - builder.git/blobdiff - source/installedfile.h
Recent versions of sigc++ require C++11
[builder.git] / source / installedfile.h
index ef76ae7f60e8ca79b204c7e10122a4c46ec09bb5..9e886d580a00976672dcd125742adb5234643380 100644 (file)
@@ -15,14 +15,25 @@ private:
 
 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:
        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();
 
-       static Msp::FS::Path generate_target_path(const Msp::FS::Path &, const FileTarget &i, const std::string &);
+public:
+       virtual void clean();
 };
 
 #endif