forked from qt-creator/qt-creator
Fixes: Move qt version check to qtcreator.pro
RevBy: con
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
#version check qt
|
||||||
|
TOO_OLD_LIST=$$find(QT_VERSION, ^4\.[0-4])
|
||||||
|
count(TOO_OLD_LIST, 1) {
|
||||||
|
message("Cannot build the Qt Creator with a Qt version that old:" $$QT_VERSION)
|
||||||
|
error("Use at least Qt 4.5.")
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
TEMPLATE = subdirs
|
TEMPLATE = subdirs
|
||||||
CONFIG += ordered
|
CONFIG += ordered
|
||||||
|
|
||||||
|
|||||||
@@ -6,11 +6,6 @@ include(../../../shared/designerintegrationv2/designerintegration.pri)
|
|||||||
include(cpp/cpp.pri)
|
include(cpp/cpp.pri)
|
||||||
include(designer_dependencies.pri)
|
include(designer_dependencies.pri)
|
||||||
|
|
||||||
# -- check the Qt version
|
|
||||||
TOO_OLD_LIST=$$find(QT_VERSION, ^4\.[0-4])
|
|
||||||
count(TOO_OLD_LIST, 1) {
|
|
||||||
error("Cannot build the designer plugin with a Qt version that old:" $$QT_VERSION)
|
|
||||||
}
|
|
||||||
# -- figure out shared dir location
|
# -- figure out shared dir location
|
||||||
!exists($$[QT_INSTALL_HEADERS]/QtDesigner/private/qdesigner_integration_p.h) {
|
!exists($$[QT_INSTALL_HEADERS]/QtDesigner/private/qdesigner_integration_p.h) {
|
||||||
QT_SOURCE_TREE=$$fromfile($$(QTDIR)/.qmake.cache,QT_SOURCE_TREE)
|
QT_SOURCE_TREE=$$fromfile($$(QTDIR)/.qmake.cache,QT_SOURCE_TREE)
|
||||||
|
|||||||
Reference in New Issue
Block a user