From e81a2a50115e4986523f78199f1d049e395ba3e5 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Thu, 1 May 2025 14:13:04 +0400 Subject: [PATCH] Update Opus to 1.5.2 This fixes compatibility with cmake 4 --- Telegram/build/docker/centos_env/Dockerfile | 9 ++++----- Telegram/build/prepare/prepare.py | 3 +-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/Telegram/build/docker/centos_env/Dockerfile b/Telegram/build/docker/centos_env/Dockerfile index b5640d7cb2..3f04007a22 100644 --- a/Telegram/build/docker/centos_env/Dockerfile +++ b/Telegram/build/docker/centos_env/Dockerfile @@ -121,12 +121,11 @@ RUN git clone -b 1.0.7 --depth=1 {{ GIT }}/google/highway.git \ && rm -rf highway FROM builder AS opus -RUN git clone -b v1.4 --depth=1 {{ GIT }}/xiph/opus.git \ +RUN git clone -b v1.5.2 --depth=1 {{ GIT }}/xiph/opus.git \ && cd opus \ - && ./autogen.sh \ - && ./configure \ - && make -j$(nproc) \ - && make DESTDIR="{{ LibrariesPath }}/opus-cache" install \ + && cmake -GNinja -B build . -DCMAKE_BUILD_TYPE=None \ + && cmake --build build --parallel \ + && DESTDIR="{{ LibrariesPath }}/opus-cache" cmake --install build \ && cd .. \ && rm -rf opus diff --git a/Telegram/build/prepare/prepare.py b/Telegram/build/prepare/prepare.py index f96cf65bd0..290b3ae8ae 100644 --- a/Telegram/build/prepare/prepare.py +++ b/Telegram/build/prepare/prepare.py @@ -660,9 +660,8 @@ mac: """) stage('opus', """ - git clone -b v1.3.1 https://github.com/xiph/opus.git + git clone -b v1.5.2 https://github.com/xiph/opus.git cd opus - git cherry-pick 927de8453c win: cmake -B out . ^ -A %WIN32X64% ^