forked from frankosterfeld/qtkeychain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathqt5keychain.pri
58 lines (49 loc) · 1.5 KB
/
qt5keychain.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
# Minimal qmake support.
# This file is provided as is without any warranty.
# It can break at anytime or be removed without notice.
QT5KEYCHAIN_PWD = $$PWD
CONFIG += depend_includepath
DEFINES += QTKEYCHAIN_NO_EXPORT
INCLUDEPATH += \
$$PWD/.. \
$$QT5KEYCHAIN_PWD
HEADERS += \
$$QT5KEYCHAIN_PWD/keychain_p.h \
$$QT5KEYCHAIN_PWD/keychain.h
SOURCES += \
$$QT5KEYCHAIN_PWD/keychain.cpp
unix:!macx:!ios {
QT += dbus
HEADERS += \
$$QT5KEYCHAIN_PWD/gnomekeyring_p.h \
$$QT5KEYCHAIN_PWD/plaintextstore_p.h
SOURCES += \
$$QT5KEYCHAIN_PWD/gnomekeyring.cpp \
$$QT5KEYCHAIN_PWD/keychain_unix.cpp \
$$QT5KEYCHAIN_PWD/plaintextstore.cpp
}
win32 {
# Remove the following USE_CREDENTIAL_STORE line
# to use the CryptProtectData Windows API function
# instead of the Windows Credential Store.
DEFINES += USE_CREDENTIAL_STORE
contains(DEFINES, USE_CREDENTIAL_STORE) {
LIBS += -lAdvapi32
} else {
LIBS += -lCrypt32
HEADERS += $$QT5KEYCHAIN_PWD/plaintextstore_p.h
SOURCES += $$QT5KEYCHAIN_PWD/plaintextstore.cpp
}
HEADERS += $$QT5KEYCHAIN_PWD/libsecret_p.h
SOURCES += \
$$QT5KEYCHAIN_PWD/keychain_win.cpp \
$$QT5KEYCHAIN_PWD/libsecret.cpp
}
macx:!ios {
LIBS += "-framework Security" "-framework Foundation"
SOURCES += $$QT5KEYCHAIN_PWD/keychain_mac.cpp
}
ios {
LIBS += "-framework Security" "-framework Foundation"
OBJECTIVE_SOURCES += $$QT5KEYCHAIN_PWD/keychain_ios.mm
}