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 --- examples/meson.build | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/meson.build b/examples/meson.build index 0fee7d92..704c5183 100644 --- a/examples/meson.build +++ b/examples/meson.build @@ -23,6 +23,11 @@ if libavutil.found() and not cc.has_header('libavutil/hwcontext_drm.h', dependen libavutil = disabler() endif +wlr_gles2_renderer = [] +if not features['gles2-renderer'] + wlr_gles2_renderer = disabler() +endif + compositors = { 'simple': { 'src': 'simple.c', @@ -32,18 +37,23 @@ compositors = { }, 'touch': { 'src': ['touch.c', 'cat.c'], + 'dep': [wlr_gles2_renderer], }, 'tablet': { 'src': 'tablet.c', + 'dep': [wlr_gles2_renderer], }, 'rotation': { 'src': ['rotation.c', 'cat.c'], + 'dep': [wlr_gles2_renderer], }, 'multi-pointer': { 'src': 'multi-pointer.c', + 'dep': [wlr_gles2_renderer], }, 'output-layout': { 'src': ['output-layout.c', 'cat.c'], + 'dep': [wlr_gles2_renderer], }, 'fullscreen-shell': { 'src': 'fullscreen-shell.c', @@ -193,7 +203,7 @@ foreach name, info : compositors executable( name, [info.get('src'), extra_src], - dependencies: [wlroots, libdrm], + dependencies: [wlroots, libdrm, info.get('dep', [])], include_directories: [wlr_inc, proto_inc], build_by_default: get_option('examples'), ) -- cgit v1.2.3