diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-08-02 11:06:35 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-08-02 11:06:35 +0200 |
commit | 0c1ea060f7417ffc52cababd74278ea9d6047114 (patch) | |
tree | 4759bd1823c549381dd53efc5b5738ab2fd1ce42 /libbutl/b.mxx | |
parent | 8dd3964adbaccb1286d67d1b3ba63e47f545e65f (diff) |
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.
Diffstat (limited to 'libbutl/b.mxx')
-rw-r--r-- | libbutl/b.mxx | 8 |
1 files changed, 7 insertions, 1 deletions
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<std::string> operations; std::vector<std::string> meta_operations; + + std::vector<std::string> modules; }; using b_callback = void (const char* const args[], std::size_t n); |