Compare commits
15 Commits
| Author | SHA256 | Date | |
|---|---|---|---|
| 170df65af2 | |||
|
|
e637e007b3 | ||
| d3ce7774cb | |||
|
|
7f59f45ca0 | ||
| 47c1cd1877 | |||
|
|
5044a0eacd | ||
| ad1691fe4f | |||
|
|
5990fbf46b | ||
| a2479ad94d | |||
|
|
53323b2bec | ||
|
|
40880e4a21 | ||
| 165642ec1a | |||
|
|
fbc50a0829 | ||
| d5bcdab8df | |||
|
|
decf16f876 |
40
Qt-6.9.patch
40
Qt-6.9.patch
@@ -1,40 +0,0 @@
|
||||
From bab67be7b40ebf42acf4514f0ef63e4d77ce4dff Mon Sep 17 00:00:00 2001
|
||||
From: Antonio Rojas <arojas@archlinux.org>
|
||||
Date: Sat, 1 Mar 2025 01:20:04 +0100
|
||||
Subject: [PATCH] Fix build with Qt 6.9
|
||||
|
||||
---
|
||||
.../base/platform/linux/base_linux_xdp_utilities.cpp | 8 ++++++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/Telegram/lib_base/base/platform/linux/base_linux_xdp_utilities.cpp b/Telegram/lib_base/base/platform/linux/base_linux_xdp_utilities.cpp
|
||||
index 8aca67c..80626af 100644
|
||||
--- a/Telegram/lib_base/base/platform/linux/base_linux_xdp_utilities.cpp
|
||||
+++ b/Telegram/lib_base/base/platform/linux/base_linux_xdp_utilities.cpp
|
||||
@@ -16,7 +16,11 @@
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
|
||||
#include <qpa/qplatformintegration.h>
|
||||
#include <private/qguiapplication_p.h>
|
||||
+#if QT_VERSION >= QT_VERSION_CHECK(6, 9, 0)
|
||||
+#include <private/qdesktopunixservices_p.h>
|
||||
+#else
|
||||
#include <private/qgenericunixservices_p.h>
|
||||
+#endif // Qt >= 6.9.0
|
||||
#endif // Qt >= 6.5.0
|
||||
|
||||
#include <sstream>
|
||||
@@ -39,7 +43,11 @@ std::string ParentWindowID(QWindow *window) {
|
||||
}
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
|
||||
+#if QT_VERSION >= QT_VERSION_CHECK(6, 9, 0)
|
||||
+ if (const auto services = dynamic_cast<QDesktopUnixServices*>(
|
||||
+#else
|
||||
if (const auto services = dynamic_cast<QGenericUnixServices*>(
|
||||
+#endif // Qt >= 6.9.0
|
||||
QGuiApplicationPrivate::platformIntegration()->services())) {
|
||||
return services->portalWindowIdentifier(window).toStdString();
|
||||
}
|
||||
--
|
||||
2.49.0
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ce79b8fb0f6be6af3762a16c5488cbcd38c31d0655313a7030972a7eb2bda9e5
|
||||
size 459344
|
||||
3
ada-3.4.1.tar.gz
Normal file
3
ada-3.4.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:befb20175cd05fd10f345bbfd4202af31ad6bb25732beaacac69793eeefa8d4f
|
||||
size 471992
|
||||
@@ -1,24 +0,0 @@
|
||||
diff --git a/tdesktop/cmake/external/webrtc/CMakeLists.txt b/tdesktop-copy/cmake/external/webrtc/CMakeLists.txt
|
||||
index a372fb7..6a81876 100644
|
||||
--- a/cmake/external/webrtc/CMakeLists.txt
|
||||
+++ b/cmake/external/webrtc/CMakeLists.txt
|
||||
@@ -9,7 +9,18 @@ add_library(desktop-app::external_webrtc ALIAS external_webrtc)
|
||||
|
||||
if (DESKTOP_APP_USE_PACKAGED)
|
||||
find_package(tg_owt REQUIRED)
|
||||
- target_link_libraries(external_webrtc INTERFACE tg_owt::tg_owt)
|
||||
+ target_link_libraries(external_webrtc INTERFACE
|
||||
+ tg_owt::tg_owt
|
||||
+ X11
|
||||
+ Xcomposite
|
||||
+ Xdamage
|
||||
+ Xext
|
||||
+ Xfixes
|
||||
+ Xrandr
|
||||
+ Xrender
|
||||
+ Xtst
|
||||
+ vpx
|
||||
+ )
|
||||
return()
|
||||
endif()
|
||||
|
||||
3
td-git20260108.tar.xz
Normal file
3
td-git20260108.tar.xz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5703bf455eb68148045a3f3fe7226b2de5c95917f5517ed9f0e832f7c64a98bb
|
||||
size 3820444
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:caa37bbf7d9fcdfecdb5f596f02a44becbe468ea5c6af7f3c670b61952744a80
|
||||
size 72699182
|
||||
3
tdesktop-6.4.2-full.tar.gz
Normal file
3
tdesktop-6.4.2-full.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:69cf9c0ca160126a0460312242730e2faa9eb5099ca17abc94e80feb8ad1ac0b
|
||||
size 76497778
|
||||
@@ -1,3 +1,71 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jan 11 20:19:44 UTC 2026 - Илья Индиго <ilya@ilya.top>
|
||||
|
||||
- Updated ada to 3.4.1.
|
||||
- Updated td to git20260108.
|
||||
- Updated telegram-desktop to 6.4.2
|
||||
* https://github.com/telegramdesktop/tdesktop/releases/tag/v6.4.2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 5 14:31:11 UTC 2026 - Илья Индиго <ilya@ilya.top>
|
||||
|
||||
- Updated td to git20260103.
|
||||
- Updated telegram-desktop to 6.4.1
|
||||
* https://github.com/telegramdesktop/tdesktop/releases/tag/v6.4.1
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Dec 16 07:47:29 UTC 2025 - Илья Индиго <ilya@ilya.top>
|
||||
|
||||
- Updated tg_owt to git20251128
|
||||
* Removed tg_owt-pipewire.patch
|
||||
- Updated td to git20251210
|
||||
- Updated telegram-desktop to 6.3.9
|
||||
* https://github.com/telegramdesktop/tdesktop/releases/tag/v6.3.9
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 6 07:38:00 UTC 2025 - Илья Индиго <ilya@ilya.top>
|
||||
|
||||
- Updated td to git20251201.
|
||||
- Updated telegram-desktop to 6.3.6
|
||||
* https://github.com/telegramdesktop/tdesktop/releases/tag/v6.3.6
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 28 19:49:06 UTC 2025 - Илья Индиго <ilya@ilya.top>
|
||||
|
||||
- Updated owt to git20251115.
|
||||
* Removed tg_owt-replace-absl-template-nullability-annotations.patch
|
||||
- Updated td to git20251023.
|
||||
- Updated telegram-desktop to 6.3.4
|
||||
* https://github.com/telegramdesktop/tdesktop/releases/tag/v6.3.4
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 28 17:55:11 UTC 2025 - Björn Bidar <bjorn.bidar@thaodan.de>
|
||||
|
||||
- Added tg_owt-pipewire.patch to pipewire 1.5.81 support.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 11 01:36:49 UTC 2025 - Xu Zhao <i@xuzhao.net>
|
||||
|
||||
- Remove telegram-desktop-webrtc-link.patch.
|
||||
- Add tg_owt-replace-absl-template-nullability-annotations.patch.
|
||||
- Remove redundant build time dependencies.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 7 04:26:57 UTC 2025 - Илья Индиго <ilya@ilya.top>
|
||||
|
||||
- Removed Qt-6.9.patch.
|
||||
- Renamed and changed dynamic-link-x.patch to telegram-desktop-webrtc-link.patch.
|
||||
- Updated ada to 3.3.0.
|
||||
- Updated owt to git20250501.
|
||||
- Added td to git20250919.
|
||||
- Updated telegram-desktop to 6.1.4
|
||||
* Fixed missing Gio::DesktopAppInfo when building against GLib 2.86.
|
||||
* Fixed crash on chat with sticers.
|
||||
* https://github.com/telegramdesktop/tdesktop/releases/tag/v6.1.4
|
||||
* Allow add to folder from recent / top chats.
|
||||
* Fixed clear history of group chats.
|
||||
* Fixed several crashes.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 14 14:07:11 UTC 2025 - Илья Индиго <ilya@ilya.top>
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package telegram-desktop
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
# Copyright (c) 2026 SUSE LLC and contributors
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -20,12 +20,12 @@
|
||||
# https://github.com/telegramdesktop/tdesktop/blob/8fab9167beb2407c1153930ed03a4badd0c2b59f/snap/snapcraft.yaml#L87-L88
|
||||
%define api_id 611335
|
||||
%define api_hash d524b414d21f4d37f08684c1df41ac9c
|
||||
%define ada_ver 3.2.4
|
||||
%define exp_ver 1.1.0
|
||||
%define ada_ver 3.4.1
|
||||
%define h264_ver 2.6.0
|
||||
%define owt_ver git20250501
|
||||
%define owt_ver git20251128
|
||||
%define td_ver git20260108
|
||||
Name: telegram-desktop
|
||||
Version: 5.13.1
|
||||
Version: 6.4.2
|
||||
Release: 0
|
||||
Summary: Messaging application with a focus on speed and security
|
||||
License: GPL-3.0-only
|
||||
@@ -36,101 +36,82 @@ Source1: https://github.com/ada-url/ada/archive/refs/tags/v%{ada_ver}.tar
|
||||
Source2: openh264-headers-%{h264_ver}.tar.xz
|
||||
# n=tg_owt && cd /tmp && git clone --depth=1 https://github.com/desktop-app/$n && pushd $n && v=git$(TZ=UTC date -d @`git log -1 --format=%at` +%Y%m%d) && d=$n-$v && f=$d.tar.xz && git submodule update --init --depth=1 && rm -rf .??* && popd && mv $n $d && tar c --remove-files "$d" | xz -9e > "$f"
|
||||
Source3: tg_owt-%{owt_ver}.tar.xz
|
||||
Patch0: dynamic-link-x.patch
|
||||
Patch1: tg_owt-h264-dlopen.patch
|
||||
Patch2: Qt-6.9.patch
|
||||
BuildRequires: appstream-glib
|
||||
# n=td && cd /tmp && git clone --depth=1 https://github.com/tdlib/$n && pushd $n && v=git$(TZ=UTC date -d @`git log -1 --format=%at` +%Y%m%d) && d=$n-$v && f=$d.tar.xz && rm -rf .??* && popd && mv $n $d && tar c --remove-files "$d" | xz -9e > "$f"
|
||||
Source4: td-%{td_ver}.tar.xz
|
||||
Patch0: tg_owt-h264-dlopen.patch
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: kf6-kcoreaddons-devel
|
||||
BuildRequires: gperf
|
||||
BuildRequires: libboost_program_options-devel
|
||||
BuildRequires: libboost_regex-devel
|
||||
BuildRequires: libdispatch-devel
|
||||
BuildRequires: libjpeg-devel
|
||||
BuildRequires: liblz4-devel
|
||||
BuildRequires: mold
|
||||
BuildRequires: ms-gsl-devel
|
||||
BuildRequires: ninja
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python3
|
||||
BuildRequires: qt6-gui-private-devel
|
||||
BuildRequires: qt6-waylandclient-private-devel
|
||||
BuildRequires: qt6-widgets-private-devel
|
||||
BuildRequires: range-v3-devel
|
||||
BuildRequires: unzip
|
||||
BuildRequires: xxhash-devel
|
||||
BuildRequires: xz
|
||||
BuildRequires: pkgconfig(Qt6Concurrent)
|
||||
BuildRequires: cmake(Microsoft.GSL)
|
||||
BuildRequires: cmake(Qt6GuiPrivate)
|
||||
BuildRequires: cmake(Qt6WaylandClientPrivate)
|
||||
BuildRequires: cmake(Qt6WidgetsPrivate)
|
||||
BuildRequires: cmake(range-v3)
|
||||
BuildRequires: pkgconfig(KF6CoreAddons)
|
||||
BuildRequires: pkgconfig(Qt6Core)
|
||||
BuildRequires: pkgconfig(Qt6DBus)
|
||||
BuildRequires: pkgconfig(Qt6Gui)
|
||||
BuildRequires: pkgconfig(Qt6Network)
|
||||
BuildRequires: pkgconfig(Qt6OpenGL)
|
||||
BuildRequires: pkgconfig(Qt6OpenGLWidgets)
|
||||
BuildRequires: pkgconfig(Qt6Qml)
|
||||
BuildRequires: pkgconfig(Qt6Quick)
|
||||
BuildRequires: pkgconfig(Qt6QuickWidgets)
|
||||
BuildRequires: pkgconfig(Qt6Svg)
|
||||
BuildRequires: pkgconfig(Qt6WaylandClient)
|
||||
BuildRequires: pkgconfig(Qt6WaylandCompositor)
|
||||
BuildRequires: pkgconfig(Qt6Widgets)
|
||||
BuildRequires: pkgconfig(alsa)
|
||||
BuildRequires: pkgconfig(expat)
|
||||
BuildRequires: pkgconfig(fmt)
|
||||
BuildRequires: pkgconfig(fontconfig)
|
||||
BuildRequires: pkgconfig(freetype2)
|
||||
BuildRequires: pkgconfig(gbm)
|
||||
BuildRequires: pkgconfig(gl)
|
||||
BuildRequires: pkgconfig(glib-2.0)
|
||||
BuildRequires: pkgconfig(glibmm-2.68)
|
||||
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
||||
BuildRequires: pkgconfig(gsl)
|
||||
BuildRequires: pkgconfig(harfbuzz)
|
||||
BuildRequires: pkgconfig(hunspell)
|
||||
BuildRequires: pkgconfig(jemalloc)
|
||||
BuildRequires: pkgconfig(libavcodec)
|
||||
BuildRequires: pkgconfig(libavfilter)
|
||||
BuildRequires: pkgconfig(libavformat)
|
||||
BuildRequires: pkgconfig(libavif)
|
||||
BuildRequires: pkgconfig(libavutil)
|
||||
BuildRequires: pkgconfig(libcrypto)
|
||||
BuildRequires: pkgconfig(libheif)
|
||||
BuildRequires: pkgconfig(libjpeg)
|
||||
BuildRequires: pkgconfig(libjxl)
|
||||
BuildRequires: pkgconfig(liblz4)
|
||||
BuildRequires: pkgconfig(liblzma)
|
||||
BuildRequires: pkgconfig(libmng)
|
||||
BuildRequires: pkgconfig(libpipewire-0.3)
|
||||
BuildRequires: pkgconfig(libpng)
|
||||
BuildRequires: pkgconfig(libproxy-1.0)
|
||||
BuildRequires: pkgconfig(libpulse)
|
||||
BuildRequires: pkgconfig(libswresample)
|
||||
BuildRequires: pkgconfig(libswscale)
|
||||
BuildRequires: pkgconfig(libtiff-4)
|
||||
BuildRequires: pkgconfig(libva)
|
||||
BuildRequires: pkgconfig(libva-glx)
|
||||
BuildRequires: pkgconfig(libva-x11)
|
||||
BuildRequires: pkgconfig(libwebp)
|
||||
BuildRequires: pkgconfig(libxxhash)
|
||||
BuildRequires: pkgconfig(minizip)
|
||||
BuildRequires: pkgconfig(mtdev)
|
||||
BuildRequires: pkgconfig(openal)
|
||||
BuildRequires: pkgconfig(openssl)
|
||||
BuildRequires: pkgconfig(opus)
|
||||
BuildRequires: pkgconfig(portaudio-2.0)
|
||||
BuildRequires: pkgconfig(portaudiocpp)
|
||||
BuildRequires: pkgconfig(protobuf)
|
||||
BuildRequires: pkgconfig(protobuf-lite)
|
||||
BuildRequires: pkgconfig(qrcodegen)
|
||||
BuildRequires: pkgconfig(rnnoise)
|
||||
BuildRequires: pkgconfig(tslib)
|
||||
BuildRequires: pkgconfig(vdpau)
|
||||
BuildRequires: pkgconfig(vpx)
|
||||
BuildRequires: pkgconfig(webkit2gtk-4.1)
|
||||
BuildRequires: pkgconfig(webkitgtk-6.0)
|
||||
BuildRequires: pkgconfig(webrtc-audio-processing-1)
|
||||
BuildRequires: pkgconfig(x11)
|
||||
BuildRequires: pkgconfig(xcb-ewmh)
|
||||
BuildRequires: pkgconfig(xcb-icccm)
|
||||
BuildRequires: pkgconfig(xcb-image)
|
||||
BuildRequires: pkgconfig(xcb)
|
||||
BuildRequires: pkgconfig(xcb-keysyms)
|
||||
BuildRequires: pkgconfig(xcb-record)
|
||||
BuildRequires: pkgconfig(xcb-renderutil)
|
||||
BuildRequires: pkgconfig(xcb-util)
|
||||
BuildRequires: pkgconfig(xcb-screensaver)
|
||||
BuildRequires: pkgconfig(xcomposite)
|
||||
BuildRequires: pkgconfig(xdamage)
|
||||
BuildRequires: pkgconfig(xext)
|
||||
BuildRequires: pkgconfig(xfixes)
|
||||
BuildRequires: pkgconfig(xkbcommon)
|
||||
BuildRequires: pkgconfig(xkbcommon-x11)
|
||||
BuildRequires: pkgconfig(xproto)
|
||||
BuildRequires: pkgconfig(xrandr)
|
||||
BuildRequires: pkgconfig(xtst)
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
@@ -147,85 +128,83 @@ always immediately published, whereas its server-side code is closed-source and
|
||||
The service also provides APIs to independent developers.
|
||||
|
||||
%prep
|
||||
%setup -q -n tdesktop-%{version}-full -b1 -b2 -b3
|
||||
%autopatch -p1 0 2
|
||||
%setup -q -n tdesktop-%{version}-full -b1 -b2 -b3 -b4
|
||||
|
||||
mkdir -p ../Libraries/ada
|
||||
mv ../ada-%{ada_ver}/* ../Libraries/ada
|
||||
mv ../ada-%{ada_ver} Telegram/ThirdParty/ada
|
||||
|
||||
mv Telegram/ThirdParty/expected ../Libraries
|
||||
mkdir -p Telegram/ThirdParty/openh264/include
|
||||
mv ../openh264-headers-%{h264_ver} Telegram/ThirdParty/openh264/include/wels
|
||||
|
||||
mkdir -p ../Libraries/openh264/include/wels
|
||||
mv ../openh264-headers-%{h264_ver}/* ../Libraries/openh264/include/wels
|
||||
|
||||
mkdir -p ../Libraries/tg_owt
|
||||
mv ../tg_owt-%{owt_ver}/* ../Libraries/tg_owt
|
||||
pushd ../Libraries/tg_owt
|
||||
%autopatch -p1 1
|
||||
mv ../tg_owt-%{owt_ver} Telegram/ThirdParty/tg_owt
|
||||
pushd Telegram/ThirdParty/tg_owt
|
||||
%autopatch -p2 0
|
||||
popd
|
||||
|
||||
%build
|
||||
CFLAGS="%{optflags} -g1 -Wl,-v -fuse-ld=mold"
|
||||
export CMAKE_GENERATOR=Ninja
|
||||
mkdir -p %{_builddir}/Libraries/install
|
||||
mv ../td-%{td_ver} Telegram/ThirdParty/td
|
||||
|
||||
cd %{_builddir}/Libraries/ada
|
||||
%build
|
||||
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
|
||||
CFLAGS="%{optflags} -fPIC -g1 -Wl,-v -fuse-ld=mold"
|
||||
export CMAKE_GENERATOR=Ninja
|
||||
mkdir %{_builddir}/local
|
||||
|
||||
cd %{_builddir}/tdesktop-%{version}-full/Telegram/ThirdParty/ada
|
||||
%cmake -LA \
|
||||
-DBUILD_SHARED_LIBS=OFF \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_BUILD_TYPE="Release" \
|
||||
-DCMAKE_C_FLAGS="$CFLAGS" \
|
||||
-DCMAKE_CXX_FLAGS="$CFLAGS" \
|
||||
-DCMAKE_INSTALL_PREFIX=%{_builddir}/Libraries/install
|
||||
-DCMAKE_INSTALL_PREFIX="%{_builddir}/local"
|
||||
%cmake_build
|
||||
ninja install
|
||||
|
||||
cd %{_builddir}/Libraries/expected
|
||||
cd %{_builddir}/tdesktop-%{version}-full/Telegram/ThirdParty/expected
|
||||
%cmake -LA \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_BUILD_TYPE="Release" \
|
||||
-DCMAKE_C_FLAGS="$CFLAGS" \
|
||||
-DCMAKE_CXX_FLAGS="$CFLAGS" \
|
||||
-DCMAKE_INSTALL_PREFIX=%{_builddir}/Libraries/install \
|
||||
-DCMAKE_INSTALL_PREFIX="%{_builddir}/local" \
|
||||
-DEXPECTED_BUILD_PACKAGE=OFF \
|
||||
-DEXPECTED_BUILD_TESTS=OFF
|
||||
%cmake_build
|
||||
ninja install
|
||||
|
||||
cd %{_builddir}/Libraries/tg_owt
|
||||
cd %{_builddir}/tdesktop-%{version}-full/Telegram/ThirdParty/tg_owt
|
||||
%cmake -LA \
|
||||
-DBUILD_SHARED_LIBS=OFF \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_BUILD_TYPE="Release" \
|
||||
-DCMAKE_C_FLAGS="$CFLAGS" \
|
||||
-DCMAKE_CXX_FLAGS="$CFLAGS" \
|
||||
-DCMAKE_INSTALL_PREFIX=%{_builddir}/Libraries/install \
|
||||
-DCMAKE_INSTALL_PREFIX="%{_builddir}/local" \
|
||||
-DTG_OWT_DLOPEN_H264=ON \
|
||||
-DTG_OWT_SPECIAL_TARGET=linux \
|
||||
-DTG_OWT_LIBJPEG_INCLUDE_PATH=%{_includedir} \
|
||||
-DTG_OWT_OPENH264_INCLUDE_PATH=%{_builddir}/Libraries/openh264/include \
|
||||
-DTG_OWT_OPENSSL_INCLUDE_PATH=%{_includedir}/openssl \
|
||||
-DTG_OWT_OPUS_INCLUDE_PATH=%{_includedir}/opus \
|
||||
-DTG_OWT_FFMPEG_INCLUDE_PATH=%{_includedir}/ffmpeg \
|
||||
-DTG_OWT_LIBVPX_INCLUDE_PATH=%{_includedir}/vpx
|
||||
-DTG_OWT_OPENH264_INCLUDE_PATH="../openh264/include" \
|
||||
-DTG_OWT_PACKAGED_BUILD=ON
|
||||
%cmake_build
|
||||
ninja install
|
||||
|
||||
cd %{_builddir}/tdesktop-%{version}-full/Telegram/ThirdParty/td
|
||||
%cmake -LA \
|
||||
-DBUILD_SHARED_LIBS=OFF \
|
||||
-DBUILD_TESTING=OFF \
|
||||
-DCMAKE_BUILD_TYPE="Release" \
|
||||
-DCMAKE_C_FLAGS="$CFLAGS" \
|
||||
-DCMAKE_CXX_FLAGS="$CFLAGS" \
|
||||
-DCMAKE_INSTALL_PREFIX="%{_builddir}/local" \
|
||||
-DTD_E2E_ONLY=ON
|
||||
%cmake_build
|
||||
ninja install
|
||||
|
||||
cd %{_builddir}/tdesktop-%{version}-full
|
||||
%cmake -LA \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-DCMAKE_BUILD_TYPE="Release" \
|
||||
-DCMAKE_C_FLAGS="$CFLAGS" \
|
||||
-DCMAKE_CXX_FLAGS="$CFLAGS" \
|
||||
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
||||
-DCMAKE_PREFIX_PATH="%{_builddir}/Libraries/install/lib64/cmake;%{_builddir}/Libraries/install/share/cmake/tl-expected" \
|
||||
-DDESKTOP_APP_QT6=ON \
|
||||
-DQT_VERSION_MAJOR=6 \
|
||||
-DTDESKTOP_API_ID=%{api_id} \
|
||||
-DTDESKTOP_API_HASH=%{api_hash} \
|
||||
-DDESKTOP_APP_USE_GLIBC_WRAPS=OFF \
|
||||
-DCMAKE_PREFIX_PATH="%{_builddir}/local/lib64/cmake;%{_builddir}/local/share/cmake" \
|
||||
-DDESKTOP_APP_DISABLE_QT_PLUGINS=ON \
|
||||
-DDESKTOP_APP_USE_PACKAGED=ON \
|
||||
-DDESKTOP_APP_QTWAYLANDCLIENT_PRIVATE_HEADERS=OFF \
|
||||
-DDESKTOP_APP_USE_PACKAGED_FONTS=ON \
|
||||
-DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON \
|
||||
-DTDESKTOP_LAUNCHER_BASENAME=%{name} \
|
||||
-DDESKTOP_APP_SPECIAL_TARGET=""
|
||||
-DTDESKTOP_API_ID="%{api_id}" \
|
||||
-DTDESKTOP_API_HASH="%{api_hash}"
|
||||
%cmake_build
|
||||
|
||||
%install
|
||||
@@ -234,11 +213,10 @@ cd %{_builddir}/tdesktop-%{version}-full
|
||||
%files
|
||||
%license LICENSE LEGAL
|
||||
%doc README.md changelog.txt
|
||||
%{_bindir}/%{name}
|
||||
%{_bindir}/Telegram
|
||||
%{_datadir}/applications/*.desktop
|
||||
%{_datadir}/dbus-1/services/org.telegram.desktop.service
|
||||
%{_datadir}/icons/hicolor/*/apps/*.png
|
||||
%{_datadir}/icons/hicolor/*/apps/*.svg
|
||||
%{_datadir}/icons/hicolor/*/apps/*.{png,svg}
|
||||
%{_datadir}/metainfo/*.metainfo.xml
|
||||
|
||||
%changelog
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9d7556cf4aa76b9f2a474ff6fa8d494ca28eb3cb5c90b132844c4f0a6bbb95aa
|
||||
size 11018900
|
||||
3
tg_owt-git20251128.tar.xz
Normal file
3
tg_owt-git20251128.tar.xz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6f15038c24d11c6a7914871444257b271cf5c778e7a1f757ccbf33597e04fc05
|
||||
size 11035832
|
||||
@@ -1,30 +1,8 @@
|
||||
diff -Pdpru tg_owt-git20250501.orig/cmake/external.cmake tg_owt-git20250501/cmake/external.cmake
|
||||
--- tg_owt-git20250501.orig/cmake/external.cmake 2025-05-01 16:56:47.396132976 +0300
|
||||
+++ tg_owt-git20250501/cmake/external.cmake 2025-05-01 17:17:25.251241954 +0300
|
||||
@@ -129,7 +129,7 @@ endfunction()
|
||||
|
||||
# libopenh264
|
||||
set(TG_OWT_OPENH264_INCLUDE_PATH "" CACHE STRING "Include path for openh264.")
|
||||
-function(link_libopenh264 target_name)
|
||||
+function(link_libopenh264 target_name with_dlopen)
|
||||
if (TG_OWT_PACKAGED_BUILD)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(OPENH264 REQUIRED openh264)
|
||||
@@ -145,6 +145,10 @@ function(link_libopenh264 target_name)
|
||||
${TG_OWT_OPENH264_INCLUDE_PATH}
|
||||
)
|
||||
endif()
|
||||
+ if (with_dlopen)
|
||||
+ target_compile_definitions(${target_name} PRIVATE -DWEBRTC_USE_H264_DLOPEN)
|
||||
+ target_sources(${target_name} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/src/modules/video_coding/codecs/h264/h264_dlopen.cc)
|
||||
+ endif()
|
||||
endfunction()
|
||||
|
||||
# libSRTP
|
||||
diff -Pdpru tg_owt-git20250501.orig/CMakeLists.txt tg_owt-git20250501/CMakeLists.txt
|
||||
--- tg_owt-git20250501.orig/CMakeLists.txt 2025-05-01 16:56:47.393637297 +0300
|
||||
+++ tg_owt-git20250501/CMakeLists.txt 2025-05-01 17:20:21.607517353 +0300
|
||||
@@ -23,6 +23,7 @@ cmake_dependent_option(TG_OWT_USE_X11 "U
|
||||
diff --git a/tg_owt-git20250913/CMakeLists.txt b/tg_owt-git20250913-patched/CMakeLists.txt
|
||||
index e585335..1eb3989 100644
|
||||
--- a/tg_owt-git20250913/CMakeLists.txt
|
||||
+++ b/tg_owt-git20250913-patched/CMakeLists.txt
|
||||
@@ -23,6 +23,7 @@ cmake_dependent_option(TG_OWT_USE_X11 "Use X11 for desktop capture." ON "UNIX; N
|
||||
cmake_dependent_option(TG_OWT_USE_PIPEWIRE "Use pipewire for desktop capture." ON "UNIX; NOT APPLE" OFF)
|
||||
cmake_dependent_option(TG_OWT_DLOPEN_PIPEWIRE "dlopen pipewire for desktop capture." ${not_packaged_build} TG_OWT_USE_PIPEWIRE OFF)
|
||||
option(TG_OWT_BUILD_AUDIO_BACKENDS "Build webrtc audio backends." OFF)
|
||||
@@ -41,9 +19,282 @@ diff -Pdpru tg_owt-git20250501.orig/CMakeLists.txt tg_owt-git20250501/CMakeLists
|
||||
link_libsrtp(tg_owt)
|
||||
link_libvpx(tg_owt)
|
||||
link_crc32c(tg_owt)
|
||||
diff -Pdpru tg_owt-git20250501.orig/src/modules/video_coding/codecs/h264/h264_dlopen.cc tg_owt-git20250501/src/modules/video_coding/codecs/h264/h264_dlopen.cc
|
||||
--- tg_owt-git20250501.orig/src/modules/video_coding/codecs/h264/h264_dlopen.cc 1970-01-01 03:00:00.000000000 +0300
|
||||
+++ tg_owt-git20250501/src/modules/video_coding/codecs/h264/h264_dlopen.cc 2025-05-01 17:29:41.701908949 +0300
|
||||
diff --git a/tg_owt-git20250913/cmake/external.cmake b/tg_owt-git20250913-patched/cmake/external.cmake
|
||||
index 0bcdf60..2b4c244 100644
|
||||
--- a/tg_owt-git20250913/cmake/external.cmake
|
||||
+++ b/tg_owt-git20250913-patched/cmake/external.cmake
|
||||
@@ -116,8 +116,8 @@ endfunction()
|
||||
|
||||
# libopenh264
|
||||
set(TG_OWT_OPENH264_INCLUDE_PATH "" CACHE STRING "Include path for openh264.")
|
||||
-function(link_libopenh264 target_name)
|
||||
- if (TG_OWT_PACKAGED_BUILD)
|
||||
+function(link_libopenh264 target_name with_dlopen)
|
||||
+ if (NOT TG_OWT_PACKAGED_BUILD)
|
||||
find_package(PkgConfig REQUIRED)
|
||||
pkg_check_modules(OPENH264 REQUIRED openh264)
|
||||
target_link_libraries(${target_name} PRIVATE ${OPENH264_LINK_LIBRARIES})
|
||||
@@ -132,6 +132,10 @@ function(link_libopenh264 target_name)
|
||||
${TG_OWT_OPENH264_INCLUDE_PATH}
|
||||
)
|
||||
endif()
|
||||
+ if (with_dlopen)
|
||||
+ target_compile_definitions(${target_name} PRIVATE -DWEBRTC_USE_H264_DLOPEN)
|
||||
+ target_sources(${target_name} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/src/modules/video_coding/codecs/h264/h264_dlopen.cc)
|
||||
+ endif()
|
||||
endfunction()
|
||||
|
||||
# libSRTP
|
||||
diff --git a/tg_owt-git20250913-patched/cmake/external.cmake.orig b/tg_owt-git20250913-patched/cmake/external.cmake.orig
|
||||
new file mode 100644
|
||||
index 0000000..0bcdf60
|
||||
--- /dev/null
|
||||
+++ b/tg_owt-git20250913-patched/cmake/external.cmake.orig
|
||||
@@ -0,0 +1,239 @@
|
||||
+# OpenSSL
|
||||
+set(TG_OWT_OPENSSL_INCLUDE_PATH "" CACHE STRING "Include path for openssl.")
|
||||
+function(link_openssl target_name)
|
||||
+ if (TG_OWT_PACKAGED_BUILD)
|
||||
+ find_package(OpenSSL REQUIRED)
|
||||
+ target_include_directories(${target_name} SYSTEM PRIVATE ${OPENSSL_INCLUDE_DIR})
|
||||
+ target_link_libraries(${target_name} PRIVATE ${OPENSSL_LIBRARIES})
|
||||
+ else()
|
||||
+ if (TG_OWT_OPENSSL_INCLUDE_PATH STREQUAL "")
|
||||
+ message(FATAL_ERROR "You should specify 'TG_OWT_OPENSSL_INCLUDE_PATH'.")
|
||||
+ endif()
|
||||
+
|
||||
+ target_include_directories(${target_name} SYSTEM
|
||||
+ PRIVATE
|
||||
+ ${TG_OWT_OPENSSL_INCLUDE_PATH}
|
||||
+ )
|
||||
+ endif()
|
||||
+endfunction()
|
||||
+
|
||||
+# Opus
|
||||
+set(TG_OWT_OPUS_INCLUDE_PATH "" CACHE STRING "Include path for opus.")
|
||||
+function(link_opus target_name)
|
||||
+ if (TG_OWT_PACKAGED_BUILD)
|
||||
+ find_package(PkgConfig REQUIRED)
|
||||
+ pkg_check_modules(OPUS REQUIRED opus)
|
||||
+ target_include_directories(${target_name} SYSTEM PRIVATE ${OPUS_INCLUDE_DIRS})
|
||||
+ target_link_libraries(${target_name} PRIVATE ${OPUS_LINK_LIBRARIES})
|
||||
+ else()
|
||||
+ if (TG_OWT_OPUS_INCLUDE_PATH STREQUAL "")
|
||||
+ message(FATAL_ERROR "You should specify 'TG_OWT_OPUS_INCLUDE_PATH'.")
|
||||
+ endif()
|
||||
+
|
||||
+ target_include_directories(${target_name} SYSTEM
|
||||
+ PRIVATE
|
||||
+ ${TG_OWT_OPUS_INCLUDE_PATH}
|
||||
+ )
|
||||
+ endif()
|
||||
+endfunction()
|
||||
+
|
||||
+# FFmpeg
|
||||
+set(TG_OWT_FFMPEG_INCLUDE_PATH "" CACHE STRING "Include path for ffmpeg.")
|
||||
+function(link_ffmpeg target_name)
|
||||
+ if (TG_OWT_PACKAGED_BUILD)
|
||||
+ find_package(PkgConfig REQUIRED)
|
||||
+ pkg_check_modules(FFMPEG REQUIRED libavcodec libavformat libavutil libswresample libswscale)
|
||||
+ target_include_directories(${target_name} SYSTEM PRIVATE ${FFMPEG_INCLUDE_DIRS})
|
||||
+ target_link_libraries(${target_name} PRIVATE ${FFMPEG_LINK_LIBRARIES})
|
||||
+ else()
|
||||
+ if (TG_OWT_FFMPEG_INCLUDE_PATH STREQUAL "")
|
||||
+ message(FATAL_ERROR "You should specify 'TG_OWT_FFMPEG_INCLUDE_PATH'.")
|
||||
+ endif()
|
||||
+
|
||||
+ target_include_directories(${target_name} SYSTEM
|
||||
+ PRIVATE
|
||||
+ ${TG_OWT_FFMPEG_INCLUDE_PATH}
|
||||
+ )
|
||||
+ endif()
|
||||
+endfunction()
|
||||
+
|
||||
+# libjpeg
|
||||
+set(TG_OWT_LIBJPEG_INCLUDE_PATH "" CACHE STRING "Include path for libjpeg.")
|
||||
+function(link_libjpeg target_name)
|
||||
+ if (TG_OWT_PACKAGED_BUILD)
|
||||
+ find_package(JPEG REQUIRED)
|
||||
+ target_include_directories(${target_name} SYSTEM PRIVATE ${JPEG_INCLUDE_DIRS})
|
||||
+ target_link_libraries(${target_name} PRIVATE ${JPEG_LIBRARIES})
|
||||
+ else()
|
||||
+ if (TG_OWT_LIBJPEG_INCLUDE_PATH STREQUAL "")
|
||||
+ message(FATAL_ERROR "You should specify 'TG_OWT_LIBJPEG_INCLUDE_PATH'.")
|
||||
+ endif()
|
||||
+
|
||||
+ target_include_directories(${target_name} SYSTEM
|
||||
+ PRIVATE
|
||||
+ ${TG_OWT_LIBJPEG_INCLUDE_PATH}
|
||||
+ ${TG_OWT_LIBJPEG_INCLUDE_PATH}/src
|
||||
+ )
|
||||
+ endif()
|
||||
+endfunction()
|
||||
+
|
||||
+# libabsl
|
||||
+# HINT: System abseil should be built with -DCMAKE_CXX_STANDARD=20
|
||||
+function(link_libabsl target_name)
|
||||
+ set(scope PRIVATE)
|
||||
+ get_target_property(target_type ${target_name} TYPE)
|
||||
+ if (${target_type} STREQUAL "INTERFACE_LIBRARY")
|
||||
+ set(scope INTERFACE)
|
||||
+ endif()
|
||||
+ if (TG_OWT_PACKAGED_BUILD)
|
||||
+ find_package(absl)
|
||||
+ set(absl_FOUND ${absl_FOUND} PARENT_SCOPE)
|
||||
+ if (absl_FOUND)
|
||||
+ target_link_libraries(${target_name}
|
||||
+ ${scope}
|
||||
+ absl::algorithm_container
|
||||
+ absl::bind_front
|
||||
+ absl::config
|
||||
+ absl::core_headers
|
||||
+ absl::flat_hash_map
|
||||
+ absl::inlined_vector
|
||||
+ absl::flags
|
||||
+ absl::flags_parse
|
||||
+ absl::flags_usage
|
||||
+ absl::memory
|
||||
+ absl::optional
|
||||
+ absl::strings
|
||||
+ absl::synchronization
|
||||
+ absl::type_traits
|
||||
+ absl::variant
|
||||
+ )
|
||||
+ endif()
|
||||
+ endif()
|
||||
+ if (NOT absl_FOUND)
|
||||
+ target_link_libraries(${target_name} ${scope} tg_owt::libabsl)
|
||||
+ endif()
|
||||
+endfunction()
|
||||
+
|
||||
+# libopenh264
|
||||
+set(TG_OWT_OPENH264_INCLUDE_PATH "" CACHE STRING "Include path for openh264.")
|
||||
+function(link_libopenh264 target_name)
|
||||
+ if (TG_OWT_PACKAGED_BUILD)
|
||||
+ find_package(PkgConfig REQUIRED)
|
||||
+ pkg_check_modules(OPENH264 REQUIRED openh264)
|
||||
+ target_link_libraries(${target_name} PRIVATE ${OPENH264_LINK_LIBRARIES})
|
||||
+ target_include_directories(${target_name} SYSTEM PRIVATE ${OPENH264_INCLUDE_DIRS})
|
||||
+ else()
|
||||
+ if (TG_OWT_OPENH264_INCLUDE_PATH STREQUAL "")
|
||||
+ message(FATAL_ERROR "You should specify 'TG_OWT_OPENH264_INCLUDE_PATH'.")
|
||||
+ endif()
|
||||
+
|
||||
+ target_include_directories(${target_name} SYSTEM
|
||||
+ PRIVATE
|
||||
+ ${TG_OWT_OPENH264_INCLUDE_PATH}
|
||||
+ )
|
||||
+ endif()
|
||||
+endfunction()
|
||||
+
|
||||
+# libSRTP
|
||||
+function(link_libsrtp target_name)
|
||||
+ if (TG_OWT_PACKAGED_BUILD)
|
||||
+ find_package(PkgConfig)
|
||||
+ if (PkgConfig_FOUND)
|
||||
+ pkg_check_modules(SRTP libsrtp2)
|
||||
+ if (SRTP_FOUND)
|
||||
+ target_include_directories(${target_name} SYSTEM PRIVATE ${SRTP_INCLUDE_DIRS})
|
||||
+ target_link_libraries(${target_name} PRIVATE ${SRTP_LINK_LIBRARIES})
|
||||
+ endif()
|
||||
+ endif()
|
||||
+ endif()
|
||||
+ if (NOT SRTP_FOUND)
|
||||
+ target_link_libraries(${target_name} PRIVATE tg_owt::libsrtp)
|
||||
+ endif()
|
||||
+endfunction()
|
||||
+
|
||||
+# libvpx
|
||||
+set(TG_OWT_LIBVPX_INCLUDE_PATH "" CACHE STRING "Include path for libvpx.")
|
||||
+function(link_libvpx target_name)
|
||||
+ if (TG_OWT_PACKAGED_BUILD)
|
||||
+ find_package(PkgConfig REQUIRED)
|
||||
+ pkg_check_modules(VPX REQUIRED vpx>=1.10.0)
|
||||
+ target_link_libraries(${target_name} PRIVATE ${VPX_LINK_LIBRARIES})
|
||||
+ target_include_directories(${target_name} SYSTEM PRIVATE ${VPX_INCLUDE_DIRS})
|
||||
+ else()
|
||||
+ if (TG_OWT_LIBVPX_INCLUDE_PATH STREQUAL "")
|
||||
+ message(FATAL_ERROR "You should specify 'TG_OWT_LIBVPX_INCLUDE_PATH'.")
|
||||
+ endif()
|
||||
+
|
||||
+ target_include_directories(${target_name} SYSTEM
|
||||
+ PRIVATE
|
||||
+ ${TG_OWT_LIBVPX_INCLUDE_PATH}
|
||||
+ )
|
||||
+ endif()
|
||||
+endfunction()
|
||||
+
|
||||
+# crc32c
|
||||
+function(link_crc32c target_name)
|
||||
+ if (TG_OWT_PACKAGED_BUILD)
|
||||
+ find_package(Crc32c)
|
||||
+ set(Crc32c_FOUND ${Crc32c_FOUND} PARENT_SCOPE)
|
||||
+ if (Crc32c_FOUND)
|
||||
+ target_link_libraries(${target_name} PRIVATE Crc32c::crc32c)
|
||||
+ endif()
|
||||
+ endif()
|
||||
+ if (NOT Crc32c_FOUND)
|
||||
+ target_link_libraries(${target_name} PRIVATE tg_owt::libcrc32c)
|
||||
+ endif()
|
||||
+endfunction()
|
||||
+
|
||||
+function(link_glib target_name)
|
||||
+ find_package(PkgConfig REQUIRED)
|
||||
+ pkg_check_modules(GLIB2 REQUIRED glib-2.0 gobject-2.0 gio-2.0 gio-unix-2.0)
|
||||
+ target_include_directories(${target_name} SYSTEM PRIVATE ${GLIB2_INCLUDE_DIRS})
|
||||
+ if (TG_OWT_PACKAGED_BUILD)
|
||||
+ target_link_libraries(${target_name} PRIVATE ${GLIB2_LINK_LIBRARIES})
|
||||
+ endif()
|
||||
+endfunction()
|
||||
+
|
||||
+# x11
|
||||
+function(link_x11 target_name)
|
||||
+ if (TG_OWT_PACKAGED_BUILD)
|
||||
+ find_package(PkgConfig REQUIRED)
|
||||
+ pkg_check_modules(X11 REQUIRED x11 xcomposite xdamage xext xfixes xrandr xrender xtst)
|
||||
+ target_include_directories(${target_name} SYSTEM PRIVATE ${X11_INCLUDE_DIRS})
|
||||
+ target_link_libraries(${target_name} PRIVATE ${X11_LINK_LIBRARIES})
|
||||
+ endif()
|
||||
+endfunction()
|
||||
+
|
||||
+# PipeWire
|
||||
+function(link_pipewire target_name only_include_dirs)
|
||||
+ find_package(PkgConfig REQUIRED)
|
||||
+ pkg_check_modules(PIPEWIRE REQUIRED libpipewire-0.3)
|
||||
+ target_include_directories(${target_name} SYSTEM PRIVATE ${PIPEWIRE_INCLUDE_DIRS})
|
||||
+ if (NOT only_include_dirs)
|
||||
+ target_link_libraries(${target_name} PRIVATE ${PIPEWIRE_LINK_LIBRARIES})
|
||||
+ endif()
|
||||
+endfunction()
|
||||
+
|
||||
+# Alsa
|
||||
+function(link_libalsa target_name)
|
||||
+ if (TG_OWT_PACKAGED_BUILD)
|
||||
+ find_package(ALSA REQUIRED)
|
||||
+ target_include_directories(${target_name} SYSTEM PRIVATE ${ALSA_INCLUDE_DIRS})
|
||||
+ endif()
|
||||
+endfunction()
|
||||
+
|
||||
+# PulseAudio
|
||||
+function(link_libpulse target_name)
|
||||
+ if (TG_OWT_PACKAGED_BUILD)
|
||||
+ find_package(PkgConfig REQUIRED)
|
||||
+ pkg_check_modules(PULSE REQUIRED libpulse)
|
||||
+ target_include_directories(${target_name} SYSTEM PRIVATE ${PULSE_INCLUDE_DIRS})
|
||||
+ endif()
|
||||
+endfunction()
|
||||
+
|
||||
+# dl
|
||||
+function(link_dl target_name)
|
||||
+ if (TG_OWT_PACKAGED_BUILD)
|
||||
+ target_link_libraries(${target_name} PRIVATE ${CMAKE_DL_LIBS})
|
||||
+ endif()
|
||||
+endfunction()
|
||||
diff --git a/tg_owt-git20250913-patched/src/modules/video_coding/codecs/h264/h264_dlopen.cc b/tg_owt-git20250913-patched/src/modules/video_coding/codecs/h264/h264_dlopen.cc
|
||||
new file mode 100644
|
||||
index 0000000..3762e1d
|
||||
--- /dev/null
|
||||
+++ b/tg_owt-git20250913-patched/src/modules/video_coding/codecs/h264/h264_dlopen.cc
|
||||
@@ -0,0 +1,128 @@
|
||||
+/*
|
||||
+ * OpenH264 dlopen code
|
||||
@@ -173,9 +424,11 @@ diff -Pdpru tg_owt-git20250501.orig/src/modules/video_coding/codecs/h264/h264_dl
|
||||
+
|
||||
+ return 0;
|
||||
+}
|
||||
diff -Pdpru tg_owt-git20250501.orig/src/modules/video_coding/codecs/h264/h264_dlopen.h tg_owt-git20250501/src/modules/video_coding/codecs/h264/h264_dlopen.h
|
||||
--- tg_owt-git20250501.orig/src/modules/video_coding/codecs/h264/h264_dlopen.h 1970-01-01 03:00:00.000000000 +0300
|
||||
+++ tg_owt-git20250501/src/modules/video_coding/codecs/h264/h264_dlopen.h 2025-05-01 17:31:20.183993988 +0300
|
||||
diff --git a/tg_owt-git20250913-patched/src/modules/video_coding/codecs/h264/h264_dlopen.h b/tg_owt-git20250913-patched/src/modules/video_coding/codecs/h264/h264_dlopen.h
|
||||
new file mode 100644
|
||||
index 0000000..25fe94e
|
||||
--- /dev/null
|
||||
+++ b/tg_owt-git20250913-patched/src/modules/video_coding/codecs/h264/h264_dlopen.h
|
||||
@@ -0,0 +1,46 @@
|
||||
+/*
|
||||
+ * OpenH264 dlopen code
|
||||
@@ -223,10 +476,11 @@ diff -Pdpru tg_owt-git20250501.orig/src/modules/video_coding/codecs/h264/h264_dl
|
||||
+#endif /* WEBRTC_USE_H264_DLOPEN */
|
||||
+
|
||||
+#endif /* HAVE_LIBOPENH264_DLOPEN_H */
|
||||
diff -Pdpru tg_owt-git20250501.orig/src/modules/video_coding/codecs/h264/h264_encoder_impl.cc tg_owt-git20250501/src/modules/video_coding/codecs/h264/h264_encoder_impl.cc
|
||||
--- tg_owt-git20250501.orig/src/modules/video_coding/codecs/h264/h264_encoder_impl.cc 2025-05-01 16:56:48.776637476 +0300
|
||||
+++ tg_owt-git20250501/src/modules/video_coding/codecs/h264/h264_encoder_impl.cc 2025-05-01 17:24:17.724547184 +0300
|
||||
@@ -217,6 +217,12 @@ int32_t H264EncoderImpl::InitEncode(cons
|
||||
diff --git a/tg_owt-git20250913/src/modules/video_coding/codecs/h264/h264_encoder_impl.cc b/tg_owt-git20250913-patched/src/modules/video_coding/codecs/h264/h264_encoder_impl.cc
|
||||
index c232133..29914aa 100644
|
||||
--- a/tg_owt-git20250913/src/modules/video_coding/codecs/h264/h264_encoder_impl.cc
|
||||
+++ b/tg_owt-git20250913-patched/src/modules/video_coding/codecs/h264/h264_encoder_impl.cc
|
||||
@@ -217,6 +217,12 @@ int32_t H264EncoderImpl::InitEncode(const VideoCodec* inst,
|
||||
ReportError();
|
||||
return release_ret;
|
||||
}
|
||||
@@ -239,9 +493,10 @@ diff -Pdpru tg_owt-git20250501.orig/src/modules/video_coding/codecs/h264/h264_en
|
||||
|
||||
int number_of_streams = SimulcastUtility::NumberOfSimulcastStreams(*inst);
|
||||
bool doing_simulcast = (number_of_streams > 1);
|
||||
diff -Pdpru tg_owt-git20250501.orig/src/modules/video_coding/codecs/h264/h264_encoder_impl.h tg_owt-git20250501/src/modules/video_coding/codecs/h264/h264_encoder_impl.h
|
||||
--- tg_owt-git20250501.orig/src/modules/video_coding/codecs/h264/h264_encoder_impl.h 2025-05-01 16:56:48.777637476 +0300
|
||||
+++ tg_owt-git20250501/src/modules/video_coding/codecs/h264/h264_encoder_impl.h 2025-05-01 17:26:30.342146980 +0300
|
||||
diff --git a/tg_owt-git20250913/src/modules/video_coding/codecs/h264/h264_encoder_impl.h b/tg_owt-git20250913-patched/src/modules/video_coding/codecs/h264/h264_encoder_impl.h
|
||||
index 9e246b8..2deb5a2 100644
|
||||
--- a/tg_owt-git20250913/src/modules/video_coding/codecs/h264/h264_encoder_impl.h
|
||||
+++ b/tg_owt-git20250913-patched/src/modules/video_coding/codecs/h264/h264_encoder_impl.h
|
||||
@@ -30,7 +30,12 @@
|
||||
#include "modules/video_coding/codecs/h264/include/h264.h"
|
||||
#include "modules/video_coding/svc/scalable_video_controller.h"
|
||||
|
||||
Reference in New Issue
Block a user