From 0c1ea060f7417ffc52cababd74278ea9d6047114 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 2 Aug 2021 11:06:35 +0200 Subject: Add version_string, list of modules to b_info() result Also only attempt to parse the string version to standard version if the version modules is loaded. --- libbutl/b.mxx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'libbutl/b.mxx') diff --git a/libbutl/b.mxx b/libbutl/b.mxx index 9e12711..97dcf0c 100644 --- a/libbutl/b.mxx +++ b/libbutl/b.mxx @@ -73,9 +73,12 @@ LIBBUTL_MODEXPORT namespace butl // speeds up its execution. // // You can also specify the build2 verbosity level, command line callback - // (see process_run_callback() for details), build program search details + // (see process_run_callback() for details), build program search details, // and additional options. // + // Note that version_string is only parsed to standard_version if the + // project uses the version module. Otherwise, standard_version is empty. + // struct b_project_info { using url_type = butl::url; @@ -87,6 +90,7 @@ LIBBUTL_MODEXPORT namespace butl }; project_name project; + std::string version_string; standard_version version; std::string summary; url_type url; @@ -100,6 +104,8 @@ LIBBUTL_MODEXPORT namespace butl std::vector operations; std::vector meta_operations; + + std::vector modules; }; using b_callback = void (const char* const args[], std::size_t n); -- cgit v1.1