libxkbcommon: change xkeyboard-config to runtime, and add xorg-env

The building system only uses xkeyboard-config pkg-config file to find
the path to xkeyboard-config files.  Without xkeyboard-config installed,
it guesses /usr/share/X11/xkb.
This commit is contained in:
Xi Ruoyao 2022-09-16 10:34:37 +08:00
parent b051e0ea0c
commit 0af463c172
No known key found for this signature in database
GPG Key ID: ACAAD20E19E710E3

View File

@ -74,7 +74,8 @@
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<xref linkend="xkeyboard-config"/>
<xref linkend="xorg-env"/> (for <envar>XORG_CONFIG</envar>) and
<xref role="runtime" linkend="xkeyboard-config"/> (runtime)
</para>
<bridgehead renderas="sect4">Recommended</bridgehead>
@ -105,7 +106,10 @@
<screen><userinput>mkdir build &amp;&amp;
cd build &amp;&amp;
meson --prefix=/usr --buildtype=release -Denable-docs=false .. &amp;&amp;
meson --prefix=/usr \
--buildtype=release \
-Denable-docs=false \
-Dxkb-config-root=$XORG_CONFIG/share/X11/xkb .. &amp;&amp;
ninja</userinput></screen>
<para>