aboutsummaryrefslogtreecommitdiff
path: root/build2/target
diff options
context:
space:
mode:
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>