diff options
Diffstat (limited to 'build2/target')
-rw-r--r-- | build2/target | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/build2/target b/build2/target index 3207778..955c2f9 100644 --- a/build2/target +++ b/build2/target @@ -1025,11 +1025,23 @@ namespace build2 // Finally, if the path was already assigned to this target, then this // function verifies that the two are the same. // - void + const path_type& derive_path (const char* default_ext = nullptr, const char* name_prefix = nullptr, const char* name_suffix = nullptr); + // This version can be used to derive the path from another target's path + // by adding another extension. + // + const path_type& + derive_path (path_type base, const char* default_ext = nullptr); + + // As above but only derives (and returns) the extension (empty means no + // extension used). + // + const string& + derive_extension (const char* default_ext = nullptr); + public: static const target_type static_type; |