Cross-Platform build scripts for audio plugins
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
914B

  1. #!/bin/bash
  2. CROSS_COMPILING=0
  3. LINUX=0
  4. MACOS=0
  5. MACOS_OLD=0
  6. WIN32=0
  7. WIN64=0
  8. function check_target() {
  9. case "${target}" in
  10. "macos"|"Darwin")
  11. MACOS=1
  12. ;;
  13. "macos-old")
  14. MACOS=1
  15. MACOS_OLD=1
  16. CROSS_COMPILING=1
  17. ;;
  18. "win32")
  19. WIN32=1
  20. CROSS_COMPILING=1
  21. ;;
  22. "win64")
  23. WIN32=1
  24. WIN64=1
  25. CROSS_COMPILING=1
  26. ;;
  27. "linux"|"Linux")
  28. LINUX=1
  29. ;;
  30. "native")
  31. target=$(uname -s)
  32. check_target
  33. ;;
  34. default)
  35. echo "Invalid target '${target}', possible values are:"
  36. echo "\tmacos"
  37. echo "\tmacos-old"
  38. echo "\twin32"
  39. echo "\twin64"
  40. echo "\tnative"
  41. exit 2
  42. ;;
  43. esac
  44. }
  45. check_target