Commit Graph

45 Commits

Author SHA1 Message Date
Vitaly Zaitsev f792920622 Allow user to enable or disable interpocedural optimizations.
IPO optimizations will be disabled by default. To enable you need to
forward cmake build flag -DENABLE_IPO:BOOL=ON.

Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2019-04-02 18:35:07 +02:00
Vitaly Zaitsev 9fc007889b Removed AL_LIBTYPE_STATIC build definition.
Kepka is built against packaged version of OpenAL, so we don't need this.

Closes #227.

Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2019-03-16 19:29:59 +05:00
Vitaly Zaitsev 6ebbe5a2a9 Enabled LTO optimizations.
Closes #226.

Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2019-03-16 16:52:33 +05:00
Alexander Akulich 792a88d064 Refactor DC configuration 2019-03-02 23:30:24 +00:00
Stanislav Ershov 6c2d2613ad Use FindPython3 cmake module to launch codegen_scheme 2018-10-28 23:03:07 +03:00
Stanislav Ershov ed2cceec57 Update config.h.in 2018-10-27 11:19:19 +03:00
Stanislav Ershov f85e740494 Rename Telegram.rc -> Kepka.rc.in
Configure Kepka.rc.in -> Kepka.rc
2018-10-27 11:19:19 +03:00
Stanislav Ershov ac62bc1469 Improve cmake 2018-10-27 11:19:19 +03:00
Stanislav Ershov 5d336eb54f Enable conformance mode for MSVC >= 15.5 2018-10-20 20:27:10 +03:00
Vladislav Isenbaev 56b40c4e31 OS X build fixes (#193)
The AppleClang 9.1 doesn't support std::is_invocable (introduced in f488d5f), so we have to use backported version from Facebook's Folly library which provides "batteries" for C++ and Standard Library's backports from C++14/17. Folly library is licensed under Apache 2.0 License which is compatible with GNU GPL v3.
Also set CMAKE_BUNDLE_DIR to CMAKE_INSTALL_DIR to avoid the CMake error "install TARGETS given no BUNDLE DESTINATION for MACOSX_BUNDLE executable" (seems it introduced in CMake 3.12.x).
2018-10-19 12:37:41 +03:00
fox.cpp d405a2a60a Fix tg.protocol installation directory
Closes #171.
2018-08-15 12:28:19 +03:00
fox.cpp 93d2fd3035 Add install target 2018-06-10 22:54:22 +03:00
Evgenii Zheltonozhskii 1015e088e3 Rebranding continued: rename target 2018-06-04 19:56:10 +03:00
Alex 69661217d2
Remove PCH (#148)
This commit brings many changes:

1. Remove cotire;
2. Remove PCH files (stdafx.xxx) and mentions;
3. Rearrange and clean includes:
3.1. Remove core includes path, use full header path core/xxx;
3.2. Move object_ptr to separate file base/object_ptr.h;
3.3. Add missing includes;
5. Add forward decls;
6. Get rid of some Qt private parts;
7. Fix ALL compilation errors after removing cotire on Windows, Linux, MacOS.

Closes #133.
Related to #96.
2018-06-04 16:25:31 +03:00
Vitaly Zaitsev 5a8766e7a2 Completely remove Unity support. Unity is no longer supported by Canonical and will be excluded from Ubuntu 18.04 LTS.
Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2018-03-31 20:07:48 +03:00
Vitaly Zaitsev dbb0030893 Completely drop GTK dialogs. Use native instead.
Also this commit will remove libnotify support.

Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2018-03-24 15:20:03 +00:00
Stanislav Ershov bf0dc8e64e Fix warning against overriding '/std:c++latest' with '/std:c++17'
This warning is fixed via updating to CMake 3.10
that learnt to set /std:c++17 for MSVS2017.
2018-03-12 18:30:19 +03:00
Pavel Perekhozhikh 1cb6dcee54 [Refactoring] set current standart to c++17 and change any logic to std::clamp (if it's possible) 2018-02-28 22:12:25 +02:00
Anatoly Shirokov b1c7c6fc61 Made to compile by MSVC 2015/2017 32 bit compilers (#101)
Patches by @anatoly-spb :
1. Get rid of -DWIN64, -DZLIB_WINAPI in 32-bit build for fixing zlib linkage;
2. Work around MSVC2015 limitation based on lacking the C++14 features (like void as literal type) and document it.
2018-02-13 16:13:14 +03:00
Alex 7320149f22 Move out the hardcoded URLs (changelog, about) 2018-02-13 14:50:54 +03:00
fox.cpp dc231f2e29 Allow to change app. name using CMake cache 2018-01-27 16:13:34 +03:00
Vitaly Zaitsev 6cf354d516 Added additional build definitions for packaged build:
* disable all desktop file and schema generators (already included in package).

Signed-off-by: Vitaly Zaitsev <vitaly@easycoding.org>
2018-01-19 10:54:09 +02:00
Berkus Decker c8409776f6 Fix detection variable usage 2018-01-12 23:23:38 +02:00
Berkus Decker a9ea8da861 Print found frameworks 2018-01-12 23:23:38 +02:00
Berkus Decker aaf3cd7328 Reorder osx frameworks list 2018-01-12 23:23:38 +02:00
crackedmind 6ffc8d3905 Remove Qt plugins path rewriting 2017-12-20 14:38:02 +02:00
crackedmind b25df92d35 Link in threading libraries if necessary 2017-12-20 14:38:02 +02:00
crackedmind e4358bef35 Update cmake for linux builds 2017-12-20 14:38:02 +02:00
Berkus Decker 25b5d2d61f Create styles directory initially 2017-12-20 14:38:02 +02:00
Berkus Decker 6c6c23c5a1 Set flag only if supported by the compiler 2017-12-20 14:38:02 +02:00
Berkus Decker b58adbd2b1 Add ALSA and PulseAudio support on Linux 2017-12-20 14:38:02 +02:00
Berkus Decker c8a36d27be Fix condition name 2017-12-20 14:38:02 +02:00
Berkus Decker a67bd6e770 Adjust OpenAL detection on Linux systems 2017-12-20 14:38:02 +02:00
Berkus Decker badbf7a900 Enable tests 2017-12-20 14:38:02 +02:00
Berkus Decker a1e200c273 Add more defines from gyp 2017-12-20 14:38:02 +02:00
Berkus Decker 7e683880be Reorg cmake structure - remove duplication, reorder sections 2017-12-20 14:38:02 +02:00
Berkus Decker 9d03c65350 Shorten all lines lengths to fit 100 column limit 2017-12-20 14:38:02 +02:00
Berkus Decker 44eb8751e0 Move detection to parent cmake file 2017-12-20 14:38:02 +02:00
Berkus Decker fb783cfd64 Use OpenAL-provided cmake config, update readme 2017-12-20 14:38:02 +02:00
Berkus Decker 29db5da807 Remove autoupdater 2017-12-20 14:38:02 +02:00
Berkus Decker bf468f36ea Qualify minizip include paths 2017-12-20 14:38:02 +02:00
Berkus Decker d2c6b4041a Switch to FindOpus.cmake 2017-12-20 14:38:02 +02:00
Berkus Decker 8e9eea0673 Manually cotire objc++ files 2017-12-20 14:38:02 +02:00
Berkus Decker 8655950638 Add ccache support 2017-12-20 14:38:02 +02:00
Berkus Decker c28a457572 Add cmake files 2017-12-20 14:38:02 +02:00