mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-06-11 02:28:05 +00:00
tod: Use dynamically defined version script
So we don't have to manage the soname manually
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
LIBFPRINT_TOD_1.0.0 {
|
||||
LIBFPRINT_TOD_@tod_soversion@.0.0 {
|
||||
global:
|
||||
fpi_*;
|
||||
local:
|
||||
*;
|
||||
};
|
||||
|
||||
LIBFPRINT_TOD_1.0.1 {
|
||||
LIBFPRINT_TOD_@tod_soversion@.0.1 {
|
||||
global:
|
||||
fpi_device_class_auto_initialize_features;
|
||||
fpi_device_get_udev_data;
|
||||
fpi_spi_*;
|
||||
fpi_ssm_spi_*;
|
||||
fpi_ssm_get_device;
|
||||
} LIBFPRINT_TOD_1.0.0;
|
||||
} LIBFPRINT_TOD_@tod_soversion@.0.0;
|
||||
@@ -10,7 +10,11 @@ configure_file(output: 'tod-config.h', configuration: tod_conf)
|
||||
gmodule_dep = dependency('gmodule-2.0', version: '>=' + glib_min_version)
|
||||
deps += gmodule_dep
|
||||
|
||||
mapfile = files('libfprint-tod.ver')
|
||||
mapfile = configure_file(input: 'libfprint-tod.ver.in',
|
||||
output: 'libfprint-tod.ver',
|
||||
configuration: {
|
||||
'tod_soversion' : tod_soversion,
|
||||
})
|
||||
|
||||
libfprint_tod_private = static_library('fprint-tod-private',
|
||||
sources: [
|
||||
@@ -34,7 +38,7 @@ libfprint_tod = library(versioned_libname.split('lib')[1] + '-tod',
|
||||
soversion: tod_soversion,
|
||||
include_directories: include_directories('..'),
|
||||
link_args: [
|
||||
'-Wl,--version-script,@0@/@1@'.format(meson.source_root(), mapfile[0]),
|
||||
'-Wl,--version-script,@0@'.format(mapfile),
|
||||
'-Wl,--unresolved-symbols=ignore-in-object-files'
|
||||
],
|
||||
link_depends: mapfile,
|
||||
|
||||
Reference in New Issue
Block a user