From ea57c514dc169afb3ece21ff2e4c1d2ab0c47d6a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 4 Aug 2021 06:45:02 +0200 Subject: Take into account file-base'ness in ad hoc buildscript recipes --- libbuild2/adhoc-rule-buildscript.hxx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'libbuild2/adhoc-rule-buildscript.hxx') diff --git a/libbuild2/adhoc-rule-buildscript.hxx b/libbuild2/adhoc-rule-buildscript.hxx index 748a4c4..7f9c10a 100644 --- a/libbuild2/adhoc-rule-buildscript.hxx +++ b/libbuild2/adhoc-rule-buildscript.hxx @@ -25,6 +25,9 @@ namespace build2 virtual bool reverse_fallback (action, const target_type&) const override; + virtual bool + match (action, target&, const string&, match_extra&) const override; + virtual recipe apply (action, target&, match_extra&) const override; @@ -42,7 +45,10 @@ namespace build2 : adhoc_rule (move (n), l, b) {} virtual bool - recipe_text (const scope&, string&&, attributes&) override; + recipe_text (const scope&, + const target_type&, + string&&, + attributes&) override; virtual void dump_attributes (ostream&) const override; @@ -53,8 +59,9 @@ namespace build2 public: using script_type = build::script::script; - script_type script; - string checksum; // Script text hash. + script_type script; + string checksum; // Script text hash. + const target_type* ttype; // First target/pattern type. }; } -- cgit v1.1