From 50bfed79bef73ed23ad7e5d64b1b8e2c6243d829 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Tue, 13 May 2025 03:26:48 +0400 Subject: [PATCH] Update protobuf in snap --- snap/snapcraft.yaml | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml index ebb4386e9e..4fda801821 100644 --- a/snap/snapcraft.yaml +++ b/snap/snapcraft.yaml @@ -89,7 +89,6 @@ parts: - clang - libtool-bin - python3 - - protobuf-compiler - libasound2-dev - libavif-dev - libboost-regex-dev @@ -98,7 +97,6 @@ parts: - libheif-dev - libopenal-dev - libopus-dev - - libprotobuf-dev - libpulse-dev - libssl-dev - libxcb1-dev @@ -116,7 +114,6 @@ parts: - libheif1 - libopenal1 - libopus0 - - libprotobuf-lite32t64 - libpulse0 - libssl3t64 - libwebkit2gtk-4.1-0 @@ -164,6 +161,7 @@ parts: - ada - ffmpeg - libjxl + - protobuf - qt - rnnoise - tde2e @@ -295,6 +293,30 @@ parts: - -./usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/*.so - -./usr/share + protobuf: + source: https://github.com/protocolbuffers/protobuf.git + source-depth: 1 + source-tag: v30.2 + plugin: cmake + build-environment: + - LDFLAGS: ${LDFLAGS:+$LDFLAGS} -s + build-packages: + - zlib1g-dev + stage-packages: + - zlib1g + cmake-generator: Ninja + cmake-parameters: + - -DCMAKE_BUILD_TYPE=Release + - -DCMAKE_INSTALL_PREFIX=/usr + - -DBUILD_SHARED_LIBS=ON + - -Dprotobuf_BUILD_TESTS=OFF + prime: + - -./usr/bin + - -./usr/include + - -./usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/cmake + - -./usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/pkgconfig + - -./usr/lib/$CRAFT_ARCH_TRIPLET_BUILD_FOR/*.so + qt: plugin: nil build-environment: