mirror of
https://github.com/QuasarApp/qca.git
synced 2025-04-28 20:44:31 +00:00
Update to new plugin approach.
svn path=/trunk/kdesupport/qca/; revision=393981
This commit is contained in:
parent
84964053c9
commit
1bb8a9b13c
@ -17,9 +17,10 @@
|
||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*
|
||||
*/
|
||||
#include "QtCrypto/qcaprovider.h"
|
||||
#include <QtCrypto>
|
||||
#include <QtCore>
|
||||
|
||||
#include <qstringlist.h>
|
||||
#include <iostream>
|
||||
|
||||
#include <botan/rng.h>
|
||||
#include <botan/md2.h>
|
||||
@ -442,4 +443,16 @@ public:
|
||||
}
|
||||
};
|
||||
|
||||
QCA_EXPORT_PLUGIN(botanProvider);
|
||||
class botanPlugin : public QCAPlugin
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
virtual int version() const { return QCA_PLUGIN_VERSION; }
|
||||
virtual QCA::Provider *createProvider() { return new botanProvider; }
|
||||
};
|
||||
|
||||
#include "qca-botan.moc"
|
||||
|
||||
Q_EXPORT_PLUGIN(botanPlugin);
|
||||
|
||||
|
||||
|
@ -1,12 +1,15 @@
|
||||
TEMPLATE = lib
|
||||
CONFIG += qt thread debug plugin
|
||||
#CONFIG += qt thread release plugin
|
||||
QT -= gui
|
||||
TARGET = qca-botan
|
||||
|
||||
DEFINES += QCA_PLUGIN
|
||||
|
||||
INCLUDEPATH += ../../include
|
||||
INCLUDEPATH += ../../include/QtCrypto
|
||||
SOURCES = qca-botan.cpp
|
||||
|
||||
include(conf.pri)
|
||||
include(extra.pri)
|
||||
#temp hack until build system is fixed
|
||||
#include(conf.pri)
|
||||
#include(extra.pri)
|
||||
LIBS += -L/usr/lib -lm -lpthread -lrt -lbotan
|
||||
|
Loading…
x
Reference in New Issue
Block a user