diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-07 14:51:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-04-07 14:51:53 +0200 |
commit | 9e6303e86dae25096ee62d74abfca4456be6a96f (patch) | |
tree | 58be935e7a1cc2843d251456478d8cc6ec1ad01a /build/scope | |
parent | 088a60c512aff26eeb026c516d0afe724880cb2b (diff) |
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.
Diffstat (limited to 'build/scope')
-rw-r--r-- | build/scope | 10 |
1 files changed, 7 insertions, 3 deletions
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 |