Use configure -confirm-license option also in commercial Qt versions

Pass the -confirm-license option to external license checker which is
used in Qt commercial version.

Change-Id: I62326d1e6a8307dae64535ecf2ced762130b7e8f
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
Reviewed-by: Samuli Piippo <samuli.piippo@digia.com>
This commit is contained in:
Kalle Viironen 2014-03-31 16:09:22 +03:00 committed by The Qt Project
parent 0cb2c760c2
commit 3c070b58b2
2 changed files with 4 additions and 2 deletions

3
configure vendored
View File

@ -2773,7 +2773,8 @@ if [ -f "$relpath"/LICENSE.PREVIEW.COMMERCIAL ] && [ $COMMERCIAL_USER = "yes" ];
EditionString="Technology Preview"
elif [ $COMMERCIAL_USER = "yes" ]; then
if test -x "$relpath/bin/licheck"; then
LicheckOutput=`$relpath/bin/licheck $relpath $outpath $PLATFORM $XPLATFORM`
LicheckOutput=`$relpath/bin/licheck $OPT_CONFIRM_LICENSE $relpath $outpath\
$PLATFORM $XPLATFORM`
if [ $? -ne 0 ]; then
exit 1
else

View File

@ -71,8 +71,9 @@ void Tools::checkLicense(QMap<QString,QString> &dictionary,
const QString xQMakeSpec =
QDir::toNativeSeparators(dictionary.value("XQMAKESPEC"));
QString command = QString("%1 %2 %3 %4 %5")
QString command = QString("%1 %2 %3 %4 %5 %6")
.arg(licenseChecker,
dictionary.value("LICENSE_CONFIRMED", "no"),
QDir::toNativeSeparators(sourcePath),
QDir::toNativeSeparators(buildPath),
qMakeSpec, xQMakeSpec);