49 Commits

Author SHA1 Message Date
Tobias Junghans
2c3992f075 Add Qt 6 build support
The Core5Compat module is still required for QTextCodec and some
difficult remaining QRegExp -> QRegularExpression migrations.
2021-05-29 22:28:27 +00:00
Tobias Junghans
3e90e13d5e Use Qt::endl 2021-05-29 22:28:27 +00:00
Albert Astals Cid
f62a8ee8f7 Run clang-format
find . \( -name "*.cpp" -or -name "*.h"  -or -name "*.c"  -or -name "*.cc" \) -exec clang-format -i {} \;

If you reached this file doing a git blame, please see README.clang-format (added 2 commits in the future of this one)
2020-09-07 02:13:47 +02:00
Albert Astals Cid
30a9249dd9 Mark a few byte arrays as const 2020-02-17 17:39:40 +01:00
Albert Astals Cid
ad1b9e1b07 Enable QT_NO_CAST_FROM_ASCII 2020-02-15 10:21:12 +00:00
Albert Astals Cid
8b171279e9 clazy: enable qstring allocation warning 2020-02-13 01:07:24 +01:00
Albert Astals Cid
e2029649b9 clang-tidy: enable modernize-deprecated-headers and modernize-use-nullptr 2020-02-12 17:14:33 +01:00
Albert Astals Cid
8ee19a09e2 Add a few modernize clang-tidy checks 2020-01-30 17:37:15 +01:00
Albert Astals Cid
4c31e0c81f static -> static const 2020-01-30 13:52:21 +01:00
Albert Astals Cid
dce16514fe Enable a clazy CI
Starting with only missing-qobject-macro check enabled
2020-01-29 14:31:55 +01:00
Albert Astals Cid
6a1d268315 Enable QT_NO_CAST_FROM_BYTEARRAY 2020-01-23 17:26:29 +01:00
Albert Astals Cid
70406170f5 Cleanup Qt version checks 2020-01-19 17:57:35 +01:00
Albert Astals Cid
d71f4c279b Drop Qt4 support 2020-01-19 17:19:23 +01:00
Albert Astals Cid
00d311d90f Add override 2020-01-19 16:28:44 +01:00
Alon Bar-Lev
db17d5969b plugins: qca-logger: README: fix typo
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2015-10-23 22:32:07 +03:00
Ivan Romanov
13050bf00d cmake: plugins on Mac OS must use .dylib suffix 2014-11-05 22:42:32 +05:00
Ivan Romanov
d598c689b7 cmake: no install target in developer mode 2014-09-28 21:14:26 +06:00
Ivan Romanov
192243d4bd cmake: fixed QCA_PLUGINS_INSTALL_DIR meaning
Plugins must be in crypto subdir. It is used internally in providers
finding algorythm. So now QCA_PLUGINS_INSTALL_DIR it is path to
crypto directory.
2014-09-24 16:00:39 +06:00
Ivan Romanov
fbdf57f843 cmake: install .PDB files
On Windows when compiling with Visual Studio will be produced special
.pdb files for debuggins purposes. It must be put next to target
runtime (.dll or .exe) file.
2014-02-03 02:05:54 +06:00
Ivan Romanov
6d690c0070 Build static QCA
Added new cmake variable SHARED_LIBRARY. By default is on.
When it is off QCA library, plugins, tools, examples and unittests
will be built as static. Also if is used static Qt plugins will be
built as static. Tested with Qt4.
2014-01-02 03:50:18 +06:00
Ivan Romanov
5d06579605 Use internal cache vars to choose plugins for building
It allow to know will be particular plugin build or no
in any place of cmake rules.
2014-01-01 02:10:15 +06:00
Ivan Romanov
60b96878d7 fixed tab 2013-11-21 11:34:50 +06:00
Ivan Romanov
4e535d25e5 Fixed IID for all plugins
In Qt5 plugin IID is the same as identifier from Q_DECLARE_INTERFACE
2013-11-21 11:31:13 +06:00
Ivan Romanov
094899a00c Optional plugins build
Now possible to build only required plugins and skip all others.
Also can get fail if required plugins can't be built.
By default will be build all possible plugins.

New cmake cache variables:

ENABLE_PLUGINS - list plugins to build (botan;ossl;gnupg for example).
                 Also possible values is none, auto or all
                 (by default: "auto")

WITH_${PLUGIN}_PLUGIN - to build particular plugin. Can be no, yes or
                        auto (WITH_ossl_PLUGIN=auto for example)
2013-11-11 21:08:56 +06:00
Ivan Romanov
9462469bb5 dropped bat, qconf and qmake rules
Now cmake rules fully works.
2013-08-26 00:55:17 +06:00
Ivan Romanov
13d0dc5e6d added cmake variable QCA_LIB_SUFFIX
QCA_LIB_SUFFIX intended to replace workaround
3 major version. For building for Qt5 can be used
-DQCA_LIB_SUFFIX=qt5 for example. Result will be
named libqca2-qt5.so.2.0.3 library for Linux.
Also this suffix will be applied for qca2 pkg config file,
qcatool2 binary and qcatool2 manpage.

I hope that is a good way to resolve the building conflict
against qt4 and qt5.
2013-08-26 00:55:01 +06:00
Ivan Romanov
44c7fbb74f install qca to prefix or qt_prefix
Added option QCA_INSTALL_IN_QT_PREFIX to provide a way to choose
default prefix for installing qca. By default is ON.
Also added a cache vars.
  QCA_PREFIX_INSTALL_DIR
  QCA_PLUGINS_INSTALL_DIR
  QCA_BINARY_INSTALL_DIR
  QCA_LIBRARY_INSTALL_DIR
  QCA_FEATURE_INSTALL_DIR
  QCA_INCLUDE_INSTALL_DIR
  QCA_PRIVATE_INCLUDE_INSTALL_DIR
  QCA_DOC_INSTALL_DIR
  QCA_MAN_INSTALL_DIR
2013-08-24 21:26:40 +06:00
Ivan Romanov
e0cdd5db40 Revert "install qca to prefix or qt_prefix"
This reverts commit f5cb5b04dcb37ab4a62943c19646bcfa3d7d3b23.
2013-07-25 14:23:16 +06:00
Ivan Romanov
f5cb5b04dc install qca to prefix or qt_prefix
Added option QCA_INSTALL_IN_QT_PREFIX to provide a way to choose
default prefix for installing qca. By default is ON.
Also added a cache vars.
  QCA_PREFIX_INSTALL_DIR
  QCA_PLUGINS_INSTALL_DIR
  QCA_BINARY_INSTALL_DIR
  QCA_LIBRARY_INSTALL_DIR
  QCA_FEATURE_INSTALL_DIR
  QCA_INCLUDE_INSTALL_DIR
  QCA_PRIVATE_INCLUDE_INSTALL_DIR
  QCA_DOC_INSTALL_DIR
  QCA_MAN_INSTALL_DIR
2013-07-24 22:08:12 +06:00
David Faure
7d073db453 Finish port to Qt5: plugins. Patch by Ivan Romanov.
svn path=/trunk/kdesupport/qca/; revision=1347518
2013-04-02 12:41:12 +00:00
Funda Wang
4c9afd56cc build modules rather than shared libs for really modules
svn path=/trunk/kdesupport/qca/; revision=1111903
2010-04-07 00:26:26 +00:00
Justin Karneges
b576b82533 buildmodeplugin.qcm used to be a copy of buildmode.qcm, just without the
framework options.  refactor so that buildmode.qcm doesn't have 
framework options, and create a new file buildmode_framework.qcm that 
only has the framework options.  helps with DRY.

svn path=/trunk/kdesupport/qca/; revision=958892
2009-04-24 22:16:54 +00:00
Adriaan de Groot
f96774d870 In response to r838198, need stdlib.h for atoi as well, not just because of getenv.
svn path=/trunk/kdesupport/qca/; revision=838272
2008-07-27 12:50:46 +00:00
Justin Karneges
23296cecda use qgetenv to prevent warnings on vs2005
svn path=/trunk/kdesupport/qca/; revision=838198
2008-07-27 06:53:20 +00:00
Justin Karneges
6aa9051322 create a separate buildmodeplugin module to be used for plugins
svn path=/trunk/kdesupport/qca/; revision=816495
2008-06-04 01:46:14 +00:00
Christian Ehrlicher
4052cd4918 make it work with cmake 2.6.0-rc6 on windows
svn path=/trunk/kdesupport/qca/; revision=793329
2008-04-03 17:11:08 +00:00
Justin Karneges
8b52677483 "undefined interface" moc workaround
http://forum.psi-im.org/thread/4686

svn path=/trunk/kdesupport/qca/; revision=732927
2007-11-05 05:21:51 +00:00
Justin Karneges
e81a1ea875 track qca.qcm changes
svn path=/trunk/kdesupport/qca/; revision=732154
2007-11-02 23:17:17 +00:00
Rolf Eike Beer
6d8e902ce9 Add const to logging functions to shut up newer gcc versions
svn path=/trunk/kdesupport/qca/; revision=728492
2007-10-23 13:11:38 +00:00
Justin Karneges
00353e3b5f configwin.bat for the other plugins
svn path=/trunk/kdesupport/qca/; revision=724562
2007-10-12 17:28:14 +00:00
Justin Karneges
0cce2cae6f more updates for release
svn path=/trunk/kdesupport/qca/; revision=724328
2007-10-12 00:51:03 +00:00
Justin Karneges
c025229198 Provider qcaVersion, version, and deinit
svn path=/trunk/kdesupport/qca/; revision=673032
2007-06-08 20:05:04 +00:00
Justin Karneges
e94a0c1387 update all plugins to follow the new build scheme
svn path=/trunk/kdesupport/qca/; revision=669677
2007-05-30 02:00:52 +00:00
Alon Bar-Lev
e2f34ee1f3 Fixup casing
svn path=/trunk/kdesupport/qca/; revision=668246
2007-05-25 16:33:29 +00:00
Alon Bar-Lev
f6cd680c2e Move initialization to constructor until there is a better solution
svn path=/trunk/kdesupport/qca/; revision=662761
2007-05-09 05:02:52 +00:00
Dirk Mueller
c4bebb1a7b the usual "daily unbreak compilation"
svn path=/trunk/kdesupport/qca/; revision=661112
2007-05-04 16:15:11 +00:00
Alon Bar-Lev
8ee75eeda9 Fix krazy warnnings
svn path=/trunk/kdesupport/qca/; revision=656704
2007-04-22 05:02:51 +00:00
Justin Karneges
bf105d8475 lowercase
svn path=/trunk/kdesupport/qca/; revision=655527
2007-04-18 16:43:57 +00:00
Alon Bar-Lev
eb59897350 Add qca-logger
svn path=/trunk/kdesupport/qca/; revision=655460
2007-04-18 13:54:09 +00:00