1
0

build_tools.sh 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. #!/usr/bin/env bash
  2. set -e
  3. MY_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
  4. echo $MY_DIR
  5. cd "${MY_DIR}"
  6. cd ..
  7. function unpack () {
  8. set -e
  9. MPT_GET_DESTDIR="$1"
  10. MPT_GET_FILE="$2"
  11. MPT_GET_SUBDIR="$3"
  12. cd include
  13. if [ -d "$1" ]; then
  14. rm -rf "$1"
  15. fi
  16. if [ "$3" = "." ]; then
  17. mkdir "$1"
  18. cd "$1"
  19. unzip "../../$2"
  20. cd ..
  21. else
  22. unzip "../$2"
  23. if [ ! "$3" = "$1" ]; then
  24. mv "$3" "$1"
  25. fi
  26. fi
  27. cd ..
  28. return 0
  29. }
  30. cd include/genie
  31. make
  32. ./bin/linux/genie embed
  33. make clean
  34. make
  35. mkdir -p build/vs2017
  36. ./bin/linux/genie --to=../build/vs2017 vs2017
  37. ./bin/linux/genie --to=../build/vs2019 vs2019
  38. cd ../..
  39. cp include/genie/OpenMPT.txt include/genie/OpenMPT-version.txt
  40. cd include/premake
  41. #make -f Bootstrap.mak linux
  42. ##bin/release/premake5 test
  43. #bin/release/premake5 embed --bytecode
  44. #bin/release/premake5 --to=build/gmake.unix gmake --no-curl --no-zlib --no-luasocket
  45. cd build/gmake2.unix
  46. make
  47. cd ../..
  48. #bin/release/premake5 test --no-curl --no-zlib --no-luasocket
  49. cd ../..
  50. cp include/premake/OpenMPT.txt include/premake/OpenMPT-version.txt