2021-04-09 04:48:01 +02:00
|
|
|
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
|
|
|
|
|
2019-11-22 08:11:15 +01:00
|
|
|
wlr_files += files(
|
2020-06-01 19:48:39 +02:00
|
|
|
'allocator.c',
|
2019-11-22 08:11:15 +01:00
|
|
|
'dmabuf.c',
|
|
|
|
'drm_format_set.c',
|
2020-06-01 19:49:10 +02:00
|
|
|
'gbm_allocator.c',
|
2021-03-15 17:29:29 +01:00
|
|
|
'pixel_format.c',
|
2021-02-09 20:57:47 +01:00
|
|
|
'shm_allocator.c',
|
2020-06-01 19:49:32 +02:00
|
|
|
'swapchain.c',
|
2019-11-22 08:11:15 +01:00
|
|
|
'wlr_renderer.c',
|
|
|
|
'wlr_texture.c',
|
2021-01-28 04:10:59 +01:00
|
|
|
'drm_dumb_allocator.c',
|
2017-10-08 02:19:25 +02:00
|
|
|
)
|
2021-01-15 22:12:02 +01:00
|
|
|
|
2021-04-06 11:36:15 +02:00
|
|
|
has = cc.has_function('gbm_bo_get_fd_for_plane', dependencies: [gbm])
|
|
|
|
add_project_arguments('-DHAS_GBM_BO_GET_FD_FOR_PLANE=@0@'.format(has.to_int()), language: 'c')
|
|
|
|
|
2021-04-09 04:48:01 +02:00
|
|
|
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
|
|
|
|
|
2021-01-18 05:15:36 +01:00
|
|
|
subdir('pixman')
|