mirror of
https://gitlab.gnome.org/GNOME/libxml2
synced 2025-03-28 21:33:13 +00:00
cmake, meson: Change library filename to libxml2.so.16.0.0
We have to follow Autotools here. Fixes #882.
This commit is contained in:
parent
81c09e3336
commit
2dd514078e
@ -410,6 +410,7 @@ endif()
|
|||||||
|
|
||||||
set(LIBXML_MINOR_COMPAT 14)
|
set(LIBXML_MINOR_COMPAT 14)
|
||||||
math(EXPR LIBXML_SOVERSION "${LIBXML_MAJOR_VERSION} + ${LIBXML_MINOR_COMPAT}")
|
math(EXPR LIBXML_SOVERSION "${LIBXML_MAJOR_VERSION} + ${LIBXML_MINOR_COMPAT}")
|
||||||
|
math(EXPR LIBXML_AGE "${LIBXML_MINOR_VERSION} - ${LIBXML_MINOR_COMPAT}")
|
||||||
set_target_properties(
|
set_target_properties(
|
||||||
LibXml2
|
LibXml2
|
||||||
PROPERTIES
|
PROPERTIES
|
||||||
@ -417,7 +418,7 @@ set_target_properties(
|
|||||||
OUTPUT_NAME xml2
|
OUTPUT_NAME xml2
|
||||||
POSITION_INDEPENDENT_CODE ON
|
POSITION_INDEPENDENT_CODE ON
|
||||||
PREFIX lib
|
PREFIX lib
|
||||||
VERSION ${PROJECT_VERSION}
|
VERSION "${LIBXML_SOVERSION}.${LIBXML_AGE}.${LIBXML_MICRO_VERSION}"
|
||||||
SOVERSION ${LIBXML_SOVERSION}
|
SOVERSION ${LIBXML_SOVERSION}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -478,6 +478,8 @@ foreach file : xml_opt_src
|
|||||||
endforeach
|
endforeach
|
||||||
|
|
||||||
v_min_compat = 14
|
v_min_compat = 14
|
||||||
|
so_version = v_maj + v_min_compat
|
||||||
|
age = v_min - v_min_compat
|
||||||
xml_lib = library(
|
xml_lib = library(
|
||||||
'xml2',
|
'xml2',
|
||||||
files(xml_src),
|
files(xml_src),
|
||||||
@ -485,8 +487,8 @@ xml_lib = library(
|
|||||||
dependencies: xml_deps,
|
dependencies: xml_deps,
|
||||||
include_directories: config_dir,
|
include_directories: config_dir,
|
||||||
install: true,
|
install: true,
|
||||||
version: meson.project_version(),
|
version: f'@so_version@.@age@.@v_mic@',
|
||||||
soversion: v_maj + v_min_compat,
|
soversion: so_version,
|
||||||
)
|
)
|
||||||
|
|
||||||
dep_inc = include_directories('include')
|
dep_inc = include_directories('include')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user