Add check for libxkbcommon to the configure script
It is needed for implementing the shortcut functionality in the xcb platform plugin and for the compose key input context plugin. As announced on the wayland-devel mailing list - the libxkbcommon 0.2.0 is the first grown-up release of the library (Tue Oct 23, 2012). [1] [1] http://lists.freedesktop.org/archives/wayland-devel/2012-October/005976.html Change-Id: Id5d45e1a5afe49cf9ec5312318bd173f5a067f62 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
This commit is contained in:
parent
1a708277c5
commit
247643a602
19
configure
vendored
19
configure
vendored
@ -5208,13 +5208,20 @@ if [ "$CFG_KMS" != "no" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Detect libxkbcommon
|
# Detect libxkbcommon
|
||||||
if [ -n "$PKG_CONFIG" ] && $PKG_CONFIG --exists xkbcommon 2>/dev/null; then
|
if [ -n "$PKG_CONFIG" ] && $PKG_CONFIG --exists "xkbcommon >= 0.2.0" 2>/dev/null; then
|
||||||
QMAKE_CFLAGS_XKBCOMMON="`$PKG_CONFIG --cflags xkbcommon 2>/dev/null`"
|
QMAKE_CFLAGS_XKBCOMMON="`$PKG_CONFIG --cflags xkbcommon 2>/dev/null`"
|
||||||
QMAKE_LIBS_XKBCOMMON="`$PKG_CONFIG --libs xkbcommon 2>/dev/null`"
|
QMAKE_LIBS_XKBCOMMON="`$PKG_CONFIG --libs xkbcommon 2>/dev/null`"
|
||||||
QMAKE_CFLAGS_XCB="$QMAKE_CFLAGS_XCB $QMAKE_CFLAGS_XKBCOMMON"
|
QT_CONFIG="$QT_CONFIG xkbcommon"
|
||||||
QMAKE_LIBS_XCB="$QMAKE_LIBS_XCB $QMAKE_LIBS_XKBCOMMON"
|
|
||||||
else
|
else
|
||||||
QMAKE_DEFINES_XCB=QT_NO_XCB_XKB
|
echo "WARNING: Qt requires the libxkbcommon version 0.2.0 (or higher)."
|
||||||
|
echo "Not satisfying this requirement will disable the compose key functionality,"
|
||||||
|
echo "which includes text input with dead keys."
|
||||||
|
QMakeVar add DEFINES QT_NO_XKBCOMMON
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$QMAKE_CFLAGS_XKBCOMMON" ] || [ -n "$QMAKE_LIBS_XKBCOMMON" ]; then
|
||||||
|
QMakeVar set QMAKE_CFLAGS_XKBCOMMON "$QMAKE_CFLAGS_XKBCOMMON"
|
||||||
|
QMakeVar set QMAKE_LIBS_XKBCOMMON "$QMAKE_LIBS_XKBCOMMON"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# EGL Support
|
# EGL Support
|
||||||
@ -5299,8 +5306,8 @@ fi
|
|||||||
if [ -n "$QMAKE_CFLAGS_XCB" ] || [ -n "$QMAKE_LIBS_XCB" ]; then
|
if [ -n "$QMAKE_CFLAGS_XCB" ] || [ -n "$QMAKE_LIBS_XCB" ]; then
|
||||||
QMakeVar set QMAKE_CFLAGS_XCB "$QMAKE_CFLAGS_XCB"
|
QMakeVar set QMAKE_CFLAGS_XCB "$QMAKE_CFLAGS_XCB"
|
||||||
QMakeVar set QMAKE_LIBS_XCB "$QMAKE_LIBS_XCB"
|
QMakeVar set QMAKE_LIBS_XCB "$QMAKE_LIBS_XCB"
|
||||||
QMakeVar set QMAKE_DEFINES_XCB "$QMAKE_DEFINES_XCB"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$CFG_DIRECTFB" = "yes" ]; then
|
if [ "$CFG_DIRECTFB" = "yes" ]; then
|
||||||
QT_CONFIG="$QT_CONFIG directfb"
|
QT_CONFIG="$QT_CONFIG directfb"
|
||||||
QMakeVar set QMAKE_CFLAGS_DIRECTFB "$QMAKE_CFLAGS_DIRECTFB"
|
QMakeVar set QMAKE_CFLAGS_DIRECTFB "$QMAKE_CFLAGS_DIRECTFB"
|
||||||
@ -6640,7 +6647,7 @@ echo "Xi support ............. $CFG_XINPUT"
|
|||||||
echo "Xi2 support ............ $CFG_XINPUT2"
|
echo "Xi2 support ............ $CFG_XINPUT2"
|
||||||
echo "MIT-SHM support ........ $CFG_MITSHM"
|
echo "MIT-SHM support ........ $CFG_MITSHM"
|
||||||
echo "FontConfig support ..... $CFG_FONTCONFIG"
|
echo "FontConfig support ..... $CFG_FONTCONFIG"
|
||||||
echo "XKB Support ............ $CFG_XKB"
|
echo "XKB support ............ $CFG_XKB"
|
||||||
echo "GTK theme support ...... $CFG_QGTKSTYLE"
|
echo "GTK theme support ...... $CFG_QGTKSTYLE"
|
||||||
|
|
||||||
if [ "$XPLATFORM_MINGW" = "yes" ] ; then
|
if [ "$XPLATFORM_MINGW" = "yes" ] ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user