aboutsummaryrefslogtreecommitdiff
path: root/examples/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'examples/meson.build')
-rw-r--r--examples/meson.build7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/meson.build b/examples/meson.build
index 1a9efc59..f0ebad64 100644
--- a/examples/meson.build
+++ b/examples/meson.build
@@ -6,6 +6,7 @@ libpng = dependency('libpng', required: false, disabler: true)
egl = dependency('egl', required: false, disabler: true)
glesv2 = dependency('glesv2', required: false, disabler: true)
gbm = dependency('gbm', required: false, disabler: true)
+cairo = dependency('cairo', required: false, disabler: true)
# These versions correspond to ffmpeg 4.0
libavutil = dependency('libavutil', version: '>=56.14.100', required: false, disabler: true)
libavcodec = dependency('libavcodec', version: '>=58.18.100', required: false, disabler: true)
@@ -57,6 +58,10 @@ compositors = {
'xdg-shell',
],
},
+ 'cairo-buffer': {
+ 'src': 'cairo-buffer.c',
+ 'dep': cairo,
+ },
}
clients = {
@@ -199,7 +204,7 @@ foreach name, info : compositors
executable(
name,
[info.get('src'), extra_src],
- dependencies: [wlroots, libdrm],
+ dependencies: [wlroots, libdrm, info.get('dep', [])],
build_by_default: get_option('examples'),
)
endforeach