vala-gen-introspect(1)

vala-gen-introspect1

Generate a gi file for gobject and glib based packages

Usage

vala-gen-introspect PKGNAME PKGBASE

Overview

vala-gen-introspect is a utility which generates GI files from GObject and glib based packages. It can be used in combination with vapigen(1) to generate an API for Vala, and allow its usage in Vala for compiling to native code. PKGNAME is the pkg-config name of the library and PKGBASE specifies the base directory for that package.

Usage:

gen-introspect [OPTION???]

Help Options:

-h, --help

Show help options

Application Options:

-v, --verbose

Be verbose

-o, --output=FILE

write output here instead of stdout

-n, --namespace=NAMESPACE

Namespace of the module, like 'Gtk'

--shared-library=FILE

Shared library which contains the symbols

--include-idl=IDL

Other gidls to include

Homepage or contact

https://vala.dev

Examples

After compilation, the following command generates a GI for pango: vala-gen-introspect pango packages/pango

This can then be converted to a Vala API as follows:

vapigen --pkg cairo --vapidir . --library pango packages/pango/pango.gi

Releases

8 releases since Debian 5.0 (Lenny); the text changed 6 times.

  1. 5.0–6.0
  2. 9
  3. 10
  4. 11
  5. 12
  6. 13
  7. Arch

--help since Debian 9 (Stretch); --include-idl since Debian 9 (Stretch); --namespace since Debian 9 (Stretch); --output since Debian 9 (Stretch); --shared-library since Debian 9 (Stretch); --verbose since Debian 9 (Stretch); -h since Debian 9 (Stretch); -n since Debian 9 (Stretch); -o since Debian 9 (Stretch); -v since Debian 9 (Stretch).

Bugs

https://gitlab.gnome.org/GNOME/vala/issues

Authors

J??rg Billeter, Raffaele Sandrini.

From vala 0.56.19-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.