build: automatically compute soversion

Instead of requiring a manual soversion bump each time we do a
release, automatically compute it from the version number.

In the early days we used to not bump soversion, so there is an
hardcoded offset.

This will need to be updated once we ship 1.0, so assert that we're
still on 0.x.
master
Simon Ser 12 months ago
parent 425f5c07fb
commit fe6f380f26

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

Loading…
Cancel
Save