summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharles Yin <charles.yin@nokia.com>2011-05-21 23:50:14 +1000
committerCharles Yin <charles.yin@nokia.com>2011-05-21 23:51:48 +1000
commit035d6b9188f25d2d70c8a47b62babaf168bc38dd (patch)
tree3779e5628c96aec9fd5364cc818d72bfb4f8c673
parentd3b376865e33c91040325a2e6e74e94b09c8dd6b (diff)
add qmltestcase.prf for QtQuickTest
so that 'CONFIG += qmltestcase' works
-rw-r--r--mkspecs/features/qmltestcase.prf25
1 files changed, 25 insertions, 0 deletions
diff --git a/mkspecs/features/qmltestcase.prf b/mkspecs/features/qmltestcase.prf
new file mode 100644
index 0000000000..a3d66e659e
--- /dev/null
+++ b/mkspecs/features/qmltestcase.prf
@@ -0,0 +1,25 @@
+CONFIG += testcase
+
+!symbian {
+ INCLUDEPATH += $$[QT_INSTALL_HEADERS]/QtQuickTest
+} else {
+ load(data_caging_paths)
+
+ INCLUDEPATH+=$$MW_LAYER_PUBLIC_EXPORT_PATH(QtQuickTest)
+}
+
+QT += declarative
+
+win32:CONFIG(debug, debug|release) {
+ LIBS += -lQtQuickTest$${QT_LIBINFIX}d
+} else {
+ LIBS += -lQtQuickTest$${QT_LIBINFIX}
+}
+
+# If the .pro file specified an IMPORTPATH, then add that to
+# the command-line when the test is run.
+!isEmpty(IMPORTPATH) {
+ load(testcase)
+ for(import, IMPORTPATH): check.commands += -import \"$$import\"
+}
+DEFINES += QUICK_TEST_SOURCE_DIR=\"\\\"$$OUT_PWD\\\"\"