aboutsummaryrefslogtreecommitdiff
path: root/bpkg/package-skeleton.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-03-21 21:32:42 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-03-23 14:50:00 +0300
commitfdaa71c503c04aa35230b7f932f9ad43cc994a08 (patch)
tree210bcc6268e9291a9c71919a725e8f26df32a148 /bpkg/package-skeleton.hxx
parentedeb250d50ca3f2dfb88a8b623abae43d4229bbc (diff)
Add configuration variable sources to selected packages
Diffstat (limited to 'bpkg/package-skeleton.hxx')
-rw-r--r--bpkg/package-skeleton.hxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/bpkg/package-skeleton.hxx b/bpkg/package-skeleton.hxx
index d2a848c..aaa9b8c 100644
--- a/bpkg/package-skeleton.hxx
+++ b/bpkg/package-skeleton.hxx
@@ -56,15 +56,17 @@ namespace bpkg
void
evaluate_reflect (const string&, size_t depends_index);
- // Return the accumulated reflect values.
+ // Return the accumulated reflect values together with their sources (the
+ // resulting vectors are parallel).
//
- // Note that the result is merged with config_vars and you should be used
- // instead rather than in addition to config_vars.
+ // Note that the result is merged with config_vars and should be used
+ // instead rather than in addition to config_vars. The source of
+ // configuration variables which are not the project variables is absent.
//
// Note also that this should be the final call on this object.
//
- strings
- collect_reflect () &&;
+ pair<strings, vector<optional<config_source>>>
+ collect_config () &&;
const package_name&
name () const {return available_->id.name;}