aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cursor/meson.build9
-rw-r--r--egl/meson.build9
-rw-r--r--src/meson.build8
3 files changed, 26 insertions, 0 deletions
diff --git a/cursor/meson.build b/cursor/meson.build
index 5393a59..f7d82e4 100644
--- a/cursor/meson.build
+++ b/cursor/meson.build
@@ -36,3 +36,12 @@ pkgconfig.generate(
libraries: wayland_cursor,
filebase: 'wayland-cursor',
)
+
+wayland_cursor_dep = declare_dependency(
+ link_with: wayland_cursor,
+ include_directories: [ root_inc, include_directories('.') ],
+)
+
+if meson.version().version_compare('>= 0.54.0')
+ meson.override_dependency('wayland-cursor', wayland_cursor_dep)
+endif
diff --git a/egl/meson.build b/egl/meson.build
index 503ac95..065fd07 100644
--- a/egl/meson.build
+++ b/egl/meson.build
@@ -41,3 +41,12 @@ pkgconfig.generate(
description: 'Backend wayland-egl interface',
version: '3'
)
+
+wayland_egl_dep = declare_dependency(
+ link_with: wayland_egl,
+ include_directories: [ root_inc, include_directories('.') ],
+)
+
+if meson.version().version_compare('>= 0.54.0')
+ meson.override_dependency('wayland-egl', wayland_egl_dep)
+endif
diff --git a/src/meson.build b/src/meson.build
index b76d4fe..ae8f387 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -207,6 +207,10 @@ if get_option('libraries')
]
)
+ if meson.version().version_compare('>= 0.54.0')
+ meson.override_dependency('wayland-server', wayland_server_dep)
+ endif
+
wayland_client = library(
'wayland-client',
sources: [
@@ -251,6 +255,10 @@ if get_option('libraries')
]
)
+ if meson.version().version_compare('>= 0.54.0')
+ meson.override_dependency('wayland-client', wayland_client_dep)
+ endif
+
install_headers([
'wayland-util.h',
'wayland-server.h',