--- a/meson_options.txt +++ b/meson_options.txt @@ -4,3 +4,4 @@ option('package_subdir', type: 'string', ) option('tests', type: 'boolean', value: 'false') +option('introspection', type: 'boolean', value: true, description: 'Generate GObject introspection data and vapi') --- a/govf/meson.build +++ b/govf/meson.build @@ -51,6 +51,7 @@ govf_dep = declare_dependency( install_headers(govf_headers, subdir: govf_header_subdir) +if get_option('introspection') govf_gir = gnome.generate_gir(govf_lib, sources: govf_sources + govf_headers, nsversion: api_version, @@ -72,6 +73,7 @@ govf_vapi = gnome.generate_vapi('govf-' install_dir: vapidir, metadata_dirs: [ meson.current_source_dir() ], ) +endif pkg = import('pkgconfig')