gi-decompile-typelib - Typelib decompiler
Contents
Bugs
Report bugs at <https://gitlab.gnome.org/GNOME/glib/-/issues>
Description
gi-decompile-typelib is a GIR decompiler, using the repository API. It generates GIR XML files from the
compiled binary typelib format. The output will be written to standard output unless the --output is
specified.
The binary typelib format stores a subset of the information available in GIR XML, so not all typelibs
can be decompiled in this way, and the resulting GIR XML might be incomplete.
Normally, GIR XML should be generated from source code, headers and shared libraries using
<g-ir-scanner(1)> instead of using this tool.
On Debian-derived systems, each architecture provides a version of gi-decompile-typelib prefixed with the
DEB_HOST_GNU_TYPE from dpkg-architecture(1), for example arm-linux-gnueabihf-gi-decompile-typelib. These
architecture-prefixed names use appropriate search paths for the given architecture, and should be used
when cross-compiling. Please see <file:///usr/share/doc/gobject-introspection/README.Debian.gz> for
more details.
Example
:: $ libdir=/usr/lib/x86_64-linux-gnu # or /usr/lib64 or similar $ gi-decompile-typelib -o Gio-2.0.gir System Message: ERROR/3 (../../../docs/reference/girepository/gi-decompile-typelib.rst:, line 93) Unexpected indentation. $libdir/girepository-1.0/Gio-2.0.typelib $ diff -u /usr/share/gir-1.0/Gio-2.0.gir Gio-2.0.gir You will see that the original GIR XML contains much more information than the decompiled typelib.
Homepage And Contact
<https://gi.readthedocs.io/>
Name
gi-decompile-typelib - Typelib decompiler
Options
--help Show help options.
--outputFILENAME,-oFILENAME
Save the resulting output in FILENAME.
--includedirDIRECTORY
Add DIRECTORY to the search path for typelibs. This option can be used more than once. The first
DIRECTORY on the command-line will be searched first (highest precedence).
--all Show all available information.
--version
Show program’s version number and exit.
Synopsis
gi-decompile-typelib [OPTION…] TYPELIB [TYPELIB…]
