From 593fd960891027b97567b2622ed4b6c16070ab36 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 28 Apr 2017 08:33:42 +0200 Subject: Implement support for pre-processing version headers (or other files) Also implement the build system version check. --- build2/version/module | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'build2/version/module') diff --git a/build2/version/module b/build2/version/module index d5c1f01..6f913b3 100644 --- a/build2/version/module +++ b/build2/version/module @@ -5,6 +5,8 @@ #ifndef BUILD2_VERSION_MODULE #define BUILD2_VERSION_MODULE +#include + #include #include @@ -16,15 +18,19 @@ namespace build2 { namespace version { + // The 'depends' values from manifest. + // + using dependency_constraints = std::map; + struct module: module_base { static const string name; butl::standard_version version; - bool version_patched; // True if snapshot was patched in. + dependency_constraints dependencies; - module (butl::standard_version v, bool vp) - : version (move (v)), version_patched (vp) {} + module (butl::standard_version v, dependency_constraints d) + : version (move (v)), dependencies (move (d)) {} }; } } -- cgit v1.1