diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-08 12:36:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-09-08 12:36:05 +0200 |
commit | b66d30af9fb5c50966183820f8ed7af6b8791a2e (patch) | |
tree | 510a691f6e393e91b3fe870c5ccf0465e72c76d5 /build/context | |
parent | 18af73df698e560b847e46d524d059d2921876d5 (diff) |
Move context-dependent functions from diagnostics to context
Diffstat (limited to 'build/context')
-rw-r--r-- | build/context | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/build/context b/build/context index 920ad1f..ffe88bc 100644 --- a/build/context +++ b/build/context @@ -131,6 +131,32 @@ namespace build // returns the original path. // extern const dir_path* relative_base; + + // In addition to calling relative(), this function also uses shorter + // notations such as '~/'. + // + std::string + diag_relative (const path&); + + // As above but also adds trailing '/'. If the path is the same as + // base, returns "./" if current is true and empty string otherwise. + // + std::string + diag_relative (const dir_path&, bool current = true); + + // Action phrases, e.g., "configure update exe{foo}", "updating exe{foo}", + // and "updating exe{foo} is configured". + // + class target; + + std::string + diag_do (const action&, const target&); + + std::string + diag_doing (const action&, const target&); + + std::string + diag_done (const action&, const target&); } #include <build/context.txx> |