blob: b4c13a0712697a654454dea24c140dec21fe130d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
renderers = get_option('renderers')
if 'auto' in renderers and get_option('auto_features').enabled()
renderers = ['gles2', 'vulkan']
elif 'auto' in renderers and get_option('auto_features').disabled()
renderers = []
endif
wlr_files += files(
'matrix.c',
'fx_renderer.c',
)
if 'gles2' in renderers or 'auto' in renderers
egl = dependency('egl', required: 'gles2' in renderers)
gbm = dependency('gbm', required: 'gles2' in renderers)
glesv2 = dependency('glesv2', required: 'gles2' in renderers)
if egl.found() and gbm.found() and glesv2.found()
wlr_deps += [egl, gbm, glesv2]
internal_features += { 'egl': true , 'gles2-renderer': true }
endif
subdir('gles2')
endif
|