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 --- include/meson.build | 3 +++ include/wlr/config.h.in | 2 ++ 2 files changed, 5 insertions(+) (limited to 'include') diff --git a/include/meson.build b/include/meson.build index 747e5984..90ca8bf3 100644 --- a/include/meson.build +++ b/include/meson.build @@ -9,6 +9,9 @@ if not features.get('xwayland') else subdir('xwayland') endif +if not features.get('gles2-renderer') + exclude_files += ['render/egl.h', 'render/gles2.h'] +endif install_subdir('wlr', install_dir: get_option('includedir'), diff --git a/include/wlr/config.h.in b/include/wlr/config.h.in index ea7bde1a..957609a6 100644 --- a/include/wlr/config.h.in +++ b/include/wlr/config.h.in @@ -3,6 +3,8 @@ #mesondefine WLR_HAS_X11_BACKEND +#mesondefine WLR_HAS_GLES2_RENDERER + #mesondefine WLR_HAS_XWAYLAND #endif -- cgit v1.2.3