2023-03-31 18:00:49 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
export RUSTFLAGS="-Ccodegen-units=1"
|
|
|
|
|
|
|
|
|
|
rustup default stable
|
|
|
|
|
|
2023-05-17 17:43:22 -04:00
|
|
|
cargo install cross
|
2023-03-31 18:00:49 -04:00
|
|
|
|
2023-05-17 17:43:22 -04:00
|
|
|
platforms=(
|
|
|
|
|
'aarch64-unknown-linux-gnu'
|
|
|
|
|
'armv7-linux-androideabi'
|
|
|
|
|
'arm-unknown-linux-gnueabi'
|
|
|
|
|
'arm-unknown-linux-gnueabihf'
|
|
|
|
|
'aarch64-linux-android'
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
for platform in ${platforms[*]}
|
|
|
|
|
do
|
|
|
|
|
mkdir -p ./libs/${platform}
|
|
|
|
|
pushd zerokit/rln
|
|
|
|
|
cargo clean
|
|
|
|
|
cross build --release --lib --target=${platform}
|
|
|
|
|
cp ../target/${platform}/release/librln.a ../../libs/${platform}/.
|
|
|
|
|
popd
|
|
|
|
|
done
|
2023-03-31 18:00:49 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|