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'), )