[glib/issue-1783: 4/4] docs: Mention Meson's gnome.mkenums_simple()



commit 155fd2767daf31a25c702854d68eda7f795f5e76
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Tue May 21 18:25:34 2019 +0100

    docs: Mention Meson's gnome.mkenums_simple()
    
    The mkenums_simple() function generates idiomatic GObject code, and
    avoids templates and custom command line arguments.

 docs/reference/gobject/glib-mkenums.xml | 9 +++++++++
 1 file changed, 9 insertions(+)
---
diff --git a/docs/reference/gobject/glib-mkenums.xml b/docs/reference/gobject/glib-mkenums.xml
index eee810da8..5f0cec192 100644
--- a/docs/reference/gobject/glib-mkenums.xml
+++ b/docs/reference/gobject/glib-mkenums.xml
@@ -533,6 +533,15 @@ mainlib_dep = declare_dependency(sources: enum_files[1], link_with: mainlib)
 You should not include the generates source file, otherwise it will be built
 twice.
 </para>
+
+<para>
+If you are generating C header and source files that do not require special
+templates, you can also use <literal>gnome.mkenums_simple()</literal>, which
+produces idiomatic GObject sources:
+</para>
+<informalexample><programlisting>
+enum_filess = gnome.mkenums_simple('enum-types', sources: project_headers)
+</programlisting></informalexample>
 </refsect1>
 
 <refsect1><title>Using glib-mkenums with Autotools</title>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]