1
0
Fork 0
Commit graph

69 commits

Author SHA1 Message Date
Ilya Fedin
32257877e0 Move more compiler options to DESKTOP_APP_SPECIAL_TARGET condition 2022-09-30 10:09:46 +04:00
Ilya Fedin
5f980167f7 Move build_* variable computation back to variables.cmake 2022-08-22 17:16:25 +04:00
Ilya Fedin
0702ef4cdd Get rid of DESKTOP_APP_QT6 2022-08-14 10:01:20 +04:00
Ilya Fedin
50a67393ab Use cmake_dependent_option to better declare variables that relate on other variables 2022-08-11 09:00:14 +03:00
Ilya Fedin
d8442d4d96 Automatically disable Wayland integration with Qt 5 2022-06-20 23:58:11 +04:00
Klemens Nanni
ddd1ee547d Introduce DESKTOP_APP_DISABLE_JEMALLOC to enable using system malloc
On at least OpenBSD, malloc(3) is preferred to other implementations
like jemalloc for various reasons.

It is common for portable third-party software (ports) to provide a
switch for en/disabling jemalloc.

tdesktop makes this easy since it does not contain any (je)malloc
specific code (anymore).

Introduce a new default-off option that disables jemalloc when enabled
explicitly;  this also allow developers and package maintainers more
easily to try different malloc implementations, e.g. for debugging.

Memory leaks reported in the slightly old issue
"The app consumes an unexpectedly large amount of RAM"
https://github.com/telegramdesktop/tdesktop/issues/16084 could not
be reproduced on OpenBSD/amd64 with malloc(3) using tdesktop >= 3.3.1.
2022-02-27 19:58:36 +03:00
Ilya Fedin
e97ab1bcb5 Use bundled fonts and rlottie by default since they're patched 2022-01-13 04:33:23 +03:00
Ilya Fedin
19381f859c Revert "Add DESKTOP_APP_USE_PACKAGED_FFMPEG_STATIC option"
This reverts commit 85759739eb.

I don't need this hack anymore since it doesn't work with Big Sur GitHub actions and I know anyone who uses it
2021-12-12 23:05:05 +04:00
Ilya Fedin
651362c922 Check whether CMAKE_OSX_ARCHITECTURES is initialized before using it 2021-12-12 11:54:01 +04:00
Ilya Fedin
da42b96d8e fixup! Force mac architecture and deployment target only in non-packaged builds
Fix inverted condition
2021-12-11 07:25:17 +04:00
Ilya Fedin
95e322b9e6 Force mac architecture and deployment target only in non-packaged builds 2021-12-09 17:44:27 +04:00
Ilya Fedin
051f7ba4e3 Remove DESKTOP_APP_DISABLE_WEBKITGTK 2021-11-06 16:27:58 +04:00
John Preston
410223b538 Add DESKTOP_APP_MAC_ARCH for separate macOS builds. 2021-10-28 16:15:30 +04:00
John Preston
891798c735 Enable universal binaries build on macOS with Qt 6.2. 2021-10-25 12:43:42 +04:00
Ilya Fedin
a8856aa831 Add Qt 6 support
Tested on Linux only
2021-10-21 08:44:20 +04:00
John Preston
f343a1634c Use macOS libs from Libraries/local. 2021-09-07 23:39:38 +03:00
Ilya Fedin
95ee188c7b Get rid of GTK integration 2021-09-05 17:37:54 +03:00
Ilya Fedin
b02fc90612 Get rid of osx and linux32 special targets 2021-08-11 16:01:08 +03:00
Ilya Fedin
f7ccab0e7c Allow LTO with clang
Seem to work fine
2021-08-08 09:26:18 +03:00
John Preston
a87ac4ad0c Update option description.
Co-authored-by: ilya-fedin <fedin-ilja2010@ya.ru>
2021-07-19 19:25:07 +03:00
mid-kid
1b71568048 Disable webkit separately from gtk integration 2021-07-19 19:25:07 +03:00
Ilya Fedin
1c8cfe49c5 Clang build fixes 2021-07-13 20:28:33 +03:00
Ilya Fedin
4a63a30c17 Get rid of unneeded glibc wraps 2021-06-29 17:02:16 +03:00
Ilya Fedin
e002bba002 Some cleanup of unneeded hacks
qt5ct is removed since internal gtk integration is good enough
Removed the ability to override path to qtwayland client headers since that hack is no longer used
QXdgDesktopPortalThemePlugin is no longer linked since custom xdg-desktop-portal dialog implementation is present
2021-06-20 10:34:18 +04:00
John Preston
42d3840cde Add simple allocation tracer on Linux. 2021-05-14 15:09:28 +04:00
John Preston
c606fca6a6 Fix configure on x64 Native Tools Command Prompt. 2021-04-29 12:23:08 +04:00
23rd
bd9c097fea Added option to disable PDB file generation. 2021-03-17 12:33:50 +03:00
Ilya Fedin
ac193a597d Add DESKTOP_APP_DISABLE_X11_INTEGRATION 2021-02-22 23:37:14 +04:00
Ilya Fedin
540828a077 Add DESKTOP_APP_DISABLE_GTK_INTEGRATION 2021-02-19 12:28:28 +04:00
Nicholas Guriev
695fabda68 Clean up DESKTOP_APP_DISABLE_WEBRTC_INTEGRATION 2021-02-01 18:26:56 +03:00
mid-kid
4436815d19 Build wayland suppport optionally 2020-11-17 15:55:21 +03:00
John Preston
d9e8a608c2 Add possibility to build on Windows for x64. 2020-11-06 20:19:54 +03:00
John Preston
4bf45519f6 Disable Linux GLIBC wraps for special builds. 2020-11-06 08:48:01 +03:00
Ilya Fedin
d955882cb4 Update webrtc packaged build for tg_owt 2020-08-30 16:28:23 +04:00
John Preston
3a7b44d038 Enable custom webrtc build on all platforms. 2020-08-23 17:38:43 +04:00
John Preston
9b1ed3965b OS X 10.10-10.11: Use OpenSSL 1.1.1, enable WebRTC. 2020-08-20 17:59:10 +04:00
Ilya Fedin
8c999a0023 Declare DESKTOP_APP_QTWAYLANDCLIENT_PRIVATE_HEADERS
Fix DESKTOP_APP_USE_PACKAGED_FFMPEG_STATIC description

Re-sort options
2020-08-18 08:04:35 +04:00
Ilya Fedin
6797807bf2 Remove DESKTOP_APP_ENABLE_IPO_OPTIMIZATIONS since cmake has CMAKE_INTERPROCEDURAL_OPTIMIZATION 2020-08-18 08:04:35 +04:00
Ilya Fedin
3ec8ccaa4f Add option to set webrtc location 2020-08-18 08:04:35 +04:00
John Preston
b372364a2c Add _DISABLE_WEBRTC_INTEGRATION option. 2020-08-11 17:21:17 +04:00
Ilya Fedin
f05e28c8da Replace DESKTOP_APP_USE_PACKAGED with DESKTOP_APP_SPECIAL_TARGET in some places 2020-08-10 15:32:52 +04:00
Ilya Fedin
2d6b9aeab5 Get rid of USE_PACKAGED options by automatic fallback 2020-08-10 15:32:52 +04:00
Ilya Fedin
85759739eb Add DESKTOP_APP_USE_PACKAGED_FFMPEG_STATIC option
Since static linking of packaged ffmpeg can be the easier option for libraries bundling
2020-05-24 11:01:27 +04:00
Ilya Fedin
4ea254886e Add DESKTOP_APP_USE_PACKAGED support for Windows 2020-05-12 14:44:38 +04:00
Ilya Fedin
27d29124a4 Add option to include platformthemes 2020-05-05 14:28:37 +04:00
Ilya Fedin
e0e4d943e2 Add new option to simplify creation of self-contained packages (snap/flatpak/appimage) 2020-05-05 14:28:37 +04:00
Ilya Fedin
1c459cd439 Add possibility to enable autoupdate on non-special target and to enable DESKTOP_APP_USE_PACKAGED with special target 2020-04-10 15:05:36 +04:00
John Preston
9477283f34 Allow disabling single external libs. 2020-02-26 12:17:50 +04:00
23rd
6dd044ae16 Removed adding Hunspell subdirectory if it is not used. 2020-02-24 18:47:54 +03:00
23rd
bc8d01a1cc Added couple of options for spellchecker. 2020-02-24 18:08:32 +03:00