]> git.tdb.fi Git - builder.git/blobdiff - source/target.h
Remove all files in a side effect group when starting a task
[builder.git] / source / target.h
index 7c1d9a74b7ea90bc2ec881254da2cda61861f39b..6b9cc90a0842de77c845982a1f6462d7c107caf6 100644 (file)
@@ -138,6 +138,10 @@ public:
        virtual Task *build();
 
 protected:
+       /** Targets can override this to do additional setup on the Task.  This is
+       also called on side effects, which normally do not get built by themselves. */
+       virtual void build(Task &) { }
+
        /** Handler for Task::signal_finished. */
        virtual void build_finished(bool);