diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2021-10-05 01:49:27 +0000 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-11-02 09:36:38 +0000 |
commit | 760e1665789212c49adba8d50632787f49f88c09 (patch) | |
tree | 6744d9b5ac5f12aa59c7b6c5e090760a6ae8b193 /render/meson.build | |
parent | 8bc1086cac35f22356c91912576e332c7125e348 (diff) |
render: completely disable gles2 if requested but libEGL is found
For `required` to disable search the value needs to be of `feature` type.
Checking `gles2` via `in` keyword returns a `bool` but `required: false`
makes the dependency optional instead of disabled.
Diffstat (limited to 'render/meson.build')
-rw-r--r-- | render/meson.build | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/render/meson.build b/render/meson.build index 2d651887..a1289ede 100644 --- a/render/meson.build +++ b/render/meson.build @@ -14,13 +14,12 @@ wlr_files += files( 'wlr_texture.c', ) -egl = dependency('egl', required: 'gles2' in renderers) -if egl.found() - wlr_deps += egl - wlr_files += files('egl.c') -endif - if 'gles2' in renderers or 'auto' in renderers + egl = dependency('egl', required: 'gles2' in renderers) + if egl.found() + wlr_deps += egl + wlr_files += files('egl.c') + endif subdir('gles2') endif |