From 35f9ee85f458dbd11f802aeaaac04c9f3a29282d Mon Sep 17 00:00:00 2001 From: Jeffy Chen Date: Mon, 16 May 2022 16:44:04 +0800 Subject: [PATCH 1/3] meson: Make wayland-egl optional Signed-off-by: Jeffy Chen --- meson.build | 4 +++- meson_options.txt | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 8e28f2a..d1b2d66 100644 --- a/meson.build +++ b/meson.build @@ -117,7 +117,9 @@ subdir('src') if get_option('libraries') subdir('cursor') - subdir('egl') + if get_option('egl') + subdir('egl') + endif endif if get_option('tests') subdir('tests') diff --git a/meson_options.txt b/meson_options.txt index b8e2ec6..4ff8ea2 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