1include(../common.pri)
2INCLUDEPATH += $$PWD
3DEPENDPATH += $$PWD
4!win32:QT += network
5win32:LIBS += -luser32
6
7qtservice-uselib:!qtservice-buildlib {
8    LIBS += -L$$QTSERVICE_LIBDIR -l$$QTSERVICE_LIBNAME
9} else {
10    HEADERS       += $$PWD/qtservice.h \
11                     $$PWD/qtservice_p.h
12    SOURCES       += $$PWD/qtservice.cpp
13    win32:SOURCES += $$PWD/qtservice_win.cpp
14    unix:HEADERS  += $$PWD/qtunixsocket.h $$PWD/qtunixserversocket.h
15    unix:SOURCES  += $$PWD/qtservice_unix.cpp $$PWD/qtunixsocket.cpp $$PWD/qtunixserversocket.cpp
16}
17
18win32 {
19    qtservice-buildlib:shared:DEFINES += QT_QTSERVICE_EXPORT
20    else:qtservice-uselib:DEFINES += QT_QTSERVICE_IMPORT
21}
22