diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-17 13:18:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2018-07-17 13:18:17 +0200 |
commit | fe6f3ec0868185511f5acefb2729eb879798f052 (patch) | |
tree | 63a44a73be76ebbdc0be95c72b85756a6442c4eb /build2/version/module.hxx | |
parent | 3a739d4fe0aa7ed1786a93a20c7f43a69b0ebd16 (diff) |
Reimplement version::in_rule in terms of in::rule
Significantly, the version::in_rule rule now track changes to the substitution
values.
Diffstat (limited to 'build2/version/module.hxx')
-rw-r--r-- | build2/version/module.hxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/build2/version/module.hxx b/build2/version/module.hxx index b3bf813..56536c3 100644 --- a/build2/version/module.hxx +++ b/build2/version/module.hxx @@ -24,22 +24,23 @@ namespace build2 { static const string name; + const string& project; // The project variable value. + butl::standard_version version; bool committed; // Whether this is a committed snapshot. bool rewritten; // Whether this is a rewritten .z snapshot. dependency_constraints dependencies; - const variable* in_symbol = nullptr; // in.symbol - const variable* in_substitution = nullptr; // in.substitution - bool dist_uncommitted = false; - module (butl::standard_version v, + module (const string& p, + butl::standard_version v, bool c, bool r, dependency_constraints d) - : version (move (v)), + : project (p), + version (move (v)), committed (c), rewritten (r), dependencies (move (d)) {} |