[clutter] build: Fix soname when building with Meson



commit 401ea544c9eff650cd64e581ebe3026ad5e1b474
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Mon Jun 18 22:01:35 2018 +0100

    build: Fix soname when building with Meson
    
    The soname needs to be compatible with libtool and gobject-introspection.

 clutter/meson.build | 2 +-
 meson.build         | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/clutter/meson.build b/clutter/meson.build
index 508a591cb..8a157809a 100644
--- a/clutter/meson.build
+++ b/clutter/meson.build
@@ -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,
 )
diff --git a/meson.build b/meson.build
index c1e87ca06..34962e973 100644
--- a/meson.build
+++ b/meson.build
@@ -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()


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]