[folks] Set the version info for the public libraries.
- From: Travis Reitter <treitter src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Set the version info for the public libraries.
- Date: Thu, 15 Jul 2010 20:38:43 +0000 (UTC)
commit d71c754970e1ddda0901a955834ee3e09bc6776c
Author: Travis Reitter <travis reitter collabora co uk>
Date: Thu Jul 15 13:33:35 2010 -0700
Set the version info for the public libraries.
backends/telepathy/Makefile.am | 6 ++++++
configure.ac | 17 +++++++++++++++++
folks/Makefile.am | 6 ++++++
3 files changed, 29 insertions(+), 0 deletions(-)
---
diff --git a/backends/telepathy/Makefile.am b/backends/telepathy/Makefile.am
index e877691..06a0d60 100644
--- a/backends/telepathy/Makefile.am
+++ b/backends/telepathy/Makefile.am
@@ -104,6 +104,12 @@ libfolks_telepathy_la_LIBADD = \
$(TP_VALA_LIBS) \
$(NULL)
+# The quoting here is unnecessary but harmless, and has the useful side-effect
+# that vim quickfix mode (:make) doesn't interpret the libtool --mode=link
+# command as an error message in a bizarrely named file
+libfolks_telepathy_la_LDFLAGS = \
+ -version-info "$(LT_CURRENT)":"$(LT_REVISION)":"$(LT_AGE)"
+
folks_telepathy_includedir = $(includedir)/folks
folks_telepathy_include_HEADERS = \
folks-telepathy.h \
diff --git a/configure.ac b/configure.ac
index 63730de..5b77453 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6,6 +6,16 @@ m4_define([folks_minor_version], [1])
m4_define([folks_micro_version], [10])
m4_define([folks_nano_version], [0])
+# If library source has changed since last release, increment revision
+# If interfaces have been added, removed or changed since last release,
+# increment current and set revision to 0
+# If interfaces have been added since last release, increment age
+# If interfaces have been removed since last release, set age to 0
+
+m4_define([folks_lt_current], [10])
+m4_define([folks_lt_revision], [0])
+m4_define([folks_lt_age], [10])
+
dnl Display the nano_version only if it's not '0'
m4_define([folks_base_version],
[folks_major_version.folks_minor_version.folks_micro_version])
@@ -60,6 +70,13 @@ AC_SUBST(VALAC)
PKG_PROG_PKG_CONFIG([0.21])
+LT_CURRENT=folks_lt_current
+LT_REVISION=folks_lt_revision
+LT_AGE=folks_lt_age
+AC_SUBST([LT_CURRENT])
+AC_SUBST([LT_REVISION])
+AC_SUBST([LT_AGE])
+
# require GLib >= 2.24 so GLib.Array, etc. reffing is handled automatically
VALACFLAGS="$VALACFLAGS --target-glib=2.24"
AC_SUBST(VALACFLAGS)
diff --git a/folks/Makefile.am b/folks/Makefile.am
index 7cc9d0e..6201d0e 100644
--- a/folks/Makefile.am
+++ b/folks/Makefile.am
@@ -48,6 +48,12 @@ libfolks_la_LIBADD = \
$(GEE_LIBS) \
$(NULL)
+# The quoting here is unnecessary but harmless, and has the useful side-effect
+# that vim quickfix mode (:make) doesn't interpret the libtool --mode=link
+# command as an error message in a bizarrely named file
+libfolks_la_LDFLAGS = \
+ -version-info "$(LT_CURRENT)":"$(LT_REVISION)":"$(LT_AGE)"
+
folksdir = $(includedir)/folks
folks_HEADERS = folks.h
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]