Add protobuf to snap

This commit is contained in:
Ilya Fedin 2022-11-25 15:09:09 +04:00 committed by John Preston
parent e561f93d44
commit 8b20c27ba7

View file

@ -158,6 +158,7 @@ parts:
- mozjpeg
- openal
- openssl
- protobuf
- rnnoise
- webrtc
@ -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: