summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjell Ahlstedt <kjellahlstedt@gmail.com>2020-10-12 16:35:27 +0200
committerKjell Ahlstedt <kjellahlstedt@gmail.com>2020-10-12 16:35:27 +0200
commit9aaade399592d42312e78d54c3581c1fcd731b71 (patch)
tree8626fd84e3ade1df98f9178518aea7a06b2a1f4e
parent68773521cf8350cd0a6bf21a5170d25ccf47c18b (diff)
downloadglibmm-9aaade399592d42312e78d54c3581c1fcd731b71.tar.gz
glib/glibmm.h: Describe how to use glibmm with meson
-rw-r--r--glib/glibmm.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/glib/glibmm.h b/glib/glibmm.h
index 6d3da8e9..02f6d056 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.
@@ -65,6 +65,21 @@
* @code
* g++ program.cc -o program `pkg-config --cflags --libs glibmm-2.66 giomm-2.66`
* @endcode
+ * If your version of g++ is not C++17-compliant by 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
+ * glibmm_dep = dependency('glibmm-2.66')
+ * giomm_dep = dependency('giomm-2.66')
+ * 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