[gnome-online-accounts] build: Introduce proper sonames for libgoa and libgoa-backend



commit 787c3a693c0f54a6fcc992e661b25bbfd54411f7
Author: Debarshi Ray <debarshir gnome org>
Date:   Thu Aug 22 18:35:34 2013 +0200

    build: Introduce proper sonames for libgoa and libgoa-backend
    
    The libgoa-backend soname was bumped because goa_provider_get_all was
    turned into an asynchronous operation in 1a8bfdf.

 configure.ac               |   12 ++++++++++++
 src/goa/Makefile.am        |    4 ++++
 src/goabackend/Makefile.am |    4 ++++
 3 files changed, 20 insertions(+), 0 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 02ca840..7278998 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,6 +37,18 @@ AC_SUBST(GOA_MAJOR_VERSION)
 AC_SUBST(GOA_MINOR_VERSION)
 AC_SUBST(GOA_MICRO_VERSION)
 
+# Before making a release, the LT_VERSION string should be modified.
+# The string is of the form C:R:A.
+# - If interfaces have been changed or added, but binary compatibility has
+#   been preserved, change to C+1:0:A+1
+# - If binary compatibility has been broken (eg removed or changed interfaces)
+#   change to C+1:0:0
+# - If the interface is the same as the previous version, change to C:R+1:A
+GOA_LT_VERSION=0:0:0
+GOA_BACKEND_LT_VERSION=1:0:0
+AC_SUBST(GOA_LT_VERSION)
+AC_SUBST(GOA_BACKEND_LT_VERSION)
+
 AC_DEFINE(GOA_MAJOR_VERSION,
           [goa_major_version],
           [Define to the GOA major version])
diff --git a/src/goa/Makefile.am b/src/goa/Makefile.am
index fb75e66..6531830 100644
--- a/src/goa/Makefile.am
+++ b/src/goa/Makefile.am
@@ -104,6 +104,10 @@ libgoa_1_0_la_LIBADD =                                             \
        $(GLIB_LIBS)                                            \
        $(NULL)
 
+libgoa_1_0_la_LDFLAGS =                                        \
+       -version-info $(GOA_LT_VERSION)                         \
+       $(NULL)
+
 # ----------------------------------------------------------------------------------------------------
 
 pkgconfigdir = $(libdir)/pkgconfig
diff --git a/src/goabackend/Makefile.am b/src/goabackend/Makefile.am
index 9b17f09..0fe3664 100644
--- a/src/goabackend/Makefile.am
+++ b/src/goabackend/Makefile.am
@@ -128,6 +128,10 @@ libgoa_backend_1_0_la_LIBADD =                                     \
        $(TPAW_LIBS)                                            \
        $(NULL)
 
+libgoa_backend_1_0_la_LDFLAGS =                                \
+       -version-info $(GOA_BACKEND_LT_VERSION)                 \
+       $(NULL)
+
 # ----------------------------------------------------------------------------------------------------
 
 pkgconfigdir = $(libdir)/pkgconfig


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]