forked from qxmpp-project/qxmpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qxmpp.prf
46 lines (38 loc) · 1.37 KB
/
qxmpp.prf
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
QXMPP_INCDIR = $$[QT_INSTALL_HEADERS]
QXMPP_LIBDIR = $$[QT_INSTALL_LIBS]
## Distributions can adjust this for Qt 4
QXMPP_INCDIR ~= s!/qt5*!!
QXMPP_LIBDIR ~= s!/qt5*!!
CONFIG *= qt
# if we are including qxmpp.prf from the qxmpp tree (and not utilizing it as
# an installed qmake CONFIG feature), then point to the tree. this allows our
# qxmpp tree apps to build before qxmpp itself is installed.
exists($$PWD/qxmpp.pro) {
## Jan // I doubt this is needed for QXMPP
QXMPP_INCDIR = $$PWD/include
QXMPP_LIBDIR = $$PWD/lib
}
LINKAGE =
# on mac, if qxmpp was built as a framework, link against it
mac: {
## Jan // No idea about any of this Mac stuff
framework_dir = $${QXMPP_LIBDIR}
exists($$framework_dir/qxmpp.framework) {
LIBS += -F$$framework_dir
exists($$PWD/qxmpp.pro): INCLUDEPATH += $$QXMPP_INCDIR
else: INCLUDEPATH += $$framework_dir/qxmpp.framework/Headers
LINKAGE = -framework qxmpp
}
}
# else, link normally
isEmpty(LINKAGE) {
exists($$PWD/qxmpp.pro): INCLUDEPATH += $$QXMPP_INCDIR
else: INCLUDEPATH += $$QXMPP_INCDIR/qxmpp ## Jan // This is probably the usual case
LIBS += -L$$QXMPP_LIBDIR
LINKAGE = -lqxmpp ## Jan // Distributions might tune this with -lqxmpp_qt5, etc.
CONFIG(debug, debug|release) {
windows:LINKAGE = -lqxmppd
mac:LINKAGE = -lqxmpp_debug
}
}
LIBS += $$LINKAGE