rsvg: Add direct dependency on cairo

We include cairo.h in the element so we should also
declare it in meson.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6306>
This commit is contained in:
Jordan Petridis 2024-03-08 18:18:08 +02:00
parent 2e1eaaec5e
commit 95bafc4934

View file

@ -4,14 +4,15 @@ rsvg_sources = [
'gstrsvgoverlay.c', 'gstrsvgoverlay.c',
] ]
cairo_dep = dependency('cairo', version: '>= 1.16.0', allow_fallback: true, required : get_option('rsvg'))
rsvg_dep = dependency('librsvg-2.0', version : '>= 2.36.2', required : get_option('rsvg')) rsvg_dep = dependency('librsvg-2.0', version : '>= 2.36.2', required : get_option('rsvg'))
if rsvg_dep.found() if cairo_dep.found() and rsvg_dep.found()
gstrsvg = library('gstrsvg', gstrsvg = library('gstrsvg',
rsvg_sources, rsvg_sources,
c_args : gst_plugins_bad_args, c_args : gst_plugins_bad_args,
link_args : noseh_link_args, link_args : noseh_link_args,
include_directories : [configinc], include_directories : [configinc],
dependencies : [gstvideo_dep, rsvg_dep], dependencies : [gstvideo_dep, cairo_dep, rsvg_dep],
install : true, install : true,
install_dir : plugins_install_dir, install_dir : plugins_install_dir,
) )