gst-devtools: Add a cairo option for the cairo dep

So that it can be explicitly disabled to avoid pulling in pixman which
doesn't build on Windows ARM64 yet.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1570>
This commit is contained in:
Nirbheek Chauhan 2022-01-27 11:25:00 +05:30
parent 5b8c1e17e4
commit f3ad7d1b49
2 changed files with 4 additions and 1 deletions

View file

@ -1,7 +1,10 @@
option('validate', type : 'feature', value : 'auto',
description : 'Build GstValidate')
option('cairo', type : 'feature', value : 'auto', description : 'Build GstValidateVideo')
option('debug_viewer', type : 'feature', value : 'disabled',
description : 'Build GstDebugViewer (GPLv3+)')
# Common feature options
option('introspection', type : 'feature', value : 'auto', yield : true,
description : 'Generate gobject-introspection bindings')
option('tests', type : 'feature', value : 'auto', yield : true,

View file

@ -1,5 +1,5 @@
validate_video_dep = dependency('', required: false)
cairo_dep = dependency('cairo-png', required: false, fallback: 'cairo')
cairo_dep = dependency('cairo-png', required: get_option('cairo'), fallback: 'cairo')
if cairo_dep.found()
video = static_library(