forked from KDAB/KDSoap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kdsoap.pri
48 lines (42 loc) · 1.83 KB
/
kdsoap.pri
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
# Not used by KDSoap itself. This is for use in other projects.
# Copy the file there, but backport any changes here.
: # copy from environment:
isEmpty( KDSOAPDIR ):KDSOAPDIR="$$(KDSOAPDIR)"
!isEmpty( KDSOAPDIR ) {
unix {
static:!exists( $$KDSOAPDIR/lib/libkdsoap.a ) {
error( "Cannot find libkdsoap.a in $KDSOAPDIR/lib" )
} else {
isEmpty(QMAKE_EXTENSION_SHLIB) {
macx:QMAKE_EXTENSION_SHLIB=dylib
else:QMAKE_EXTENSION_SHLIB=so
}
!exists( $$KDSOAPDIR/lib/libkdsoap.$$QMAKE_EXTENSION_SHLIB ):!exists( $$KDSOAPDIR/lib/libkdsoap.a ) {
error( "Cannot find libkdsoap.$$QMAKE_EXTENSION_SHLIB or libkdsoap.a in $$KDSOAPDIR/lib" )
}
}
!exists( $$KDSOAPDIR/include/KDSoapClient/KDSoapClientInterface.h ):error( "Cannot find KDSoapClientInterface.h in $KDSOAPDIR/include/KDSoapClient" )
}
#win32:!exists( $$KDSOAPDIR/lib/kdsoap.lib ):error( "Cannot find kdsoap.lib in $KDSOAPDIR/lib" )
LIBS += -L$$KDSOAPDIR/lib
KDSOAPSERVERLIB = kdsoap-server
win32* {
CONFIG(debug, debug|release) {
LIBS += -lkdsoapd
KDSOAPSERVERLIB = kdsoap-serverd
} else {
LIBS += -lkdsoap
}
} else {
!isEmpty(QMAKE_LFLAGS_RPATH):LIBS += $$QMAKE_LFLAGS_RPATH$$KDSOAPDIR/lib
LIBS += -lkdsoap
}
QT += network
INCLUDEPATH += $$KDSOAPDIR/include $$KDSOAPDIR/include/KDSoapClient $$KDSOAPDIR/include/KDSoapServer
DEPENDPATH += $$KDSOAPDIR/include $$KDSOAPDIR/include/KDSoapClient $$KDSOAPDIR/include/KDSoapServer
CONFIG += have_kdsoap
DEFINES += HAVE_KDSOAP
include($$KDSOAPDIR/kdwsdl2cpp.pri)
} else:equals( builddir, $$top_builddir ) {
message( "WARNING: kdsoap not found. Please set KDSOAPDIR either as an environment variable or on the qmake command line if you want kdsoap support")
}