summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-07-31 10:22:31 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2018-07-31 10:22:31 +1000
commit43e35db26aff6a92eacb8973f3d247933df5ce61 (patch)
tree595cd15491fde368c5782535304794995d4236e0 /doc
parentdbd484f8675f49129f8b2fecc6a236a3f011c3f6 (diff)
doc/user: add a note on meson's dependency() in the building docs
See #96 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'doc')
-rw-r--r--doc/user/building.rst12
1 files changed, 10 insertions, 2 deletions
diff --git a/doc/user/building.rst b/doc/user/building.rst
index 5eeb540d..96d98b5c 100644
--- a/doc/user/building.rst
+++ b/doc/user/building.rst
@@ -303,8 +303,16 @@ Building against libinput
libinput provides a
`pkg-config <https://www.freedesktop.org/wiki/Software/pkg-config/>`_ file.
-Software that uses libinput should use pkg-config and the
-``PKG_CHECK_MODULES`` autoconf macro.
+Software that uses autotools should use the ``PKG_CHECK_MODULES`` autoconf
+macro: ::
+
+ PKG_CHECK_MODULES(LIBINPUT, "libinput")
+
+Software that uses meson should use the ``dependency()`` function: ::
+
+ pkgconfig = import('pkgconfig')
+ dep_libinput = dependency('libinput')
+
Otherwise, the most rudimentary way to compile and link a program against
libinput is: