add qmltestcase.prf for QtQuickTest
authorCharles Yin <charles.yin@nokia.com>
Sat, 21 May 2011 13:50:14 +0000 (23:50 +1000)
committerCharles Yin <charles.yin@nokia.com>
Sat, 21 May 2011 13:51:48 +0000 (23:51 +1000)
so that 'CONFIG += qmltestcase' works

mkspecs/features/qmltestcase.prf [new file with mode: 0644]

diff --git a/mkspecs/features/qmltestcase.prf b/mkspecs/features/qmltestcase.prf
new file mode 100644 (file)
index 0000000..a3d66e6
--- /dev/null
@@ -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\\\"\"