[Pkg-owncloud-commits] [qtkeychain] 47/63: Reintroduce minimal qmake support
Sandro Knauß
hefee at debian.org
Sat Jun 10 14:39:31 UTC 2017
This is an automated email from the git hooks/post-receive script.
hefee pushed a commit to branch master
in repository qtkeychain.
commit 9b9cccc8439e0ccc400035f0d664c54ab9f652bb
Author: Filipe Azevedo <filipe.azevedo at kdab.com>
Date: Wed Nov 16 20:33:27 2016 +0100
Reintroduce minimal qmake support
This is a small pri file that tests project can include to get
keychain support quickly.
---
keychain.h | 4 ++++
qt5keychain.pri | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 54 insertions(+)
diff --git a/keychain.h b/keychain.h
index aafaa57..1d7a5fd 100644
--- a/keychain.h
+++ b/keychain.h
@@ -9,7 +9,11 @@
#ifndef KEYCHAIN_H
#define KEYCHAIN_H
+#if !defined(QTKEYCHAIN_NO_EXPORT)
#include "qkeychain_export.h"
+#else
+#define QKEYCHAIN_EXPORT
+#endif
#include <QtCore/QObject>
#include <QtCore/QString>
diff --git a/qt5keychain.pri b/qt5keychain.pri
new file mode 100644
index 0000000..2ae9f0e
--- /dev/null
+++ b/qt5keychain.pri
@@ -0,0 +1,50 @@
+# 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
+#CONFIG += plaintextstore
+
+INCLUDEPATH += \
+ $$PWD/.. \
+ $$QT5KEYCHAIN_PWD
+
+HEADERS += \
+ $$QT5KEYCHAIN_PWD/keychain_p.h \
+ $$QT5KEYCHAIN_PWD/keychain.h
+
+SOURCES *= \
+ $$QT5KEYCHAIN_PWD/keychain.cpp
+
+plaintextstore {
+ HEADERS += $$QT5KEYCHAIN_PWD/plaintextstore_p.h
+ SOURCES += $$QT5KEYCHAIN_PWD/plaintextstore.cpp
+} else {
+ unix:!macx {
+ QT += dbus
+
+ HEADERS += $$QT5KEYCHAIN_PWD/gnomekeyring_p.h
+
+ SOURCES += \
+ $$QT5KEYCHAIN_PWD/gnomekeyring.cpp \
+ $$QT5KEYCHAIN_PWD/keychain_unix.cpp
+ }
+
+ win {
+ HEADERS += $$QT5KEYCHAIN_PWD/libsecret_p.h
+
+ SOURCES += \
+ $$QT5KEYCHAIN_PWD/keychain_win.cpp \
+ $$QT5KEYCHAIN_PWD/libsecret.cpp
+
+ #DBUS_INTERFACES += $$PWD/Keychain/org.kde.KWallet.xml
+ }
+
+ mac {
+ LIBS += "-framework Security" "-framework Foundation"
+ SOURCES += $$QT5KEYCHAIN_PWD/keychain_mac.cpp
+ }
+}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/qtkeychain.git
More information about the Pkg-owncloud-commits
mailing list