aboutsummaryrefslogtreecommitdiff
path: root/build/context.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-08-24 09:51:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-08-24 14:52:43 +0200
commit68f96f9213e849d0d7c4cedf3edeaec99743ee27 (patch)
tree271913d74c906971cac555319f5e14d0c66e0c16 /build/context.cxx
parent0d5234f4aefd3cc5b5948cc1b9dd009e50046f5e (diff)
New variable architecture
Diffstat (limited to 'build/context.cxx')
-rw-r--r--build/context.cxx15
1 files changed, 14 insertions, 1 deletions
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.