mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
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:
@@ -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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user