Remove definition QT_EDITION
Remove definition QT_EDITION which was set in configure since it is not used anywhere anymore. Change-Id: I5c30ab47c6244fcb07707fd05e11decf2068f6d1 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
parent
daff5656e2
commit
b9ec3e895f
21
configure
vendored
21
configure
vendored
@ -2776,7 +2776,6 @@ if [ -f "$relpath"/LICENSE.PREVIEW.COMMERCIAL ] && [ $COMMERCIAL_USER = "yes" ];
|
|||||||
# Commercial preview release
|
# Commercial preview release
|
||||||
Licensee="Preview"
|
Licensee="Preview"
|
||||||
Edition="Preview"
|
Edition="Preview"
|
||||||
QT_EDITION="QT_EDITION_DESKTOP"
|
|
||||||
LicenseType="Technology Preview"
|
LicenseType="Technology Preview"
|
||||||
elif [ $COMMERCIAL_USER = "yes" ]; then
|
elif [ $COMMERCIAL_USER = "yes" ]; then
|
||||||
# one of commercial editions
|
# one of commercial editions
|
||||||
@ -2832,17 +2831,14 @@ elif [ $COMMERCIAL_USER = "yes" ]; then
|
|||||||
case $ProductCode in
|
case $ProductCode in
|
||||||
F)
|
F)
|
||||||
Edition="Universal"
|
Edition="Universal"
|
||||||
QT_EDITION="QT_EDITION_UNIVERSAL"
|
|
||||||
;;
|
;;
|
||||||
B)
|
B)
|
||||||
Edition="FullFramework"
|
Edition="FullFramework"
|
||||||
EditionString="Full Framework"
|
EditionString="Full Framework"
|
||||||
QT_EDITION="QT_EDITION_DESKTOP"
|
|
||||||
;;
|
;;
|
||||||
L)
|
L)
|
||||||
Edition="GUIFramework"
|
Edition="GUIFramework"
|
||||||
EditionString="GUI Framework"
|
EditionString="GUI Framework"
|
||||||
QT_EDITION="QT_EDITION_DESKTOPLIGHT"
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
@ -2852,12 +2848,11 @@ elif [ $COMMERCIAL_USER = "yes" ]; then
|
|||||||
case $ProductCode in
|
case $ProductCode in
|
||||||
B)
|
B)
|
||||||
Edition="Evaluation"
|
Edition="Evaluation"
|
||||||
QT_EDITION="QT_EDITION_EVALUATION"
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
if [ -z "$LicenseType" -o -z "$Edition" -o -z "$QT_EDITION" ]; then
|
if [ -z "$LicenseType" -o -z "$Edition" ]; then
|
||||||
echo
|
echo
|
||||||
echo "Invalid license key. Please check the license key."
|
echo "Invalid license key. Please check the license key."
|
||||||
exit 1
|
exit 1
|
||||||
@ -2927,7 +2922,6 @@ elif [ $COMMERCIAL_USER = "yes" ]; then
|
|||||||
esac
|
esac
|
||||||
Licensee="$Edition"
|
Licensee="$Edition"
|
||||||
EditionString="$Edition"
|
EditionString="$Edition"
|
||||||
QT_EDITION="QT_EDITION_DESKTOP"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$LicenseFeatureCode" in
|
case "$LicenseFeatureCode" in
|
||||||
@ -2981,7 +2975,6 @@ elif [ $COMMERCIAL_USER = "no" ]; then
|
|||||||
Licensee="Open Source"
|
Licensee="Open Source"
|
||||||
Edition="OpenSource"
|
Edition="OpenSource"
|
||||||
EditionString="Open Source"
|
EditionString="Open Source"
|
||||||
QT_EDITION="QT_EDITION_OPENSOURCE"
|
|
||||||
fi
|
fi
|
||||||
echo
|
echo
|
||||||
echo "This is the Qt ${EditionString} Edition."
|
echo "This is the Qt ${EditionString} Edition."
|
||||||
@ -4034,9 +4027,6 @@ if true; then ###[ '!' -f "$outpath/bin/qmake" ];
|
|||||||
echo "EXEEXT = $EXEEXT" >> "$mkfile"
|
echo "EXEEXT = $EXEEXT" >> "$mkfile"
|
||||||
echo "RM_F = rm -f" >> "$mkfile"
|
echo "RM_F = rm -f" >> "$mkfile"
|
||||||
echo "RM_RF = rm -rf" >> "$mkfile"
|
echo "RM_RF = rm -rf" >> "$mkfile"
|
||||||
if [ $QT_EDITION = "QT_EDITION_OPENSOURCE" ]; then
|
|
||||||
echo "EXTRA_CPPFLAGS = -DQMAKE_OPENSOURCE_EDITION" >> "$mkfile"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$BUILD_ON_MAC" = "yes" ]; then
|
if [ "$BUILD_ON_MAC" = "yes" ]; then
|
||||||
echo "EXTRA_CXXFLAGS += -MMD" >> "$mkfile"
|
echo "EXTRA_CXXFLAGS += -MMD" >> "$mkfile"
|
||||||
@ -6247,10 +6237,6 @@ esac
|
|||||||
|
|
||||||
cat >>"$outpath/src/corelib/global/qconfig.h.new" <<EOF
|
cat >>"$outpath/src/corelib/global/qconfig.h.new" <<EOF
|
||||||
|
|
||||||
/* Qt Edition */
|
|
||||||
#ifndef QT_EDITION
|
|
||||||
# define QT_EDITION $QT_EDITION
|
|
||||||
#endif
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo '/* Compile time features */' >>"$outpath/src/corelib/global/qconfig.h.new"
|
echo '/* Compile time features */' >>"$outpath/src/corelib/global/qconfig.h.new"
|
||||||
@ -6505,7 +6491,6 @@ host_build {
|
|||||||
QMAKE_DEFAULT_LIBDIRS = `shellQuoteLines "$DEFAULT_LIBDIRS"`
|
QMAKE_DEFAULT_LIBDIRS = `shellQuoteLines "$DEFAULT_LIBDIRS"`
|
||||||
QMAKE_DEFAULT_INCDIRS = `shellQuoteLines "$DEFAULT_INCDIRS"`
|
QMAKE_DEFAULT_INCDIRS = `shellQuoteLines "$DEFAULT_INCDIRS"`
|
||||||
}
|
}
|
||||||
QT_EDITION = $Edition
|
|
||||||
QT_CONFIG += $QT_CONFIG
|
QT_CONFIG += $QT_CONFIG
|
||||||
|
|
||||||
#versioning
|
#versioning
|
||||||
@ -6632,10 +6617,6 @@ if [ -n "$QT_LFLAGS_TDS" ]; then
|
|||||||
echo "QT_LFLAGS_TDS = $QT_LFLAGS_TDS" >> "$QTMODULE.tmp"
|
echo "QT_LFLAGS_TDS = $QT_LFLAGS_TDS" >> "$QTMODULE.tmp"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$QT_EDITION" != "QT_EDITION_OPENSOURCE" ]; then
|
|
||||||
echo "DEFINES *= QT_EDITION=QT_EDITION_DESKTOP" >> "$QTMODULE.tmp"
|
|
||||||
fi
|
|
||||||
|
|
||||||
#dump in the OPENSSL_LIBS info
|
#dump in the OPENSSL_LIBS info
|
||||||
if [ '!' -z "$OPENSSL_LIBS" ]; then
|
if [ '!' -z "$OPENSSL_LIBS" ]; then
|
||||||
echo "OPENSSL_LIBS = $OPENSSL_LIBS" >> "$QTMODULE.tmp"
|
echo "OPENSSL_LIBS = $OPENSSL_LIBS" >> "$QTMODULE.tmp"
|
||||||
|
@ -29,10 +29,6 @@ HEADERS += project.h property.h \
|
|||||||
generators/integrity/gbuild.h \
|
generators/integrity/gbuild.h \
|
||||||
generators/win32/cesdkhandler.h
|
generators/win32/cesdkhandler.h
|
||||||
|
|
||||||
contains(QT_EDITION, OpenSource) {
|
|
||||||
DEFINES += QMAKE_OPENSOURCE_EDITION
|
|
||||||
}
|
|
||||||
|
|
||||||
bootstrap { #Qt code
|
bootstrap { #Qt code
|
||||||
SOURCES+= \
|
SOURCES+= \
|
||||||
qbitarray.cpp \
|
qbitarray.cpp \
|
||||||
|
@ -2950,9 +2950,6 @@ void Configure::generateCachefile()
|
|||||||
moduleStream << "}" << endl;
|
moduleStream << "}" << endl;
|
||||||
moduleStream << "QT_COORD_TYPE += " << dictionary["QREAL"] << endl;
|
moduleStream << "QT_COORD_TYPE += " << dictionary["QREAL"] << endl;
|
||||||
|
|
||||||
if (dictionary["QT_EDITION"] != "QT_EDITION_OPENSOURCE")
|
|
||||||
moduleStream << "DEFINES *= QT_EDITION=QT_EDITION_DESKTOP" << endl;
|
|
||||||
|
|
||||||
if (dictionary["QT_XKBCOMMON"] == "no")
|
if (dictionary["QT_XKBCOMMON"] == "no")
|
||||||
moduleStream << "DEFINES += QT_NO_XKBCOMMON" << endl;
|
moduleStream << "DEFINES += QT_NO_XKBCOMMON" << endl;
|
||||||
|
|
||||||
@ -3296,10 +3293,6 @@ void Configure::generateQConfigPri()
|
|||||||
configStream << " QMAKE_DEFAULT_INCDIRS = /usr/include /usr/local/include" << endl;
|
configStream << " QMAKE_DEFAULT_INCDIRS = /usr/include /usr/local/include" << endl;
|
||||||
}
|
}
|
||||||
configStream << "}" << endl;
|
configStream << "}" << endl;
|
||||||
if (dictionary["QT_EDITION"].contains("OPENSOURCE"))
|
|
||||||
configStream << "QT_EDITION = " << QLatin1String("OpenSource") << endl;
|
|
||||||
else
|
|
||||||
configStream << "QT_EDITION = " << dictionary["EDITION"] << endl;
|
|
||||||
configStream << "QT_CONFIG += " << qtConfig.join(' ') << endl;
|
configStream << "QT_CONFIG += " << qtConfig.join(' ') << endl;
|
||||||
|
|
||||||
configStream << "#versioning " << endl
|
configStream << "#versioning " << endl
|
||||||
@ -3398,11 +3391,6 @@ void Configure::generateConfigfiles()
|
|||||||
tmpStream << "#define QT_PRODUCT_LICENSEE \"" << licenseInfo[ "LICENSEE" ] << "\"" << endl;
|
tmpStream << "#define QT_PRODUCT_LICENSEE \"" << licenseInfo[ "LICENSEE" ] << "\"" << endl;
|
||||||
tmpStream << "#define QT_PRODUCT_LICENSE \"" << dictionary[ "EDITION" ] << "\"" << endl;
|
tmpStream << "#define QT_PRODUCT_LICENSE \"" << dictionary[ "EDITION" ] << "\"" << endl;
|
||||||
tmpStream << endl;
|
tmpStream << endl;
|
||||||
tmpStream << "// Qt Edition" << endl;
|
|
||||||
tmpStream << "#ifndef QT_EDITION" << endl;
|
|
||||||
tmpStream << "# define QT_EDITION " << dictionary["QT_EDITION"] << endl;
|
|
||||||
tmpStream << "#endif" << endl;
|
|
||||||
tmpStream << endl;
|
|
||||||
if (dictionary["BUILDDEV"] == "yes") {
|
if (dictionary["BUILDDEV"] == "yes") {
|
||||||
dictionary["QMAKE_INTERNAL"] = "yes";
|
dictionary["QMAKE_INTERNAL"] = "yes";
|
||||||
tmpStream << "/* Used for example to export symbols for the certain autotests*/" << endl;
|
tmpStream << "/* Used for example to export symbols for the certain autotests*/" << endl;
|
||||||
@ -4038,9 +4026,6 @@ void Configure::buildQmake()
|
|||||||
} else {
|
} else {
|
||||||
stream << "QMAKESPEC = " << dictionary["QMAKESPEC"] << endl;
|
stream << "QMAKESPEC = " << dictionary["QMAKESPEC"] << endl;
|
||||||
}
|
}
|
||||||
if (dictionary["EDITION"] == "OpenSource" ||
|
|
||||||
dictionary["QT_EDITION"].contains("OPENSOURCE"))
|
|
||||||
stream << "EXTRA_CPPFLAGS = -DQMAKE_OPENSOURCE_EDITION" << endl;
|
|
||||||
|
|
||||||
stream << "\n\n";
|
stream << "\n\n";
|
||||||
|
|
||||||
@ -4319,7 +4304,6 @@ void Configure::readLicense()
|
|||||||
cout << endl << "This is the " << dictionary["PLATFORM NAME"] << " Open Source Edition." << endl;
|
cout << endl << "This is the " << dictionary["PLATFORM NAME"] << " Open Source Edition." << endl;
|
||||||
licenseInfo["LICENSEE"] = "Open Source";
|
licenseInfo["LICENSEE"] = "Open Source";
|
||||||
dictionary["EDITION"] = "OpenSource";
|
dictionary["EDITION"] = "OpenSource";
|
||||||
dictionary["QT_EDITION"] = "QT_EDITION_OPENSOURCE";
|
|
||||||
cout << endl;
|
cout << endl;
|
||||||
if (!showLicense(dictionary["LICENSE FILE"])) {
|
if (!showLicense(dictionary["LICENSE FILE"])) {
|
||||||
cout << "Configuration aborted since license was not accepted";
|
cout << "Configuration aborted since license was not accepted";
|
||||||
|
@ -62,14 +62,12 @@ void Tools::checkLicense(QMap<QString,QString> &dictionary, QMap<QString,QString
|
|||||||
if (QFile::exists(tpLicense)) {
|
if (QFile::exists(tpLicense)) {
|
||||||
dictionary["EDITION"] = "Preview";
|
dictionary["EDITION"] = "Preview";
|
||||||
dictionary["LICENSE FILE"] = tpLicense;
|
dictionary["LICENSE FILE"] = tpLicense;
|
||||||
dictionary["QT_EDITION"] = "QT_EDITION_OPENSOURCE";
|
|
||||||
return; // No license key checking in Tech Preview
|
return; // No license key checking in Tech Preview
|
||||||
}
|
}
|
||||||
tpLicense = sourcePath + "/LICENSE.PREVIEW.COMMERCIAL";
|
tpLicense = sourcePath + "/LICENSE.PREVIEW.COMMERCIAL";
|
||||||
if (QFile::exists(tpLicense)) {
|
if (QFile::exists(tpLicense)) {
|
||||||
dictionary["EDITION"] = "Preview";
|
dictionary["EDITION"] = "Preview";
|
||||||
dictionary["LICENSE FILE"] = tpLicense;
|
dictionary["LICENSE FILE"] = tpLicense;
|
||||||
dictionary["QT_EDITION"] = "QT_EDITION_DESKTOP";
|
|
||||||
return; // No license key checking in Tech Preview
|
return; // No license key checking in Tech Preview
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -127,18 +125,14 @@ void Tools::checkLicense(QMap<QString,QString> &dictionary, QMap<QString,QString
|
|||||||
licenseType = "Commercial";
|
licenseType = "Commercial";
|
||||||
if (products == 'F') {
|
if (products == 'F') {
|
||||||
dictionary["EDITION"] = "Universal";
|
dictionary["EDITION"] = "Universal";
|
||||||
dictionary["QT_EDITION"] = "QT_EDITION_UNIVERSAL";
|
|
||||||
} else if (products == 'B') {
|
} else if (products == 'B') {
|
||||||
dictionary["EDITION"] = "FullFramework";
|
dictionary["EDITION"] = "FullFramework";
|
||||||
dictionary["QT_EDITION"] = "QT_EDITION_DESKTOP";
|
|
||||||
} else {
|
} else {
|
||||||
dictionary["EDITION"] = "GUIFramework";
|
dictionary["EDITION"] = "GUIFramework";
|
||||||
dictionary["QT_EDITION"] = "QT_EDITION_DESKTOPLIGHT";
|
|
||||||
}
|
}
|
||||||
} else if (strcmp(licenseSchema,"Z4M") == 0 || strcmp(licenseSchema,"R4M") == 0 || strcmp(licenseSchema,"Q4M") == 0) {
|
} else if (strcmp(licenseSchema,"Z4M") == 0 || strcmp(licenseSchema,"R4M") == 0 || strcmp(licenseSchema,"Q4M") == 0) {
|
||||||
if (products == 'B') {
|
if (products == 'B') {
|
||||||
dictionary["EDITION"] = "Evaluation";
|
dictionary["EDITION"] = "Evaluation";
|
||||||
dictionary["QT_EDITION"] = "QT_EDITION_EVALUATION";
|
|
||||||
licenseType = "Evaluation";
|
licenseType = "Evaluation";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -212,8 +206,7 @@ void Tools::checkLicense(QMap<QString,QString> &dictionary, QMap<QString,QString
|
|||||||
dictionary["DONE"] = "error";
|
dictionary["DONE"] = "error";
|
||||||
}
|
}
|
||||||
if (licenseType.isEmpty()
|
if (licenseType.isEmpty()
|
||||||
|| dictionary["EDITION"].isEmpty()
|
|| dictionary["EDITION"].isEmpty()) {
|
||||||
|| dictionary["QT_EDITION"].isEmpty()) {
|
|
||||||
cout << "License file does not contain proper license key." << endl;
|
cout << "License file does not contain proper license key." << endl;
|
||||||
dictionary["DONE"] = "error";
|
dictionary["DONE"] = "error";
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user