]> git.tdb.fi Git - builder.git/blobdiff - source/target.h
Process ObjectFile dependencies correctly even when it's processed before some header...
[builder.git] / source / target.h
index f0ec0f264916c56da0e32af9b1aa6f003ab175d6..ab9134aff85c2b4e34ab4c9eacd719c4e8ccc06d 100644 (file)
@@ -20,8 +20,9 @@ public:
        virtual const char *get_type() const=0;
        const std::list<Target *> &get_depends() const { return depends; }
        const Package     *get_package() const         { return package; }
+       bool              get_depends_ready() const       { return deps_ready; }
        void              add_depend(Target *);
-       virtual void      find_depends()=0;
+       virtual void      find_depends()               { deps_ready=true; }
        virtual void      prepare();
        virtual Action    *build()=0;
        void              reset_count()                { counted=false; }
@@ -38,6 +39,7 @@ protected:
        Msp::Time::TimeStamp mtime;
        std::list<Target *> depends;
        std::list<Target *> rdepends;
+       bool        deps_ready;
        bool        prepared;
        bool        buildable;
        bool        counted;