Browse Source

populated .cargo/config

master
missytake 2 years ago
parent
commit
989360b146
  1. 8
      metadata/com.b44t.messenger.yml

8
metadata/com.b44t.messenger.yml

@ -605,9 +605,17 @@ Builds:
- source $HOME/.cargo/env
- rustup default $(cat rust-toolchain)
- rustup target add aarch64-linux-android
- echo "[target.aarch64-linux-android]" > $HOME/.cargo/config
- echo 'linker = "$$NDK$$/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android21-clang"' >> $HOME/.cargo/config
- rustup target add i686-linux-android
- echo "[target.i686-linux-android]" >> $HOME/.cargo/config
- echo 'linker = "$$NDK$$/toolchains/llvm/prebuilt/linux-x86_64/bin/i686-linux-android18-clang"' >> $HOME/.cargo/config
- rustup target add armv7-linux-androideabi
- echo "[target.armv7-linux-androideabi]" >> $HOME/.cargo/config
- echo 'linker = "$$NDK$$/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi18-clang"' >> $HOME/.cargo/config
- rustup target add x86_64-linux-android
- echo "[target.x86_64-linux-android]" >> $HOME/.cargo/config
- echo 'linker = "$$NDK$$/toolchains/llvm/prebuilt/linux-x86_64/bin/x86_64-linux-android21-clang"' >> $HOME/.cargo/config
- cd ../..
- ./ndk-make.sh
ndk: r20b

Loading…
Cancel
Save