1TEMPLATE = lib
2TARGET = $${KDSOAPSERVERLIB}
3QT -= gui
4
5QT += network
6
7# Workaround for visual studio integration
8DESTDIR = $${TOP_BUILD_DIR}/lib
9win32:DLLDESTDIR = $${TOP_BUILD_DIR}/bin
10
11include($${TOP_SOURCE_DIR}/variables.pri)
12
13# Only used by Mac frameworks.
14# See the include subdir for standard header installation
15# TODO: install these from include/ as well
16INSTALLHEADERS = KDSoapServer.h \
17                 KDSoapServerAuthInterface.h \
18                 KDSoapServerRawXMLInterface.h \
19                 KDSoapServerObjectInterface.h \
20                 KDSoapServerGlobal.h \
21                 KDSoapDelayedResponseHandle.h \
22                 KDSoapServerCustomVerbRequestInterface.h
23
24HEADERS = $$INSTALLHEADERS \
25    KDSoapThreadPool.h \
26    KDSoapServerSocket_p.h \
27    KDSoapServerThread_p.h \
28    KDSoapSocketList_p.h \
29
30SOURCES = KDSoapServer.cpp \
31    KDSoapThreadPool.cpp \
32    KDSoapServerSocket.cpp \
33    KDSoapServerThread.cpp \
34    KDSoapSocketList.cpp \
35    KDSoapServerAuthInterface.cpp \
36    KDSoapServerRawXMLInterface.cpp \
37    KDSoapServerObjectInterface.cpp \
38    KDSoapDelayedResponseHandle.cpp \
39    KDSoapServerCustomVerbRequestInterface.cpp
40
41DEFINES += KDSOAP_BUILD_KDSOAPSERVER_LIB
42
43# We use the soap client library, for xml parsing
44INCLUDEPATH += . $${TOP_SOURCE_DIR}/src
45DEPENDPATH += . $${TOP_SOURCE_DIR}/src
46LIBS        += -L$$DESTDIR -l$$KDSOAPLIB
47
48# installation targets:
49target.path = $$INSTALL_PREFIX/lib$$LIB_SUFFIX
50INSTALLS += target
51
52# Mac frameworks
53macx:lib_bundle: {
54    FRAMEWORK_HEADERS.version = Versions
55    FRAMEWORK_HEADERS.files = $$INSTALLHEADERS
56    FRAMEWORK_HEADERS.path = Headers
57    QMAKE_BUNDLE_DATA += FRAMEWORK_HEADERS
58}
59