aboutsummaryrefslogtreecommitdiffstats
path: root/egl
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-12-08 00:27:58 +0100
committerSimon Ser <contact@emersion.fr>2021-12-08 00:27:58 +0100
commitba82e0d80617f720b133ecf3a251a53cca47a6f3 (patch)
treedef4de722c7c3f1bfdb5154641cef6929c0fee70 /egl
parentbuild: bump to version 1.19.93 for the RC1 release (diff)
downloadwayland-ba82e0d80617f720b133ecf3a251a53cca47a6f3.tar
wayland-ba82e0d80617f720b133ecf3a251a53cca47a6f3.tar.gz
wayland-ba82e0d80617f720b133ecf3a251a53cca47a6f3.tar.bz2
wayland-ba82e0d80617f720b133ecf3a251a53cca47a6f3.tar.lz
wayland-ba82e0d80617f720b133ecf3a251a53cca47a6f3.tar.xz
wayland-ba82e0d80617f720b133ecf3a251a53cca47a6f3.tar.zst
wayland-ba82e0d80617f720b133ecf3a251a53cca47a6f3.zip
meson: override dependencies to ease use as subproject
Make it easier to use Wayland as a Meson subproject by overriding dependencies we define. This allows to easily build Wayland as a subproject like so: subproject('wayland', required: false, default_options: ['documentation=false']) After this statement, the wayland-* dependencies will use the subproject instead of the system if available. Signed-off-by: Simon Ser <contact@emersion.fr>
Diffstat (limited to 'egl')
-rw-r--r--egl/meson.build9
1 files changed, 9 insertions, 0 deletions
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