Skip to content

Commit

Permalink
Removed git history for third-party repositories where it is not needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
23rd committed Apr 9, 2024
1 parent fe06cd6 commit 89e26e9
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions Telegram/build/prepare/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,7 @@ def runStages():

stage('xz', """
!win:
git clone -b v5.4.5 https://git.tukaani.org/xz.git
git clone -b v5.4.5 --depth 1 https://git.tukaani.org/xz.git
cd xz
sed -i '' '\\@check_symbol_exists(futimens "sys/types.h;sys/stat.h" HAVE_FUTIMENS)@d' CMakeLists.txt
CFLAGS="$UNGUARDED" CPPFLAGS="$UNGUARDED" cmake -B build . \\
Expand Down Expand Up @@ -553,7 +553,7 @@ def runStages():
""")

stage('mozjpeg', """
git clone -b v4.1.5 https://github.com/mozilla/mozjpeg.git
git clone -b v4.1.5 --depth 1 https://github.com/mozilla/mozjpeg.git
cd mozjpeg
win:
cmake . ^
Expand Down Expand Up @@ -590,7 +590,7 @@ def runStages():
""")

stage('openssl3', """
git clone -b openssl-3.2.1 https://github.com/openssl/openssl openssl3
git clone -b openssl-3.2.1 --depth 1 https://github.com/openssl/openssl openssl3
cd openssl3
win32:
perl Configure no-shared no-tests debug-VC-WIN32
Expand Down Expand Up @@ -708,7 +708,7 @@ def runStages():

# Somehow in x86 Debug build dav1d crashes on AV1 10bpc videos.
stage('dav1d', """
git clone -b 1.4.1 https://code.videolan.org/videolan/dav1d.git
git clone -b 1.4.1 --depth 1 https://code.videolan.org/videolan/dav1d.git
cd dav1d
win:
if "%X8664%" equ "x64" (
Expand Down Expand Up @@ -788,7 +788,7 @@ def runStages():
""")

stage('libavif', """
git clone -b v1.0.4 https://github.com/AOMediaCodec/libavif.git
git clone -b v1.0.4 --depth 1 https://github.com/AOMediaCodec/libavif.git
cd libavif
win:
cmake . ^
Expand Down Expand Up @@ -818,7 +818,7 @@ def runStages():
""")

stage('libde265', """
git clone -b v1.0.15 https://github.com/strukturag/libde265.git
git clone -b v1.0.15 --depth 1 https://github.com/strukturag/libde265.git
cd libde265
win:
cmake . ^
Expand Down Expand Up @@ -854,7 +854,7 @@ def runStages():
""")

stage('libwebp', """
git clone -b v1.3.2 https://github.com/webmproject/libwebp.git
git clone -b v1.3.2 --depth 1 https://github.com/webmproject/libwebp.git
cd libwebp
win:
nmake /f Makefile.vc CFG=debug-static OBJDIR=out RTLIBCFG=static all
Expand Down Expand Up @@ -894,7 +894,7 @@ def runStages():
""")

stage('libheif', """
git clone -b v1.17.6 https://github.com/strukturag/libheif.git
git clone -b v1.17.6 --depth 1 https://github.com/strukturag/libheif.git
cd libheif
win:
%THIRDPARTY_DIR%\\msys64\\usr\\bin\\sed.exe -i 's/LIBHEIF_EXPORTS/LIBDE265_STATIC_BUILD/g' libheif/CMakeLists.txt
Expand Down Expand Up @@ -946,7 +946,7 @@ def runStages():
""")

stage('libjxl', """
git clone -b v0.8.2 --recursive --shallow-submodules https://github.com/libjxl/libjxl.git
git clone -b v0.8.2 --depth 1 --recursive --shallow-submodules https://github.com/libjxl/libjxl.git
cd libjxl
""" + setVar("cmake_defines", """
-DBUILD_SHARED_LIBS=OFF
Expand Down Expand Up @@ -1073,7 +1073,7 @@ def runStages():
""")

stage('ffmpeg', """
git clone -b n6.1.1 https://github.com/FFmpeg/FFmpeg.git ffmpeg
git clone -b n6.1.1 --depth 1 https://github.com/FFmpeg/FFmpeg.git ffmpeg
cd ffmpeg
win:
SET PATH_BACKUP_=%PATH%
Expand Down Expand Up @@ -1247,7 +1247,7 @@ def runStages():
stage('openal-soft', """
version: 3
win:
git clone -b wasapi_exact_device_time https://github.com/telegramdesktop/openal-soft.git
git clone -b wasapi_exact_device_time --depth 1 https://github.com/telegramdesktop/openal-soft.git
cd openal-soft
cmake -B build . ^
-A %WIN32X64% ^
Expand All @@ -1257,7 +1257,7 @@ def runStages():
release:
cmake --build build --config RelWithDebInfo --parallel
mac:
git clone -b coreaudio_device_uid https://github.com/telegramdesktop/openal-soft.git
git clone -b coreaudio_device_uid --depth 1 https://github.com/telegramdesktop/openal-soft.git
cd openal-soft
CFLAGS=$UNGUARDED CPPFLAGS=$UNGUARDED cmake -B build . \\
-D CMAKE_BUILD_TYPE=RelWithDebInfo \\
Expand Down Expand Up @@ -1295,7 +1295,7 @@ def runStages():
git checkout dfcb7b6799
depends:patches/breakpad.diff
git apply ../patches/breakpad.diff
git clone -b release-1.11.0 https://github.com/google/googletest src/testing
git clone -b release-1.11.0 --depth 1 https://github.com/google/googletest src/testing
win:
SET "PYTHONUTF8=1"
if "%X8664%" equ "x64" (
Expand Down

0 comments on commit 89e26e9

Please sign in to comment.