forked from KDAB/KDSoap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kdsoap.pri
62 lines (55 loc) · 2.27 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#
# This file is part of the KD Soap project.
#
# SPDX-FileCopyrightText: 2010-2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
#
# SPDX-License-Identifier: MIT
#
# 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
exists($$KDSOAPDIR/kdwsdl2cpp.pri) {
include($$KDSOAPDIR/kdwsdl2cpp.pri)
} else:exists($$KDSOAPDIR/share/doc/KDSoap/kdwsdl2cpp.pri) {
include($$KDSOAPDIR/share/doc/KDSoap/kdwsdl2cpp.pri)
} else {
message("WARNING: kdwsdl2cpp.pri not found in KDSOAPDIR=$$KDSOAPDIR")
}
} 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")
}