aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build/bootstrap.build18
-rw-r--r--build/root.build3
-rw-r--r--buildfile5
-rw-r--r--butl/buildfile8
-rw-r--r--manifest4
5 files changed, 30 insertions, 8 deletions
diff --git a/build/bootstrap.build b/build/bootstrap.build
index bbe167a..50d1639 100644
--- a/build/bootstrap.build
+++ b/build/bootstrap.build
@@ -3,12 +3,24 @@
# license : MIT; see accompanying LICENSE file
project = libbutl
+
+using build@0.4.0-a1
+
version = 0.4.0-a1
-using build@0.3.0
+abi_major = 0
+abi_minor = 4
+abi_patch = 0
+abi_prerelease = true
+
+revision = 0
+
+dist.package = $project-$version
+
+if ($revision != 0)
+ dist.package += +$revision
+
using config
using dist
using test
using install
-
-dist.package = $project-$version
diff --git a/build/root.build b/build/root.build
index 8550239..2ace472 100644
--- a/build/root.build
+++ b/build/root.build
@@ -11,7 +11,6 @@ ixx{*}: extension = ixx
txx{*}: extension = txx
cxx{*}: extension = cxx
-# All exe{} in tests/ are, well, tests. Don't install them.
+# All exe{} in tests/ are, well, tests.
#
tests/exe{*}: test = true
-tests/: install = false
diff --git a/buildfile b/buildfile
index ce5eae0..099ef52 100644
--- a/buildfile
+++ b/buildfile
@@ -6,4 +6,7 @@ d = butl/ tests/
./: $d doc{LICENSE NEWS README version} file{manifest}
include $d
-doc{INSTALL*}: install = false
+# Don't install tests or the INSTALL file.
+#
+dir{tests/}: install = false
+doc{INSTALL}@./: install = false
diff --git a/butl/buildfile b/butl/buildfile
index a2ba945..4ac0672 100644
--- a/butl/buildfile
+++ b/butl/buildfile
@@ -35,6 +35,14 @@ lib{butl}: file{sha256c.c}
#
lib{butl}: file{strptime.c timelocal.h timelocal.c}
+# 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
+else
+ lib{butl}: bin.lib.version = @-$abi_major.$abi_minor
+
cxx.poptions =+ -I$src_root
obja{*}: cxx.poptions += -DLIBBUTL_STATIC_BUILD
objs{*}: cxx.poptions += -DLIBBUTL_SHARED_BUILD
diff --git a/manifest b/manifest
index d2d7717..419874d 100644
--- a/manifest
+++ b/manifest
@@ -3,10 +3,10 @@ name: libbutl
version: 0.4.0-a1
summary: build2 utility library
license: MIT, BSD-2; MIT except for 4 files from the FreeBSD project.
-tags: build2, utility
+tags: build2, utility, library
description-file: README
changes-file: NEWS
url: https://build2.org
email: users@build2.org
requires: c++11
-requires: build2 >= 0.3.0
+requires: build2 >= 0.4.0