我想通过启用一个使用 GNU 的自动工具构建的库来生成 Gobject Introspection 文件,从而为开源做出贡献。
GObjectIntrospection 的 wiki 页面上已经提到了如何实现这一点:
在 Autotools 中集成 GI
GObjectIntrospection/AutotoolsIntegration 如何将库的构建系统与 gobject-introspection 集成
不幸的是,wiki 页面上的链接不起作用。
那么如何在 autotools 项目中启用从给定的头文件集中生成 GIR 文件呢?