summaryrefslogtreecommitdiffstats
path: root/qtuitest-host.pri
blob: 0d80a8b36195f3caf286196eae4222d2bdbca691 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
DEFINES += QTUITESTRUNNER_TARGET QTUITEST
DEFINES += QSYSTEMTEST_TARGET
QT+=script network
CONFIG+=qtestlib
QTUITEST_VERSION=0.9.0

SOURCES +=\
        $$QTUITEST_SRC/interpreter/qscriptsystemtest.cpp   \
        $$QTUITEST_SRC/interpreter/qtscript_bindings.cpp   \
        $$QTUITEST_SRC/interpreter/qtuitestengineagent.cpp \
        $$QTUITEST_SRC/interpreter/scriptpreprocessor.cpp

HEADERS +=\
        $$QTUITEST_SRC/interpreter/qscriptsystemtest.h   \
        $$QTUITEST_SRC/interpreter/scriptpreprocessor.h  \
        $$QTUITEST_SRC/interpreter/qtuitestengineagent.h \
        $$QTUITEST_SRC/interpreter/qtscript_bindings.h

RESOURCES += $$QTUITEST_SRC/interpreter/scripts.qrc
INCLUDEPATH += $$QTUITEST_SRC/libqsystemtest $$QTUITEST_SRC/interpreter $$QTUITEST_SRC $$QTUITEST_SRC/libqtuitest

# stuff to include libqsystemtest
FORMS   +=\
        $$QTUITEST_SRC/libqsystemtest/manualverificationdlg.ui \
        $$QTUITEST_SRC/libqsystemtest/failuredlg.ui \
        $$QTUITEST_SRC/libqsystemtest/recorddlg.ui

SEMI_PRIVATE_HEADERS += \
        $$QTUITEST_SRC/libqsystemtest/qsystemtestmaster_p.h \
        $$QTUITEST_SRC/libqsystemtest/qtestremote_p.h \
        $$QTUITEST_SRC/libqsystemtest/qtestverifydlg_p.h

HEADERS +=\
#        $$QTUITEST_SRC/libqsystemtest/gracefulquit.h \
        $$QTUITEST_SRC/libqsystemtest/qabstracttest.h \
        $$QTUITEST_SRC/libqsystemtest/qsystemtest.h \
        $$QTUITEST_SRC/libqsystemtest/testdevicecontrol.h

SOURCES +=\
 #       $$QTUITEST_SRC/libqsystemtest/gracefulquit.cpp \
        $$QTUITEST_SRC/libqsystemtest/qabstracttest.cpp \
        $$QTUITEST_SRC/libqsystemtest/qtestremote.cpp \
        $$QTUITEST_SRC/libqsystemtest/qtestverifydlg.cpp \
        $$QTUITEST_SRC/libqsystemtest/qsystemtest.cpp \
        $$QTUITEST_SRC/libqsystemtest/qsystemtest_p.cpp \
        $$QTUITEST_SRC/libqsystemtest/qsystemtestmaster.cpp \
        $$QTUITEST_SRC/libqsystemtest/testdevicecontrol.cpp

HEADERS*=$$SEMI_PRIVATE_HEADERS $$PRIVATE_HEADERS

symbian {
    TARGET.EPOCALLOWDLLDATA=1
    TARGET.CAPABILITY += AllFiles ReadDeviceData ReadUserData SwEvent WriteUserData
 #   SOURCES-=$$QTUITEST_SRC/libqsystemtest/gracefulquit.cpp
 #   HEADERS-=$$QTUITEST_SRC/libqsystemtest/gracefulquit.h
    LIBS+=-L$$OUT_PWD -lws32 -leuser -lcone
}

win32 {
 #   SOURCES-=$$QTUITEST_SRC/libqsystemtest/gracefulquit.cpp
 #   HEADERS-=$$QTUITEST_SRC/libqsystemtest/gracefulquit.h
    !equals(QMAKE_CXX, "g++") {
        DEFINES+=strcasecmp=_stricmp
    }
}

mac {
    DEFINES+=sighandler_t=sig_t
}