]> git.tdb.fi Git - builder.git/blobdiff - source/tarball.h
Add a tarball component type
[builder.git] / source / tarball.h
index 6c36237370149cc1cc944105cb47e25288c92949..32b18b0e4dd3dc8b4907fbbc43bd5d1adba26458 100644 (file)
@@ -1,26 +1,23 @@
 /* $Id$
 
 This file is part of builder
-Copyright © 2007 Mikko Rasa, Mikkosoft Productions
+Copyright © 2007-2009  Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
 #ifndef TARBALL_H_
 #define TARBALL_H_
 
-#include "target.h"
+#include "filetarget.h"
 
-class TarBall: public Target
+class TarBall: public FileTarget
 {
 public:
-       TarBall(Builder &, const Package &, const std::string & =std::string());
+       TarBall(Builder &, const SourcePackage &, const std::string &);
        virtual const char *get_type() const { return "TarBall"; }
-       virtual void find_depends();
-       virtual Action *build();
+       const SourcePackage *get_package() const;
 private:
-       std::string tarname;
-
-       std::string create_target_name(const Package &, const std::string &);
+       virtual Action *create_action();
 };
 
 #endif