libaacs | branch: master | npzacs <[email protected]> | Fri Nov 18 14:34:24 2011 +0200| [baea11d2aad237c1918f8d81e49b82e3d3d8fe31] | committer: npzacs
Moved .so version to configure.ac. Documented how .so version is formed. > http://git.videolan.org/gitweb.cgi/libaacs.git/?a=commit;h=baea11d2aad237c1918f8d81e49b82e3d3d8fe31 --- configure.ac | 18 ++++++++++++++++++ src/Makefile.am | 7 +------ 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index e8a8460..6f1f1f0 100644 --- a/configure.ac +++ b/configure.ac @@ -4,6 +4,20 @@ m4_define([aacs_minor], 2) m4_define([aacs_micro], 0) m4_define([aacs_version],[aacs_major.aacs_minor.aacs_micro]) +# library (.so) version +# +# update when making new release +# +# - If there are no ABI changes, increase revision. +# - If ABI is changed backwards-compatible way, increase current and age. Set revision to 0. +# - If ABI is broken, increase current and set age and revision to 0. +# +# Library file name will be libaacs.(current-age).age.revision +# +m4_define([lt_current], 0) +m4_define([lt_age], 0) +m4_define([lt_revision], 0) + # initilization AC_INIT([libaacs], aacs_version, [http://bd.videolan.org/]) AC_CONFIG_AUX_DIR([build-aux]) @@ -183,6 +197,10 @@ AC_SUBST(AACS_VERSION_MINOR) AACS_VERSION_MICRO=aacs_micro() AC_SUBST(AACS_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(SET_WARNINGS) AC_SUBST(SET_OPTIMIZATIONS) diff --git a/src/Makefile.am b/src/Makefile.am index 42a33d5..e7a7759 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 _______________________________________________ libaacs-devel mailing list [email protected] http://mailman.videolan.org/listinfo/libaacs-devel
