mirror of
https://github.com/torvalds/linux.git
synced 2024-12-16 16:12:52 +00:00
7b675649be
It is possible to keep this compatible with both Qt4 and Qt5, but it is questionable if it is worth the efforts; it would require us to test this on both of them, and prevent us from using new features in Qt5. Qt5 was released in 2012, and now widely available. Drop the Qt4 support. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
25 lines
615 B
Bash
Executable File
25 lines
615 B
Bash
Executable File
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
|
|
PKG="Qt5Core Qt5Gui Qt5Widgets"
|
|
|
|
if [ -z "$(command -v pkg-config)" ]; then
|
|
echo >&2 "*"
|
|
echo >&2 "* 'make xconfig' requires 'pkg-config'. Please install it."
|
|
echo >&2 "*"
|
|
exit 1
|
|
fi
|
|
|
|
if pkg-config --exists $PKG; then
|
|
echo cflags=\"-std=c++11 -fPIC $(pkg-config --cflags Qt5Core Qt5Gui Qt5Widgets)\"
|
|
echo libs=\"$(pkg-config --libs $PKG)\"
|
|
echo moc=\"$(pkg-config --variable=host_bins Qt5Core)/moc\"
|
|
exit 0
|
|
fi
|
|
|
|
echo >&2 "*"
|
|
echo >&2 "* Could not find Qt5 via pkg-config."
|
|
echo >&2 "* Please install Qt5 and make sure it's in PKG_CONFIG_PATH"
|
|
echo >&2 "*"
|
|
exit 1
|