]> git.tdb.fi Git - builder.git/blobdiff - source/target.h
Add tarball building
[builder.git] / source / target.h
index 605b328badef68faaca64c0c6f2b84c61f9de98d..cf1d18651c9ed5f92c0ac0792b1ae6d75bf153a8 100644 (file)
@@ -9,6 +9,7 @@ Distributed under the LGPL
 #define TARGET_H_
 
 #include <list>
+#include <map>
 #include <string>
 #include <msp/time/timestamp.h>
 
@@ -37,9 +38,14 @@ public:
        const Package      *get_package() const        { return package; }
        bool               get_depends_ready() const   { return deps_ready; }
        void               add_depend(Target *);
-       virtual void       find_depends()              { deps_ready=true; }
        virtual void       prepare();
 
+       /**
+       Finds dependencies for the target.  When all dependencies have been found,
+       the function should set deps_ready to true.
+       */
+       virtual void       find_depends()              { deps_ready=true; }
+
        /**
        Creates and returns an Action suitable for building this target.
        */
@@ -74,4 +80,6 @@ protected:
        virtual void build_done();
 };
 
+typedef std::map<std::string, Target *> TargetMap;
+
 #endif