wmww / gtk-layer-shell

A library to create panels and other desktop components for Wayland using the Layer Shell protocol
GNU General Public License v3.0
318 stars 16 forks source link

meson: Allow disabling gobject-introspection at build time #111

Closed aperezdc closed 2 years ago

aperezdc commented 3 years ago

Add an introspection option to the Meson build system which allows toggling generation of GObject-Introspection data. This can be useful for systems where G-I is not needed or not used.

By opening this pull request, I agree for my modifications to be licensed under whatever licenses are indicated at the start of the files I modified

aperezdc commented 3 years ago

For context, I am looking into making an image for an embedded system (using Bitbake/Yocto) where I would like to use gtk-layer-shell; but it does not use G-I at all, it's all C/C++. Adding this option allows cutting the build times because all the G-I tooling can be skipped, and produces smaller system images.

aperezdc commented 3 years ago

@wmww: I wrote my patch without noticing that #110 was already there. Either that or my approach work for my use case, so feel free to choose the one you prefer 🤝