diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-09-29 08:55:34 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-09-29 08:55:34 +0200 |
commit | f63c0548281015ca1f7d71079c0880e3634063fb (patch) | |
tree | cb5cf0690e9d979c7fb98455f6a3320c7f0f53eb /libbuild2/scope.hxx | |
parent | 41273da120ef8e4a2bed7576de0532264b042ee1 (diff) |
Add notion of bundle amalgamation scope
Diffstat (limited to 'libbuild2/scope.hxx')
-rw-r--r-- | libbuild2/scope.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libbuild2/scope.hxx b/libbuild2/scope.hxx index 97c7be5..f82db72 100644 --- a/libbuild2/scope.hxx +++ b/libbuild2/scope.hxx @@ -69,6 +69,15 @@ namespace build2 const scope* root_scope () const; // Root scope of the outermost "strong" (source-based) amalgamation of + // this scope that has a project name or NULL if this scope is not (yet) + // in any (known) project. If there is no bundle amalgamation, then this + // function returns the root scope of the project (in other words, in this + // case a project is treated as its own bundle, even if it's unnamed). + // + scope* bundle_scope (); + const scope* bundle_scope () const; + + // Root scope of the outermost "strong" (source-based) amalgamation of // this scope or NULL if this scope is not (yet) in any (known) project. // If there is no strong amalgamation, then this function returns the root // scope of the project (in other words, in this case a project is treated |