Bundle olm and Imaging

This commit is contained in:
Lukas Lihotzki 2020-10-10 19:11:36 +02:00
parent 9622dd89aa
commit 0cee5b61cb
2 changed files with 17 additions and 0 deletions

View File

@ -192,6 +192,7 @@ build_linux:
- flutter config --enable-linux-desktop
- flutter pub get
- flutter build linux --release
- ./linux/install_libs.sh
artifacts:
when: on_success
paths:

16
linux/install_libs.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh -e
cd "$(dirname "$0")"
git clone https://gitlab.com/famedly/libraries/olm.git
cd olm
cmake -DCMAKE_BUILD_TYPE=Release -DOLM_TESTS=OFF .
cmake --build .
cp -P libolm.so* ../../build/linux/release/bundle/lib
cd ..
git clone https://gitlab.com/famedly/libraries/native_imaging.git
cd native_imaging/ios/src
cmake -DCMAKE_BUILD_TYPE=Release -DSYSTEM_LIBJPEG=OFF .
cmake --build .
cp libImaging.so ../../../../build/linux/release/bundle/lib
cd ../../..