Change SONAME and all the library paths to libfprint-2

To avoid conflicts with previous libfprint version and make sure that the
target version is the correct one (plus to allow parallel install in some
distros), let's use a versioned naming for the library keeping the abi
version in sync.

Fixes #223
This commit is contained in:
Marco Trevisan (Treviño)
2020-01-23 17:08:41 +01:00
parent 24e9363a46
commit 23fab3a20a
4 changed files with 11 additions and 10 deletions

View File

@@ -75,6 +75,7 @@ soversion = 2
current = 0
revision = 0
libversion = '@0@.@1@.@2@'.format(soversion, current, revision)
versioned_libname = meson.project_name() + '-' + soversion.to_string()
# Dependencies
glib_dep = dependency('glib-2.0', version: '>=' + glib_min_version)
@@ -206,10 +207,10 @@ subdir('tests')
pkgconfig = import('pkgconfig')
pkgconfig.generate(
name: meson.project_name(),
name: versioned_libname,
description: 'Generic C API for fingerprint reader access',
version: meson.project_version(),
libraries: libfprint,
subdirs: meson.project_name(),
filebase: meson.project_name() + '@0@'.format(soversion),
subdirs: versioned_libname,
filebase: versioned_libname,
)