From 9e6303e86dae25096ee62d74abfca4456be6a96f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 7 Apr 2015 14:51:53 +0200 Subject: Initial support for amalgamation/subprojects For now both need to be manually specified in src bootstrap. At this stage main() loads any outer root scopes while include loads any inner. --- build/scope | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'build/scope') diff --git a/build/scope b/build/scope index 057fbc1..2b621e7 100644 --- a/build/scope +++ b/build/scope @@ -42,9 +42,9 @@ namespace build bool root () const {return root_ == this;} - // Variable lookup. Note that this find, not find or insert like - // in the variable_map, because we also search in outer scopes. - // For the latter use the variables map directly. + // Variable lookup. Note that this is find, not find or insert like + // in the variable_map, because we also search in outer scopes. For + // the latter use the variables map directly. // public: value_proxy @@ -57,6 +57,10 @@ namespace build public: variable_map variables; + + const variable_map& + ro_variables () const {return variables;} + prerequisite_set prerequisites; // Meta/operations supported by this project (set on the root -- cgit v1.1