Commit 401ea544 authored by Emmanuele Bassi's avatar Emmanuele Bassi

build: Fix soname when building with Meson

The soname needs to be compatible with libtool and gobject-introspection.
parent d7867007
Pipeline #16231 passed with stage
in 5 minutes and 28 seconds
......@@ -723,7 +723,7 @@ libclutter = library(
include_directories('cally'),
],
soversion: clutter_soversion,
version: meson.project_version(),
version: clutter_libversion,
c_args: common_c_args,
install: true,
)
......
......@@ -22,7 +22,8 @@ clutter_api_name = '@0@-@1@'.format(meson.project_name(), clutter_api_version)
clutter_so_age = 0
clutter_interface_age = clutter_minor_version.is_even() ? clutter_micro_version : 0
clutter_binary_age = 100 * clutter_minor_version + clutter_micro_version - clutter_interface_age
clutter_soversion = '@0@.@1@.@2@'.format(clutter_so_age, clutter_binary_age, clutter_interface_age)
clutter_soversion = clutter_so_age
clutter_libversion = '@0@.@1@.@2@'.format(clutter_so_age, clutter_binary_age, clutter_interface_age)
cc = meson.get_compiler('c')
config_h = configuration_data()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment