VAPIGEN(1) User Commands VAPIGEN(1)

vapigen - generate a Vala API

vapigen SOURCE PKGBASE [OPTION]... [FILE]...

vapigen is a utility which generates Vala API (VAPI) files from GI files, which may be generated using the vala-gen-introspect(1) utility.

vapigen [OPTION?] FILE... - Vala API Generator

-h, --help
Show help options

--vapidir=DIRECTORY...
Look for package bindings in DIRECTORY
--girdir=DIRECTORY...
Look for GIR bindings in DIRECTORY
--metadatadir=DIRECTORY...
Look for GIR .metadata files in DIRECTORY
--nostdpkg
Do not include standard packages
--pkg=PACKAGE...
Include binding for PACKAGE
--library=NAME
Library name
-d, --directory=DIRECTORY
Output directory
--disable-warnings
Disable warnings
--version
Display version number
-q, --quiet
Do not print messages to the console

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

https://wiki.gnome.org/Projects/Vala

J??rg Billeter, Raffaele Sandrini.

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

vala-gen-introspect (1)
May 2021 Vala API Generator 0.52.3