summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXiang, Haihao <haihao.xiang@intel.com>2018-01-31 09:55:22 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2018-02-01 08:16:58 +0800
commite2f24a6932489b2e971168622c15dcdaf73a2d36 (patch)
tree33fcc384b67909c33d1e94e49dc7e89a75985506
parentf2f9956f1dd871af59f2fd9bc6fdfc6c0992f0d1 (diff)
downloadlibva-e2f24a6932489b2e971168622c15dcdaf73a2d36.tar.gz
meson: Fix libtool version number
libtool uses CURRENT:REVISION:AGE for library versions and the formula for calculating the file numbers is (CURRENT-AGE).(AGE).(REVISION). To keep compatibility with libtool, meson build should follow the same formula With this fix, we will avoid https://github.com/intel/libva/issues/181 when bumping a new version Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
-rw-r--r--meson.build6
1 files changed, 4 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 10d5414..f7ae4cd 100644
--- a/meson.build
+++ b/meson.build
@@ -57,9 +57,11 @@ libva_lt_current = 100 * va_api_minor_version + va_api_micro_version + libva_int
libva_lt_revision = libva_interface_age
libva_lt_age = libva_binary_age - libva_interface_age
+libva_lt_current = libva_lt_current - libva_lt_age
+
libva_lt_version = '@0@.@1@.@2@'.format(libva_lt_current,
- libva_lt_revision,
- libva_lt_age)
+ libva_lt_age,
+ libva_lt_revision)
driverdir = get_option('driverdir')
if driverdir == ''