]> git.tdb.fi Git - builder.git/blobdiff - source/package.h
Rearrange Target members
[builder.git] / source / package.h
index 411eff06060ac6048cc521cf91c0daf35cff0492..14b343d9687227599a865130fa6fbe28dbe596cf 100644 (file)
@@ -1,16 +1,9 @@
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2007, 2009  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
 #ifndef PACKAGE_H_
 #define PACKAGE_H_
 
 #include <list>
 #include <string>
-#include <msp/datafile/loader.h>
+#include <msp/datafile/objectloader.h>
 #include "buildinfo.h"
 
 class Builder;
@@ -26,14 +19,11 @@ packages and the builderrc file for binary packages with no pkg-config support.
 class Package
 {
 public:
-       class Loader: public Msp::DataFile::Loader
+       class Loader: public Msp::DataFile::ObjectLoader<Package>
        {
        public:
                Loader(Package &);
-               Package &get_object() { return pkg; }
-       protected:
-               Package &pkg;
-
+       private:
                void require(const std::string &);
        };
 
@@ -69,6 +59,11 @@ public:
 protected:
        virtual void do_configure(const StringMap &, unsigned) { }
        virtual void create_build_info() { }
+
+public:
+       virtual void create_targets() { }
+
+       virtual void save_caches() { }
 };
 
 #endif