X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftarget.h;h=cf1d18651c9ed5f92c0ac0792b1ae6d75bf153a8;hb=762be94b71b647a18ef7d6e328280023de732aa8;hp=605b328badef68faaca64c0c6f2b84c61f9de98d;hpb=7aeaa4ba965f596edad438c02e345a8843f7469a;p=builder.git diff --git a/source/target.h b/source/target.h index 605b328..cf1d186 100644 --- a/source/target.h +++ b/source/target.h @@ -9,6 +9,7 @@ Distributed under the LGPL #define TARGET_H_ #include +#include #include #include @@ -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 TargetMap; + #endif