xref: /OK3568_Linux_fs/buildroot/package/wayland/0001-meson-Make-wayland-egl-optional.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1From bd3c0f4e32f574bd289a8ddcd30e34bcda1e6a83 Mon Sep 17 00:00:00 2001
2From: Jeffy Chen <jeffy.chen@rock-chips.com>
3Date: Mon, 16 May 2022 16:44:04 +0800
4Subject: [PATCH] meson: Make wayland-egl optional
5
6Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
7---
8 meson.build       | 4 +++-
9 meson_options.txt | 4 ++++
10 2 files changed, 7 insertions(+), 1 deletion(-)
11
12diff --git a/meson.build b/meson.build
13index 8bb47c2..128d6bd 100644
14--- a/meson.build
15+++ b/meson.build
16@@ -117,7 +117,9 @@ subdir('src')
17
18 if get_option('libraries')
19 	subdir('cursor')
20-	subdir('egl')
21+	if get_option('egl')
22+		subdir('egl')
23+	endif
24 endif
25 if get_option('tests')
26 	subdir('tests')
27diff --git a/meson_options.txt b/meson_options.txt
28index b8e2ec6..4ff8ea2 100644
29--- a/meson_options.txt
30+++ b/meson_options.txt
31@@ -1,3 +1,7 @@
32+option('egl',
33+  description: 'Compile Wayland egl',
34+  type: 'boolean',
35+  value: 'true')
36 option('libraries',
37   description: 'Compile Wayland libraries',
38   type: 'boolean',
39--
402.20.1
41
42