From ae579402c8c64ea8ceea2e9fcee5097b3c53e353 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 13 Oct 2016 18:20:35 +0200 Subject: Minor dependency cleanup --- build2/context | 32 ++++---------------------------- 1 file changed, 4 insertions(+), 28 deletions(-) (limited to 'build2/context') diff --git a/build2/context b/build2/context index 257e96b..9b0af8a 100644 --- a/build2/context +++ b/build2/context @@ -17,8 +17,6 @@ namespace build2 { class file; - extern dir_path work; - extern dir_path home; extern options ops; extern string_pool extension_pool; @@ -75,6 +73,10 @@ namespace build2 using variable_overrides = vector; + // Variable override value cache. + // + extern variable_override_cache var_override_cache; + // Reset the build state. In particular, this removes all the targets, // scopes, and variables. // @@ -107,30 +109,6 @@ namespace build2 out_src (const dir_path& src, const dir_path& out_root, const dir_path& src_root); - // If possible and beneficial, translate an absolute, normalized path - // into relative to the relative_base directory, which is normally - // work. Note that if the passed path is the same as relative_base, - // then this function returns empty path. - // - template - basic_path - relative (const basic_path&); - - // By default this points to work. Setting this to something else - // should only be done in tightly controlled, non-parallel - // situations (see dump). If base is empty, then relative() - // returns the original path. - // - extern const dir_path* relative_base; - - // In addition to calling relative(), this function also uses shorter - // notations such as '~/'. For directories the result includes the trailing - // slash. If the path is the same as base, returns "./" if current is true - // and empty string otherwise. - // - string - diag_relative (const path&, bool current = true); - // Action phrases, e.g., "configure update exe{foo}", "updating exe{foo}", // and "updating exe{foo} is configured". Use like this: // @@ -180,6 +158,4 @@ namespace build2 } } -#include - #endif // BUILD2_CONTEXT -- cgit v1.1