configure.ac: Add libtool versioning setting to configure.ac
authorJonas Ådahl <jadahl@gmail.com>
Thu, 22 May 2014 06:06:25 +0000 (08:06 +0200)
committerJonas Ådahl <jadahl@gmail.com>
Thu, 22 May 2014 06:09:41 +0000 (08:09 +0200)
Add the explanatory description of the version components from libevdev
as well.

Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
configure.ac
src/Makefile.am

index 4cb086857be221f5eefb36f194e0d07bbcc91444..9cbf4c1a594cc3326eca0fbf3008ea3364435ac4 100644 (file)
@@ -22,6 +22,17 @@ AC_CONFIG_MACRO_DIR([m4])
 
 AM_INIT_AUTOMAKE([1.11 foreign no-dist-gzip dist-xz])
 
+# Before making a release, the LIBINPUT_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
+LIBINPUT_LT_VERSION=0:0:0
+AC_SUBST(LIBINPUT_LT_VERSION)
+
 AM_SILENT_RULES([yes])
 
 # Check for programs
index 579ed25f1a1286b71b4102b04e710e941728a13d..471bc1d9edd53247d72a717fe0eae2c2025f2dfe 100644 (file)
@@ -31,6 +31,8 @@ libinput_la_CFLAGS = $(MTDEV_CFLAGS)  \
                     $(LIBEVDEV_CFLAGS) \
                     $(GCC_CFLAGS)
 
+libinput_la_LDFLAGS = -version-info $(LIBINPUT_LT_VERSION)
+
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = libinput.pc