setup_variables.sh 1.1 KB

123456789101112131415161718192021222324252627282930
  1. #!/bin/bash
  2. # when options parsed, setup some variables, then build the depends.
  3. # when arm specified, setup the cross build variables.
  4. if [ $SRS_ARM_UBUNTU12 = YES ]; then
  5. __SrsArmCC="arm-linux-gnueabi-gcc";
  6. __SrsArmGCC="arm-linux-gnueabi-gcc";
  7. __SrsArmCXX="arm-linux-gnueabi-g++";
  8. __SrsArmAR="arm-linux-gnueabi-ar";
  9. __SrsArmLD="arm-linux-gnueabi-ld";
  10. __SrsArmRANDLIB="arm-linux-gnueabi-ranlib";
  11. fi
  12. if [ $SRS_MIPS_UBUNTU12 = YES ]; then
  13. __SrsArmCC="mipsel-openwrt-linux-gcc";
  14. __SrsArmGCC="mipsel-openwrt-linux-gcc";
  15. __SrsArmCXX="mipsel-openwrt-linux-g++";
  16. __SrsArmAR="mipsel-openwrt-linux-ar";
  17. __SrsArmLD="mipsel-openwrt-linux-ld";
  18. __SrsArmRANDLIB="mipsel-openwrt-linux-ranlib";
  19. fi
  20. # the arm-ubuntu12 options for make for depends
  21. if [[ -z $SrsArmCC ]]; then SrsArmCC=$__SrsArmCC; fi
  22. if [[ -z $SrsArmGCC ]]; then SrsArmGCC=$__SrsArmGCC; fi
  23. if [[ -z $SrsArmCXX ]]; then SrsArmCXX=$__SrsArmCXX; fi
  24. if [[ -z $SrsArmAR ]]; then SrsArmAR=$__SrsArmAR; fi
  25. if [[ -z $SrsArmLD ]]; then SrsArmLD=$__SrsArmLD; fi
  26. if [[ -z $SrsArmRANDLIB ]]; then SrsArmRANDLIB=$__SrsArmRANDLIB; fi