examples: add libdrm partial dependency for compositors

Fixes: 675bc39658 ("Fix wl_shm_format passed to wlr_texture_from_pixels")
This commit is contained in:
Simon Ser 2021-02-23 20:29:58 +01:00
parent 675bc39658
commit c5202b728a

View File

@ -8,6 +8,8 @@ glesv2 = dependency('glesv2', required: false, disabler: true)
libavutil = dependency('libavutil', version: '>=56.14.100', required: false, disabler: true)
libavcodec = dependency('libavcodec', version: '>=58.18.100', required: false, disabler: true)
libavformat = dependency('libavformat', version: '>=58.12.100', required: false, disabler: true)
# Only needed for drm_fourcc.h
libdrm = dependency('libdrm').partial_dependency(compile_args: true, includes: true)
# epoll is a separate library in FreeBSD
if host_machine.system() == 'freebsd'
@ -191,7 +193,7 @@ foreach name, info : compositors
executable(
name,
[info.get('src'), extra_src],
dependencies: wlroots,
dependencies: [wlroots, libdrm],
include_directories: [wlr_inc, proto_inc],
build_by_default: get_option('examples'),
)