diff --git a/docs/reference/gobject/glib-genmarshal.xml b/docs/reference/gobject/glib-genmarshal.xml index bf72ba7fe..039953599 100644 --- a/docs/reference/gobject/glib-genmarshal.xml +++ b/docs/reference/gobject/glib-genmarshal.xml @@ -411,7 +411,46 @@ debugging information. This option is mutually exclusive with the -Using glib-genmarshal with Autotools +Using <command>glib-genmarshal</command> with Meson + +Meson supports generating closure marshallers using glib-genmarshal +out of the box in its "gnome" module. + + + +In your meson.build file you will typically call the +gnome.genmarshal() method with the source list of marshallers +to generate: + + +gnome = import('gnome') +marshal_files = gnome.genmarshal('marshal', + sources: 'marshal.list', + internal: true, +) + + +The marshal_files variable will contain an array of two elements +in the following order: + + + a build target for the source file + a build target for the header file + + +You should use the returned objects to provide a dependency on every other +build target that references the source or header file; for instance, if you +are using the source to build a library: + + +mainlib = library('project', + sources: project_sources + marshal_files, + ... +) + + + +Using <command>glib-genmarshal</command> with Autotools In order to use glib-genmarshal in your project when using Autotools as the build system, you will first need to modify your