]> git.tdb.fi Git - builder.git/blobdiff - source/file.h
Add install component type
[builder.git] / source / file.h
index bc71df87a25d02ff30542b08ab329f67303cc3d0..13fa4e28e9e0b86396d778b69e773b77471d2325 100644 (file)
@@ -8,12 +8,16 @@ Distributed under the LGPL
 #ifndef FILE_H_
 #define FILE_H_
 
-#include "target.h"
+#include "filetarget.h"
 
-class File: public Target
+/**
+Just an arbitary file.  No special meaning attached.
+*/
+class File: public FileTarget
 {
 public:
-       File(Builder &, const std::string &);
+       File(Builder &b, const Msp::FS::Path &t): FileTarget(b, 0, t) { }
+       File(Builder &b, Package &p, const Msp::FS::Path &t): FileTarget(b, &p, t) { }
        virtual const char *get_type() const { return "File"; }
 private:
        virtual Action *create_action() { return 0; }