From 26843d6155879ae16f444cf4962ba37385e859b0 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 15 Apr 2021 10:06:47 +0200 Subject: build: declare dependency for use as a subproject This allows clients and compositors to easily use wayland-protocols as a Meson subproject. Signed-off-by: Simon Ser --- meson.build | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 4febb24..cba88a1 100644 --- a/meson.build +++ b/meson.build @@ -1,6 +1,6 @@ project('wayland-protocols', version: '1.21', - meson_version: '>= 0.53.0', + meson_version: '>= 0.54.0', license: 'MIT/Expat', ) @@ -107,6 +107,14 @@ configure_file( configuration: pkgconfig_configuration, ) +wayland_protocols = declare_dependency( + variables: { + 'pkgdatadir': wayland_protocols_srcdir, + }, +) + +meson.override_dependency('wayland-protocols', wayland_protocols) + if get_option('tests') subdir('tests') endif -- cgit v1.2.3