mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-24 08:56:28 -05:00
render: make GLES2 renderer optional
Allow selecting whether the GLES2 renderer gets enabled. Co-authored-by: Simon Ser <contact@emersion.fr>
This commit is contained in:
parent
122d6c6988
commit
ed1924800d
9 changed files with 60 additions and 10 deletions
|
|
@ -1,7 +1,13 @@
|
|||
renderers = get_option('renderers')
|
||||
if 'auto' in renderers and get_option('auto_features').enabled()
|
||||
renderers = ['gles2']
|
||||
elif 'auto' in renderers and get_option('auto_features').disabled()
|
||||
renderers = []
|
||||
endif
|
||||
|
||||
wlr_files += files(
|
||||
'allocator.c',
|
||||
'dmabuf.c',
|
||||
'egl.c',
|
||||
'drm_format_set.c',
|
||||
'gbm_allocator.c',
|
||||
'pixel_format.c',
|
||||
|
|
@ -11,5 +17,14 @@ wlr_files += files(
|
|||
'wlr_texture.c',
|
||||
)
|
||||
|
||||
subdir('gles2')
|
||||
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
|
||||
subdir('gles2')
|
||||
endif
|
||||
|
||||
subdir('pixman')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue