aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-02-23 20:29:58 +0100
committerSimon Ser <contact@emersion.fr>2021-02-23 20:29:58 +0100
commitc5202b728ae74a40c710d3d045e9fdb8b7cbec17 (patch)
treeb10aa17894acea95fc2e26978a3cb82111490181 /examples
parent675bc396583f2e1e30ce2a5a91769cc58be9948a (diff)
examples: add libdrm partial dependency for compositors
Fixes: 675bc396583f ("Fix wl_shm_format passed to wlr_texture_from_pixels")
Diffstat (limited to 'examples')
-rw-r--r--examples/meson.build4
1 files changed, 3 insertions, 1 deletions
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'),
)