From 6ea939dd5fb1401f87b57f72e1479aab3382069c Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Thu, 9 Aug 2018 17:34:55 +0200 Subject: gnome.generate_gir: support generating gir for multiple libraries Fixes #3688 --- docs/markdown/Gnome-module.md | 13 +++++++++---- docs/markdown/snippets/generate_gir_multiple_libraries.md | 7 +++++++ 2 files changed, 16 insertions(+), 4 deletions(-) create mode 100644 docs/markdown/snippets/generate_gir_multiple_libraries.md (limited to 'docs') diff --git a/docs/markdown/Gnome-module.md b/docs/markdown/Gnome-module.md index 6b63f8a..cc85d87 100644 --- a/docs/markdown/Gnome-module.md +++ b/docs/markdown/Gnome-module.md @@ -67,10 +67,15 @@ executable( ### gnome.generate_gir() -Generates GObject introspection data. Takes one positional argument, -the build target you want to build gir data for. There are several -keyword arguments. Many of these map directly to the `g-ir-scanner` -tool so see its documentation for more information. +Generates GObject introspection data. + +Takes one or more positional arguments: + +Either one or more library objects you want to build gir data for, or a single +executable object. + +There are several keyword arguments. Many of these map directly to the +`g-ir-scanner` tool so see its documentation for more information. * `dependencies`: deps to use during introspection scanning * `extra_args`: command line arguments to pass to gir compiler diff --git a/docs/markdown/snippets/generate_gir_multiple_libraries.md b/docs/markdown/snippets/generate_gir_multiple_libraries.md new file mode 100644 index 0000000..3541b71 --- /dev/null +++ b/docs/markdown/snippets/generate_gir_multiple_libraries.md @@ -0,0 +1,7 @@ +## gnome.generate_gir() now optionally accepts multiple libraries + +The GNOME module can now generate a single gir for multiple libraries, which +is something `g-ir-scanner` supported, but had not been exposed yet. + +gnome.generate_gir() will now accept multiple positional arguments, if none +of these arguments are an `Executable` instance. -- cgit v1.1