meson: Set proper soversion and version to libraries

Soname of the libraries should be the major version number, while the version
triplet is currently used:
  objdump -p libmutter-4.so.0.0.0 | grep SONAME
    SONAME               libmutter-4.so.0.0.0

While is expected to be only libmutter-4.so.0

Fix all shared libraries by setting valid version and soversion.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/3955
This commit is contained in:
Marco Trevisan (Treviño) 2019-01-17 23:21:37 +01:00
parent 371b97af27
commit 08130912f0
6 changed files with 12 additions and 6 deletions

View File

@ -519,7 +519,8 @@ libmutter_clutter = shared_library(libmutter_clutter_name,
cally_headers,
cally_private_headers,
],
soversion: '0.0.0',
version: '0.0.0',
soversion: 0,
c_args: clutter_c_args,
include_directories: clutter_includes,
dependencies: [clutter_deps],

View File

@ -15,7 +15,8 @@ libmutter_cogl_gles2_link_args = [
]
libmutter_cogl_gles2 = shared_library('mutter-cogl-gles2-' + libmutter_api_version,
sources: [cogl_gles2_sources, cogl_gles2_public_headers],
soversion: '0.0.0',
version: '0.0.0',
soversion: 0,
c_args: cogl_c_args,
include_directories: [cogl_includepath, cogl_path_includepath],
link_depends: libmutter_cogl_gles2_map,

View File

@ -28,7 +28,8 @@ libmutter_cogl_pango_link_args = [
]
libmutter_cogl_pango = shared_library('mutter-cogl-pango-' + libmutter_api_version,
sources: [cogl_pango_sources, cogl_pango_public_headers],
soversion: '0.0.0',
version: '0.0.0',
soversion: 0,
c_args: cogl_c_args,
include_directories: [cogl_includepath, cogl_path_includepath],
link_depends: libmutter_cogl_pango_map,

View File

@ -59,7 +59,8 @@ libmutter_cogl_path_link_args = [
]
libmutter_cogl_path = shared_library('mutter-cogl-path-' + libmutter_api_version,
sources: [cogl_path_sources, cogl_path_public_headers],
soversion: '0.0.0',
version: '0.0.0',
soversion: 0,
c_args: cogl_path_c_args,
include_directories: [cogl_includepath, cogl_path_includepath],
link_depends: libmutter_cogl_path_map,

View File

@ -473,7 +473,8 @@ libmutter_cogl_link_args = [
]
libmutter_cogl = shared_library(libmutter_cogl_name,
sources: [cogl_sources, cogl_headers_all],
soversion: '0.0.0',
version: '0.0.0',
soversion: 0,
c_args: cogl_c_args,
include_directories: cogl_includepath,
link_depends: libmutter_cogl_map,

View File

@ -742,7 +742,8 @@ libmutter = shared_library(libmutter_name,
mutter_sources,
mutter_built_sources,
],
soversion: '0.0.0',
version: '0.0.0',
soversion: 0,
include_directories: mutter_includes,
c_args: mutter_c_args,
dependencies: [