meson: Build cairo subproject when unavailable on the system

Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/952

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1523>
This commit is contained in:
Nirbheek Chauhan 2022-01-14 19:53:29 +05:30 committed by GStreamer Marge Bot
parent 8983696e39
commit 23cc02d7c3
2 changed files with 6 additions and 1 deletions

View file

@ -3,3 +3,7 @@ directory=cairo
url=https://gitlab.freedesktop.org/cairo/cairo.git
depth=1
revision=a04786b9330109ce54bf7f65c7068281419cec6a
[provide]
cairo = libcairo_dep
cairo-gobject = libcairogobject_dep

View file

@ -1,4 +1,5 @@
cairo_dep = dependency('cairo-gobject', version : '>=1.10.0', required : get_option('cairo'))
cairo_dep = dependency('cairo-gobject', version : '>=1.10.0', required : get_option('cairo'),
default_options: ['glib=enabled'])
if cairo_dep.found()
gstcairo = library('gstcairo',