summaryrefslogtreecommitdiffstats
path: root/src/remote/slave/lib/lib.pro
blob: ca73a9148ef067017954b1bc0c41f6efea9ce501 (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
!include (../../remote.pri)

TEMPLATE = lib

TARGET = QstSlave
TARGETPATH = QtSystemTest

TEMPLATE = lib

CONFIG += no_clean qt
QT += core network widgets declarative quick

INCLUDEPATH += ../../../../include
LIBS += -L../../../../lib
LIBS += -lQstProtocol

contains(QT_MAJOR_VERSION, 5) {
    SOURCES += \
        qinputgenerator_qwindow.cpp \
        testquickobject.cpp \
        testquickitem.cpp \
        testquickview.cpp \
        testwindow.cpp

    PUBLIC_HEADERS += \
        testquickobject.h \
        testquickitem.h \
        testquickview.h \
        testwindow.h \

    HEADERS += \
        qinputgenerator_qwindow_p.h

    QT += qml qml-private quick gui-private core-private widgets
} else {
    INCLUDEPATH += $$QT_DECLARATIVE_PRIVATE_HEADERS_DIR
}

SOURCES += \
    qinputgenerator_generic.cpp \
    testquickfactory.cpp \
    testobject.cpp \
    testwidget.cpp \
    qasciikey.cpp \
    qtuitestconnectionmanager.cpp \
    qtuitestwidgetinterface.cpp \
    qeventwatcher.cpp \
    qtestslave.cpp \
    testapplication.cpp \
    testslaveserver.cpp \
    qtuitestwidgets.cpp \
    qinputgenerator.cpp \
    qtestwidgets.cpp \
    qtuitestnamespace.cpp

PUBLIC_HEADERS += \
    qtestwidgets.h \
    qtuitestnamespace.h \
    testquickfactory.h \
    testobject.h \
    testwidget.h \
    testapplication.h \
    qtuitestwidgetinterface.h \
    qtestslave.h \
    qtuitestmessagehandler.h \
    testslaveserver.h

HEADERS = \
    qinputgenerator_p.h \
    qtuitestconnectionmanager_p.h \
    qeventwatcher_p.h \
    qtuitestwidgets_p.h \
    qinputgenerator_generic_p.h \
    $$PUBLIC_HEADERS

# Installing libs and headers into Qt lib
includes.files = $$PUBLIC_HEADERS
includes.path = $$[QT_INSTALL_HEADERS]/$$TARGETPATH

target.path = $$[QT_INSTALL_LIBS]

INSTALLS += includes target

# Building so that other libs in project can access this lib
DESTDIR = ../../../../lib
INCLUDEDESTDIR = $$OUT_PWD/../../../../include/$$TARGETPATH
includedir.target = dummytarget
includedir.commands = (mkdir -p $$INCLUDEDESTDIR && cd $$PWD && cp $$PUBLIC_HEADERS $$INCLUDEDESTDIR/)

QMAKE_EXTRA_TARGETS += includedir

PRE_TARGETDEPS += dummytarget