install_deps_msys.sh 869 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #!/bin/sh
  2. set -e
  3. if [[ "${MSYSTEM}" != "MINGW64" ]] ; then
  4. echo non MINGW64, exit.
  5. exit 1
  6. fi
  7. pacmanInstall()
  8. {
  9. pacman -S --noconfirm --needed \
  10. git make tar dos2unix zip unzip patch \
  11. mingw-w64-x86_64-toolchain \
  12. mingw-w64-x86_64-make \
  13. mingw-w64-x86_64-ccache \
  14. mingw-w64-x86_64-cmake \
  15. mingw-w64-x86_64-openblas \
  16. mingw-w64-x86_64-clang \
  17. mingw-w64-x86_64-clang-tools-extra \
  18. mingw-w64-x86_64-python2 \
  19. mingw-w64-x86_64-python-pip \
  20. mingw-w64-x86_64-diffutils \
  21. mingw-w64-x86_64-go
  22. pip3 install conan==1.64.1
  23. }
  24. updateKey()
  25. {
  26. pacman-key --refresh-keys
  27. }
  28. pacmanInstall || {
  29. updateKey
  30. pacmanInstall
  31. }
  32. # dummy empty dl, TODO: remove later
  33. touch a.c && \
  34. gcc -c a.c && \
  35. ar rc libdl.a a.o && \
  36. ranlib libdl.a && \
  37. cp -fr libdl.a /mingw64/lib && \
  38. rm -fr a.c a.o libdl.a