[gtkmm] gtk/gtkmm.h: Describe how to use gtkmm with meson



commit 41e160024eb7e2a13c4c8a6f10cbada8e78b5c00
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Sun Oct 11 16:21:54 2020 +0200

    gtk/gtkmm.h: Describe how to use gtkmm with meson

 gtk/gtkmm.h | 21 +++++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkmm.h b/gtk/gtkmm.h
index 7425e670..a77abb42 100644
--- a/gtk/gtkmm.h
+++ b/gtk/gtkmm.h
@@ -32,14 +32,13 @@
  * @ref TextView "TextView".
  *
  * See also the
- * <a href="http://library.gnome.org/devel/gtkmm-tutorial/stable/";>Programming
+ * <a href="https://library.gnome.org/devel/gtkmm-tutorial/stable/";>Programming
  * with gtkmm</a> book.
  *
- *
  * @section features Features
  *
- * - GTK’s mature, capable set of @ref Widgets widgets. See
- *   <a href="http://www.gtk.org/";>the GTK website</a> for more information.
+ * - GTK’s mature, capable set of @ref Widgets "widgets". See
+ *   <a href="https://www.gtk.org/";>the GTK website</a> for more information.
  * - Use inheritance to derive custom widgets.
  * - Type-safe signal handlers (slots), in standard C++, using
  *   <a href="https://libsigcplusplus.github.io/libsigcplusplus/";>libsigc++</a>.
@@ -66,6 +65,20 @@
  * @code
  * g++ program.cc -o program  `pkg-config --cflags --libs gtkmm-4.0`
  * @endcode
+ * If your version of g++ is not C++17-compliant be default,
+ * add the @c -std=c++17 option.
+ *
+ * If you use <a href="https://mesonbuild.com/";>Meson</a>, include the following
+ * in @c meson.build:
+ * @code
+ * gtkmm_dep = dependency('gtkmm-4.0')
+ * program_name = 'program'
+ * cpp_sources = [ 'program.cc' ]
+ * executable(program_name,
+ *   cpp_sources,
+ *   dependencies: gtkmm_dep
+ * )
+ * @endcode
  *
  * Alternatively, if using autoconf, use the following in @c configure.ac:
  * @code


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