Bump library major version.

Bump library major version, while preserving a major version of 0 for
GStreamer 1.0 based libraries, and a major version of 2 for GStreamer
0.10 based librarieS.
This commit is contained in:
Gwenole Beauchesne 2013-04-10 15:21:57 +02:00
parent 3f15a682ea
commit 25538ca279

View file

@ -10,7 +10,9 @@ m4_append([gst_vaapi_version], gst_vaapi_pre_version, [.pre])
]) ])
# gstreamer-vaapi library (libtool) version number # gstreamer-vaapi library (libtool) version number
m4_define([gst_vaapi_lt_current], [1]) m4_define([gst_vaapi_lt_current], [2])
m4_define([gst0_vaapi_lt_current_bias], [0])
m4_define([gst1_vaapi_lt_current_bias], [2])
m4_define([gst_vaapi_lt_revision], [0]) m4_define([gst_vaapi_lt_revision], [0])
m4_define([gst_vaapi_lt_age], [0]) m4_define([gst_vaapi_lt_age], [0])
@ -63,9 +65,6 @@ AM_INIT_AUTOMAKE([1.11 tar-ustar no-dist-gzip dist-bzip2])
TODAY="`LC_ALL=C date +'%a, %d %b %Y %X %z'`" TODAY="`LC_ALL=C date +'%a, %d %b %Y %X %z'`"
AC_SUBST(TODAY) AC_SUBST(TODAY)
GST_VAAPI_MAJOR_VERSION=gst_vaapi_lt_current
AC_SUBST(GST_VAAPI_MAJOR_VERSION)
LIBVA_PACKAGE_VERSION=libva_x11_package_version LIBVA_PACKAGE_VERSION=libva_x11_package_version
AC_SUBST(LIBVA_PACKAGE_VERSION) AC_SUBST(LIBVA_PACKAGE_VERSION)
@ -355,8 +354,15 @@ AC_CACHE_CHECK([for JPEG parser],
AM_CONDITIONAL([USE_LOCAL_CODEC_PARSERS_JPEG], AM_CONDITIONAL([USE_LOCAL_CODEC_PARSERS_JPEG],
[test "$ac_cv_have_gst_jpeg_parser" != "yes"]) [test "$ac_cv_have_gst_jpeg_parser" != "yes"])
case $GST_API_VERSION in
0.10) lt_bias=gst0_vaapi_lt_current_bias;;
1.0) lt_bias=gst1_vaapi_lt_current_bias;;
esac
GST_VAAPI_MAJOR_VERSION=`expr gst_vaapi_lt_current - "$lt_bias"`
AC_SUBST(GST_VAAPI_MAJOR_VERSION)
dnl GST_VAAPI_LT_LDFLAGS: dnl GST_VAAPI_LT_LDFLAGS:
GST_VAAPI_LT_CURRENT=gst_vaapi_lt_current GST_VAAPI_LT_CURRENT="$GST_VAAPI_MAJOR_VERSION"
GST_VAAPI_LT_REV=gst_vaapi_lt_revision GST_VAAPI_LT_REV=gst_vaapi_lt_revision
GST_VAAPI_LT_AGE=gst_vaapi_lt_age GST_VAAPI_LT_AGE=gst_vaapi_lt_age
GST_VAAPI_LT_VERSION="$GST_VAAPI_LT_CURRENT:$GST_VAAPI_LT_REV:$GST_VAAPI_LT_AGE" GST_VAAPI_LT_VERSION="$GST_VAAPI_LT_CURRENT:$GST_VAAPI_LT_REV:$GST_VAAPI_LT_AGE"