aboutsummaryrefslogtreecommitdiff
path: root/build2/target.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/target.hxx')
-rw-r--r--build2/target.hxx23
1 files changed, 21 insertions, 2 deletions
diff --git a/build2/target.hxx b/build2/target.hxx
index db5de67..1249f5c 100644
--- a/build2/target.hxx
+++ b/build2/target.hxx
@@ -648,6 +648,21 @@ namespace build2
static const target_type static_type;
public:
+ // Split the name leaf into target name (in place) and extension
+ // (returned).
+ //
+ static optional<string>
+ split_name (string&, const location&);
+
+ // Combine the target name and extension into the name leaf.
+ //
+ // If the target type has the default extension, then "escape" the
+ // existing extension if any.
+ //
+ static void
+ combine_name (string&, const optional<string>&, bool default_extension);
+
+ public:
virtual
~target ();
@@ -1704,7 +1719,9 @@ namespace build2
template <const char* ext>
bool
- target_pattern_fix (const target_type&, const scope&, string&, bool);
+ target_pattern_fix (const target_type&, const scope&,
+ string&, optional<string>&, const location&,
+ bool);
// Get the extension from the variable or use the default if none set. If
// the default is NULL, then return NULL.
@@ -1715,7 +1732,9 @@ namespace build2
template <const char* var, const char* def>
bool
- target_pattern_var (const target_type&, const scope&, string&, bool);
+ target_pattern_var (const target_type&, const scope&,
+ string&, optional<string>&, const location&,
+ bool);
// Always return NULL extension.
//