From c5202b728ae74a40c710d3d045e9fdb8b7cbec17 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 23 Feb 2021 20:29:58 +0100 Subject: [PATCH] examples: add libdrm partial dependency for compositors Fixes: 675bc396583f ("Fix wl_shm_format passed to wlr_texture_from_pixels") --- examples/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/meson.build b/examples/meson.build index 4d169d87..0fee7d92 100644 --- a/examples/meson.build +++ b/examples/meson.build @@ -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'), )