SHARE
TWEET

Untitled

a guest Apr 21st, 2019 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # arm
  2. export PATH=$PATH:$HOME/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin
  3. export CC=armv7a-linux-androideabi19-clang
  4. export CXX=armv7a-linux-androideabi19-clang++
  5. ~/.cargo/bin/cargo build --target armv7-linux-androideabi
  6.  
  7. # aarch64
  8. export PATH=$PATH:$HOME/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin
  9. export CC=aarch64-linux-android21-clang
  10. export CXX=aarch64-linux-android21-clang++
  11. ~/.cargo/bin/cargo build --target aarch64-linux-android
  12.  
  13. # x86
  14. export PATH=$PATH:$HOME/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin
  15. export CC=i686-linux-android19-clang
  16. export CXX=i686-linux-android19-clang++
  17. ~/.cargo/bin/cargo build --target i686-linux-android
  18.  
  19. # x86_64
  20. export PATH=$PATH:$HOME/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin
  21. export CC=x86_64-linux-android21-clang
  22. export CXX=x86_64-linux-android21-clang
  23. ~/.cargo/bin/cargo build --target x86_64-linux-android
  24.  
  25.  
  26. ##################################################################
  27.  
  28. # All ABIs
  29. cargo clean
  30. export PATH=$PATH:$HOME/Android/Sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin
  31.  
  32. export CC=armv7a-linux-androideabi19-clang
  33. export CXX=armv7a-linux-androideabi19-clang++
  34. ~/.cargo/bin/cargo build --target armv7-linux-androideabi
  35.  
  36. export CC=aarch64-linux-android21-clang
  37. export CXX=aarch64-linux-android21-clang++
  38. ~/.cargo/bin/cargo build --target aarch64-linux-android
  39.  
  40. export CC=i686-linux-android19-clang
  41. export CXX=i686-linux-android19-clang++
  42. ~/.cargo/bin/cargo build --target i686-linux-android
  43.  
  44. export CC=x86_64-linux-android21-clang
  45. export CXX=x86_64-linux-android21-clang
  46. ~/.cargo/bin/cargo build --target x86_64-linux-android
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top