23 lines
592 B
Bash
Raw Normal View History

2020-06-10 22:33:10 +02:00
set -e
2020-06-10 18:28:27 +02:00
#!/bin/sh
#this will hopefully download all konan dependancies that we use in the build scripts
./gradlew multiplatform-crypto-api:build
#now let's build linux deps
2020-06-10 21:37:23 +02:00
export CLANG_BIN=$HOME/.konan/dependencies/clang-llvm-8.0.0-linux-x86-64/bin
2020-06-10 18:28:27 +02:00
cd sodiumWrapper
./makeLinuxX86-64.sh
2020-06-10 21:37:23 +02:00
#Workaround for travis using wrong ld
if [ "$TRAVIS" = "true" ]
then
sudo mv /usr/bin/ld /usr/bin/ld.bck
sudo ln -s $CLANG_BIN/ld.lld /usr/bin/ld
fi
2020-06-10 18:28:27 +02:00
./makeLinuxArm64.sh
#now we can do the delegated build
2020-06-10 19:36:11 +02:00
cd ..
#build libsodium bindings
./gradlew multiplatform-crypto-libsodium-bindings:build
2020-06-10 22:33:10 +02:00
set +e
2020-06-10 18:28:27 +02:00