mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-29 13:39:06 +00:00
Partially revert "Move packages to a separate snap part"
This partially reverts commit ef2e9406c74a7d509f10371de680d4da8633b872 restoring per-part build packages so changes to them don't lead to rebuild of all parts.
This commit is contained in:
parent
62329c104c
commit
60447f073f
@ -34,6 +34,15 @@ parts:
|
|||||||
parse-info: [usr/share/metainfo/org.telegram.desktop.metainfo.xml]
|
parse-info: [usr/share/metainfo/org.telegram.desktop.metainfo.xml]
|
||||||
build-environment:
|
build-environment:
|
||||||
- LDFLAGS: ${LDFLAGS:+$LDFLAGS} -Wl,-push-state,-no-as-needed,-ldav1d,-lhwy,-pop-state -s
|
- LDFLAGS: ${LDFLAGS:+$LDFLAGS} -Wl,-push-state,-no-as-needed,-ldav1d,-lhwy,-pop-state -s
|
||||||
|
build-packages:
|
||||||
|
- clang
|
||||||
|
- libboost-regex-dev
|
||||||
|
- libheif-dev
|
||||||
|
- libjxl-dev
|
||||||
|
- libssl-dev
|
||||||
|
- libxcb-keysyms1-dev
|
||||||
|
- libxcb-record0-dev
|
||||||
|
- libxcb-screensaver0-dev
|
||||||
cmake-generator: Ninja
|
cmake-generator: Ninja
|
||||||
cmake-parameters:
|
cmake-parameters:
|
||||||
- -DCMAKE_BUILD_TYPE=Release
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
@ -81,38 +90,6 @@ parts:
|
|||||||
|
|
||||||
pkgs:
|
pkgs:
|
||||||
plugin: nil
|
plugin: nil
|
||||||
build-packages:
|
|
||||||
- clang
|
|
||||||
- gperf
|
|
||||||
- nasm
|
|
||||||
- wget
|
|
||||||
- libboost-regex-dev
|
|
||||||
- libdav1d-dev
|
|
||||||
- libheif-dev
|
|
||||||
- libhwy-dev
|
|
||||||
- libjxl-dev
|
|
||||||
- libopenh264-dev
|
|
||||||
- libopus-dev
|
|
||||||
- libpipewire-0.3-dev
|
|
||||||
- libssl-dev
|
|
||||||
- libvdpau-dev
|
|
||||||
- libvpx-dev
|
|
||||||
- libxcb-cursor-dev
|
|
||||||
- libxcb-glx0-dev
|
|
||||||
- libxcb-icccm4-dev
|
|
||||||
- libxcb-image0-dev
|
|
||||||
- libxcb-keysyms1-dev
|
|
||||||
- libxcb-randr0-dev
|
|
||||||
- libxcb-record0-dev
|
|
||||||
- libxcb-render-util0-dev
|
|
||||||
- libxcb-screensaver0-dev
|
|
||||||
- libxcb-shape0-dev
|
|
||||||
- libxcb-sync-dev
|
|
||||||
- libxcb-util-dev
|
|
||||||
- libxcb-xfixes0-dev
|
|
||||||
- libxcb-xkb-dev
|
|
||||||
- libxkbcommon-x11-dev
|
|
||||||
- libxv-dev
|
|
||||||
stage-packages:
|
stage-packages:
|
||||||
- libgeoclue-2-0
|
- libgeoclue-2-0
|
||||||
- libopenh264-7
|
- libopenh264-7
|
||||||
@ -157,6 +134,8 @@ parts:
|
|||||||
source-depth: 1
|
source-depth: 1
|
||||||
source-tag: v1.3.0
|
source-tag: v1.3.0
|
||||||
plugin: cmake
|
plugin: cmake
|
||||||
|
build-packages:
|
||||||
|
- libdav1d-dev
|
||||||
cmake-generator: Ninja
|
cmake-generator: Ninja
|
||||||
cmake-parameters:
|
cmake-parameters:
|
||||||
- -DCMAKE_BUILD_TYPE=Release
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
@ -165,14 +144,20 @@ parts:
|
|||||||
- -DAVIF_CODEC_DAV1D=SYSTEM
|
- -DAVIF_CODEC_DAV1D=SYSTEM
|
||||||
- -DAVIF_LIBYUV=OFF
|
- -DAVIF_LIBYUV=OFF
|
||||||
prime: [-./*]
|
prime: [-./*]
|
||||||
after:
|
|
||||||
- pkgs
|
|
||||||
|
|
||||||
ffmpeg:
|
ffmpeg:
|
||||||
source: https://github.com/FFmpeg/FFmpeg.git
|
source: https://github.com/FFmpeg/FFmpeg.git
|
||||||
source-depth: 1
|
source-depth: 1
|
||||||
source-branch: n6.1.1
|
source-branch: n6.1.1
|
||||||
plugin: autotools
|
plugin: autotools
|
||||||
|
build-packages:
|
||||||
|
- nasm
|
||||||
|
- libdav1d-dev
|
||||||
|
- libopenh264-dev
|
||||||
|
- libopus-dev
|
||||||
|
- libvdpau-dev
|
||||||
|
- libvpx-dev
|
||||||
|
- libxv-dev
|
||||||
autotools-configure-parameters:
|
autotools-configure-parameters:
|
||||||
- --prefix=/usr
|
- --prefix=/usr
|
||||||
- --libdir=/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
|
- --libdir=/usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
|
||||||
@ -316,13 +301,14 @@ parts:
|
|||||||
prime: [-./*]
|
prime: [-./*]
|
||||||
after:
|
after:
|
||||||
- nv-codec-headers
|
- nv-codec-headers
|
||||||
- pkgs
|
|
||||||
|
|
||||||
jpegli:
|
jpegli:
|
||||||
source: https://github.com/libjxl/libjxl.git
|
source: https://github.com/libjxl/libjxl.git
|
||||||
source-depth: 1
|
source-depth: 1
|
||||||
source-tag: v0.11.1
|
source-tag: v0.11.1
|
||||||
plugin: cmake
|
plugin: cmake
|
||||||
|
build-packages:
|
||||||
|
- libhwy-dev
|
||||||
cmake-generator: Ninja
|
cmake-generator: Ninja
|
||||||
cmake-parameters:
|
cmake-parameters:
|
||||||
- -DCMAKE_BUILD_TYPE=Release
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
@ -353,14 +339,14 @@ parts:
|
|||||||
- ./usr/include/jpeglib.h
|
- ./usr/include/jpeglib.h
|
||||||
- ./usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/libjpeg.a
|
- ./usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/libjpeg.a
|
||||||
prime: [-./*]
|
prime: [-./*]
|
||||||
after:
|
|
||||||
- pkgs
|
|
||||||
|
|
||||||
openal:
|
openal:
|
||||||
source: https://github.com/kcat/openal-soft.git
|
source: https://github.com/kcat/openal-soft.git
|
||||||
source-depth: 1
|
source-depth: 1
|
||||||
source-tag: 1.24.3
|
source-tag: 1.24.3
|
||||||
plugin: cmake
|
plugin: cmake
|
||||||
|
build-packages:
|
||||||
|
- libpipewire-0.3-dev
|
||||||
cmake-generator: Ninja
|
cmake-generator: Ninja
|
||||||
cmake-parameters:
|
cmake-parameters:
|
||||||
- -DCMAKE_BUILD_TYPE=Release
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
@ -372,8 +358,6 @@ parts:
|
|||||||
- -DALSOFT_INSTALL_CONFIG=OFF
|
- -DALSOFT_INSTALL_CONFIG=OFF
|
||||||
- -DALSOFT_BACKEND_PIPEWIRE=OFF
|
- -DALSOFT_BACKEND_PIPEWIRE=OFF
|
||||||
prime: [-./*]
|
prime: [-./*]
|
||||||
after:
|
|
||||||
- pkgs
|
|
||||||
|
|
||||||
nv-codec-headers:
|
nv-codec-headers:
|
||||||
source: https://github.com/FFmpeg/nv-codec-headers.git
|
source: https://github.com/FFmpeg/nv-codec-headers.git
|
||||||
@ -396,8 +380,6 @@ parts:
|
|||||||
- -DCMAKE_INSTALL_PREFIX=/usr
|
- -DCMAKE_INSTALL_PREFIX=/usr
|
||||||
- -Dprotobuf_BUILD_TESTS=OFF
|
- -Dprotobuf_BUILD_TESTS=OFF
|
||||||
prime: [-./*]
|
prime: [-./*]
|
||||||
after:
|
|
||||||
- pkgs
|
|
||||||
|
|
||||||
qt:
|
qt:
|
||||||
source: https://github.com/qt/qt5.git
|
source: https://github.com/qt/qt5.git
|
||||||
@ -413,6 +395,21 @@ parts:
|
|||||||
plugin: cmake
|
plugin: cmake
|
||||||
build-environment:
|
build-environment:
|
||||||
- LDFLAGS: ${LDFLAGS:+$LDFLAGS} -Wl,-push-state,-no-as-needed,-lhwy,-pop-state
|
- LDFLAGS: ${LDFLAGS:+$LDFLAGS} -Wl,-push-state,-no-as-needed,-lhwy,-pop-state
|
||||||
|
build-packages:
|
||||||
|
- libssl-dev
|
||||||
|
- libxcb-cursor-dev
|
||||||
|
- libxcb-glx0-dev
|
||||||
|
- libxcb-icccm4-dev
|
||||||
|
- libxcb-image0-dev
|
||||||
|
- libxcb-keysyms1-dev
|
||||||
|
- libxcb-randr0-dev
|
||||||
|
- libxcb-render-util0-dev
|
||||||
|
- libxcb-shape0-dev
|
||||||
|
- libxcb-sync-dev
|
||||||
|
- libxcb-util-dev
|
||||||
|
- libxcb-xfixes0-dev
|
||||||
|
- libxcb-xkb-dev
|
||||||
|
- libxkbcommon-x11-dev
|
||||||
cmake-generator: Ninja
|
cmake-generator: Ninja
|
||||||
cmake-parameters:
|
cmake-parameters:
|
||||||
- -DCMAKE_BUILD_TYPE=Release
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
@ -434,13 +431,14 @@ parts:
|
|||||||
after:
|
after:
|
||||||
- jpegli
|
- jpegli
|
||||||
- patches
|
- patches
|
||||||
- pkgs
|
|
||||||
|
|
||||||
rnnoise:
|
rnnoise:
|
||||||
source: https://github.com/xiph/rnnoise.git
|
source: https://github.com/xiph/rnnoise.git
|
||||||
source-depth: 1
|
source-depth: 1
|
||||||
source-tag: v0.2
|
source-tag: v0.2
|
||||||
plugin: autotools
|
plugin: autotools
|
||||||
|
build-packages:
|
||||||
|
- wget
|
||||||
autotools-configure-parameters:
|
autotools-configure-parameters:
|
||||||
- --prefix=/usr
|
- --prefix=/usr
|
||||||
- --libdir=\${exec_prefix}/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
|
- --libdir=\${exec_prefix}/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
|
||||||
@ -451,14 +449,15 @@ parts:
|
|||||||
craftctl default
|
craftctl default
|
||||||
sed -i 's/os_support.h/common.h/g;s/OPUS_CLEAR/RNN_CLEAR/g' src/vec{,_neon}.h
|
sed -i 's/os_support.h/common.h/g;s/OPUS_CLEAR/RNN_CLEAR/g' src/vec{,_neon}.h
|
||||||
prime: [-./*]
|
prime: [-./*]
|
||||||
after:
|
|
||||||
- pkgs
|
|
||||||
|
|
||||||
tde2e:
|
tde2e:
|
||||||
source: https://github.com/tdlib/td.git
|
source: https://github.com/tdlib/td.git
|
||||||
source-depth: 1
|
source-depth: 1
|
||||||
source-commit: 51743dfd01dff6179e2d8f7095729caa4e2222e9
|
source-commit: 51743dfd01dff6179e2d8f7095729caa4e2222e9
|
||||||
plugin: cmake
|
plugin: cmake
|
||||||
|
build-packages:
|
||||||
|
- gperf
|
||||||
|
- libssl-dev
|
||||||
cmake-generator: Ninja
|
cmake-generator: Ninja
|
||||||
cmake-parameters:
|
cmake-parameters:
|
||||||
- -DCMAKE_BUILD_TYPE=Release
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
@ -466,14 +465,18 @@ parts:
|
|||||||
- -DCMAKE_INSTALL_LIBDIR=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
|
- -DCMAKE_INSTALL_LIBDIR=lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR
|
||||||
- -DTD_E2E_ONLY=ON
|
- -DTD_E2E_ONLY=ON
|
||||||
prime: [-./*]
|
prime: [-./*]
|
||||||
after:
|
|
||||||
- pkgs
|
|
||||||
|
|
||||||
webrtc:
|
webrtc:
|
||||||
source: https://github.com/desktop-app/tg_owt.git
|
source: https://github.com/desktop-app/tg_owt.git
|
||||||
source-depth: 1
|
source-depth: 1
|
||||||
source-commit: 62321fd7128ab2650b459d4195781af8185e46b5
|
source-commit: 62321fd7128ab2650b459d4195781af8185e46b5
|
||||||
plugin: cmake
|
plugin: cmake
|
||||||
|
build-packages:
|
||||||
|
- libopenh264-dev
|
||||||
|
- libopus-dev
|
||||||
|
- libpipewire-0.3-dev
|
||||||
|
- libssl-dev
|
||||||
|
- libvpx-dev
|
||||||
cmake-generator: Ninja
|
cmake-generator: Ninja
|
||||||
cmake-parameters:
|
cmake-parameters:
|
||||||
- -DCMAKE_BUILD_TYPE=Release
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
@ -482,4 +485,3 @@ parts:
|
|||||||
after:
|
after:
|
||||||
- ffmpeg
|
- ffmpeg
|
||||||
- jpegli
|
- jpegli
|
||||||
- pkgs
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user