aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Busch <morphis@gravedo.de>2012-05-03 09:27:57 +0200
committerSimon Busch <morphis@gravedo.de>2012-05-03 09:27:57 +0200
commit2c5d53df85b75353ac90f40190b8e596045a0e83 (patch)
tree07803837e29a4ea4b8c674510e3efd642785fbfa
parent6f0a76920b2c1042edebc7537f3c12aec4f4c4f6 (diff)
downloadcornucopia-2c5d53df85b75353ac90f40190b8e596045a0e83.tar.gz
cornucopia-2c5d53df85b75353ac90f40190b8e596045a0e83.tar.bz2
cornucopia-2c5d53df85b75353ac90f40190b8e596045a0e83.zip
libfsoresource: make library ABI version configurable
-rw-r--r--libfsoresource/configure.ac16
-rw-r--r--libfsoresource/fsoresource/Makefile.am4
2 files changed, 20 insertions, 0 deletions
diff --git a/libfsoresource/configure.ac b/libfsoresource/configure.ac
index c9ff63ce..611de98e 100644
--- a/libfsoresource/configure.ac
+++ b/libfsoresource/configure.ac
@@ -3,6 +3,15 @@ m4_define([fsoresource_base_version], [0.11.0])
m4_define([fsoresource_maybe_gitrev], m4_if(fsoresource_released, [1], [], [m4_esyscmd([git show-ref --hash=5 HEAD | tr -d '\n\r'])]))
m4_define([fsoresource_version], m4_if(fsoresource_released, [1], [fsoresource_base_version], [fsoresource_base_version-fsoresource_maybe_gitrev]))
+# If library source has changed since last release, increment revision
+# If public symbols have been added, removed or changed since last release,
+# increment current and set revision to 0
+# If public symbols have been added since last release, increment age
+# If public symbols have been removed since last release, set age to 0
+m4_define([fsoresource_lt_current], [0])
+m4_define([fsoresource_lt_revision], [0])
+m4_define([fsoresource_lt_age], [0])
+
AC_INIT([libfsoresource], fsoresource_version, [smartphones-userland@linuxtogo.org], [libfsoresource])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
@@ -23,6 +32,13 @@ AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)
+LT_CURRENT=fsoresource_lt_current
+LT_REVISION=fsoresource_lt_revision
+LT_AGE=fsoresource_lt_age
+AC_SUBST([LT_CURRENT])
+AC_SUBST([LT_REVISION])
+AC_SUBST([LT_AGE])
+
#########################################################################################
# Vala building options -- allows tarball builds without installing vala
#########################################################################################
diff --git a/libfsoresource/fsoresource/Makefile.am b/libfsoresource/fsoresource/Makefile.am
index 9892b7d5..5f1f8b29 100644
--- a/libfsoresource/fsoresource/Makefile.am
+++ b/libfsoresource/fsoresource/Makefile.am
@@ -40,6 +40,10 @@ libfsoresource_la_CFLAGS = \
libfsoresource_la_LIBADD = \
$(GLIB_LIBS) \
$(NULL)
+libfsoresource_la_LDFLAGS = \
+ $(AM_LDFLAGS) \
+ -version-info "$(LT_CURRENT)":"$(LT_REVISION)":"$(LT_AGE)" \
+ $(NULL)
fsoresourceincludedir = $(includedir)/fsoframework-2.0
fsoresourceinclude_HEADERS = fsoresource.h