-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
66 lines (57 loc) · 1.59 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#!/bin/sh
# If you're looking for VS Code integration with Msys, see: https://code.visualstudio.com/docs/cpp/config-mingw
if [[ "$OSTYPE" == "darwin*" ]] && ! command -v bash > /dev/null; then
echo "You "
exit 1
fi
if ! command -v gcc > /dev/null; then
if command -v pacman > /dev/null ; then
pacman -S mingw-w64-ucrt-x86_64-toolchain
fi
fi
# For m4
if ! command -v m4 > /dev/null; then
if command -v pacman > /dev/null ; then
pacman -S m4
fi
fi
if ! command -v pip > /dev/null; then
if command -v pacman > /dev/null ; then
pacman -S mingw-w64-ucrt-x86_64-python mingw-w64-ucrt-x86_64-python-pip
else
sudo apt-get install python3 python3-pip python3-setuptools \
python3-wheel
fi
fi
if ! command -v meson > /dev/null; then
if command -v pacman > /dev/null ; then
pacman -S mingw-w64-ucrt-x86_64-meson
elif command -v brew > /dev/null ; then
brew install meson-python
pip3 install meson
else
sudo apt-get install ninja-build
pip3 install meson
fi
fi
if command -v pacman > /dev/null; then
pacman -U https://mirror.msys2.org/mingw/ucrt64/mingw-w64-ucrt-x86_64-fltk-1.3.8-1-any.pkg.tar.zst
else
sudo apt-get install libfltk1.3-dev libx11-dev
fi
if command -v pacman > /dev/null; then
pacman -S mingw-w64-ucrt-x86_64-sqlite3
pacman -S libsqlite-devel
elif command -v brew > /dev/null; then
brew install sqlite
else
sudo apt install sqlite3 libsqlite3-dev
fi
if command -v pacman > /dev/null; then
pacman -S mingw-w64-ucrt-x86_64-glm
pacman -S mingw-w64-ucrt-x86_64-glew
fi
if command -v pacman > /dev/null; then
pacman -S mingw-w64-ucrt-x86_64-libarchive
fi
meson setup build