From 8ecc09653d70fe8df4fc9fcd7214ba85e6db9c9c Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 2 Sep 2022 10:29:15 +0200 Subject: Add ability to specify `in` rule substitution as key-value pairs --- libbuild2/in/rule.hxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'libbuild2/in/rule.hxx') diff --git a/libbuild2/in/rule.hxx b/libbuild2/in/rule.hxx index bd0d15a..369fd93 100644 --- a/libbuild2/in/rule.hxx +++ b/libbuild2/in/rule.hxx @@ -54,6 +54,7 @@ namespace build2 // Customization hooks and helpers. // + using substitution_map = map>; // Perform prerequisite search. // @@ -89,6 +90,7 @@ namespace build2 action, const target&, const string& name, optional flags, + const substitution_map*, const optional& null) const; // Perform variable substitution. Return nullopt if it should be @@ -100,6 +102,7 @@ namespace build2 const string& name, optional flags, bool strict, + const substitution_map*, const optional& null) const; // Call the above version and do any necessary depdb saving. @@ -111,6 +114,7 @@ namespace build2 const string& name, optional flags, bool strict, + const substitution_map*, const optional& null) const; // Process a line of input from the specified position performing any @@ -124,6 +128,7 @@ namespace build2 const char* newline, char sym, bool strict, + const substitution_map*, const optional& null) const; // Replace newlines in a multi-line value with the given newline -- cgit v1.1