1
0
Fork 0
Commit graph

448 commits

Author SHA1 Message Date
Ilya Fedin
250a405b07 Add a missing DESKTOP_APP_USE_PACKAGED_LAZY condition 2022-03-19 08:44:07 +04:00
Ilya Fedin
425a0dc566 libjpeg is a required dependency now 2022-03-09 22:25:57 +04:00
John Preston
38eb603dc7 Merge remote-tracking branch 'origin/master' into HEAD 2022-03-09 18:39:52 +04:00
John Preston
3aa9ec0ed1 Move Qt 5 version to 5.15.3 open source. 2022-03-08 22:24:05 +04:00
Klemens Nanni
205f90ab9e Replace deprecated -W with explicit -Wextra
`-W` looks odd in build logs, I thought it was a missing warning option...
Turns out this has long been superseeded by `-Wexta`, so use that.
2022-03-07 09:57:26 +04:00
John Preston
aa71b768bd Update Qt to 6.2.3 on macOS and Linux. 2022-03-05 17:02:35 +04:00
Nicholas Guriev
f05023bb10 Find headers of QR Code Generator of version 1.6.0 as well. 2022-02-28 19:05:16 +03: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
a82b114980 Generate pkg-config file manually for wayland-protocols
Meson is unneeded that way
2022-02-19 15:59:15 +03:00
Ilya Fedin
6f391285c4 Update kwayland build rules for newer version 2022-02-15 19:20:56 +03:00
Ilya Fedin
96d9bcd5ff Don't link linux_jemalloc_helper itself to common_options
TARGET_OBJECTS automatically adds target dependnecy, specyfing linux_jemalloc_helper explicitly breaks library ordering due to cycle dependency
2022-02-15 19:20:04 +03:00
Ilya Fedin
6be4c5d41d Make jemalloc configure command nicer 2022-02-15 19:20:04 +03:00
Gleb Smirnoff
3604a7f023 Use proper spelling for __FreeBSD__ pre-processor define. 2022-02-08 19:10:23 +03:00
Ilya Fedin
54e750cca0 Restore TARGET_FILE usage for external libraries 2022-02-05 23:00:53 +03:00
John Preston
6d81711cf8 Fix build on Linux. 2022-02-03 11:46:16 +03:00
Ilya Fedin
f552ccb6e5 Use QtWidgets private include directories with Qt 5 2022-02-02 09:21:10 +03:00
Ilya Fedin
605ad62e11 Restore TARGET_FILE for allocation tracer 2022-02-01 14:38:31 +03:00
Ilya Fedin
985f43a162 Use linux linking helpers without LINK_ONLY 2022-02-01 14:38:31 +03:00
Ilya Fedin
167a914da5 Add jemalloc initialization helper 2022-02-01 14:38:31 +03:00
Ilya Fedin
0fb6ba2c87 Don't link ffmpeg with X libraries 2022-02-01 14:38:07 +03:00
John Preston
b662d784ff FFmpeg: Build without va / vdpau. 2022-01-30 19:38:42 +03:00
Ilya Fedin
df426419c7 Use LINK_ONLY instead of TARGET_FILE 2022-01-28 23:29:00 +04:00
Ilya Fedin
61f68138a8 Fix the path to wayland-protocols.pc 2022-01-25 15:10:14 +04:00
Ilya Fedin
e617e4ba43 QtDBus is used only by fcitx plugins now 2022-01-23 13:52:45 +04:00
John Preston
bc4e6aee9c libvpx: Fix folder once again. 2022-01-23 12:22:50 +03:00
John Preston
08e887324f libvpx: Fix folder for Windows x64 build. 2022-01-23 10:16:38 +03:00
Ilya Fedin
ab4553e6ee Use Threads in packaged mode as more universal approach 2022-01-22 19:48:21 +03:00
Ilya Fedin
8e0b1aa26c Use -Bstatic compiler option rather than find_library 2022-01-22 19:48:20 +03:00
Ilya Fedin
8e0b71c049 Remove external_dbusmenu_qt 2022-01-22 19:48:19 +03:00
Ilya Fedin
27d524fefb Remove external_statusnotifieritem 2022-01-22 19:48:17 +03:00
John Preston
3159df5e3b ffmpeg: Link libbz2 on macOS. 2022-01-19 18:53:44 +03:00
John Preston
b7a596df98 libvpx: Add external_vpx target. 2022-01-19 16:03:58 +03:00
John Preston
ba0f27e13e Fix build with external_zlib on Windows. 2022-01-14 23:40:40 +03:00
Ilya Fedin
3d40b243f6 Use openal-soft's cmake config rather than pkg-config file 2022-01-14 05:03:21 +03:00
Ilya Fedin
d0fc0c8879 Fix external_variant to actually add found include directories 2022-01-14 05:03:21 +03:00
Ilya Fedin
525bd161cf Use return more for less indentations 2022-01-14 05:03:21 +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
0e6f53ced4 Pass library as a part of -Wl argument in external_jemalloc
Or cmake can place the arguments in random order
2022-01-12 19:11:14 +03:00
Ilya Fedin
b6515c543a Use return to decrease indentation in cmake files 2022-01-12 19:11:14 +03:00
Ilya Fedin
e5e31c6101 Use REQUIRED with find_library where appropriate 2022-01-12 19:11:14 +03:00
Ilya Fedin
289a002b6d Use IMPORTED_LOCATION for zlib 2022-01-12 19:11:14 +03:00
Ilya Fedin
58c7b0f52e Add missed dependency on external_opus target for ffmpeg 2022-01-12 19:11:14 +03:00
Ilya Fedin
7d1ad3dfe3 Add missed dependency on external_openssl target for Qt 2022-01-12 19:11:14 +03:00
Ilya Fedin
8e952639aa Build kwayland deps with kwayland since they should be in sync 2022-01-11 16:26:35 +03:00
Ilya Fedin
b3cb911ae0 Define _GLIBCXX_ASSERTIONS 2022-01-05 12:54:40 +03:00
Ilya Fedin
10108ea237 Move libdl/libpthread handling to common_options
Setting -pthread makes linking libatomic manually unneeded
2022-01-05 12:54:40 +03:00
Ilya Fedin
f2384057de Use --push-state/--pop-state linker options 2022-01-05 12:54:40 +03:00
Ilya Fedin
ed7cf04191 Move kwayland-qt6 patch to kwayland build rule folder 2021-12-31 00:25:02 +03:00
Ilya Fedin
f4833c67b8 Avoid setting dummy patch command for kwayland 2021-12-30 22:37:43 +03:00
Ilya Fedin
0c57e24529 Don't use dispatch if we can't build it 2021-12-29 21:06:24 +03:00