aboutsummaryrefslogtreecommitdiff
path: root/build/bootstrap.build
blob: 5505885c837b2bc7315096302ce28083544870b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# file      : build/bootstrap.build
# license   : LGPLv2.1; see accompanying COPYING file

project = libmariadb

using version
using config
using dist
using test
using install

# The MariaDB server and client library versions have the same
# <major>.<minor>.<maintenance> form but do not correlate with each other. So,
# for example, the server 10.2.10 is released with the client 3.0.2. See also:
#
# https://mariadb.com/sites/default/files/MariaDBCorporationEngineeringpolicies-v1.03.pdf
#
# Releasing the library with the upstream server version (as the major Linux
# distributions do), we obtain the client version from the
# CPACK_PACKAGE_VERSION_* variable values in libmariadb/CMakeLists.txt for each
# package release. Also, while at it, check that the protocol version still
# correct (PROTOCOL_VERSION variable),
#
# See also how Debian/Fedora package libmariadb if trying to wrap your head
# around this mess.
#
if ($version.major == 10 && $version.minor == 2 && $version.patch == 10)
{
  client_major = 3
  client_minor = 0
  client_patch = 2

  protocol_version = 10
}
else
  fail "increment the ABI version?"

abi_version = $client_major