hc
2023-11-06 15ade055295d13f95d49e3d99b09f3bbfb4a43e7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From e5032b34c86bf301b335e5d5aa4cae23090ce3a1 Mon Sep 17 00:00:00 2001
From: Jeffy Chen <jeffy.chen@rock-chips.com>
Date: Mon, 16 May 2022 16:44:04 +0800
Subject: [PATCH] meson: Make wayland-egl optional
 
Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com>
---
 meson.build       | 4 +++-
 meson_options.txt | 4 ++++
 2 files changed, 7 insertions(+), 1 deletion(-)
 
diff --git a/meson.build b/meson.build
index 2c96d20..335ab1d 100644
--- a/meson.build
+++ b/meson.build
@@ -90,7 +90,9 @@ subdir('src')
 
 if get_option('libraries')
     subdir('cursor')
-    subdir('egl')
+    if get_option('egl')
+        subdir('egl')
+    endif
     if get_option('tests')
         subdir('tests')
     endif
diff --git a/meson_options.txt b/meson_options.txt
index 4433fa0..777a523 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -1,3 +1,7 @@
+option('egl',
+  description: 'Compile Wayland egl',
+  type: 'boolean',
+  value: 'true')
 option('libraries',
   description: 'Compile Wayland libraries',
   type: 'boolean',
-- 
2.20.1