From c1dc06dfd1d329f8c6499dbe2166725ab9c35e17 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 20 Jul 2018 15:31:13 +0200 Subject: Implement bash module --- build2/in/rule.hxx | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'build2/in/rule.hxx') diff --git a/build2/in/rule.hxx b/build2/in/rule.hxx index 17fbaed..9c40e4f 100644 --- a/build2/in/rule.hxx +++ b/build2/in/rule.hxx @@ -41,23 +41,38 @@ namespace build2 virtual recipe apply (action, target&) const override; + virtual target_state + perform_update (action, const target&) const; + + // Customization hooks. + // + + // Perform prerequisite search. + // + virtual prerequisite_target + search (action, + const target&, + const prerequisite_member&, + include_type) const; + // Perform variable lookup. // virtual string - lookup (const location&, const target&, const string& name) const; + lookup (const location&, + action, + const target&, + const string& name) const; // Perform variable substitution. Return nullopt if it should be // ignored. // virtual optional substitute (const location&, + action, const target&, const string& name, bool strict) const; - target_state - perform_update (action, const target&) const; - protected: const string rule_id_; const string program_; -- cgit v1.1