]> git.tdb.fi Git - builder.git/blobdiff - source/install.h
Add install component type
[builder.git] / source / install.h
index 41b43828e8a3304e546084d20756e7be33f3f75f..7cf56bb80fec36b7841f339d5909558df484bf05 100644 (file)
@@ -9,21 +9,25 @@ Distributed under the LGPL
 #define INSTALL_H_
 
 #include "sourcepackage.h"
-#include "target.h"
+#include "filetarget.h"
 
 /**
 Represents the installation of a file.
 */
-class Install: public Target
+class Install: public FileTarget
 {
+private:
+       FileTarget &source;
+
 public:
-       Install(Builder &, const SourcePackage &, Target &);
+       Install(Builder &, const SourcePackage &, FileTarget &, const std::string & =std::string());
        virtual const char *get_type() const { return "Install"; }
+       FileTarget &get_source() const { return source; }
 private:
        virtual void check_rebuild();
        virtual Action *create_action();
 
-       static std::string generate_target_name(const Target &);
+       static Msp::FS::Path generate_target_path(const FileTarget &i, const std::string &);
 };
 
 #endif