1 TEMPLATE = app 2 CONFIG -= app_bundle 3 4 VPATH += $$_PRO_FILE_PWD_ 5 # Add the tst_ prefix, In QTDIR_build it's done by qttest_p4.prf 6 CONFIG(QTDIR_build) { load(qttest_p4) } 7 ELSE { TARGET = tst_$$TARGET } 8 9 # Load mobilityconfig if Qt Mobility is available 10 load(mobilityconfig, true) 11 contains(MOBILITY_CONFIG, multimedia) { 12 # This define is used by tests depending on Qt Multimedia 13 DEFINES -= WTF_USE_QT_MULTIMEDIA=0 14 DEFINES += WTF_USE_QT_MULTIMEDIA=1 15 } 16 17 SOURCES += $${TARGET}.cpp 18 INCLUDEPATH += \ 19 $$PWD \ 20 $$PWD/../Api 21 22 include(../../../WebKit.pri) 23 QT += testlib network 24 contains(QT_CONFIG, declarative): QT += declarative 25 26 QMAKE_RPATHDIR = $$OUTPUT_DIR/lib $$QMAKE_RPATHDIR 27 28 symbian { 29 TARGET.CAPABILITY = ReadUserData WriteUserData NetworkServices 30 } 31 32 # This define is used by some tests to look up resources in the source tree 33 !symbian: DEFINES += TESTS_SOURCE_DIR=\\\"$$PWD/\\\" 34 35 DEFINES -= QT_ASCII_CAST_WARNINGS 36 37