aboutsummaryrefslogtreecommitdiff
path: root/build2/target
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-03-10 11:51:24 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-03-10 11:51:24 +0200
commit6362c4e4eda8340eedc73dfdbf6b92b281ccbadd (patch)
treec4878757293cc61398e257b96b0a30914e85e3a6 /build2/target
parenta81d3fb9160b3032124bdc58e76619b724ccdb6c (diff)
Implement support for wildcard patterns
Diffstat (limited to 'build2/target')
-rw-r--r--build2/target8
1 files changed, 8 insertions, 0 deletions
diff --git a/build2/target b/build2/target
index b5a8f78..ef1e34d 100644
--- a/build2/target
+++ b/build2/target
@@ -1602,6 +1602,10 @@ namespace build2
optional<string>
target_extension_fix (const target_key&, const scope&, bool);
+ template <const char* ext>
+ bool
+ target_pattern_fix (const target_type&, const scope&, string&, bool);
+
// Get the extension from the variable or use the default if none set. If
// the default is NULL, then return NULL.
//
@@ -1609,6 +1613,10 @@ namespace build2
optional<string>
target_extension_var (const target_key&, const scope&, bool);
+ template <const char* var, const char* def>
+ bool
+ target_pattern_var (const target_type&, const scope&, string&, bool);
+
// Always return NULL extension.
//
optional<string>