From 6362c4e4eda8340eedc73dfdbf6b92b281ccbadd Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 10 Mar 2017 11:51:24 +0200 Subject: Implement support for wildcard patterns --- build2/target-type | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'build2/target-type') diff --git a/build2/target-type b/build2/target-type index aa4bbf7..191c5d8 100644 --- a/build2/target-type +++ b/build2/target-type @@ -36,6 +36,10 @@ namespace build2 // (called for a target with the last argument false); see their // implementations for details. // + // If the pattern function is not NULL, then it is used to amend a pattern + // or match (reverse is false) and then, if the amendment call returned + // true, to reverse it in the resulting matches. + // struct target_type { const char* name; @@ -53,6 +57,8 @@ namespace build2 const scope&, bool search); + bool (*pattern) (const target_type&, const scope&, string&, bool reverse); + void (*print) (ostream&, const target_key&); const target* (*search) (const prerequisite_key&); -- cgit v1.1