]> www.infradead.org Git - users/hch/block.git/commitdiff
kconfig: qconf: drop Qt4 support
authorMasahiro Yamada <masahiroy@kernel.org>
Sat, 24 Oct 2020 12:38:39 +0000 (21:38 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 26 Oct 2020 23:25:50 +0000 (08:25 +0900)
It is possible to keep this compatible with both Qt4 and Qt5, but not
worth the efforts any more; 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>
scripts/kconfig/qconf-cfg.sh

index 02ccc0ae103187a4a1f9c56bac3eca08823087b8..d1eb2407c35d08a6857491634f4ced045814a163 100755 (executable)
@@ -2,7 +2,6 @@
 # SPDX-License-Identifier: GPL-2.0
 
 PKG="Qt5Core Qt5Gui Qt5Widgets"
-PKG2="QtCore QtGui"
 
 if [ -z "$(command -v pkg-config)" ]; then
        echo >&2 "*"
@@ -18,15 +17,8 @@ if pkg-config --exists $PKG; then
        exit 0
 fi
 
-if pkg-config --exists $PKG2; then
-       echo cflags=\"$(pkg-config --cflags $PKG2)\"
-       echo libs=\"$(pkg-config --libs $PKG2)\"
-       echo moc=\"$(pkg-config --variable=moc_location QtCore)\"
-       exit 0
-fi
-
 echo >&2 "*"
-echo >&2 "* Could not find Qt via pkg-config."
-echo >&2 "* Please install either Qt 4.8 or 5.x. and make sure it's in PKG_CONFIG_PATH"
+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