aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/target.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libbuild2/target.hxx')
-rw-r--r--libbuild2/target.hxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/libbuild2/target.hxx b/libbuild2/target.hxx
index 091b2d8..6022274 100644
--- a/libbuild2/target.hxx
+++ b/libbuild2/target.hxx
@@ -1577,6 +1577,15 @@ namespace build2
const char* name_suffix = nullptr,
const char* extra_ext = nullptr);
+ // As above but with the already derived (by calling derive_extension())
+ // extension.
+ //
+ const path_type&
+ derive_path_with_extension (const string& ext,
+ const char* name_prefix = nullptr,
+ const char* name_suffix = nullptr,
+ const char* extra_ext = nullptr);
+
// This version can be used to derive the path from another target's path
// by adding another extension.
//
@@ -1585,6 +1594,14 @@ namespace build2
const char* default_ext = nullptr,
const char* extra_ext = nullptr);
+ // As above but with the already derived (by calling derive_extension())
+ // extension.
+ //
+ const path_type&
+ derive_path_with_extension (path_type base,
+ const string& ext,
+ const char* extra_ext = nullptr);
+
// As above but only derives (and returns) the extension (empty means no
// extension used).
//