From b99435279a281f2c541100b693c96e67d6c1bd62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Corentin=20No=C3=ABl?= Date: Sat, 29 Apr 2023 23:18:31 +0200 Subject: Allow to specify the format of the documentation Helps the consumers of the documentation to assume that the documentation is using gtk-doc format or gi-docgen. --- Makefile.introspection | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile.introspection') diff --git a/Makefile.introspection b/Makefile.introspection index 7fabff60..0f7a68b0 100644 --- a/Makefile.introspection +++ b/Makefile.introspection @@ -63,6 +63,7 @@ _gir_packages = $(foreach pkg,$($(_gir_name)_PACKAGES),--pkg=$(pkg)) _gir_includes = $(foreach include,$($(_gir_name)_INCLUDES),--include=$(include)) _gir_export_packages = $(foreach pkg,$($(_gir_name)_EXPORT_PACKAGES),--pkg-export=$(pkg)) _gir_c_includes = $(foreach include,$($(_gir_name)_C_INCLUDES),--c-include=$(include)) +_gir_doc_format = $(if $($(_gir_name)_DOC_FORMAT),--doc-format=$($(_gir_name)_DOC_FORMAT)) # Reuse the LIBTOOL variable from automake if it's set _gir_libtool = $(if $(LIBTOOL),--libtool="$(LIBTOOL)") @@ -116,6 +117,7 @@ _gir_default_scanner_env = CPPFLAGS="$(CPPFLAGS)" CFLAGS="$(CFLAGS)" LDFLAGS="$( # By default the names in the PACKAGES variable will be used. # C_INCLUDES - List of public C headers which need to be included by # consumers at compile time to make use of the API +# DOC_FORMAT - Format of the inline documentation of the API # define introspection-scanner @@ -141,6 +143,7 @@ $(1): $$($(_gir_name)_FILES) $(_gir_includes) \ $(_gir_export_packages) \ $(_gir_c_includes) \ + $(_gir_doc_format) \ $(_gir_program) \ $(_gir_libraries) \ $($(_gir_name)_SCANNERFLAGS) \ -- cgit v1.2.1