Commit Graph

13 Commits

Author SHA1 Message Date
Robert
af7dac72f4 FORMAT: Run clang-format 10 on all C/CXX source-files 2020-09-11 18:29:33 +02:00
Robert Adam
34c602c85b BUILD(qmake): Remove
This commit removes all qmake-related build-files from the system. We
have now migrated to cmake and are no longer maintaining qmake anyways
and therefore there is no reason to keep it.

Removing it also clearly states to any potential user/programmer that
this project is no longer intended to be compiled with qmake.

Given that the .pri files no longer exist, the mumble-version.py script
had to be adapted to read the version from the CMakeLists.txt file
instead.

Furthermore a few of the submodules support cmake natively and therefore
we no longer need the src/buid-directory approach in order to build
them. The respective build dirs have been removed and the src-dirs have
been renamed.
2020-09-02 08:29:45 +02:00
Davide Beatrici
abc04159f5 Tests: add CMakeLists.txt files 2020-07-11 19:34:49 +02:00
Terry Geng
e90eb8c4cd
src: Made CryptState an abstract class, in order to support multiple crypto types in the future. Moved all crypto-related files into src/crypto. 2020-06-06 20:37:59 +08:00
Davide Beatrici
4e67a2fafb Auto-update LICENSE.header in source files 2020-01-07 03:09:22 +01:00
Davide Beatrici
b427333257 Auto-update LICENSE.header in source files 2019-01-25 04:56:19 +01:00
Mikkel Krautz
5192831bc6 src/tests: update .pro files to append to SOURCES and HEADERS instead of overwriting them.
Now that test.pri adds source files and headers by default, the .pro files
of our tests need to append to SOURCES and HEADERS to ensure everything
test.pri adds to SOURCES and HEADERS are kept around.
2018-01-04 11:21:44 +01:00
Mikkel Krautz
f6ba3a52bf Auto-update LICENSE.header in source files. 2018-01-01 23:05:37 +01:00
Mikkel Krautz
6892c8b29a src/tests: update tests to initialize and destroy the MumbleSSL module to ensure OpenSSL is properly initialized. 2017-07-17 10:19:21 +02:00
Mikkel Krautz
57b3aa60fd tests: depend on OpenSSL in test.pri instead of each individual test.
The murmur_pch.h file which most tests use -- either directly,
or indrectly -- depends on being able to include OpenSSL headers.

Some of our tests did not include(qmake/openssl.pri), which meant that
those tests would fail to build in CONFIG(no-pch), such as on macOS.

This commit works around that issue by depending on OpenSSL for all tests.
2017-03-28 01:04:46 +02:00
Mikkel Krautz
15609703e4 src/tests: make all test .pro files 'inherit' from common test.pri file.
This refactors a lot of the common code from each test file into
a test.pri file, which is then included by all of our tests.
2017-03-02 02:28:19 +01:00
Mikkel Krautz
fc878e04bf TestCryptographicRandom: add QT_NO_OPENGL to fix 'make check' for win32-msvc builds. 2017-03-02 00:31:28 +01:00
Mikkel Krautz
aa25435a7b CryptographicRandom: new class for acquiring random data for cryptographic purposes.
The class implements an API similar to OpenBSD's arc4random:

 - A way to get a random uint32_t. (arc4random)
 - A way to get a random uint32_t with an upper bound. (arc4random_uniform)
 - A way to fill a buffer with random data. (arc4random_buf)
2017-03-01 23:29:07 +01:00