diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2017-11-04 01:17:16 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2017-11-24 05:06:39 +0300 |
commit | 43d743e75b7b747341b9a5c36a933b490548bebb (patch) | |
tree | 03d3c056929c9b8f51dd5d7cbd42c544f14c591b /build | |
parent | 9b1a5c3c0633240b2da16e57503cb67c392fdb3d (diff) |
Add implementation
Diffstat (limited to 'build')
-rw-r--r-- | build/.gitignore | 1 | ||||
-rw-r--r-- | build/bootstrap.build | 39 | ||||
-rw-r--r-- | build/export.build | 10 | ||||
-rw-r--r-- | build/root.build | 10 |
4 files changed, 60 insertions, 0 deletions
diff --git a/build/.gitignore b/build/.gitignore new file mode 100644 index 0000000..225c27f --- /dev/null +++ b/build/.gitignore @@ -0,0 +1 @@ +config.build diff --git a/build/bootstrap.build b/build/bootstrap.build new file mode 100644 index 0000000..9faf3b8 --- /dev/null +++ b/build/bootstrap.build @@ -0,0 +1,39 @@ +# file : build/bootstrap.build +# copyright : Copyright (c) 2016-2017 Code Synthesis Ltd +# 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 diff --git a/build/export.build b/build/export.build new file mode 100644 index 0000000..8f8df42 --- /dev/null +++ b/build/export.build @@ -0,0 +1,10 @@ +# file : build/export.build +# copyright : Copyright (c) 2016-2017 Code Synthesis Ltd +# license : LGPLv2.1; see accompanying COPYING file + +$out_root/: +{ + include mysql/ +} + +export $out_root/mysql/lib{mariadb} diff --git a/build/root.build b/build/root.build new file mode 100644 index 0000000..3c6fdb3 --- /dev/null +++ b/build/root.build @@ -0,0 +1,10 @@ +# file : build/root.build +# copyright : Copyright (c) 2016-2017 Code Synthesis Ltd +# license : LGPLv2.1; see accompanying COPYING file + +c.std = 99 + +using c + +h{*}: extension = h +c{*}: extension = c |