gst-devtools: Add a cairo option for the cairo dep
authorNirbheek Chauhan <nirbheek@centricular.com>
Thu, 27 Jan 2022 05:55:00 +0000 (11:25 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Thu, 27 Jan 2022 20:31:39 +0000 (02:01 +0530)
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>

subprojects/gst-devtools/meson_options.txt
subprojects/gst-devtools/validate/gst-libs/gst/video/meson.build

index 5da5abf..d7f5337 100644 (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,
index c4a84da..ad1c88b 100644 (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(