diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-03-10 11:51:24 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-03-10 11:51:24 +0200 |
commit | 6362c4e4eda8340eedc73dfdbf6b92b281ccbadd (patch) | |
tree | c4878757293cc61398e257b96b0a30914e85e3a6 /build2/target-type | |
parent | a81d3fb9160b3032124bdc58e76619b724ccdb6c (diff) |
Implement support for wildcard patterns
Diffstat (limited to 'build2/target-type')
-rw-r--r-- | build2/target-type | 6 |
1 files changed, 6 insertions, 0 deletions
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&); |