aboutsummaryrefslogtreecommitdiff
path: root/butl/buildfile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-04-28 12:13:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-04-28 12:13:53 +0200
commitc470ddbfccef5c33f204535cb9327abdc6fcf2e2 (patch)
tree407924e71ba1273b38088c546b51a5677fcd40d2 /butl/buildfile
parent8c321554b1ea0c81efdea5e0921b6f391708d721 (diff)
Switch to version module
Diffstat (limited to 'butl/buildfile')
-rw-r--r--butl/buildfile9
1 files changed, 6 insertions, 3 deletions
diff --git a/butl/buildfile b/butl/buildfile
index 04e6e09..8a86b2c 100644
--- a/butl/buildfile
+++ b/butl/buildfile
@@ -58,13 +58,16 @@ lib{butl}: file{sha256c.c}
#
lib{butl}: file{strptime.c timelocal.h timelocal.c}
+hxx{version}: in{version} $src_root/file{manifest}
+hxx{version}: dist = true
+
# For pre-releases use the complete version to make sure they cannot be used
# in place of another pre-release or the final version.
#
-if $abi_prerelease
- lib{butl}: bin.lib.version = @-$version
+if $version.pre_release
+ lib{butl}: bin.lib.version = @"-$version.project_id"
else
- lib{butl}: bin.lib.version = @-$abi_major.$abi_minor
+ lib{butl}: bin.lib.version = @"-$version.major.$version.minor"
cxx.poptions =+ "-I$src_root"
obja{*}: cxx.poptions += -DLIBBUTL_STATIC_BUILD