[gtksourceview/wip/api-version: 1/2] build: create GSV_API_VERSION variable
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/api-version: 1/2] build: create GSV_API_VERSION variable
- Date: Wed, 19 Oct 2016 14:32:10 +0000 (UTC)
commit 4dd21d03bc42e77bb930b333be80d0911f361f6d
Author: Sébastien Wilmet <swilmet gnome org>
Date: Wed Oct 19 16:23:41 2016 +0200
build: create GSV_API_VERSION variable
https://bugzilla.gnome.org/show_bug.cgi?id=773174
configure.ac | 20 +++++++++++++++++---
1 files changed, 17 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 795beed..b0d94fb 100644
--- a/configure.ac
+++ b/configure.ac
@@ -24,9 +24,11 @@ AC_SUBST(GTK_SOURCE_MICRO_VERSION)
# Libtool versioning
#
-# For development releases, keep the same numbers.
+# For development releases (if the minor package version is odd), keep the same
+# Libtool version.
#
-# For stable releases, apply the following algorithm step by step:
+# For a new minor stable release (when incrementing the minor package version
+# to an even number), apply the following algorithm step by step:
# 1. If the library source code has changed at all since the last
# update, then increment REVISION.
# 2. If any exported functions or data have been added, removed, or
@@ -36,6 +38,9 @@ AC_SUBST(GTK_SOURCE_MICRO_VERSION)
# public release, increment AGE.
# 4. If any exported functions or data have been removed since the last
# public release, set AGE to 0.
+#
+# When incrementing the API version (usually for a new major package version),
+# set CURRENT, REVISION and AGE to 0 since it's like a new library.
GSV_LT_CURRENT=8
GSV_LT_REVISION=0
@@ -43,6 +48,15 @@ GSV_LT_AGE=7
GSV_LT_VERSION="$GSV_LT_CURRENT:$GSV_LT_REVISION:$GSV_LT_AGE"
AC_SUBST(GSV_LT_VERSION)
+# API version, used for parallel installability.
+# Not used in:
+# - po/Makevars
+# - the docs/reference/gtksourceview-3.0-sections.txt filename
+# Because as far as I've tested, it is not easily feasible to not hardcode the
+# API version in those places (swilmet).
+GSV_API_VERSION=3.0
+AC_SUBST(GSV_API_VERSION)
+
# Dependencies
glib_req=2.48
gtk_req=3.20
@@ -169,7 +183,7 @@ AM_GNU_GETTEXT_VERSION([0.19.4])
AS_IF([test "$USE_NLS" = "yes"],
[AC_DEFINE([ENABLE_NLS], [1], [Defined if native language support should be enabled.])])
-AC_SUBST([GETTEXT_PACKAGE], [gtksourceview-3.0])
+AC_SUBST([GETTEXT_PACKAGE], [gtksourceview-$GSV_API_VERSION])
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"], [Define to the gettext package name.])
# Documentation
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]