2022-03-17 17:17:22 +08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
if [[ "${MSYSTEM}" != "MINGW64" ]] ; then
|
|
|
|
echo non MINGW64, exit.
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2022-06-28 19:58:25 +08:00
|
|
|
pacmanInstall()
|
|
|
|
{
|
|
|
|
pacman -S --noconfirm --needed \
|
2022-03-17 17:17:22 +08:00
|
|
|
git make tar dos2unix zip unzip patch \
|
|
|
|
mingw-w64-x86_64-toolchain \
|
|
|
|
mingw-w64-x86_64-make \
|
|
|
|
mingw-w64-x86_64-ccache \
|
|
|
|
mingw-w64-x86_64-cmake \
|
|
|
|
mingw-w64-x86_64-openblas \
|
|
|
|
mingw-w64-x86_64-clang \
|
|
|
|
mingw-w64-x86_64-clang-tools-extra \
|
|
|
|
mingw-w64-x86_64-python2 \
|
2022-11-23 10:39:11 +08:00
|
|
|
mingw-w64-x86_64-python-pip \
|
2022-03-17 17:17:22 +08:00
|
|
|
mingw-w64-x86_64-diffutils \
|
2023-10-24 17:50:10 +08:00
|
|
|
mingw-w64-x86_64-go
|
2022-11-23 10:39:11 +08:00
|
|
|
|
2024-08-02 19:22:15 +08:00
|
|
|
pip3 install conan==1.64.1
|
2022-06-28 19:58:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
updateKey()
|
|
|
|
{
|
2022-08-25 10:56:53 +08:00
|
|
|
pacman-key --refresh-keys
|
2022-06-28 19:58:25 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
pacmanInstall || {
|
2022-08-25 10:56:53 +08:00
|
|
|
updateKey
|
|
|
|
pacmanInstall
|
2022-06-28 19:58:25 +08:00
|
|
|
|
|
|
|
}
|
2022-03-17 17:17:22 +08:00
|
|
|
|
|
|
|
|
|
|
|
# dummy empty dl, TODO: remove later
|
|
|
|
touch a.c && \
|
|
|
|
gcc -c a.c && \
|
|
|
|
ar rc libdl.a a.o && \
|
|
|
|
ranlib libdl.a && \
|
|
|
|
cp -fr libdl.a /mingw64/lib && \
|
|
|
|
rm -fr a.c a.o libdl.a
|
|
|
|
|