diff options
author | Emmanuele Bassi <ebassi@gnome.org> | 2023-10-13 12:57:57 +0100 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2023-10-23 11:26:53 +0100 |
commit | fe32c3f5c5155eab5cd4838867b0c95beefa2239 (patch) | |
tree | 7e97cea71047bad0fa7dccbaea0b8a51fefc9b66 /meson_options.txt | |
parent | 6e771f0e8497a39840d63ed59dc19ea5f2f79c00 (diff) |
Generate introspection data
Currently, the introspection data for GLib and its sub-libraries is
generated by gobject-introspection, to avoid the cyclic dependency
between the two projects.
Since gobject-introspection is generally available on installed systems,
we can check for its presence, and generate the introspection data
directly from GLib.
This does introduce a cyclic dependency, which is why it's possible to
build GLib without introspection, then build gobject-introspection, and
finally rebuild GLib.
By having introspection data available during the GLib build, we can do
things like generating documentation; validating newly added API; and
close the loop between adding new API and it becoming available to non-C
consumers of the C ABI (i.e. language bindings).
Diffstat (limited to 'meson_options.txt')
-rw-r--r-- | meson_options.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meson_options.txt b/meson_options.txt index 517d5757c..c2c9e3427 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -125,3 +125,8 @@ option('multiarch', type : 'boolean', value : false, description : 'Install some helper executables in per-architecture locations') + +option('introspection', + type: 'feature', + value: 'auto', + description: 'Enable generating introspection data (requires gobject-introspection)') |