diff --git a/lib/wp/meson.build b/lib/wp/meson.build index 498120db..62347465 100644 --- a/lib/wp/meson.build +++ b/lib/wp/meson.build @@ -131,7 +131,7 @@ wp_lib = library('wireplumber-' + wireplumber_api_version, include_directories: wp_lib_include_dir, dependencies : [gobject_dep, gmodule_dep, gio_dep, pipewire_dep, libintl_dep], soversion: wireplumber_so_version, - version: meson.project_version(), + version: wireplumber_libversion, ) wp_dep = declare_dependency( diff --git a/meson.build b/meson.build index f4b08643..67746859 100644 --- a/meson.build +++ b/meson.build @@ -8,8 +8,16 @@ project('wireplumber', ['c'], ] ) +wireplumber_version = meson.project_version() +version_arr = wireplumber_version.split('.') +wireplumber_version_major = version_arr[0] +wireplumber_version_minor = version_arr[1] +wireplumber_version_micro = version_arr[2] + wireplumber_api_version = '0.5' wireplumber_so_version = '0' +wireplumber_libversion_minor = wireplumber_version_major.to_int() * 1000 + wireplumber_version_minor.to_int() * 100 + wireplumber_version_micro.to_int() +wireplumber_libversion = '@0@.@1@.0'.format(wireplumber_so_version, wireplumber_libversion_minor) wireplumber_headers_dir = get_option('includedir') / 'wireplumber-' + wireplumber_api_version / 'wp'