mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Merge branch 'telegramdesktop:dev' into dev
This commit is contained in:
commit
e0bf550932
5 changed files with 36 additions and 33 deletions
|
@ -37,7 +37,7 @@ get_filename_component(submodules_loc "Telegram" REALPATH)
|
||||||
get_filename_component(cmake_helpers_loc "cmake" REALPATH)
|
get_filename_component(cmake_helpers_loc "cmake" REALPATH)
|
||||||
|
|
||||||
if (NOT DESKTOP_APP_USE_PACKAGED AND WIN32)
|
if (NOT DESKTOP_APP_USE_PACKAGED AND WIN32)
|
||||||
set(Python_EXECUTABLE ${CMAKE_CURRENT_SOURCE_DIR}/../ThirdParty/python/Scripts/python)
|
set(Python3_EXECUTABLE ${CMAKE_CURRENT_SOURCE_DIR}/../ThirdParty/python/Scripts/python)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
include(cmake/variables.cmake)
|
include(cmake/variables.cmake)
|
||||||
|
|
|
@ -56,9 +56,11 @@ ENV CFLAGS {% if DEBUG %}-g{% endif %} -O3 {% if LTO %}{{ CFLAGS_LTO }}{% endif
|
||||||
ENV CXXFLAGS $CFLAGS
|
ENV CXXFLAGS $CFLAGS
|
||||||
|
|
||||||
FROM builder AS patches
|
FROM builder AS patches
|
||||||
RUN git clone {{ GIT }}/desktop-app/patches.git \
|
RUN git init patches \
|
||||||
&& cd patches \
|
&& cd patches \
|
||||||
&& git checkout a1b912c90e \
|
&& git remote add origin {{ GIT }}/desktop-app/patches.git \
|
||||||
|
&& git fetch --depth=1 origin a1b912c90eaab470ef283622a8f890ee6264dae7 \
|
||||||
|
&& git reset --hard FETCH_HEAD \
|
||||||
&& rm -rf .git
|
&& rm -rf .git
|
||||||
|
|
||||||
FROM builder AS nasm
|
FROM builder AS nasm
|
||||||
|
@ -92,7 +94,7 @@ RUN git clone -b v1.2.11 --depth=1 {{ GIT }}/madler/zlib.git \
|
||||||
&& rm -rf zlib
|
&& rm -rf zlib
|
||||||
|
|
||||||
FROM builder AS xz
|
FROM builder AS xz
|
||||||
RUN git clone -b v5.2.5 https://git.tukaani.org/xz.git \
|
RUN git clone -b v5.2.5 --depth=1 {{ GIT }}/tukaani-project/xz.git \
|
||||||
&& cd xz \
|
&& cd xz \
|
||||||
&& cmake -GNinja -B build . -DCMAKE_BUILD_TYPE=None \
|
&& cmake -GNinja -B build . -DCMAKE_BUILD_TYPE=None \
|
||||||
&& cmake --build build --parallel \
|
&& cmake --build build --parallel \
|
||||||
|
@ -101,26 +103,23 @@ RUN git clone -b v5.2.5 https://git.tukaani.org/xz.git \
|
||||||
&& rm -rf xz
|
&& rm -rf xz
|
||||||
|
|
||||||
FROM builder AS protobuf
|
FROM builder AS protobuf
|
||||||
RUN git clone --recursive -b v21.9 https://github.com/protocolbuffers/protobuf \
|
RUN git clone -b v21.9 --depth=1 --recursive {{ GIT }}/protocolbuffers/protobuf.git \
|
||||||
&& cd protobuf \
|
&& cd protobuf \
|
||||||
&& git clone https://github.com/abseil/abseil-cpp third_party/abseil-cpp \
|
&& git init third_party/abseil-cpp \
|
||||||
&& cd third_party/abseil-cpp \
|
&& cd third_party/abseil-cpp \
|
||||||
&& git checkout 273292d1cf \
|
&& git remote add origin {{ GIT }}/abseil/abseil-cpp.git \
|
||||||
&& cd ../.. \
|
&& git fetch --depth=1 origin 273292d1cfc0a94a65082ee350509af1d113344d \
|
||||||
&& mkdir build \
|
&& git reset --hard FETCH_HEAD \
|
||||||
&& cd build \
|
&& cd ../.. \
|
||||||
&& cmake -GNinja .. \
|
&& cmake -GNinja -B build . \
|
||||||
-DCMAKE_BUILD_TYPE=None \
|
-DCMAKE_BUILD_TYPE=None \
|
||||||
-DCMAKE_C_FLAGS="$CFLAGS" \
|
-Dprotobuf_BUILD_TESTS=OFF \
|
||||||
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
|
-Dprotobuf_BUILD_PROTOBUF_BINARIES=ON \
|
||||||
-Dprotobuf_BUILD_TESTS=OFF \
|
-Dprotobuf_BUILD_LIBPROTOC=ON \
|
||||||
-Dprotobuf_BUILD_PROTOBUF_BINARIES=ON \
|
-Dprotobuf_WITH_ZLIB_DEFAULT=OFF \
|
||||||
-Dprotobuf_BUILD_LIBPROTOC=ON \
|
-Dprotobuf_DEBUG_POSTFIX="" \
|
||||||
-Dprotobuf_WITH_ZLIB_DEFAULT=OFF \
|
&& cmake --build build --parallel \
|
||||||
-Dprotobuf_DEBUG_POSTFIX="" \
|
&& rm -rf .git
|
||||||
&& cmake --build . --parallel \
|
|
||||||
&& cd .. \
|
|
||||||
&& rm -rf .git
|
|
||||||
|
|
||||||
FROM patches AS libproxy
|
FROM patches AS libproxy
|
||||||
RUN git clone -b 0.4.17 --depth=1 {{ GIT }}/libproxy/libproxy.git \
|
RUN git clone -b 0.4.17 --depth=1 {{ GIT }}/libproxy/libproxy.git \
|
||||||
|
@ -303,7 +302,7 @@ RUN git clone -b v0.8.1 --depth=1 {{ GIT }}/libjxl/libjxl.git \
|
||||||
&& rm -rf libjxl
|
&& rm -rf libjxl
|
||||||
|
|
||||||
FROM builder AS rnnoise
|
FROM builder AS rnnoise
|
||||||
RUN git clone -b master --depth=1 {{ GIT }}/desktop-app/rnnoise \
|
RUN git clone -b master --depth=1 {{ GIT }}/desktop-app/rnnoise.git \
|
||||||
&& cd rnnoise \
|
&& cd rnnoise \
|
||||||
&& cmake -GNinja -B build . -DCMAKE_BUILD_TYPE=None \
|
&& cmake -GNinja -B build . -DCMAKE_BUILD_TYPE=None \
|
||||||
&& cmake --build build --parallel \
|
&& cmake --build build --parallel \
|
||||||
|
@ -757,13 +756,17 @@ RUN git clone -b {{ QT_TAG }} --depth=1 https://code.qt.io/qt/qt5.git qt_{{ QT }
|
||||||
&& rm -rf qt_{{ QT }}
|
&& rm -rf qt_{{ QT }}
|
||||||
|
|
||||||
FROM patches AS breakpad
|
FROM patches AS breakpad
|
||||||
RUN git clone https://chromium.googlesource.com/breakpad/breakpad.git \
|
RUN git init breakpad \
|
||||||
&& cd breakpad \
|
&& cd breakpad \
|
||||||
&& git checkout dfcb7b6799 \
|
&& git remote add origin https://chromium.googlesource.com/breakpad/breakpad.git \
|
||||||
|
&& git fetch --depth=1 origin dfcb7b6799b7c1e2c8d65e857d8afede185471d8 \
|
||||||
|
&& git reset --hard FETCH_HEAD \
|
||||||
&& git apply ../patches/breakpad.diff \
|
&& git apply ../patches/breakpad.diff \
|
||||||
&& git clone https://chromium.googlesource.com/linux-syscall-support.git src/third_party/lss \
|
&& git init src/third_party/lss \
|
||||||
&& cd src/third_party/lss \
|
&& cd src/third_party/lss \
|
||||||
&& git checkout e1e7b0ad8e \
|
&& git remote add origin https://chromium.googlesource.com/linux-syscall-support.git \
|
||||||
|
&& git fetch --depth=1 origin e1e7b0ad8ee99a875b272c8e33e308472e897660 \
|
||||||
|
&& git reset --hard FETCH_HEAD \
|
||||||
&& cd ../../.. \
|
&& cd ../../.. \
|
||||||
&& env -u CFLAGS -u CXXFLAGS ./configure \
|
&& env -u CFLAGS -u CXXFLAGS ./configure \
|
||||||
&& make -j$(nproc) \
|
&& make -j$(nproc) \
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
# https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
# https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||||
|
|
||||||
function(generate_scheme target_name script scheme_files)
|
function(generate_scheme target_name script scheme_files)
|
||||||
find_package(Python REQUIRED)
|
find_package(Python3 REQUIRED)
|
||||||
|
|
||||||
set(gen_dst ${CMAKE_CURRENT_BINARY_DIR}/gen)
|
set(gen_dst ${CMAKE_CURRENT_BINARY_DIR}/gen)
|
||||||
file(MAKE_DIRECTORY ${gen_dst})
|
file(MAKE_DIRECTORY ${gen_dst})
|
||||||
|
@ -24,7 +24,7 @@ function(generate_scheme target_name script scheme_files)
|
||||||
BYPRODUCTS
|
BYPRODUCTS
|
||||||
${gen_files}
|
${gen_files}
|
||||||
COMMAND
|
COMMAND
|
||||||
${Python_EXECUTABLE}
|
${Python3_EXECUTABLE}
|
||||||
${script}
|
${script}
|
||||||
-o${gen_dst}/scheme
|
-o${gen_dst}/scheme
|
||||||
${scheme_files}
|
${scheme_files}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit c7db733a9861177c796162bf1cbe5e052962afd8
|
Subproject commit 6041498fbafcd0a22df88b7973d9e8f9bdf16958
|
2
cmake
2
cmake
|
@ -1 +1 @@
|
||||||
Subproject commit 1c07a71d6fde4e71ca9f98d343d09d7503ef15d2
|
Subproject commit a41fa6e14006204f3fea7993a775e14f8fdde9fc
|
Loading…
Add table
Reference in a new issue