mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-22 03:20:35 +01:00
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>
This commit is contained in:
parent
dbd484f867
commit
43e35db26a
1 changed files with 10 additions and 2 deletions
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue