X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftarget.h;h=88642dc9ff5f446e1e30ee67e6c64a90df17c919;hb=47496103adfdfe45cdc162a4f6341e924211302d;hp=03b87557873e111a2b0eb986b90fb97b1cbe959a;hpb=243d7c7355c1c5d9a0134440f340936325caaf88;p=builder.git diff --git a/source/target.h b/source/target.h index 03b8755..88642dc 100644 --- a/source/target.h +++ b/source/target.h @@ -5,6 +5,7 @@ #include #include #include +#include #include class Builder; @@ -34,6 +35,10 @@ protected: UPTODATE }; +public: + sigc::signal signal_bubble_rebuild; + +protected: Builder &builder; const Package *package; const Component *component; @@ -70,9 +75,20 @@ public: void set_tool(const Tool &); const Tool *get_tool() const { return tool; } + /** Indicates if it's possible to build this target. */ bool is_buildable() const { return tool!=0; } + + /** Indicates if this target needs rebuilding. Only makes sense after the + target has been prepared. */ bool needs_rebuild() const { return state>PREPARING && state