[gtksourceview] Add Libtool versioning
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Add Libtool versioning
- Date: Sat, 23 Mar 2013 12:31:42 +0000 (UTC)
commit 0dc5025bba7f6e423e58ce172a4336ef35a21c65
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Mar 22 22:26:47 2013 +0100
Add Libtool versioning
There was an ABI break during this cycle, to the algorithm has been
applied accordingly (from 0:0:0, since no libtool versioning was used
before).
https://bugzilla.gnome.org/show_bug.cgi?id=477709
configure.ac | 29 ++++++++++++++++++++++++++++-
gtksourceview/Makefile.am | 1 +
2 files changed, 29 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c92380b..0a3e5b4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,7 +7,34 @@ m4_define(gtksourceview_minor_version, 7)
m4_define(gtksourceview_micro_version, 93)
m4_define(gtksourceview_version,
gtksourceview_major_version.gtksourceview_minor_version.gtksourceview_micro_version)
-AC_INIT([gtksourceview],[gtksourceview_version],[http://bugzilla.gnome.org/enter_bug.cgi?product=gtksourceview],[gtksourceview],[http://projects.gnome.org/gtksourceview/])
+AC_INIT([gtksourceview],
+ [gtksourceview_version],
+ [http://bugzilla.gnome.org/enter_bug.cgi?product=gtksourceview],
+ [gtksourceview],
+ [http://projects.gnome.org/gtksourceview/])
+
+# Libtool versioning
+#
+# For development releases, keep the same numbers.
+#
+# For stable releases, 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
+# changed since the last update, increment CURRENT and set REVISION
+# to 0.
+# 3. If any exported functions or data have been added since the last
+# public release, increment AGE.
+# 4. If any exported functions or data have been removed since the last
+# public release, set AGE to 0.
+#
+# (From the book Autotools, by John Calcote)
+
+GSV_LT_CURRENT=1
+GSV_LT_REVISION=0
+GSV_LT_AGE=0
+GSV_LT_VERSION="$GSV_LT_CURRENT:$GSV_LT_REVISION:$GSV_LT_AGE"
+AC_SUBST(GSV_LT_VERSION)
AC_CONFIG_SRCDIR([gtksourceview/gtksourcebuffer.h])
AC_CONFIG_HEADER([config.h])
diff --git a/gtksourceview/Makefile.am b/gtksourceview/Makefile.am
index ef5280a..ea451b6 100644
--- a/gtksourceview/Makefile.am
+++ b/gtksourceview/Makefile.am
@@ -138,6 +138,7 @@ libgtksourceview_3_0_la_CFLAGS = \
$(CODE_COVERAGE_CFLAGS)
libgtksourceview_3_0_la_LDFLAGS = \
+ -version-info $(GSV_LT_VERSION) \
-no-undefined \
-export-symbols-regex "^gtk_source_.*" \
$(CODE_COVERAGE_LDFLAGS)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]