configure: Add support for -feature and -no-feature for cmake builds

Change-Id: I160a9513da0401f1c83598691294ec48737e08a5
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Ville Voutilainen 2020-01-29 12:13:14 +02:00
parent f72ca4cf85
commit 3ad5d7aa55

10
configure vendored
View File

@ -141,6 +141,16 @@ for i in "$@"; do
$i"
else
case $i in
-feature-*)
VAR=`echo $i | sed 's,^-feature-\(.*\),\1,'`
CMAKE_CMDLINE="$CMAKE_CMDLINE
-DQT_FEATURE_${VAR}=ON"
;;
-no-feature-*)
VAR=`echo $i | sed 's,^-no-feature-\(.*\),\1,'`
CMAKE_CMDLINE="$CMAKE_CMDLINE
-DQT_FEATURE_${VAR}=OFF"
;;
--no-*)
VAR=`echo $i | sed 's,^--no-\(.*\),\1,'`
CMAKE_CMDLINE="$CMAKE_CMDLINE