aboutsummaryrefslogtreecommitdiffstats
path: root/cursor
diff options
context:
space:
mode:
Diffstat (limited to 'cursor')
-rw-r--r--cursor/meson.build13
1 files changed, 12 insertions, 1 deletions
diff --git a/cursor/meson.build b/cursor/meson.build
index ae85ed9..5393a59 100644
--- a/cursor/meson.build
+++ b/cursor/meson.build
@@ -3,6 +3,15 @@ if icondir == ''
icondir = join_paths(get_option('prefix'), get_option('datadir'), 'icons')
endif
+if wayland_version[0] != '1'
+ # The versioning used for the shared libraries assumes that the major
+ # version of Wayland as a whole will increase to 2 if and only if there
+ # is an ABI break, at which point we should probably bump the SONAME of
+ # all libraries to .so.2. For more details see
+ # https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/177
+ error('We probably need to bump the SONAME of libwayland-cursor')
+endif
+
wayland_cursor = library(
'wayland-cursor',
sources: [
@@ -10,7 +19,9 @@ wayland_cursor = library(
'os-compatibility.c',
'xcursor.c',
],
- version: '0.0.0',
+ # To avoid an unnecessary SONAME bump, wayland 1.x.y produces
+ # libwayland-cursor.so.0.x.y.
+ version: '.'.join(['0', wayland_version[1], wayland_version[2]]),
dependencies: [ wayland_client_dep ],
c_args: [ '-DICONDIR="@0@"'.format(icondir) ],
install: true,