android-configure 522 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. export TOOLCHAIN=$PWD/android-toolchain
  3. mkdir -p $TOOLCHAIN
  4. $1/build/tools/make-standalone-toolchain.sh \
  5. --toolchain=arm-linux-androideabi-4.7 \
  6. --arch=arm \
  7. --install-dir=$TOOLCHAIN \
  8. --platform=android-9
  9. export PATH=$TOOLCHAIN/bin:$PATH
  10. export AR=arm-linux-androideabi-ar
  11. export CC=arm-linux-androideabi-gcc
  12. export CXX=arm-linux-androideabi-g++
  13. export LINK=arm-linux-androideabi-g++
  14. export PLATFORM=android
  15. if [ $2 -a $2 == 'gyp' ]
  16. then
  17. ./gyp_uv.py -Dtarget_arch=arm -DOS=android
  18. fi