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 /render/gles2 | |
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 'render/gles2')
-rw-r--r-- | render/gles2/meson.build | 9 |
1 files changed, 9 insertions, 0 deletions
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', |