meson: Use libtool library versioning, same as autotools

This helps maintain ABI compatibility with the Autotools build so it's
a drop-in replacement.
This commit is contained in:
Nirbheek Chauhan 2020-02-28 13:20:23 +05:30
parent 1eaf180359
commit 841ae6dddd
2 changed files with 4 additions and 0 deletions

View File

@ -2,6 +2,9 @@ project('libpsl', 'c',
version : '0.20.2',
meson_version : '>=0.47.0')
# Derived from LIBPSL_SO_VERSION in configure.ac
lt_version = '5.3.2'
cc = meson.get_compiler('c')
enable_runtime = get_option('runtime')

View File

@ -20,6 +20,7 @@ libpsl = library('psl', sources, suffixes_dafsa_h,
include_directories : [configinc, includedir],
c_args : cargs,
dependencies : [libidn2_dep, libidn_dep, libicu_dep, libunistring, networking_deps],
version: lt_version,
install: true,
)