diff options
author | ayaka <ayaka@soulik.info> | 2021-04-09 10:48:01 +0800 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-04-17 16:39:40 +0200 |
commit | ed1924800de905f5462c8cc6e36fbc60b69d3030 (patch) | |
tree | bb2f6b13a1b30905a8e5ba301bb331fd2299fc43 /examples/meson.build | |
parent | 122d6c6988a992a7f41f5b1389d0ac6b49f11888 (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 'examples/meson.build')
-rw-r--r-- | examples/meson.build | 12 |
1 files changed, 11 insertions, 1 deletions
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'), ) |