[gtkmm/gtkmm-3-24] gtk/gtkmm.h: Describe how to use gtkmm with meson
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtkmm/gtkmm-3-24] gtk/gtkmm.h: Describe how to use gtkmm with meson
- Date: Sun, 11 Oct 2020 14:26:05 +0000 (UTC)
commit 995678be8bba594eb8557b7d64d2e2f186a91d57
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Sun Oct 11 16:23:47 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 59b41422..bded9133 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-3.0`
* @endcode
+ * If your version of g++ is not C++11-compliant be default,
+ * add the @c -std=c++11 option.
+ *
+ * If you use <a href="https://mesonbuild.com/">Meson</a>, include the following
+ * in @c meson.build:
+ * @code
+ * gtkmm_dep = dependency('gtkmm-3.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]