]> granicus.if.org Git - p11-kit/commitdiff
Add libtool style versioning variables to p11-kit
authorStef Walter <stefw@collabora.co.uk>
Wed, 27 Jul 2011 13:42:31 +0000 (15:42 +0200)
committerStef Walter <stefw@collabora.co.uk>
Wed, 27 Jul 2011 13:42:31 +0000 (15:42 +0200)
configure.ac
p11-kit/Makefile.am
po/p11-kit.pot

index 5548117bd3bffb92ab4bec333515cbf68f228ab2..26e86feb1d066466cf2bf1ea6083a8da8671dc6c 100644 (file)
@@ -7,6 +7,19 @@ AC_INIT([p11-kit],
        [p11-kit],
        [http://p11-glue.freedesktop.org/p11-kit.html])
 
+dnl ****************************************************************************
+dnl p11-kit libtool versioning
+dnl CURRENT : REVISION : AGE
+dnl   +1    :     0    : +1   == new interface that does not break old one.
+dnl   +1    :     0    :  0   == removed an interface. Breaks old apps.
+dnl    ?    :    +1    :  ?   == internal changes that doesn't break anything.
+
+P11KIT_CURRENT=0
+P11KIT_REVISION=0
+P11KIT_AGE=0
+
+dnl ****************************************************************************
+
 AC_CONFIG_SRCDIR([p11-kit/modules.c])
 AC_CONFIG_HEADERS([config.h])
 
@@ -156,6 +169,9 @@ fi
 
 # ---------------------------------------------------------------------
 
+P11KIT_LT_RELEASE=$P11KIT_CURRENT:$P11KIT_REVISION:$P11KIT_AGE
+AC_SUBST(P11KIT_LT_RELEASE)
+
 AC_CONFIG_FILES([Makefile
        doc/Makefile
        doc/version.xml
index c45efc16b7f7d3cabad0e4ab96acdb0902223e04..90f0387817825c5c9cc657bda05d7368a84b5829 100644 (file)
@@ -32,7 +32,9 @@ noinst_LTLIBRARIES = \
        libp11-kit-testable.la
 
 libp11_kit_la_LDFLAGS = \
-       -no-undefined -export-symbols-regex '^C_GetFunctionList|^p11_kit_'
+       -no-undefined \
+       -version-info $(P11KIT_LT_RELEASE) \
+       -export-symbols-regex '^C_GetFunctionList|^p11_kit_'
 
 libp11_kit_la_SOURCES = $(MODULE_SRCS)
 
index aeee678178c3f54b97b000ec5959c3d965cc7a09..f830120a97785d4472fefdd2f6702dae691e62ec 100644 (file)
@@ -6,10 +6,10 @@
 #, fuzzy
 msgid ""
 msgstr ""
-"Project-Id-Version: p11-kit 0.2\n"
+"Project-Id-Version: p11-kit 0.3\n"
 "Report-Msgid-Bugs-To: https://bugs.freedesktop.org/enter_bug.cgi?product=p11-"
 "glue\n"
-"POT-Creation-Date: 2011-07-07 18:45+0200\n"
+"POT-Creation-Date: 2011-07-27 12:33+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"