[pangomm/pangomm-2-42] pango/pangomm.h: Show how to use pangomm when building with Meson



commit 438be5d5ebbcb8f060a903ac9e2793a02baa1c6f
Author: Kjell Ahlstedt <kjellahlstedt gmail com>
Date:   Sun Dec 13 14:59:11 2020 +0100

    pango/pangomm.h: Show how to use pangomm when building with Meson

 pango/pangomm.h | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
---
diff --git a/pango/pangomm.h b/pango/pangomm.h
index 5259ace..3fe5a14 100644
--- a/pango/pangomm.h
+++ b/pango/pangomm.h
@@ -39,6 +39,21 @@
  * @code
  * g++ program.cc -o program  `pkg-config --cflags --libs pangomm-1.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
+ * pangomm_dep = dependency('pangomm-1.4')
+ * program_name = 'program'
+ * cpp_sources = [ 'program.cc' ]
+ * executable(program_name,
+ *   cpp_sources,
+ *   dependencies: [ pangomm_dep ]
+ * )
+ * @endcode
+ *
  * Alternatively, if using autoconf, use the following in @c configure.ac:
  * @code
  * PKG_CHECK_MODULES([PANGOMM], [pangomm-1.4])


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