Skip to content

Instantly share code, notes, and snippets.

@calvinchengx
Last active March 17, 2022 04:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calvinchengx/8cd5d565da5ae6fa01b853adceb7a693 to your computer and use it in GitHub Desktop.
Save calvinchengx/8cd5d565da5ae6fa01b853adceb7a693 to your computer and use it in GitHub Desktop.
#!/bin/bash
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
rustup default nightly
# linux build, with openssl
sudo apt update && sudo apt install pkg-config libssl-dev
cargo build --release --lib
TARGET=aarch64-linux-android
rustup target add $TARGET
cargo install cargo-ndk
cargo ndk --target $TARGET build --lib --bin cli --release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment