[libbluray-devel] Moved library (.so) version to configure.ac

hpi1 git at videolan.org
Mon Nov 21 07:59:22 CET 2011


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Nov 21 08:55:36 2011 +0200| [88dfc592fcf945afd724b2a1157fe2d02400246b] | committer: hpi1

Moved library (.so) version to configure.ac

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=88dfc592fcf945afd724b2a1157fe2d02400246b
---

 configure.ac    |   17 ++++++++++++++++-
 src/Makefile.am |    7 +------
 2 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/configure.ac b/configure.ac
index eb918c5..dfa1fe2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4,6 +4,18 @@ m4_define([bluray_minor], 2)
 m4_define([bluray_micro], 0)
 m4_define([bluray_version],[bluray_major.bluray_minor.bluray_micro])
 
+# shared library version (.so version)
+#
+# - If there are no interface changes, increase revision.
+# - If interfaces have been added, increase current and age. Set revision to 0.
+# - If interfaces have been changed or removed, increase current and set age and revision to 0.
+#
+# Library file name will be libbluray.so.(current-age).age.revision
+#
+m4_define([lt_current],  0)
+m4_define([lt_revision], 0)
+m4_define([lt_age],      0)
+
 # initilization
 AC_INIT([libbluray], bluray_version, [http://bd.videolan.org/])
 AC_CONFIG_AUX_DIR([build-aux])
@@ -239,7 +251,6 @@ AM_CONDITIONAL([USING_BDJAVA], [ test $use_bdjava = "yes" ])
 # generate documentation
 DX_INIT_DOXYGEN(libbluray, doc/doxygen-config, [doc/doxygen])
 
-
 # export library version number
 BLURAY_VERSION_MAJOR=bluray_major()
 AC_SUBST(BLURAY_VERSION_MAJOR)
@@ -248,6 +259,10 @@ AC_SUBST(BLURAY_VERSION_MINOR)
 BLURAY_VERSION_MICRO=bluray_micro()
 AC_SUBST(BLURAY_VERSION_MICRO)
 
+# export library (.so) version
+LT_VERSION_INFO="lt_current():lt_revision():lt_age()"
+AC_SUBST(LT_VERSION_INFO)
+
 # generate output files
 AC_SUBST(BDJAVA_CFLAGS)
 AC_SUBST(DLOPEN_LDFLAGS)
diff --git a/src/Makefile.am b/src/Makefile.am
index cb9aca3..75745df 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,9 +1,4 @@
-# library version info
-# NOTE: this is not the same as the library's release number
-LIB_CURRENT=0
-LIB_REVISION=0
-LIB_AGE=0
-LIB_VERSION_INFO="$(LIB_CURRENT):$(LIB_REVISION):$(LIB_AGE)"
+LIB_VERSION_INFO="@LT_VERSION_INFO@"
 
 SUBDIRS= . examples
 



More information about the libbluray-devel mailing list