From ed1924800de905f5462c8cc6e36fbc60b69d3030 Mon Sep 17 00:00:00 2001 From: ayaka Date: Fri, 9 Apr 2021 10:48:01 +0800 Subject: render: make GLES2 renderer optional Allow selecting whether the GLES2 renderer gets enabled. Co-authored-by: Simon Ser --- render/gles2/meson.build | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'render/gles2') diff --git a/render/gles2/meson.build b/render/gles2/meson.build index d4d62c64..f2cd5fba 100644 --- a/render/gles2/meson.build +++ b/render/gles2/meson.build @@ -1,3 +1,12 @@ +glesv2 = dependency('glesv2', required: 'gles2' in renderers) + +if not (glesv2.found() and egl.found()) + subdir_done() +endif + +features += { 'gles2-renderer': true } +wlr_deps += glesv2 + wlr_files += files( 'pixel_format.c', 'renderer.c', -- cgit v1.2.3