-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkqoauth.prf
43 lines (36 loc) · 1.21 KB
/
kqoauth.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
KQOAUTH_INCDIR = $$[QT_INSTALL_HEADERS]
KQOAUTH_LIBDIR = $$[QT_INSTALL_LIBS]
KQOAUTH_INCDIR ~= s!/qt4*!!
KQOAUTH_LIBDIR ~= s!/qt4*!!
CONFIG *= qt
CONFIG += crypto
# if we are including koauth.prf from the kqoauth tree (and not utilizing it as
# an installed qmake CONFIG feature), then point to the tree. this allows our
# kqoauth tree apps to build before kqoauth itself is installed.
exists($$PWD/kqoauth.pro) {
KQOAUTH_INCDIR = $$PWD/include
KQOAUTH_LIBDIR = $$PWD/lib
}
LINKAGE =
# on mac, if kqoauth was built as a framework, link against it
mac: {
framework_dir = $${KQOAUTH_LIBDIR}
exists($$framework_dir/kqoauth.framework) {
LIBS += -F$$framework_dir
exists($$PWD/kqoauth.pro): INCLUDEPATH += $$KQOAUTH_INCDIR
else: INCLUDEPATH += $$framework_dir/kqoauth.framework/Headers
LINKAGE = -framework kqoauth
}
}
# else, link normally
isEmpty(LINKAGE) {
exists($$PWD/kqoauth.pro): INCLUDEPATH += $$KQOAUTH_INCDIR
else: INCLUDEPATH += $$KQOAUTH_INCDIR/QtKOAuth
LIBS += -L$$KQOAUTH_LIBDIR
LINKAGE = -lkqoauth -lqjson
CONFIG(debug, debug|release) {
windows:LINKAGE = -lkqoauth -lqjson
mac:LINKAGE = -lkqoauth_debug -lqjson
}
}
LIBS += $$LINKAGE