Commit 2a6bb537 authored by Xavier Claessens's avatar Xavier Claessens

meson: Change introspection option to yielding feature

Yielding option means that if pango is built as a subproject, it will
take the value of that option from the parent project (e.g. gst-build).
For that to work it must be of the same type, which is "feature" instead
of "boolean" in all GStreamer modules.
parent bbdb6890
......@@ -40,7 +40,7 @@ asan-build:
needs: []
- CC=clang meson --buildtype=debugoptimized -Db_sanitize=address -Db_lundef=false -Dintrospection=false _build
- CC=clang meson --buildtype=debugoptimized -Db_sanitize=address -Db_lundef=false -Dintrospection=disabled _build
- ninja -C _build
- .gitlab-ci/ _build
allow_failure: true
......@@ -4,8 +4,9 @@ option('gtk_doc',
value: false)
description: 'Build the GObject introspection data for Pango',
type: 'boolean',
value: true)
type: 'feature',
value: 'auto',
yield: true)
description : 'Install tests',
type: 'boolean',
......@@ -121,7 +121,8 @@ libpango = library(
pango_dep_sources = [pango_enum_h]
build_gir = get_option('introspection')
gir = find_program('g-ir-scanner', required : get_option('introspection'))
build_gir = gir.found() and (not meson.is_cross_build() or get_option('introspection').enabled())
if build_gir
gir_args = [
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment