aboutsummaryrefslogtreecommitdiff
path: root/libbpkg/manifest.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-07-08 22:40:55 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-07-13 12:13:17 +0300
commitce43495d3539cdbeb8526bcee6b8617130c5f111 (patch)
tree096a4d1f4f1474ae5826a1ee4e8ec9cdf007032c /libbpkg/manifest.hxx
parent79f4ad271f6aff249da156df10efb25b513f7d46 (diff)
Add build-file package manifest value
Diffstat (limited to 'libbpkg/manifest.hxx')
-rw-r--r--libbpkg/manifest.hxx15
1 files changed, 9 insertions, 6 deletions
diff --git a/libbpkg/manifest.hxx b/libbpkg/manifest.hxx
index 2faf104..cad3c1e 100644
--- a/libbpkg/manifest.hxx
+++ b/libbpkg/manifest.hxx
@@ -1130,7 +1130,8 @@ namespace bpkg
// Additional buildfiles which are potentially included by root.build.
//
- std::vector<buildfile> buildfiles;
+ std::vector<buildfile> buildfiles; // Buildfiles content.
+ std::vector<butl::path> buildfile_paths;
// The following values are only valid in the manifest list (and only for
// certain repository types).
@@ -1274,17 +1275,19 @@ namespace bpkg
// Load the *-file manifest values using the specified load function that
// returns the file contents passing through any exception it may throw.
- // Set the potentially absent description type value to the effective
- // description type. If the effective type is nullopt then assign a
- // synthetic unknown type.
+ // If nullopt is returned, then the respective *-file value is left
+ // unexpanded. Set the potentially absent description type value to the
+ // effective description type. If the effective type is nullopt then
+ // assign a synthetic unknown type.
//
// Note that if the returned file contents is empty, load_files() makes
// sure that this is allowed by the value's semantics throwing
// manifest_parsing otherwise. However, the load function may want to
// recognize such cases itself in order to issue more precise diagnostics.
//
- using load_function = std::string (const std::string& name,
- const butl::path& value);
+ using load_function =
+ butl::optional<std::string> (const std::string& name,
+ const butl::path& value);
void
load_files (const std::function<load_function>&,