aboutsummaryrefslogtreecommitdiff
path: root/mod/build-config.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-11-30 13:28:04 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-11-30 17:10:06 +0300
commitf3d3143aa67d1d038f5eee1103c2b783d54955c4 (patch)
tree85e2c5eedf24cfef718c724a7711a2260397cc4f /mod/build-config.hxx
parent68aa933548c0fb927d0d03c522e49ba361c0e294 (diff)
Match build configuration names, targets and machine names as paths
Diffstat (limited to 'mod/build-config.hxx')
-rw-r--r--mod/build-config.hxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/mod/build-config.hxx b/mod/build-config.hxx
index e7ee9eb..a6f9902 100644
--- a/mod/build-config.hxx
+++ b/mod/build-config.hxx
@@ -80,6 +80,17 @@ namespace brep
{
return exclude (p.builds, p.constraints, c, r);
}
+
+ // Convert the build configuration name, target, machine name or their
+ // pattern into path, replacing dashes with slashes and double stars with
+ // the `*/**/*` substring for a subsequent match using our path_match()
+ // functionality. Throw invalid_path if the resulting path is invalid.
+ //
+ // Note that it is assumed that the match_absent path match flag will be
+ // used for matching for the double star replacement to make sense.
+ //
+ path
+ from_build_config_name (const string&);
}
#endif // MOD_BUILD_CONFIG_HXX