summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2023-01-23 10:42:55 +0400
committerMarc-André Lureau <marcandre.lureau@redhat.com>2023-01-23 10:42:55 +0400
commit1cec1c6b67a94d07a347e8168c0c7cf39ab2bbbf (patch)
tree50ba176ed8cc44257df1608622bdf597db39c360 /meson.build
parenta0f7d49fa47c07cb321d05054a6495223e2bee79 (diff)
meson: add an `egl` option
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build3
1 files changed, 1 insertions, 2 deletions
diff --git a/meson.build b/meson.build
index 58ebf6f..802ed7d 100644
--- a/meson.build
+++ b/meson.build
@@ -74,8 +74,7 @@ foreach header : headers
endif
endforeach
-# FIXME: Add a config option to validate spice-widget-egl being built or not
-spice_gtk_has_egl = compiler.has_header('epoxy/egl.h')
+spice_gtk_has_egl = compiler.has_header('epoxy/egl.h', required: get_option('egl'))
spice_gtk_config_data.set('HAVE_EGL', spice_gtk_has_egl)
#