From 8639936e45424f9719078c88d20e92137281ed02 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Thu, 25 Dec 2025 22:56:20 +0400 Subject: [PATCH] Remove depot_tools and yasm They're actually unused --- Telegram/build/docker/centos_env/Dockerfile | 2 +- Telegram/build/prepare/prepare.py | 23 +-------------------- 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/Telegram/build/docker/centos_env/Dockerfile b/Telegram/build/docker/centos_env/Dockerfile index be95af5b5d..c8c0584ab7 100644 --- a/Telegram/build/docker/centos_env/Dockerfile +++ b/Telegram/build/docker/centos_env/Dockerfile @@ -12,7 +12,7 @@ RUN dnf -y install epel-release \ && dnf config-manager --set-enabled powertools \ && dnf -y install cmake autoconf automake libtool pkgconfig make patch git \ python3.11-pip python3.11-devel gperf flex bison clang clang-tools-extra \ - lld nasm yasm file which wget perl-open perl-XML-Parser perl-IPC-Cmd \ + lld nasm file which wget perl-open perl-XML-Parser perl-IPC-Cmd \ xorg-x11-util-macros $TOOLSET-gcc $TOOLSET-gcc-c++ $TOOLSET-binutils \ $TOOLSET-gdb $TOOLSET-libasan-devel libffi-devel fontconfig-devel \ freetype-devel libX11-devel wayland-devel alsa-lib-devel \ diff --git a/Telegram/build/prepare/prepare.py b/Telegram/build/prepare/prepare.py index 9f2540c73f..68f7461b3a 100644 --- a/Telegram/build/prepare/prepare.py +++ b/Telegram/build/prepare/prepare.py @@ -87,8 +87,6 @@ pathPrefixes = [ 'ThirdParty\\gyp', ] if win else [ 'ThirdParty/gyp', - 'ThirdParty/yasm', - 'ThirdParty/depot_tools', ] pathPrefix = '' for singlePrefix in pathPrefixes: @@ -478,8 +476,7 @@ win: mingw-w64-x86_64-gperf ^ mingw-w64-x86_64-nasm ^ mingw-w64-x86_64-perl ^ - mingw-w64-x86_64-pkgconf ^ - mingw-w64-x86_64-yasm + mingw-w64-x86_64-pkgconf SET PATH=%PATH_BACKUP_% """, 'ThirdParty') @@ -506,13 +503,6 @@ win: del jom.zip """, 'ThirdParty') -stage('depot_tools', """ -mac: - git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git - cd depot_tools - ./update_depot_tools -""", 'ThirdParty') - if not mac or 'build-stackwalk' in options: stage('gyp', """ win: @@ -526,15 +516,6 @@ mac: git+https://chromium.googlesource.com/external/gyp@master six """, 'ThirdParty') -stage('yasm', """ -mac: - git clone https://github.com/yasm/yasm.git - cd yasm - git checkout 41762bea - ./autogen.sh - make $MAKE_THREADS_CNT -""", 'ThirdParty') - stage('lzma', """ win: git clone https://github.com/desktop-app/lzma.git @@ -1116,7 +1097,6 @@ depends:patches/build_libvpx_win.sh mac: find ../patches/libvpx -type f -print0 | sort -z | xargs -0 git apply -depends:yasm/yasm ./configure --prefix=$USED_PREFIX \ --target=arm64-darwin20-gcc \ --disable-examples \ @@ -1223,7 +1203,6 @@ depends:patches/build_ffmpeg_win.sh SET PATH=%PATH_BACKUP_% mac: export PKG_CONFIG_PATH=$USED_PREFIX/lib/pkgconfig -depends:yasm/yasm configureFFmpeg() { arch=$1