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

@@ -177,7 +177,7 @@ other_sources = []
fp_enums = gnome.mkenums_simple('fp-enums',
sources: libfprint_public_headers,
install_header: true,
install_dir: get_option('includedir') / meson.project_name(),
install_dir: get_option('includedir') / versioned_libname,
)
fp_enums_h = fp_enums[1]
@@ -244,7 +244,7 @@ libfprint_drivers = static_library('fprint-drivers',
mapfile = files('libfprint.ver')
vflag = '-Wl,--version-script,@0@/@1@'.format(meson.source_root(), mapfile[0])
libfprint = library('fprint',
libfprint = library(versioned_libname.split('lib')[1],
sources: [
fp_enums,
libfprint_sources,
@@ -268,7 +268,7 @@ libfprint_dep = declare_dependency(link_with: libfprint,
])
install_headers(['fprint.h'] + libfprint_public_headers,
subdir: meson.project_name()
subdir: versioned_libname
)
libfprint_private_dep = declare_dependency(