Skip to content

Commit

Permalink
Add protobuf to snap
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-fedin authored and john-preston committed Nov 25, 2022
1 parent e561f93 commit 8b20c27
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ parts:
- mozjpeg
- openal
- openssl
- protobuf
- rnnoise
- webrtc

Expand Down Expand Up @@ -338,6 +339,29 @@ parts:
- -./usr/lib/$CRAFT_ARCH_TRIPLET/*.so
- -./usr/share

protobuf:
source: https://github.com/protocolbuffers/protobuf.git
source-depth: 1
source-tag: v21.9
plugin: cmake
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
- -Dprotobuf_BUILD_LIBPROTOC=ON
prime:
- -./usr/bin
- -./usr/include
- -./usr/lib/$CRAFT_ARCH_TRIPLET/cmake
- -./usr/lib/$CRAFT_ARCH_TRIPLET/pkgconfig
- -./usr/lib/$CRAFT_ARCH_TRIPLET/*.so

qt:
plugin: nil
build-packages:
Expand Down

0 comments on commit 8b20c27

Please sign in to comment.