diff --git a/meson.build b/meson.build index 682d69627..5f7950c9a 100644 --- a/meson.build +++ b/meson.build @@ -11,11 +11,11 @@ project( ], ) -# When doing a major or minor release, *always* increase soversion. This isn't -# necessary for bugfix releases. Increasing soversion is required because -# wlroots never guarantees ABI stability -- only API stability is guaranteed -# between minor releases. -soversion = 13 +version = meson.project_version().split('-')[0] +version_major = version.split('.')[0] +version_minor = version.split('.')[1] +assert(version_major == '0') +soversion = version_minor.to_int() - 5 little_endian = target_machine.endian() == 'little' big_endian = target_machine.endian() == 'big'