2010-08-09 14:20:13 +02:00
|
|
|
# This file should not be edited.
|
2010-10-02 18:26:51 +02:00
|
|
|
# Future versions of Qt Creator might offer updated versions of this file.
|
2010-08-09 14:20:13 +02:00
|
|
|
|
|
|
|
|
QT += declarative
|
|
|
|
|
|
2010-08-25 19:07:50 +02:00
|
|
|
SOURCES += $$PWD/qmlapplicationviewer.cpp
|
|
|
|
|
HEADERS += $$PWD/qmlapplicationviewer.h
|
|
|
|
|
INCLUDEPATH += $$PWD
|
2010-08-09 14:20:13 +02:00
|
|
|
|
2010-09-29 13:57:05 +02:00
|
|
|
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)
|
|
|
|
|
}
|
|
|
|
|
|
2010-09-22 13:03:37 +02:00
|
|
|
contains(DEFINES, QMLJSDEBUGGER) {
|
2010-08-09 14:20:13 +02:00
|
|
|
CONFIG(debug, debug|release) {
|
2010-09-29 13:57:05 +02:00
|
|
|
!minQtVersion(4, 7, 1) {
|
|
|
|
|
warning()
|
|
|
|
|
warning("Debugging QML requires the qmljsdebugger library that ships with Qt Creator.")
|
|
|
|
|
warning("This library requires Qt 4.7.1 or newer.")
|
|
|
|
|
warning()
|
|
|
|
|
|
|
|
|
|
error("Qt version $$QT_VERSION too old for QmlJS Debugging. Aborting.")
|
|
|
|
|
}
|
2010-09-22 13:03:37 +02:00
|
|
|
isEmpty(QMLJSDEBUGGER_PATH) {
|
2010-09-22 15:33:41 +02:00
|
|
|
warning()
|
2010-09-29 13:57:05 +02:00
|
|
|
warning("Debugging QML requires the qmljsdebugger library that ships with Qt Creator.")
|
|
|
|
|
warning("Please specify its location on the qmake command line, eg")
|
|
|
|
|
warning(" qmake -r QMLJSDEBUGGER_PATH=$CREATORDIR/share/qtcreator/qmljsdebugger")
|
2010-09-22 15:33:41 +02:00
|
|
|
warning()
|
|
|
|
|
|
2010-09-29 13:57:05 +02:00
|
|
|
error("QMLJSDEBUGGER defined, but no QMLJSDEBUGGER_PATH set on command line. Aborting.")
|
2010-09-22 13:03:37 +02:00
|
|
|
DEFINES -= QMLJSDEBUGGER
|
2010-08-09 22:21:07 +02:00
|
|
|
} else {
|
2010-09-22 13:03:37 +02:00
|
|
|
include($$QMLJSDEBUGGER_PATH/qmljsdebugger-lib.pri)
|
2010-08-09 22:21:07 +02:00
|
|
|
}
|
2010-08-09 14:20:13 +02:00
|
|
|
} else {
|
2010-09-22 13:03:37 +02:00
|
|
|
DEFINES -= QMLJSDEBUGGER
|
2010-08-09 14:20:13 +02:00
|
|
|
}
|
|
|
|
|
}
|