Make Qt Edition available to qmake
Allow .pro, .prf ... files to check the edition (OpenSource, Evaluation, Preview, Enterprise ...) of the Qt installation. Change-Id: If2a8e3877d066b225b1777916cef1d23c65f8512 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
This commit is contained in:
parent
fe6eeab561
commit
5d707bff3d
2
configure
vendored
2
configure
vendored
@ -6763,6 +6763,8 @@ QT_PATCH_VERSION = $QT_PATCH_VERSION
|
|||||||
QT_LIBINFIX = $QT_LIBINFIX
|
QT_LIBINFIX = $QT_LIBINFIX
|
||||||
QT_NAMESPACE = $QT_NAMESPACE
|
QT_NAMESPACE = $QT_NAMESPACE
|
||||||
|
|
||||||
|
QT_EDITION = $Edition
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if [ "$CFG_SHARED" = "no" ]; then
|
if [ "$CFG_SHARED" = "no" ]; then
|
||||||
|
@ -3460,6 +3460,9 @@ void Configure::generateQConfigPri()
|
|||||||
<< "QT_MINOR_VERSION = " << dictionary["VERSION_MINOR"] << endl
|
<< "QT_MINOR_VERSION = " << dictionary["VERSION_MINOR"] << endl
|
||||||
<< "QT_PATCH_VERSION = " << dictionary["VERSION_PATCH"] << endl;
|
<< "QT_PATCH_VERSION = " << dictionary["VERSION_PATCH"] << endl;
|
||||||
|
|
||||||
|
configStream << endl
|
||||||
|
<< "QT_EDITION = " << dictionary["EDITION"] << endl;
|
||||||
|
|
||||||
if (!dictionary["CFG_SYSROOT"].isEmpty() && dictionary["CFG_GCC_SYSROOT"] == "yes") {
|
if (!dictionary["CFG_SYSROOT"].isEmpty() && dictionary["CFG_GCC_SYSROOT"] == "yes") {
|
||||||
configStream << endl
|
configStream << endl
|
||||||
<< "# sysroot" << endl
|
<< "# sysroot" << endl
|
||||||
|
Loading…
Reference in New Issue
Block a user