pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

telegram-desktop: added some patches



Module Name:	pkgsrc-wip
Committed By:	AcidBear <jake.slazenger%yandex.com@localhost>
Pushed By:	jakeSlaz
Date:		Mon Mar 1 01:29:16 2021 +0300
Changeset:	efbd829fb8e26591630a5d07c16c9cea58690f1f

Modified Files:
	telegram-desktop/Makefile
	telegram-desktop/distinfo
Added Files:
	telegram-desktop/patches/patch-Telegram-lib_base-base-object_ptr.h
	telegram-desktop/patches/patch-Telegram-lib_base-base-unique_qptr.h
	telegram-desktop/patches/patch-Telegram-lib_lottie-lottie-lottie_animation.cpp
	telegram-desktop/patches/patch-Telegram-lib_ui-emoji_suggestions-emoji_suggestions.h
	telegram-desktop/patches/patch-Telegram-lib_ui-ui-click_handler.h
	telegram-desktop/patches/patch-Telegram-lib_ui-ui-delayed_activation.h
	telegram-desktop/patches/patch-Telegram-lib_ui-ui-effects-animation_value.h
	telegram-desktop/patches/patch-Telegram-lib_ui-ui-inactive_press.h
	telegram-desktop/patches/patch-Telegram-lib_ui-ui-integration.h
	telegram-desktop/patches/patch-Telegram-lib_ui-ui-main_queue_processor.h
	telegram-desktop/patches/patch-Telegram-lib_ui-ui-paint-arcs.h
	telegram-desktop/patches/patch-Telegram-lib_ui-ui-paint-blob.h
	telegram-desktop/patches/patch-Telegram-lib_ui-ui-ph.h
	telegram-desktop/patches/patch-Telegram-lib_ui-ui-platform-ui_platform_window.h
	telegram-desktop/patches/patch-Telegram-lib_ui-ui-style-style_core_custom_font.h
	telegram-desktop/patches/patch-Telegram-lib_ui-ui-text-text_utilities.h
	telegram-desktop/patches/patch-Telegram-lib_ui-ui-ui_log.h
	telegram-desktop/patches/patch-Telegram-lib_ui-ui-ui_utility.h
	telegram-desktop/patches/patch-Telegram-lib_ui-ui-widgets-call_button.h
	telegram-desktop/patches/patch-Telegram-lib_ui-ui-widgets-labels.h
	telegram-desktop/patches/patch-Telegram-lib_ui-ui-widgets-menu-menu_common.h
	telegram-desktop/patches/patch-Telegram-lib_ui-ui-wrap-wrap.h
	telegram-desktop/patches/patch-Telegram_cmake_lib_tgvoip.cmake
	telegram-desktop/patches/patch-Telegram_lib_base_CMakeLists.txt
	telegram-desktop/patches/patch-Telegram_lib_base_base_global_shortcuts.h
	telegram-desktop/patches/patch-Telegram_lib_base_base_global_shortcuts_generic.h
	telegram-desktop/patches/patch-Telegram_lib_base_base_platform_linux_base_xcb_utilities_linux_h
Removed Files:
	telegram-desktop/patches/patch-Telegram-lib_tgvoip.cmake
	telegram-desktop/patches/patch-base_platform_file_utilities.h
	telegram-desktop/patches/patch-build_config.h
	telegram-desktop/patches/patch-lib_base-CMakeLists.txt
	telegram-desktop/patches/patch-lib_export.cmake
	telegram-desktop/patches/patch-lib_mtproto.cmake
	telegram-desktop/patches/patch-mime_type.h
	telegram-desktop/patches/patch-mtproto-dc_options.h

Log Message:
telegram-desktop: added some patches

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=efbd829fb8e26591630a5d07c16c9cea58690f1f

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 telegram-desktop/Makefile                          | 17 +++---
 telegram-desktop/distinfo                          | 43 +++++++++++-----
 .../patch-Telegram-lib_base-base-object_ptr.h      | 14 +++++
 .../patch-Telegram-lib_base-base-unique_qptr.h     | 13 +++++
 ...Telegram-lib_lottie-lottie-lottie_animation.cpp | 16 ++++++
 .../patches/patch-Telegram-lib_tgvoip.cmake        | 60 ----------------------
 ...am-lib_ui-emoji_suggestions-emoji_suggestions.h | 14 +++++
 .../patch-Telegram-lib_ui-ui-click_handler.h       | 13 +++++
 .../patch-Telegram-lib_ui-ui-delayed_activation.h  | 14 +++++
 ...ch-Telegram-lib_ui-ui-effects-animation_value.h | 12 +++++
 .../patch-Telegram-lib_ui-ui-inactive_press.h      | 14 +++++
 .../patches/patch-Telegram-lib_ui-ui-integration.h | 13 +++++
 ...patch-Telegram-lib_ui-ui-main_queue_processor.h | 14 +++++
 .../patches/patch-Telegram-lib_ui-ui-paint-arcs.h  | 13 +++++
 .../patches/patch-Telegram-lib_ui-ui-paint-blob.h  | 13 +++++
 .../patches/patch-Telegram-lib_ui-ui-ph.h          | 14 +++++
 ...elegram-lib_ui-ui-platform-ui_platform_window.h | 13 +++++
 ...legram-lib_ui-ui-style-style_core_custom_font.h | 13 +++++
 .../patch-Telegram-lib_ui-ui-text-text_utilities.h | 13 +++++
 .../patches/patch-Telegram-lib_ui-ui-ui_log.h      | 14 +++++
 .../patches/patch-Telegram-lib_ui-ui-ui_utility.h  | 13 +++++
 .../patch-Telegram-lib_ui-ui-widgets-call_button.h | 14 +++++
 .../patch-Telegram-lib_ui-ui-widgets-labels.h      | 14 +++++
 ...h-Telegram-lib_ui-ui-widgets-menu-menu_common.h | 14 +++++
 .../patches/patch-Telegram-lib_ui-ui-wrap-wrap.h   | 13 +++++
 .../patches/patch-Telegram_cmake_lib_tgvoip.cmake  | 13 +++++
 .../patches/patch-Telegram_lib_base_CMakeLists.txt | 12 +++++
 ...patch-Telegram_lib_base_base_global_shortcuts.h | 12 +++++
 ...legram_lib_base_base_global_shortcuts_generic.h | 12 +++++
 ..._base_platform_linux_base_xcb_utilities_linux_h | 13 +++++
 .../patches/patch-base_platform_file_utilities.h   | 13 -----
 telegram-desktop/patches/patch-build_config.h      | 15 ------
 .../patches/patch-lib_base-CMakeLists.txt          | 22 --------
 telegram-desktop/patches/patch-lib_export.cmake    | 12 -----
 telegram-desktop/patches/patch-lib_mtproto.cmake   | 12 -----
 telegram-desktop/patches/patch-mime_type.h         | 12 -----
 .../patches/patch-mtproto-dc_options.h             | 12 -----
 37 files changed, 401 insertions(+), 177 deletions(-)

diffs:
diff --git a/telegram-desktop/Makefile b/telegram-desktop/Makefile
index 966a850c46..d6b6c2d4cd 100644
--- a/telegram-desktop/Makefile
+++ b/telegram-desktop/Makefile
@@ -2,7 +2,7 @@
 
 GITHUB_PROJECT=	       telegramdesktop
 DIST_SUBDIR=           tdesktop
-TD_VERSION=            1.9.9
+TD_VERSION=            2.5.9
 DISTNAME=              telegram-desktop-${TD_VERSION}
 PKGREVISION=	       1
 CATEGORIES=            chat
@@ -14,14 +14,14 @@ HOMEPAGE=              https://desktop.telegram.org/
 COMMENT=               Telegram Desktop messaging app
 LICENSE=               gnu-gpl-v3
 
-#PKGSRC_COMPILER=       clang
-#ONLY_FOR_COMPILER=     clang
+PKGSRC_COMPILER=       clang
+ONLY_FOR_COMPILER=     clang
 
 USE_LANGUAGES=         c c++ gnu++14
 USE_CMAKE=             yes
 
-ONLY_FOR_COMPILER=     gcc
-GCC_REQD=              8
+#ONLY_FOR_COMPILER=     gcc
+#GCC_REQD=              10
 
 CMAKE_ARGS+=           -Ddisable_autoupdate=1
 CMAKE_ARGS+=           -DCMAKE_INSTALL_PREFIX=${PREFIX}/usr/pkg
@@ -36,6 +36,7 @@ CMAKE_ARGS+=           -DTDESKTOP_DISABLE_DESKTOP_FILE_GENERATION=ON
 CMAKE_ARGS+=           -DTDESKTOP_USE_PACKAGED_TGVOIP=OFF
 CMAKE_ARGS+=           -DDESKTOP_APP_SPECIAL_TARGET=""
 CMAKE_ARGS+=           -DTDESKTOP_LAUNCHER_BASENAME="telegram-desktop"
+CMAKE_ARGS+=           -DDESKTOP_APP_DISABLE_WAYLAND_INTEGRATION=ON
 .include "../../mk/bsd.prefs.mk"
 
 .if ${OPSYS} == "NetBSD" # NetBSD-specific config
@@ -48,16 +49,18 @@ CMAKE_ARGS+=           -DTDESKTOP_WITHOUT_ALSA=OFF
 
 .include "options.mk"
 
+.include "../../archivers/minizip/buildlink3.mk"
 .include "../../audio/libopus/buildlink3.mk"
 .include "../../audio/openal-soft/buildlink3.mk"
 .include "../../archivers/lz4/buildlink3.mk"
 .include "../../archivers/xz/buildlink3.mk"
+.include "../../devel/range-v3/buildlink3.mk"
 .include "../../devel/xxhash/buildlink3.mk"
 .include "../../multimedia/ffmpeg4/buildlink3.mk"
 .include "../../multimedia/libva/buildlink3.mk"
 .include "../../x11/qt5-qtbase/buildlink3.mk"
 .include "../../x11/qt5-qtimageformats/buildlink3.mk"
-.include "../../wip/minizip/buildlink3.mk"
-.include "../../wip/range-v3/buildlink3.mk"
+.include "../../wip/rlottie/buildlink3.mk"
+.include "../../wip/tg_owt-git/buildlink3.mk"
 
 .include "../../mk/bsd.pkg.mk"
diff --git a/telegram-desktop/distinfo b/telegram-desktop/distinfo
index 81e793b038..a59b1beab2 100644
--- a/telegram-desktop/distinfo
+++ b/telegram-desktop/distinfo
@@ -1,19 +1,43 @@
 $NetBSD$
 
-SHA1 (tdesktop/telegram-desktop-1.9.9.tar.gz) = 5f3bc72245f790300ed9816f35aa0db034b0dfa2
-RMD160 (tdesktop/telegram-desktop-1.9.9.tar.gz) = 077087a0b57d6950ab1431c7d8fa1143a7ebc6f9
-SHA512 (tdesktop/telegram-desktop-1.9.9.tar.gz) = ba6400e6f5eec5bda6e8a54b43846e695b2cce731cb6b39f17407cc39e3e9b8078d977253d29962671f30e33dbe012f8e40f340f781fd8ca73487e5f2d42e3de
-Size (tdesktop/telegram-desktop-1.9.9.tar.gz) = 25221934 bytes
-SHA1 (patch-Telegram-lib_tgvoip.cmake) = 06fd37166c0dddf215e2bd16d95e304d16f82db7
+SHA1 (tdesktop/telegram-desktop-2.5.9.tar.gz) = 1d35e6c8f29f3530f9089834a84f33881d118eeb
+RMD160 (tdesktop/telegram-desktop-2.5.9.tar.gz) = 4f1a9b0da4bf5c5f594de8c443e2cd912e0a6d21
+SHA512 (tdesktop/telegram-desktop-2.5.9.tar.gz) = 1824a5cc17644e2f3d971a6bf882f90f209fcb174826f6e59dbe73301e22b4983e77830c41fe27953049af116a5698a29bec1e5e9957e8905f8f6264722e1c9f
+Size (tdesktop/telegram-desktop-2.5.9.tar.gz) = 36695226 bytes
+SHA1 (patch-Telegram-lib_base-base-object_ptr.h) = a0b2889163076bad024add94b0fc77a4027b3ee1
+SHA1 (patch-Telegram-lib_base-base-unique_qptr.h) = d88c2a241ab706ca439074c60c6f4319f5dc0a35
+SHA1 (patch-Telegram-lib_lottie-lottie-lottie_animation.cpp) = 38c0b6cd43553c7e288fdea60e5ea935721bc234
+SHA1 (patch-Telegram-lib_ui-emoji_suggestions-emoji_suggestions.h) = c0974028b1dc77ee4847b363758b3854091adcba
+SHA1 (patch-Telegram-lib_ui-ui-click_handler.h) = 0fe2f850c00b934f1571e5fda3e2d00f90343700
+SHA1 (patch-Telegram-lib_ui-ui-delayed_activation.h) = 6f62860ecdacea4f9401e5f33b63f0236e729dbb
+SHA1 (patch-Telegram-lib_ui-ui-effects-animation_value.h) = a773757199667600681c3efee242ca7f8a6935da
+SHA1 (patch-Telegram-lib_ui-ui-inactive_press.h) = 1daaccc3cd9a71a4ea2a9006b7d89a67e40d13cc
+SHA1 (patch-Telegram-lib_ui-ui-integration.h) = 1cac5ba0f6b0ab126089119b8c2d5f74ad8db8ed
+SHA1 (patch-Telegram-lib_ui-ui-main_queue_processor.h) = 2e166ccc8ee7216c5dee60b18dd2f153c961788d
+SHA1 (patch-Telegram-lib_ui-ui-paint-arcs.h) = 8ef4cbe82e74a8ef106b30b64bc77effad4535b0
+SHA1 (patch-Telegram-lib_ui-ui-paint-blob.h) = dc84db368235fb3d0e88201d0308aa0f0986e5a4
+SHA1 (patch-Telegram-lib_ui-ui-ph.h) = e9e4d9913dadab87aedcb52a5f86bc6dea3af3bd
+SHA1 (patch-Telegram-lib_ui-ui-platform-ui_platform_window.h) = db27fe0ca7b7b90b337eb70f8e4315356c708c78
+SHA1 (patch-Telegram-lib_ui-ui-style-style_core_custom_font.h) = 4e42ebb75e2c657cb94845e537dcc55ba5dfdd4e
+SHA1 (patch-Telegram-lib_ui-ui-text-text_utilities.h) = 914ca4c3eb30b64356dbf3526209e9ddfa5a1848
+SHA1 (patch-Telegram-lib_ui-ui-ui_log.h) = f96e6a9ee50da327f3f588f8fef41492c0f731dc
+SHA1 (patch-Telegram-lib_ui-ui-ui_utility.h) = 52587d27147f426165e6566341f35f7ed97b0763
+SHA1 (patch-Telegram-lib_ui-ui-widgets-call_button.h) = 885811e3bfa551e25aa14cc4ce7c7679e48d9f7f
+SHA1 (patch-Telegram-lib_ui-ui-widgets-labels.h) = 64d20ac23eb632f9b641a78c382f4c475ff813ec
+SHA1 (patch-Telegram-lib_ui-ui-widgets-menu-menu_common.h) = 39ebf0c85fd7c6920f30dd34ba2619dddf26f4a9
+SHA1 (patch-Telegram-lib_ui-ui-wrap-wrap.h) = 2db81380dc2bd2cca563f72e980480f4c67db7b5
+SHA1 (patch-Telegram_cmake_lib_tgvoip.cmake) = 212743e2da586d50e5ab95378893aad1585ec983
+SHA1 (patch-Telegram_lib_base_CMakeLists.txt) = 978beafa6367440761544352f287e5db38a0029b
+SHA1 (patch-Telegram_lib_base_base_global_shortcuts.h) = ac9b5d6e5e109d447264f3dbf8a20c628a0b696b
+SHA1 (patch-Telegram_lib_base_base_global_shortcuts_generic.h) = ddea899ce9702881b8ebac9b6053b0c13e76f105
+SHA1 (patch-Telegram_lib_base_base_platform_linux_base_xcb_utilities_linux_h) = be7eb1d991f4cf2e240c766426f85975f3902961
 SHA1 (patch-base_file_utilities.h) = 3afa01e200954e14697043e57fc09b4413769c63
 SHA1 (patch-base_file_utilities_linux.h) = b159a31a23ed0fe608129254a7b72a29bb0d42e0
 SHA1 (patch-base_info_linux.h) = 44bedaa333cc12d5de57777c1659aa11863fba36
 SHA1 (patch-base_last_input_linux.h) = c2b0e5a307c60fd3cba1891a73d218399cde3c7d
 SHA1 (patch-base_pch.h) = e69cb3807d96c7ad78bd25478fa18ef99aad022b
-SHA1 (patch-base_platform_file_utilities.h) = d53371bb6ee062df2376c35bb663dafbcb7f421f
 SHA1 (patch-base_platform_last_input.h) = 0b4c988bbe3d71156ed9f77d313d39e1284a1367
 SHA1 (patch-base_platform_url_scheme.h) = a5bc6ea1845572f326fa19af51f5f7a87554e618
-SHA1 (patch-build_config.h) = 17bccca2d70671fe0f8345af8a7710c2caa3db19
 SHA1 (patch-call_delayed.h) = 935062178537df05e44a2e651bef2030faa613f3
 SHA1 (patch-concurrent_timer.h) = 8b2356cbf705bfb9e19af2725475dd9bcd6a33d7
 SHA1 (patch-export_api_wrap.h) = 2a492eb102225f05731567106932c7a91f8cd548
@@ -22,11 +46,8 @@ SHA1 (patch-export_output_abstract.h) = 5602c23108699108f96f8d46e82bd3a4bab34048
 SHA1 (patch-export_output_stats.h) = 736dbd60f9374f0bdc3b3f7ae1c187ad1f68bfb8
 SHA1 (patch-export_settings.h) = ffc21f6d2ab3afccacd1dc67a9902f0c54333e80
 SHA1 (patch-last_user_input.h) = 961f5a2a308ec973bc8037658c5658ce145627ef
-SHA1 (patch-lib_base-CMakeLists.txt) = 940672a38a1168e2cb9835f84aecd3ad0ef041f4
 SHA1 (patch-lib_base-crash_report_header.h) = dc48f472c54d91132d2c48ac6e6628bb7ef4cda1
 SHA1 (patch-lib_base-openssl_help.h) = 145e29381d9b7b6f3095db0cfc0d380fd3603f8e
-SHA1 (patch-lib_export.cmake) = 70d41d6a858fe029b781174940c50eba6a20d9e9
-SHA1 (patch-lib_mtproto.cmake) = b82484ff782d10366696f5d40912f17d5d2f6583
 SHA1 (patch-lib_storage-CMakeLists.txt) = ef770e3f50f075d251262fc511ef21313f5edab1
 SHA1 (patch-lib_ui-CMakeLists.txt) = 337297cf3bfe7b67b503dbf29b8c9c267ad4fc5d
 SHA1 (patch-libtgvoip-audio-AudioIO.cpp) = 96b482354b3ad6321b3ea95767d0d55ba63dab38
@@ -35,8 +56,6 @@ SHA1 (patch-libtgvoip-audio-AudioOutput.cpp) = ec83d33d1158c0e3e8ada0e0458c84347
 SHA1 (patch-libtgvoip-threading.h) = 929bd84af9515d15eff00866237df5044912f5e3
 SHA1 (patch-libtgvoip-webrtc_dsp-platform_thread_types.cc) = 0c2d20a9ba95acae349519507dc9515fdb7a6cec
 SHA1 (patch-libtgvoip-webrtc_dsp-rtc_base-stringutils.h) = fb3f30dac740098d467562b75239fef9fbaa810d
-SHA1 (patch-mime_type.h) = ff521f65aa5b858cfdffd68d5f47186692a19802
-SHA1 (patch-mtproto-dc_options.h) = 7cd2ee9458755333ca090c6307c4ba68a1451597
 SHA1 (patch-mtproto-mtproto_abstract_socket.h) = e5eb4114a4e4095ee2681e4bd143f753139762b2
 SHA1 (patch-mtproto-mtproto_bound_key_creator.h) = e93f5415a93fba0a0ab38a0e4132d98795b967ce
 SHA1 (patch-mtproto-mtproto_proxy_data.h) = 6819e4faf65eac4d0056b05eef96d76b84516c9f
diff --git a/telegram-desktop/patches/patch-Telegram-lib_base-base-object_ptr.h b/telegram-desktop/patches/patch-Telegram-lib_base-base-object_ptr.h
new file mode 100644
index 0000000000..96b09024c1
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram-lib_base-base-object_ptr.h
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- Telegram/lib_base/base/object_ptr.h.orig	2021-02-28 15:15:14.754032642 +0000
++++ Telegram/lib_base/base/object_ptr.h
+@@ -6,6 +6,9 @@
+ //
+ #pragma once
+ 
++#include "base/base_pch.h"
++#include "ui/ui_pch.h"
++
+ #include <QtCore/QPointer>
+ 
+ // Smart pointer for QObject*, has move semantics, destroys object if it doesn't have a parent.
diff --git a/telegram-desktop/patches/patch-Telegram-lib_base-base-unique_qptr.h b/telegram-desktop/patches/patch-Telegram-lib_base-base-unique_qptr.h
new file mode 100644
index 0000000000..fffd8d2ba2
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram-lib_base-base-unique_qptr.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- Telegram/lib_base/base/unique_qptr.h.orig	2021-02-28 12:09:26.827342516 +0000
++++ Telegram/lib_base/base/unique_qptr.h
+@@ -8,6 +8,8 @@
+ 
+ #include <QtCore/QPointer>
+ 
++#include "base/base_pch.h"
++
+ namespace base {
+ 
+ template <typename T>
diff --git a/telegram-desktop/patches/patch-Telegram-lib_lottie-lottie-lottie_animation.cpp b/telegram-desktop/patches/patch-Telegram-lib_lottie-lottie-lottie_animation.cpp
new file mode 100644
index 0000000000..2fcb123266
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram-lib_lottie-lottie-lottie_animation.cpp
@@ -0,0 +1,16 @@
+$NetBSD$
+
+--- Telegram/lib_lottie/lottie/lottie_animation.cpp.orig	2021-02-28 21:30:27.481815450 +0000
++++ Telegram/lib_lottie/lottie/lottie_animation.cpp
+@@ -143,10 +143,7 @@ std::unique_ptr<rlottie::Animation> Crea
+ 		string,
+ 		std::string(),
+ 		std::string(),
+-		false,
+-		(replacements
+-			? replacements->replacements
+-			: std::vector<std::pair<std::uint32_t, std::uint32_t>>()));
++		false);
+ #else
+ 	auto result = rlottie::Animation::loadFromData(
+ 		string,
diff --git a/telegram-desktop/patches/patch-Telegram-lib_tgvoip.cmake b/telegram-desktop/patches/patch-Telegram-lib_tgvoip.cmake
deleted file mode 100644
index 35ff3f9604..0000000000
--- a/telegram-desktop/patches/patch-Telegram-lib_tgvoip.cmake
+++ /dev/null
@@ -1,60 +0,0 @@
-$NetBSD$
-
---- Telegram/cmake/lib_tgvoip.cmake.orig	2020-01-28 17:45:49.000000000 +0000
-+++ Telegram/cmake/lib_tgvoip.cmake
-@@ -18,6 +18,35 @@ else()
-     init_target(lib_tgvoip)
-     add_library(tdesktop::lib_tgvoip ALIAS lib_tgvoip)
- 
-+	if (TDESKTOP_WITHOUT_PULSE)
-+		target_compile_definitions(lib_tgvoip PUBLIC WITHOUT_PULSE)
-+	else()
-+		nice_target_sources(lib_tgvoip ${tgvoip_loc}
-+		PRIVATE
-+			# UNIX-like OSes
-+			os/linux/AudioOutputPulse.cpp
-+        	os/linux/AudioOutputPulse.h
-+        	os/linux/AudioInputPulse.cpp
-+        	os/linux/AudioInputPulse.h
-+        	os/linux/AudioPulse.cpp
-+        	os/linux/AudioPulse.h)
-+	endif()
-+
-+
-+	if (TDESKTOP_WITHOUT_ALSA)
-+		target_compile_definitions(lib_tgvoip PUBLIC WITHOUT_ALSA)
-+	else()
-+		nice_target_sources(lib_tgvoip ${tgvoip_loc}
-+		PRIVATE
-+        	# Linux
-+        	os/linux/AudioInputALSA.cpp
-+        	os/linux/AudioInputALSA.h
-+        	os/linux/AudioOutputALSA.cpp
-+        	os/linux/AudioOutputALSA.h
-+		)
-+
-+	endif()
-+
-     if (NOT APPLE)
-         # On macOS if you build libtgvoip with C++17 it uses std::optional
-         # instead of absl::optional and when it uses optional::value, the
-@@ -107,19 +136,6 @@ else()
-         os/darwin/AudioUnitIO.h
-         os/darwin/DarwinSpecific.mm
-         os/darwin/DarwinSpecific.h
--
--        # Linux
--        os/linux/AudioInputALSA.cpp
--        os/linux/AudioInputALSA.h
--        os/linux/AudioOutputALSA.cpp
--        os/linux/AudioOutputALSA.h
--        os/linux/AudioOutputPulse.cpp
--        os/linux/AudioOutputPulse.h
--        os/linux/AudioInputPulse.cpp
--        os/linux/AudioInputPulse.h
--        os/linux/AudioPulse.cpp
--        os/linux/AudioPulse.h
--
-         # POSIX
-         os/posix/NetworkSocketPosix.cpp
-         os/posix/NetworkSocketPosix.h
diff --git a/telegram-desktop/patches/patch-Telegram-lib_ui-emoji_suggestions-emoji_suggestions.h b/telegram-desktop/patches/patch-Telegram-lib_ui-emoji_suggestions-emoji_suggestions.h
new file mode 100644
index 0000000000..ce05066dc2
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram-lib_ui-emoji_suggestions-emoji_suggestions.h
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- Telegram/lib_ui/emoji_suggestions/emoji_suggestions.h.orig	2021-02-28 12:31:37.781715435 +0000
++++ Telegram/lib_ui/emoji_suggestions/emoji_suggestions.h
+@@ -6,6 +6,9 @@
+ //
+ #pragma once
+ 
++#include "base/base_pch.h"
++#include "ui/ui_pch.h"
++
+ #include <vector>
+ 
+ namespace Ui {
diff --git a/telegram-desktop/patches/patch-Telegram-lib_ui-ui-click_handler.h b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-click_handler.h
new file mode 100644
index 0000000000..4689d14205
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-click_handler.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- Telegram/lib_ui/ui/click_handler.h.orig	2021-02-28 17:15:57.308129168 +0000
++++ Telegram/lib_ui/ui/click_handler.h
+@@ -7,6 +7,8 @@
+ #pragma once
+ 
+ #include "base/basic_types.h"
++#include "base/base_pch.h"
++#include "ui/ui_pch.h"
+ 
+ #include <QtCore/QVariant>
+ 
diff --git a/telegram-desktop/patches/patch-Telegram-lib_ui-ui-delayed_activation.h b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-delayed_activation.h
new file mode 100644
index 0000000000..39d0758a30
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-delayed_activation.h
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- Telegram/lib_ui/ui/delayed_activation.h.orig	2021-02-28 17:44:56.030377067 +0000
++++ Telegram/lib_ui/ui/delayed_activation.h
+@@ -6,6 +6,9 @@
+ //
+ #pragma once
+ 
++#include "base/base_pch.h"
++#include "ui/ui_pch.h"
++
+ namespace Ui {
+ 
+ void ActivateWindowDelayed(not_null<QWidget*> widget);
diff --git a/telegram-desktop/patches/patch-Telegram-lib_ui-ui-effects-animation_value.h b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-effects-animation_value.h
new file mode 100644
index 0000000000..a5da906479
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-effects-animation_value.h
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- Telegram/lib_ui/ui/effects/animation_value.h.orig	2021-02-28 11:25:30.781059200 +0000
++++ Telegram/lib_ui/ui/effects/animation_value.h
+@@ -6,6 +6,7 @@
+ //
+ #pragma once
+ 
++#include "base/base_pch.h"
+ #include "base/basic_types.h"
+ 
+ #include "ui/style/style_core.h"
diff --git a/telegram-desktop/patches/patch-Telegram-lib_ui-ui-inactive_press.h b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-inactive_press.h
new file mode 100644
index 0000000000..79e7bf7626
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-inactive_press.h
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- Telegram/lib_ui/ui/inactive_press.h.orig	2021-02-28 18:13:12.771439953 +0000
++++ Telegram/lib_ui/ui/inactive_press.h
+@@ -6,6 +6,9 @@
+ //
+ #pragma once
+ 
++#include "base/base_pch.h"
++#include "ui/ui_pch.h"
++
+ namespace Ui {
+ 
+ void MarkInactivePress(not_null<QWidget*> widget, bool was);
diff --git a/telegram-desktop/patches/patch-Telegram-lib_ui-ui-integration.h b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-integration.h
new file mode 100644
index 0000000000..0b1b55fe65
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-integration.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- Telegram/lib_ui/ui/integration.h.orig	2021-02-28 18:36:26.088211749 +0000
++++ Telegram/lib_ui/ui/integration.h
+@@ -6,6 +6,8 @@
+ //
+ #pragma once
+ 
++#include "base/base_pch.h"
++#include "ui/ui_pch.h"
+ #include "base/basic_types.h"
+ 
+ #include <any>
diff --git a/telegram-desktop/patches/patch-Telegram-lib_ui-ui-main_queue_processor.h b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-main_queue_processor.h
new file mode 100644
index 0000000000..90f7e042be
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-main_queue_processor.h
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- Telegram/lib_ui/ui/main_queue_processor.h.orig	2021-02-28 19:12:54.602658465 +0000
++++ Telegram/lib_ui/ui/main_queue_processor.h
+@@ -6,6 +6,9 @@
+ //
+ #pragma once
+ 
++#include "base/base_pch.h"
++#include "ui/ui_pch.h"
++
+ namespace Ui {
+ 
+ class MainQueueProcessor : public QObject {
diff --git a/telegram-desktop/patches/patch-Telegram-lib_ui-ui-paint-arcs.h b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-paint-arcs.h
new file mode 100644
index 0000000000..76df255c75
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-paint-arcs.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- Telegram/lib_ui/ui/paint/arcs.h.orig	2021-02-28 12:46:09.360997157 +0000
++++ Telegram/lib_ui/ui/paint/arcs.h
+@@ -6,6 +6,8 @@
+ //
+ #pragma once
+ 
++#include "base/base_pch.h"
++#include "ui/ui_pch.h"
+ #include "styles/style_widgets.h"
+ 
+ class Painter;
diff --git a/telegram-desktop/patches/patch-Telegram-lib_ui-ui-paint-blob.h b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-paint-blob.h
new file mode 100644
index 0000000000..e61de5ff78
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-paint-blob.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- Telegram/lib_ui/ui/paint/blob.h.orig	2021-02-28 13:09:14.690303948 +0000
++++ Telegram/lib_ui/ui/paint/blob.h
+@@ -5,6 +5,8 @@
+ // https://github.com/desktop-app/legal/blob/master/LEGAL
+ //
+ #pragma once
++#include "base/base_pch.h"
++#include "ui/ui_pch.h"
+ 
+ class Painter;
+ 
diff --git a/telegram-desktop/patches/patch-Telegram-lib_ui-ui-ph.h b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-ph.h
new file mode 100644
index 0000000000..051cd34f05
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-ph.h
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- Telegram/lib_ui/ui/ph.h.orig	2021-02-28 19:41:30.438825267 +0000
++++ Telegram/lib_ui/ui/ph.h
+@@ -6,6 +6,9 @@
+ //
+ #pragma once
+ 
++#include "base/base_pch.h"
++#include "ui/ui_pch.h"
++
+ namespace ph {
+ 
+ struct now_t {
diff --git a/telegram-desktop/patches/patch-Telegram-lib_ui-ui-platform-ui_platform_window.h b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-platform-ui_platform_window.h
new file mode 100644
index 0000000000..3df8c8c492
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-platform-ui_platform_window.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- Telegram/lib_ui/ui/platform/ui_platform_window.h.orig	2021-02-28 13:51:52.435256075 +0000
++++ Telegram/lib_ui/ui/platform/ui_platform_window.h
+@@ -7,6 +7,8 @@
+ #pragma once
+ 
+ #include "base/flags.h"
++#include "base/base_pch.h"
++#include "ui/ui_pch.h"
+ 
+ namespace style {
+ struct WindowTitle;
diff --git a/telegram-desktop/patches/patch-Telegram-lib_ui-ui-style-style_core_custom_font.h b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-style-style_core_custom_font.h
new file mode 100644
index 0000000000..61624882d6
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-style-style_core_custom_font.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- Telegram/lib_ui/ui/style/style_core_custom_font.h.orig	2021-02-28 14:06:52.296838443 +0000
++++ Telegram/lib_ui/ui/style/style_core_custom_font.h
+@@ -5,6 +5,8 @@
+ // https://github.com/desktop-app/legal/blob/master/LEGAL
+ //
+ #pragma once
++#include "base/base_pch.h"
++#include "ui/ui_pch.h"
+ 
+ namespace style {
+ 
diff --git a/telegram-desktop/patches/patch-Telegram-lib_ui-ui-text-text_utilities.h b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-text-text_utilities.h
new file mode 100644
index 0000000000..7b781478e1
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-text-text_utilities.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- Telegram/lib_ui/ui/text/text_utilities.h.orig	2021-02-28 14:24:08.412355928 +0000
++++ Telegram/lib_ui/ui/text/text_utilities.h
+@@ -6,6 +6,8 @@
+ //
+ #pragma once
+ 
++#include "base/base_pch.h"
++#include "ui/ui_pch.h"
+ #include "ui/text/text_entity.h"
+ 
+ namespace Ui {
diff --git a/telegram-desktop/patches/patch-Telegram-lib_ui-ui-ui_log.h b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-ui_log.h
new file mode 100644
index 0000000000..d1384de510
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-ui_log.h
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- Telegram/lib_ui/ui/ui_log.h.orig	2021-02-28 20:50:46.372569239 +0000
++++ Telegram/lib_ui/ui/ui_log.h
+@@ -6,6 +6,9 @@
+ //
+ #pragma once
+ 
++#include "base/base_pch.h"
++#include "ui/ui_pch.h"
++
+ namespace Ui {
+ 
+ void WriteLogEntry(const QString &message);
diff --git a/telegram-desktop/patches/patch-Telegram-lib_ui-ui-ui_utility.h b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-ui_utility.h
new file mode 100644
index 0000000000..6164a1294b
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-ui_utility.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- Telegram/lib_ui/ui/ui_utility.h.orig	2021-02-17 14:04:06.000000000 +0000
++++ Telegram/lib_ui/ui/ui_utility.h
+@@ -6,6 +6,8 @@
+ //
+ #pragma once
+ 
++#include "base/base_pch.h"
++#include "ui/ui_pch.h"
+ #include "base/unique_qptr.h"
+ #include "ui/rect_part.h"
+ #include "ui/integration.h"
diff --git a/telegram-desktop/patches/patch-Telegram-lib_ui-ui-widgets-call_button.h b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-widgets-call_button.h
new file mode 100644
index 0000000000..c3613487e0
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-widgets-call_button.h
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- Telegram/lib_ui/ui/widgets/call_button.h.orig	2021-02-28 14:56:04.836762188 +0000
++++ Telegram/lib_ui/ui/widgets/call_button.h
+@@ -6,6 +6,9 @@
+ //
+ #pragma once
+ 
++#include "base/base_pch.h"
++#include "ui/ui_pch.h"
++
+ #include "base/object_ptr.h"
+ #include "ui/widgets/buttons.h"
+ #include "ui/effects/animations.h"
diff --git a/telegram-desktop/patches/patch-Telegram-lib_ui-ui-widgets-labels.h b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-widgets-labels.h
new file mode 100644
index 0000000000..a7e3e6cb6f
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-widgets-labels.h
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- Telegram/lib_ui/ui/widgets/labels.h.orig	2021-02-28 14:48:53.039921824 +0000
++++ Telegram/lib_ui/ui/widgets/labels.h
+@@ -6,6 +6,9 @@
+ //
+ #pragma once
+ 
++#include "base/base_pch.h"
++#include "ui/ui_pch.h"
++
+ #include "ui/rp_widget.h"
+ #include "ui/wrap/padding_wrap.h"
+ #include "ui/text/text.h"
diff --git a/telegram-desktop/patches/patch-Telegram-lib_ui-ui-widgets-menu-menu_common.h b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-widgets-menu-menu_common.h
new file mode 100644
index 0000000000..506e71f49e
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-widgets-menu-menu_common.h
@@ -0,0 +1,14 @@
+$NetBSD$
+
+--- Telegram/lib_ui/ui/widgets/menu/menu_common.h.orig	2021-02-28 16:48:47.226690078 +0000
++++ Telegram/lib_ui/ui/widgets/menu/menu_common.h
+@@ -6,6 +6,9 @@
+ //
+ #pragma once
+ 
++#include "base/base_pch.h"
++#include "ui/ui_pch.h"
++
+ namespace Ui::Menu {
+ 
+ enum class TriggeredSource {
diff --git a/telegram-desktop/patches/patch-Telegram-lib_ui-ui-wrap-wrap.h b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-wrap-wrap.h
new file mode 100644
index 0000000000..b5723d77b4
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram-lib_ui-ui-wrap-wrap.h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- Telegram/lib_ui/ui/wrap/wrap.h.orig	2021-02-28 14:46:08.183426609 +0000
++++ Telegram/lib_ui/ui/wrap/wrap.h
+@@ -6,6 +6,8 @@
+ //
+ #pragma once
+ 
++#include "base/base_pch.h"
++#include "ui/ui_pch.h"
+ #include "ui/rp_widget.h"
+ #include "ui/ui_utility.h"
+ #include "base/object_ptr.h"
diff --git a/telegram-desktop/patches/patch-Telegram_cmake_lib_tgvoip.cmake b/telegram-desktop/patches/patch-Telegram_cmake_lib_tgvoip.cmake
new file mode 100644
index 0000000000..eb7cbce5d6
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram_cmake_lib_tgvoip.cmake
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- Telegram/cmake/lib_tgvoip.cmake.orig	2021-02-27 21:54:57.279016770 +0000
++++ Telegram/cmake/lib_tgvoip.cmake
+@@ -179,7 +179,7 @@ if (NOT TGVOIP_FOUND)
+         desktop-app::external_opus
+     )
+ 
+-    if (LINUX)
++    if (LINUX AND NOT (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD|NetBSD|DragonFly"))
+         find_package(PkgConfig REQUIRED)
+         find_package(ALSA REQUIRED)
+         pkg_check_modules(PULSE REQUIRED libpulse)
diff --git a/telegram-desktop/patches/patch-Telegram_lib_base_CMakeLists.txt b/telegram-desktop/patches/patch-Telegram_lib_base_CMakeLists.txt
new file mode 100644
index 0000000000..eff00a2191
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram_lib_base_CMakeLists.txt
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- Telegram/lib_base/CMakeLists.txt.orig	2021-02-27 22:18:24.957120449 +0000
++++ Telegram/lib_base/CMakeLists.txt
+@@ -14,7 +14,6 @@ init_target(lib_base_crash_report_writer
+ 
+ get_filename_component(src_loc . REALPATH)
+ 
+-target_precompile_headers(lib_base PRIVATE ${src_loc}/base/base_pch.h)
+ nice_target_sources(lib_base ${src_loc}
+ PRIVATE
+     base/platform/linux/base_file_utilities_linux.cpp
diff --git a/telegram-desktop/patches/patch-Telegram_lib_base_base_global_shortcuts.h b/telegram-desktop/patches/patch-Telegram_lib_base_base_global_shortcuts.h
new file mode 100644
index 0000000000..1ff5324a45
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram_lib_base_base_global_shortcuts.h
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- Telegram/lib_base/base/global_shortcuts.h.orig	2021-02-28 10:38:49.480394976 +0000
++++ Telegram/lib_base/base/global_shortcuts.h
+@@ -5,6 +5,7 @@
+ // https://github.com/desktop-app/legal/blob/master/LEGAL
+ //
+ #pragma once
++#include "base/base_pch.h"
+ 
+ namespace base {
+ 
diff --git a/telegram-desktop/patches/patch-Telegram_lib_base_base_global_shortcuts_generic.h b/telegram-desktop/patches/patch-Telegram_lib_base_base_global_shortcuts_generic.h
new file mode 100644
index 0000000000..a0459b840a
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram_lib_base_base_global_shortcuts_generic.h
@@ -0,0 +1,12 @@
+$NetBSD$
+
+--- Telegram/lib_base/base/global_shortcuts_generic.h.orig	2021-02-28 10:43:12.865732966 +0000
++++ Telegram/lib_base/base/global_shortcuts_generic.h
+@@ -6,6 +6,7 @@
+ //
+ #pragma once
+ 
++#include "base/base_pch.h"
+ #include "base/global_shortcuts.h"
+ 
+ namespace base {
diff --git a/telegram-desktop/patches/patch-Telegram_lib_base_base_platform_linux_base_xcb_utilities_linux_h b/telegram-desktop/patches/patch-Telegram_lib_base_base_platform_linux_base_xcb_utilities_linux_h
new file mode 100644
index 0000000000..049da27f26
--- /dev/null
+++ b/telegram-desktop/patches/patch-Telegram_lib_base_base_platform_linux_base_xcb_utilities_linux_h
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- Telegram/lib_base/base/platform/linux/base_xcb_utilities_linux.h.orig	2021-02-28 11:03:10.939139915 +0000
++++ Telegram/lib_base/base/platform/linux/base_xcb_utilities_linux.h
+@@ -8,6 +8,8 @@
+ 
+ #include <xcb/xcb.h>
+ 
++#include "base/base_pch.h"
++
+ namespace base::Platform::XCB {
+ 
+ class CustomConnection {
diff --git a/telegram-desktop/patches/patch-base_platform_file_utilities.h b/telegram-desktop/patches/patch-base_platform_file_utilities.h
deleted file mode 100644
index 531a48e7a5..0000000000
--- a/telegram-desktop/patches/patch-base_platform_file_utilities.h
+++ /dev/null
@@ -1,13 +0,0 @@
-$NetBSD$
-
---- Telegram/lib_base/base/platform/base_platform_file_utilities.h.orig	2020-01-21 15:35:25.000000000 +0000
-+++ Telegram/lib_base/base/platform/base_platform_file_utilities.h
-@@ -22,7 +22,7 @@ void RemoveQuarantine(const QString &pat
- 
- #ifdef Q_OS_MAC
- #include "base/platform/mac/base_file_utilities_mac.h"
--#elif defined Q_OS_LINUX // Q_OS_MAC
-+#elif defined Q_OS_LINUX || defined Q_OS_NETBSD // Q_OS_MAC
- #include "base/platform/linux/base_file_utilities_linux.h"
- #elif defined Q_OS_WINRT || defined Q_OS_WIN // Q_OS_MAC || Q_OS_LINUX
- #include "base/platform/win/base_file_utilities_win.h"
diff --git a/telegram-desktop/patches/patch-build_config.h b/telegram-desktop/patches/patch-build_config.h
deleted file mode 100644
index 00a4b5a505..0000000000
--- a/telegram-desktop/patches/patch-build_config.h
+++ /dev/null
@@ -1,15 +0,0 @@
-$NetBSD$
-
-Add NetBSD support for Telegram
-
---- Telegram/lib_base/base/build_config.h	2020-01-21 15:35:25.000000000 +0000
-+++ Telegram/lib_base/base/build_config.h
-@@ -12,7 +12,7 @@
- 
- #if defined(__APPLE__)
- #define OS_MAC 1
--#elif defined(__linux__) // __APPLE__
-+#elif defined(__linux__) || defined(__NetBSD__) // __APPLE__
- #define OS_LINUX 1
- #elif defined(_WIN32) // __APPLE__ || __linux__
- #define OS_WIN 1
diff --git a/telegram-desktop/patches/patch-lib_base-CMakeLists.txt b/telegram-desktop/patches/patch-lib_base-CMakeLists.txt
deleted file mode 100644
index fb71f66972..0000000000
--- a/telegram-desktop/patches/patch-lib_base-CMakeLists.txt
+++ /dev/null
@@ -1,22 +0,0 @@
-$NetBSD$
-
-remove precompiled headers from lib_base
-
---- Telegram/lib_base/CMakeLists.txt	2020-01-21 15:35:25.000000000 +0000
-+++ Telegram/lib_base/CMakeLists.txt
-@@ -14,7 +14,6 @@ init_target(lib_base_crash_report_writer
- 
- get_filename_component(src_loc . REALPATH)
- 
--target_precompile_headers(lib_base PRIVATE ${src_loc}/base/base_pch.h)
- nice_target_sources(lib_base ${src_loc}
- PRIVATE
-     base/platform/linux/base_file_utilities_linux.cpp
-@@ -149,7 +148,6 @@ PUBLIC
-     desktop-app::external_expected
- )
- 
--target_precompile_headers(lib_base_crash_report_writer PRIVATE ${src_loc}/base/base_pch.h)
- nice_target_sources(lib_base_crash_report_writer ${src_loc}
- PRIVATE
-     base/crash_report_header.cpp
diff --git a/telegram-desktop/patches/patch-lib_export.cmake b/telegram-desktop/patches/patch-lib_export.cmake
deleted file mode 100644
index 57d793f998..0000000000
--- a/telegram-desktop/patches/patch-lib_export.cmake
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD$
-
---- Telegram/cmake/lib_export.cmake.orig	2020-02-22 02:08:05.861129396 +0000
-+++ Telegram/cmake/lib_export.cmake
-@@ -8,7 +8,6 @@ add_library(lib_export OBJECT)
- init_target(lib_export)
- add_library(tdesktop::lib_export ALIAS lib_export)
- 
--target_precompile_headers(lib_export PRIVATE ${src_loc}/export/export_pch.h)
- nice_target_sources(lib_export ${src_loc}
- PRIVATE
-     export/export_api_wrap.cpp
diff --git a/telegram-desktop/patches/patch-lib_mtproto.cmake b/telegram-desktop/patches/patch-lib_mtproto.cmake
deleted file mode 100644
index 78cbe35a49..0000000000
--- a/telegram-desktop/patches/patch-lib_mtproto.cmake
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD$
-
---- Telegram/cmake/lib_mtproto.cmake.orig	2020-02-18 23:44:51.744224914 +0000
-+++ Telegram/cmake/lib_mtproto.cmake
-@@ -8,7 +8,6 @@ add_library(lib_mtproto OBJECT)
- init_target(lib_mtproto)
- add_library(tdesktop::lib_mtproto ALIAS lib_mtproto)
- 
--target_precompile_headers(lib_mtproto PRIVATE ${src_loc}/mtproto/mtproto_pch.h)
- nice_target_sources(lib_mtproto ${src_loc}
- PRIVATE
-     mtproto/details/mtproto_abstract_socket.cpp
diff --git a/telegram-desktop/patches/patch-mime_type.h b/telegram-desktop/patches/patch-mime_type.h
deleted file mode 100644
index b10bdcb98b..0000000000
--- a/telegram-desktop/patches/patch-mime_type.h
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD$
-
---- Telegram/SourceFiles/core/mime_type.h.orig	2020-01-28 17:45:49.000000000 +0000
-+++ Telegram/SourceFiles/core/mime_type.h
-@@ -6,6 +6,7 @@ For license and copyright information pl
- https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
- */
- #pragma once
-+#include "export/export_pch.h"
- 
- #include <QtCore/QString>
- #include <QtCore/QStringList>
diff --git a/telegram-desktop/patches/patch-mtproto-dc_options.h b/telegram-desktop/patches/patch-mtproto-dc_options.h
deleted file mode 100644
index af651ac9b7..0000000000
--- a/telegram-desktop/patches/patch-mtproto-dc_options.h
+++ /dev/null
@@ -1,12 +0,0 @@
-$NetBSD$
-
---- Telegram/SourceFiles/mtproto/dc_options.h.orig	2020-02-19 00:36:21.249285073 +0000
-+++ Telegram/SourceFiles/mtproto/dc_options.h
-@@ -9,6 +9,7 @@ https://github.com/telegramdesktop/tdesk
- 
- #include "base/observer.h"
- #include "base/bytes.h"
-+#include "mtproto/mtproto_pch.h"
- 
- #include <QtCore/QReadWriteLock>
- #include <string>



Home | Main Index | Thread Index | Old Index