aboutsummaryrefslogtreecommitdiff
path: root/build2/version/module.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-11-10 20:41:51 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-11-10 20:41:51 +0200
commit99dfd1924b8a7bb5bdd0df132416ff8de6c382fa (patch)
treebfd6ed215d58064d03201315659bda0dbe49ac04 /build2/version/module.hxx
parentbecd974d4502f440c3071764c1d219c88caff286 (diff)
Relax substitution requirements, add alternative symbol in version .in support
Give this (legacy) version.h.in: Can now do: h{version}: in{version} file{$src_root/manifest} h{version}: in.symbol = '@' h{version}: FOO = $project.version
Diffstat (limited to 'build2/version/module.hxx')
-rw-r--r--build2/version/module.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/build2/version/module.hxx b/build2/version/module.hxx
index 45b1a47..4f9f66d 100644
--- a/build2/version/module.hxx
+++ b/build2/version/module.hxx
@@ -27,6 +27,8 @@ namespace build2
butl::standard_version version;
dependency_constraints dependencies;
+ const variable* in_symbol = nullptr;
+
module (butl::standard_version v, dependency_constraints d)
: version (move (v)), dependencies (move (d)) {}
};