From 68f96f9213e849d0d7c4cedf3edeaec99743ee27 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 24 Aug 2015 09:51:15 +0200 Subject: New variable architecture --- build/context.cxx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'build/context.cxx') diff --git a/build/context.cxx b/build/context.cxx index 259c6ea..530ac7a 100644 --- a/build/context.cxx +++ b/build/context.cxx @@ -57,7 +57,20 @@ namespace build // Enter builtin variables. // - variable_pool.insert (variable ("subprojects", '=')); + variable_pool.find ("work", dir_path_type); + variable_pool.find ("home", dir_path_type); + + variable_pool.find ("src_root", dir_path_type); + variable_pool.find ("out_root", dir_path_type); + variable_pool.find ("src_base", dir_path_type); + variable_pool.find ("out_base", dir_path_type); + + variable_pool.find ("project", string_type); + variable_pool.find ("amalgamation", dir_path_type); + + // Shouldn't be typed since the value requires pre-processing. + // + variable_pool.find ("subprojects", nullptr, '='); // Create global scope. For Win32 we use the empty path since there // is no "real" root path. On POSIX, however, this is a real path. -- cgit v1.1