aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/in/rule.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-01-20 16:25:34 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-01-20 16:25:34 +0200
commit214f1f05dfb3f2ae2090e491f3dd78836076c2e0 (patch)
tree3c9ce42b2cd783dc120ee727fa3dff6a8da3c25a /libbuild2/in/rule.hxx
parent70e095024ab33404ba0cf20c184a7a9560bca5f0 (diff)
Add in::rule::perform_update_{pre,post}() hooks
Also fix bug in depdb line parsing.
Diffstat (limited to 'libbuild2/in/rule.hxx')
-rw-r--r--libbuild2/in/rule.hxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/libbuild2/in/rule.hxx b/libbuild2/in/rule.hxx
index 1294586..33caea4 100644
--- a/libbuild2/in/rule.hxx
+++ b/libbuild2/in/rule.hxx
@@ -66,6 +66,16 @@ namespace build2
virtual void
perform_update_depdb (action, const target&, depdb&) const;
+ // Pre/post update.
+ //
+ virtual void
+ perform_update_pre (action, const target&,
+ ofdstream&, const char* newline) const;
+
+ virtual void
+ perform_update_post (action, const target&,
+ ofdstream&, const char* newline) const;
+
// Perform variable lookup.
//
// Flags can be used by a custom implementation to alter the lookup