aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorayaka <ayaka@soulik.info>2021-04-09 10:48:01 +0800
committerSimon Ser <contact@emersion.fr>2021-04-17 16:39:40 +0200
commited1924800de905f5462c8cc6e36fbc60b69d3030 (patch)
treebb2f6b13a1b30905a8e5ba301bb331fd2299fc43 /include
parent122d6c6988a992a7f41f5b1389d0ac6b49f11888 (diff)
render: make GLES2 renderer optional
Allow selecting whether the GLES2 renderer gets enabled. Co-authored-by: Simon Ser <contact@emersion.fr>
Diffstat (limited to 'include')
-rw-r--r--include/meson.build3
-rw-r--r--include/wlr/config.h.in2
2 files changed, 5 insertions, 0 deletions
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