[json-glib/json-glib-1-2: 5/9] build: Sync the interface age with the version
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [json-glib/json-glib-1-2: 5/9] build: Sync the interface age with the version
- Date: Sat, 18 Mar 2017 13:40:50 +0000 (UTC)
commit 016c93db6da096271ba19daad6ad10bd439f33d9
Author: Emmanuele Bassi <ebassi gnome org>
Date: Tue Mar 14 14:33:40 2017 +0000
build: Sync the interface age with the version
Like we do in the Meson build, the Autotools build should reset the
interface age every time we do a development cycle.
configure.ac | 14 ++++++++++----
1 files changed, 10 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 7302224..054d80b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -11,11 +11,17 @@ m4_define([json_release_status],
[m4_if(m4_eval(json_minor_version % 2), [1], [snapshot],
[release])])])
-# bump up by 1 for every micro release with no API changes, otherwise
-# set to 0. after release, bump up by 1
-m4_define([json_interface_age], [7])
-m4_define([json_binary_age], [m4_eval(100 * json_minor_version + json_micro_version)])
+# Only development cycles are allowed to add API
+m4_define([json_interface_age],
+ [m4_if(m4_eval(json_minor_version % 2), [1],
+ [0],
+ [json_micro_version])])
+# Binary age increases with every release
+m4_define([json_binary_age],
+ [m4_eval(100 * json_minor_version + json_micro_version)])
+
+# Keep the soname compatible between micro releases of the same stable cycle
m4_define([lt_current], [m4_eval(100 * json_minor_version + json_micro_version - json_interface_age)])
m4_define([lt_revision], [json_interface_age])
m4_define([lt_age], [m4_eval(json_binary_age - json_interface_age)])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]