summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-04-28 15:28:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-04-28 15:28:58 +0200
commit62ad02821c5676bf47de0d23ad7a79b67d7a8ae8 (patch)
tree14d9636d60ea3b0c232b900e29ea57572990e150
parent597749c3f0041a3ff321cca0cf6ef704e36164fd (diff)
Switch to version module
-rw-r--r--.gitignore2
-rw-r--r--build/bootstrap.build17
-rw-r--r--buildfile7
-rw-r--r--manifest4
-rw-r--r--print/buildfile6
-rw-r--r--version1
6 files changed, 12 insertions, 25 deletions
diff --git a/.gitignore b/.gitignore
index 01994ef..3947522 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,5 @@
*.exe
*.exe.dlls/
*.exe.manifest
+
+version
diff --git a/build/bootstrap.build b/build/bootstrap.build
index 0e7d401..bc4a8b1 100644
--- a/build/bootstrap.build
+++ b/build/bootstrap.build
@@ -1,21 +1,6 @@
project = libprint
-using build@0.4.0
-
-version = 1.0.0
-
-abi_major = 1
-abi_minor = 0
-abi_patch = 0
-abi_prerelease = false
-
-revision = 0
-
-dist.package = $project-$version
-
-if ($revision != 0)
- dist.package += +$revision
-
+using version
using config
using dist
using install
diff --git a/buildfile b/buildfile
index ae49972..2f92924 100644
--- a/buildfile
+++ b/buildfile
@@ -1,3 +1,4 @@
-d = print/
-./: $d doc{version} file{manifest}
-include $d
+./: print/ doc{version} file{manifest}
+
+doc{version}: file{manifest} # Generated by the version module.
+doc{version}: dist = true
diff --git a/manifest b/manifest
index 77f7a62..f32d236 100644
--- a/manifest
+++ b/manifest
@@ -11,5 +11,5 @@ url: http://www.example.org/libprint
email: hello-users@example.org
build-email: builds@build2.org
requires: c++11
-depends: * build2 >= 0.4.0
-depends: * bpkg >= 0.4.0
+depends: * build2 >= 0.5.0-
+depends: * bpkg >= 0.5.0-
diff --git a/print/buildfile b/print/buildfile
index 1fd6140..a2f6500 100644
--- a/print/buildfile
+++ b/print/buildfile
@@ -3,10 +3,10 @@ lib{print}: {hxx cxx}{print} hxx{export}
# 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{print}: bin.lib.version = @-$version
+if $version.pre_release
+ lib{print}: bin.lib.version = @"-$version.project_id"
else
- lib{print}: bin.lib.version = @-$abi_major.$abi_minor
+ lib{print}: bin.lib.version = @"-$version.major.$version.minor"
cxx.poptions =+ "-I$src_root"
obja{*}: cxx.poptions += -DLIBPRINT_STATIC_BUILD
diff --git a/version b/version
deleted file mode 100644
index 3eefcb9..0000000
--- a/version
+++ /dev/null
@@ -1 +0,0 @@
-1.0.0