build: replace version with soversion

This allows us to have a single number to update when doing a release.

This drops WLR_VERSION_API_* definitions.
This commit is contained in:
Simon Ser 2020-01-22 21:03:30 +01:00
parent 70a084c119
commit 1f722f5c80
3 changed files with 22 additions and 29 deletions

View file

@ -11,10 +11,11 @@ project(
],
)
# Format of so_version is CURRENT, REVISION, AGE.
# See: https://autotools.io/libtool/version.html
# for a reference about clean library versioning.
so_version = ['5', '9', '1']
# 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 = 5
add_project_arguments([
'-DWLR_USE_UNSTABLE',
@ -152,7 +153,7 @@ symbols_file = 'wlroots.syms'
symbols_flag = '-Wl,--version-script,@0@/@1@'.format(meson.current_source_dir(), symbols_file)
lib_wlr = library(
meson.project_name(), wlr_files,
version: '.'.join(so_version),
soversion: soversion,
dependencies: wlr_deps,
include_directories: [wlr_inc, proto_inc],
install: true,