Commit 43e35db2 authored by Peter Hutterer's avatar Peter Hutterer
Browse files

doc/user: add a note on meson's dependency() in the building docs

See #96

Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent dbd484f8
......@@ -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:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment