forked from qxmpp-project/qxmpp
-
Notifications
You must be signed in to change notification settings - Fork 6
/
qxmpp.pri
90 lines (77 loc) · 2.17 KB
/
qxmpp.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Common definitions
QT += network xml
QXMPP_VERSION = 0.9.5
QXMPP_INCLUDEPATH = $$PWD/src/base $$PWD/src/client $$PWD/src/server
# Determine library name
CONFIG(debug, debug|release) {
QXMPP_LIBRARY_NAME = qxmpp_d
} else {
QXMPP_LIBRARY_NAME = qxmpp
}
# Determine library type (shared or staticlib)
isEmpty(QXMPP_LIBRARY_TYPE) {
android | ios {
QXMPP_LIBRARY_TYPE = staticlib
} else {
QXMPP_LIBRARY_TYPE = shared
}
}
# Libraries used internally by QXmpp
android {
} else:contains(MEEGO_EDITION,harmattan) {
# meego/harmattan has speex for sure
QXMPP_USE_SPEEX=1
} else:symbian {
QXMPP_INTERNAL_INCLUDES = $$APP_LAYER_SYSTEMINCLUDE
QXMPP_INTERNAL_LIBS = -lesock
} else:win32 {
QXMPP_INTERNAL_LIBS = -ldnsapi -lws2_32
}
!isEmpty(QXMPP_USE_OPUS) {
DEFINES += QXMPP_USE_OPUS
QXMPP_INTERNAL_LIBS += -lopus
}
!isEmpty(QXMPP_USE_SPEEX) {
DEFINES += QXMPP_USE_SPEEX
QXMPP_INTERNAL_LIBS += -lspeex
}
!isEmpty(QXMPP_USE_THEORA) {
DEFINES += QXMPP_USE_THEORA
QXMPP_INTERNAL_LIBS += -ltheoradec -ltheoraenc
}
!isEmpty(QXMPP_USE_VPX) {
DEFINES += QXMPP_USE_VPX
QXMPP_INTERNAL_LIBS += -lvpx
}
# Libraries for apps which use QXmpp
QXMPP_LIBS = -l$${QXMPP_LIBRARY_NAME}
contains(QXMPP_LIBRARY_TYPE,staticlib) {
# Symbian needs a .lib extension to recognise the library as static
symbian: QXMPP_LIBS = -l$${QXMPP_LIBRARY_NAME}.lib
# FIXME: we should be able to use the link_prl option to automatically pull
# in the extra libraries which the qxmpp library needs, but this does not
# seem to work on win32, so we specify the dependencies here:
QXMPP_LIBS += $$QXMPP_INTERNAL_LIBS
DEFINES += QXMPP_STATIC
} else {
# Windows needs the major library version
win32: QXMPP_LIBS = -l$${QXMPP_LIBRARY_NAME}0
DEFINES += QXMPP_SHARED
}
# Installation prefix and library directory
isEmpty(PREFIX) {
contains(MEEGO_EDITION,harmattan) {
PREFIX = /usr
} else:unix {
PREFIX = /usr/local
} else {
PREFIX = $$[QT_INSTALL_PREFIX]
}
}
isEmpty(LIBDIR) {
LIBDIR = lib
}
# Internal API auto-tests
!isEmpty(QXMPP_AUTOTEST_INTERNAL) {
DEFINES += QXMPP_AUTOTEST_INTERNAL
}