QmlDesigner: Improve Qt version check in plugins.pro

Reviewed-by: Thomas Hartmann
This commit is contained in:
Kai Koehne
2010-09-29 13:35:06 +02:00
parent 8c956abedd
commit cb48aad9d2
2 changed files with 25 additions and 3 deletions
+20
View File
@@ -31,6 +31,26 @@ defineReplace(qtLibraryName) {
return($$RET)
}
defineTest(minQtVersion) {
maj = $$1
min = $$2
patch = $$3
isEqual(QT_MAJOR_VERSION, $$maj) {
isEqual(QT_MINOR_VERSION, $$min) {
isEqual(QT_PATCH_VERSION, $$patch) {
return(true)
}
greaterThan(QT_PATCH_VERSION, $$patch) {
return(true)
}
}
greaterThan(QT_MINOR_VERSION, $$min) {
return(true)
}
}
return(false)
}
# For use in custom compilers which just copy files
win32:i_flag = i
defineReplace(stripSrcDir) {
+5 -3
View File
@@ -38,20 +38,22 @@ SUBDIRS = plugin_coreplugin \
plugin_tasklist \
debugger/dumper.pro
contains(QT_CONFIG, declarative) {
include(../../qtcreator.pri)
contains(QT_CONFIG, declarative) {
SUBDIRS += \
plugin_qmlprojectmanager \
plugin_qmljsinspector
include(../private_headers.pri)
exists($${QT_PRIVATE_HEADERS}/QtDeclarative/private/qdeclarativecontext_p.h) {
isEqual(QT_MINOR_VERSION, 7):greaterThan(QT_PATCH_VERSION, 0) {
minQtVersion(4, 7, 1) {
SUBDIRS += plugin_qmldesigner
} else {
warning()
warning("QmlDesigner plugin has been disabled.")
warning("Qt Version has to be 4.7.x with x > 0")
warning("QmlDesigner requires Qt 4.7.1 or later.")
}
} else {
warning()