aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/adhoc-rule-buildscript.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-08-04 06:45:02 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-08-04 06:45:02 +0200
commitea57c514dc169afb3ece21ff2e4c1d2ab0c47d6a (patch)
treee71ca9c5adf25aabb7ddb6a5e887415ecbfb36c0 /libbuild2/adhoc-rule-buildscript.hxx
parente767684a3462059852f7067a2297b1e18fdb3137 (diff)
Take into account file-base'ness in ad hoc buildscript recipes
Diffstat (limited to 'libbuild2/adhoc-rule-buildscript.hxx')
-rw-r--r--libbuild2/adhoc-rule-buildscript.hxx13
1 files changed, 10 insertions, 3 deletions
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.
};
}