[glibmm/glibmm-2-64] glib/glibmm.h: Describe how to use glibmm with meson
- From: Kjell Ahlstedt <kjellahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glibmm/glibmm-2-64] glib/glibmm.h: Describe how to use glibmm with meson
- Date: Mon, 12 Oct 2020 14:38:35 +0000 (UTC)
commit 0e2307880b74baadb8fff7180bbede36eeaafede
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date: Mon Oct 12 16:36:48 2020 +0200
glib/glibmm.h: Describe how to use glibmm with meson
glib/glibmm.h | 21 ++++++++++++++++++---
1 file changed, 18 insertions(+), 3 deletions(-)
---
diff --git a/glib/glibmm.h b/glib/glibmm.h
index ac753ce6..73335e24 100644
--- a/glib/glibmm.h
+++ b/glib/glibmm.h
@@ -26,14 +26,14 @@
* glibmm is the official C++ interface for the popular cross-platform library %Glib.
* It provides non-UI API that is not available in standard C++ and makes it
* possible for gtkmm to wrap GObject-based APIs.
- * See also the <a href="http://library.gnome.org/devel/gtkmm-tutorial/stable/">
+ * See also the <a href="https://library.gnome.org/devel/gtkmm-tutorial/stable/">
* Programming with gtkmm</a> book for a tutorial on programming with gtkmm and
* glibmm.
*
* @section features Features
*
- * - Glib::ustring: A UTF-8 string class that can be used interchangably with std::string. Plus @ref
- * StringUtils
+ * - Glib::ustring: A UTF-8 string class that can be used interchangably with std::string.
+ * Plus @ref StringUtils
* - Glib::RefPtr: A reference-counting smartpointer, for use with Glib::ObjectBase or similar
* - @ref CharsetConv
* - Glib::Regex: Regular expression string matching.
@@ -66,6 +66,21 @@
* @code
* g++ program.cc -o program `pkg-config --cflags --libs glibmm-2.4 giomm-2.4`
* @endcode
+ * If your version of g++ is not C++11-compliant by 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
+ * glibmm_dep = dependency('glibmm-2.4')
+ * giomm_dep = dependency('giomm-2.4')
+ * program_name = 'program'
+ * cpp_sources = [ 'program.cc' ]
+ * executable(program_name,
+ * cpp_sources,
+ * dependencies: [ glibmm_dep, giomm_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]