diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2019-02-18 13:02:02 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2019-02-18 13:02:02 +0200 |
commit | 2364f5cb43fa7c14f95304c432b6e215e158c224 (patch) | |
tree | 23fba2b96e71cc436035219cb1c03df6fa064eca /odb/boost/version-build2.hxx.in | |
parent | ff450b1336c1fc741693d51ed16754311aaa1783 (diff) |
Add support for building with build2
Diffstat (limited to 'odb/boost/version-build2.hxx.in')
-rw-r--r-- | odb/boost/version-build2.hxx.in | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/odb/boost/version-build2.hxx.in b/odb/boost/version-build2.hxx.in new file mode 100644 index 0000000..de844f9 --- /dev/null +++ b/odb/boost/version-build2.hxx.in @@ -0,0 +1,44 @@ +// file : odb/boost/version-build2.hxx.in +// copyright : Copyright (c) 2005-2019 Code Synthesis Tools CC +// license : GNU GPL v2; see accompanying LICENSE file + +#ifndef LIBODB_BOOST_VERSION // Note: using the version macro itself. + +// Note: using build2 standard versioning scheme. The numeric version format +// is AAABBBCCCDDDE where: +// +// AAA - major version number +// BBB - minor version number +// CCC - bugfix version number +// DDD - alpha / beta (DDD + 500) version number +// E - final (0) / snapshot (1) +// +// When DDDE is not 0, 1 is subtracted from AAABBBCCC. For example: +// +// Version AAABBBCCCDDDE +// +// 0.1.0 0000010000000 +// 0.1.2 0000010010000 +// 1.2.3 0010020030000 +// 2.2.0-a.1 0020019990010 +// 3.0.0-b.2 0029999995020 +// 2.2.0-a.1.z 0020019990011 +// +#define LIBODB_BOOST_VERSION $libodb_boost.version.project_number$ULL +#define LIBODB_BOOST_VERSION_STR "$libodb_boost.version.project$" +#define LIBODB_BOOST_VERSION_ID "$libodb_boost.version.project_id$" + +#define LIBODB_BOOST_VERSION_MAJOR $libodb_boost.version.major$ +#define LIBODB_BOOST_VERSION_MINOR $libodb_boost.version.minor$ +#define LIBODB_BOOST_VERSION_PATCH $libodb_boost.version.patch$ + +#define LIBODB_BOOST_PRE_RELEASE $libodb_boost.version.pre_release$ + +#define LIBODB_BOOST_SNAPSHOT $libodb_boost.version.snapshot_sn$ULL +#define LIBODB_BOOST_SNAPSHOT_ID "$libodb_boost.version.snapshot_id$" + +#include <odb/version.hxx> + +$libodb.check(LIBODB_VERSION, LIBODB_SNAPSHOT)$ + +#endif // LIBODB_BOOST_VERSION |