This adds an option to Meson builds to disable introspection builds even
when GObject-Introspection is installed. Introspection is still enabled
by default.
https://bugzilla.gnome.org/show_bug.cgi?id=785802
dependencies: gobject_dep,
sources: atk_enum_h)
-if not meson.is_cross_build()
+disable_introspection = get_option('disable_introspection')
+
+if not meson.is_cross_build() and not disable_introspection
gnome.generate_gir(libatk,
sources: atk_sources + atk_headers + [ atk_enum_h ] + [ atk_version_h ],
namespace: 'Atk',
description: 'Build API reference for ATK using GTK-Doc',
type: 'boolean',
value: false)
+option('disable_introspection',
+ description: 'Do not build introspection files, even when GObject-Introspection is found',
+ type: 'boolean',
+ value: false)