aboutsummaryrefslogtreecommitdiffstats
path: root/egl/meson.build
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2021-09-10 18:32:00 +0100
committerSimon Ser <contact@emersion.fr>2021-10-28 12:46:06 +0000
commit0cdd2a5c54771d18dc3ec9d690b7fbb754b90dfd (patch)
tree7b6efb9a6b34c3a7b3a1220d1c687175ff1f7e0a /egl/meson.build
parentprotocol: Add wl_surface.offset (diff)
downloadwayland-0cdd2a5c54771d18dc3ec9d690b7fbb754b90dfd.tar
wayland-0cdd2a5c54771d18dc3ec9d690b7fbb754b90dfd.tar.gz
wayland-0cdd2a5c54771d18dc3ec9d690b7fbb754b90dfd.tar.bz2
wayland-0cdd2a5c54771d18dc3ec9d690b7fbb754b90dfd.tar.lz
wayland-0cdd2a5c54771d18dc3ec9d690b7fbb754b90dfd.tar.xz
wayland-0cdd2a5c54771d18dc3ec9d690b7fbb754b90dfd.tar.zst
wayland-0cdd2a5c54771d18dc3ec9d690b7fbb754b90dfd.zip
build: Include the Wayland minor version in libraries' ABI versions
The ABI of a shared library on Linux is given by a major version, which is part of the SONAME and is incremented (rarely) on incompatible changes, and a minor version, which is part of the basename of the regular file to which the SONAME provides a symlink. Until now, the ABI minor version was hard-coded, which means we can't tell which of a pair of Wayland libraries is newer (and therefore likely to have more symbols and/or fewer bugs). libwayland-egl already had ABI major version 1, so we can use the "marketing" version number as the ABI major.minor version number directly, so Wayland 1.19.90 would produce libwayland-egl.so.1 -> libwayland-egl.so.1.19.90. libwayland-cursor and libwayland-server have ABI major version 0, and OS distributions don't like it when there's a SONAME bump for no good reason, so use their existing ABI major version together with the "marketing" minor version: libwayland-cursor.so.0 -> libwayland-cursor.so.0.19.90. If the Wayland major version number is incremented to 2, we'll have to rethink this, so add some error() to break the build if/when that happens. Assuming that Wayland 2.0 would involve breaking changes, the best way would probably to bump all the SONAMEs to libwayland-foo.so.2. Resolves: https://gitlab.freedesktop.org/wayland/wayland/-/issues/175 Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'egl/meson.build')
-rw-r--r--egl/meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/egl/meson.build b/egl/meson.build
index dee9b1d..503ac95 100644
--- a/egl/meson.build
+++ b/egl/meson.build
@@ -5,7 +5,7 @@ wayland_egl = library(
wayland_client_protocol_h
],
include_directories: src_inc,
- version: '1.0.0',
+ version: meson.project_version(),
install: true
)