mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2026-06-11 10:34:18 +00:00
tod: Simplify the lib versioning as per upstream libname based on soname
No need to keep track of both revisions, as now that's part of the name
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
tod_soversion = 1
|
tod_soversion = 1
|
||||||
tod_version = '@0@.0'.format(tod_soversion)
|
tod_subpath = versioned_libname / 'tod-@0@'.format(tod_soversion)
|
||||||
tod_versioned_path = '-'.join(tod_version.split('.'))
|
|
||||||
tod_subpath = meson.project_name() / 'tod-@0@'.format(tod_versioned_path)
|
|
||||||
tod_modules_prefix = get_option('libdir') / tod_subpath
|
tod_modules_prefix = get_option('libdir') / tod_subpath
|
||||||
|
|
||||||
tod_conf = configuration_data()
|
tod_conf = configuration_data()
|
||||||
@@ -29,13 +27,12 @@ foreach source: libfprint_private_sources
|
|||||||
tod_sources += '..' / source
|
tod_sources += '..' / source
|
||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
libfprint_tod = library('fprint-tod',
|
libfprint_tod = library(versioned_libname.split('lib')[1] + '-tod',
|
||||||
sources: [
|
sources: [
|
||||||
tod_sources,
|
tod_sources,
|
||||||
],
|
],
|
||||||
soversion: (soversion * 100) + tod_soversion,
|
soversion: tod_soversion,
|
||||||
include_directories: include_directories('..'),
|
include_directories: include_directories('..'),
|
||||||
version: '@0@.'.format(soversion) + tod_version,
|
|
||||||
link_args: [
|
link_args: [
|
||||||
'-Wl,--version-script,@0@/@1@'.format(meson.source_root(), mapfile[0]),
|
'-Wl,--version-script,@0@/@1@'.format(meson.source_root(), mapfile[0]),
|
||||||
'-Wl,--unresolved-symbols=ignore-in-object-files'
|
'-Wl,--unresolved-symbols=ignore-in-object-files'
|
||||||
@@ -54,13 +51,13 @@ deps += declare_dependency(
|
|||||||
|
|
||||||
pkgconfig = import('pkgconfig')
|
pkgconfig = import('pkgconfig')
|
||||||
pkgconfig.generate(libfprint_tod,
|
pkgconfig.generate(libfprint_tod,
|
||||||
name: 'libfprint-tod',
|
name: versioned_libname + '-tod',
|
||||||
filebase: 'libfprint@0@-tod-@1@'.format(soversion, tod_versioned_path),
|
filebase: '@0@-tod-@1@'.format(versioned_libname, tod_soversion),
|
||||||
description: 'Private Libfprint Touch Drivers API',
|
description: 'Private Libfprint Touch Drivers API',
|
||||||
version: meson.project_version() + '.@0@'.format(tod_version),
|
version: meson.project_version() + '+tod@0@'.format(tod_soversion),
|
||||||
subdirs: tod_subpath,
|
subdirs: tod_subpath,
|
||||||
requires_private: [
|
requires_private: [
|
||||||
meson.project_name() + '@0@'.format(soversion),
|
versioned_libname,
|
||||||
],
|
],
|
||||||
variables: [
|
variables: [
|
||||||
'tod_driversdir=${libdir}/@0@'.format(tod_subpath)
|
'tod_driversdir=${libdir}/@0@'.format(tod_subpath)
|
||||||
|
|||||||
Reference in New Issue
Block a user