summaryrefslogtreecommitdiffstats
path: root/tests/servicetest.pro
blob: ac9522822f7bb65158f78eab347f824be2702348 (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
QT -= gui
QT += testlib

win32: CONFIG += console
CONFIG -= app_bundle

TEMPLATE = app

unix {
    CONFIG += link_pkgconfig
    PKGCONFIG += libusb-1.0
}
win32 {
    LIBS += -llibusb-1.0
}

HEADERS += \
    ../qdb/server/connection.h \
    ../qdb/server/echoservice.h \
    ../qdb/server/service.h \
    ../qdb/server/usb-host/usbcommon.h \
    ../qdb/server/usb-host/usbconnection.h \
    ../qdb/server/usb-host/usbconnectionreader.h \
    ../qdb/server/usb-host/usbdevice.h \
    ../qdb/server/usb-host/usbdeviceenumerator.h \

SOURCES += \
    ../qdb/server/connection.cpp \
    ../qdb/server/echoservice.cpp \
    ../qdb/server/service.cpp \
    ../qdb/server/usb-host/libusbcontext.cpp \
    ../qdb/server/usb-host/usbconnection.cpp \
    ../qdb/server/usb-host/usbconnectionreader.cpp \
    ../qdb/server/usb-host/usbdevice.cpp \
    ../qdb/server/usb-host/usbdeviceenumerator.cpp \
    servicetest.cpp \

INCLUDEPATH += $$PWD/../

unix {
    LIBS = -L$$OUT_PWD/../libqdb -lqdb
    QMAKE_RPATHDIR += ../libqdb
}

win32 {
    HEADERS += \
        ../libqdb/protocol/protocol.h \
        ../libqdb/protocol/qdbmessage.h \
        ../libqdb/protocol/qdbtransport.h \
        ../libqdb/stream.h \
        ../libqdb/abstractconnection.h \
        ../libqdb/streampacket.h

    SOURCES += \
        ../libqdb/protocol/qdbmessage.cpp \
        ../libqdb/protocol/qdbtransport.cpp \
        ../libqdb/stream.cpp \
        ../libqdb/abstractconnection.cpp \
        ../libqdb/streampacket.cpp

    CONFIG(debug, debug|release) {
        LIBQDBDIR = $$OUT_PWD/../libqdb/debug
    } else {
        LIBQDBDIR = $$OUT_PWD/../libqdb/release
    }
    LIBS = -L$$LIBQDBDIR -lqdb
}