From: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx> Without the gi-docgen configuration file, the GObject docs don't contain information such as library version, author, license, etc. Add a simple .toml to add missing bits and update the command in Makefile. Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx> --- bindings/glib/.gitignore | 1 + bindings/glib/Makefile.am | 6 ++++-- bindings/glib/gi-docgen.toml.in | 9 +++++++++ configure.ac | 1 + 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/bindings/glib/.gitignore b/bindings/glib/.gitignore index aa399b8..5d6fe20 100644 --- a/bindings/glib/.gitignore +++ b/bindings/glib/.gitignore @@ -4,3 +4,4 @@ *.gir *.typelib Gpiodglib-1.0 +gi-docgen.toml diff --git a/bindings/glib/Makefile.am b/bindings/glib/Makefile.am index 6ecef94..f0241e8 100644 --- a/bindings/glib/Makefile.am +++ b/bindings/glib/Makefile.am @@ -124,8 +124,10 @@ endif if HAS_GI_DOCGEN -doc: Gpiodglib-1.0.gir - $(AM_V_GEN)gi-docgen generate Gpiodglib-1.0.gir +doc: Gpiodglib-1.0.gir gi-docgen.toml + $(AM_V_GEN)gi-docgen generate --config gi-docgen.toml Gpiodglib-1.0.gir .PHONY: doc +EXTRA_DIST += gi-docgen.toml + endif diff --git a/bindings/glib/gi-docgen.toml.in b/bindings/glib/gi-docgen.toml.in new file mode 100644 index 0000000..5550a31 --- /dev/null +++ b/bindings/glib/gi-docgen.toml.in @@ -0,0 +1,9 @@ +# SPDX-License-Identifier: CC0-1.0 +# SPDX-FileCopyrightText: 2025 Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxx> + +[library] +description = "GObject bindings to libgpiod" +version = "@PACKAGE_VERSION@" +authors = "Bartosz Golaszewski" +license = "LGPL-2.1-or-later" +website_url = "@PACKAGE_URL@" diff --git a/configure.ac b/configure.ac index 34de870..5a7e01c 100644 --- a/configure.ac +++ b/configure.ac @@ -307,6 +307,7 @@ then fi fi AM_CONDITIONAL([HAS_GI_DOCGEN], [test "x$has_gi_docgen" = xtrue]) +AM_COND_IF([HAS_GI_DOCGEN], [AC_CONFIG_FILES([bindings/glib/gi-docgen.toml])]) # GObject-introspection found_introspection=no -- 2.45.2