-
Notifications
You must be signed in to change notification settings - Fork 3
/
configure.sh
47 lines (37 loc) · 1.51 KB
/
configure.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
#!/bin/bash
# Configuration script to configure dependencies for Engine3D
os="$1"
if [[ "$os" = "--linux" ]]; then
echo "Did you install the local dependencies (glfw, glm, box2d, etc.)? [y/N]"
echo "Checking dependencies for Linux..."
echo "Installing Imgui..."
git clone https://github.com/SpinnerX/Im-Gui ~/Desktop/
cd ~/Desktop/Im-Gui/ && mkdir build && cd build cmake .. && sudo make -j install
echo "Installing glad..."
git clone https://github.com/SpinnerX/glad
cd ~/Desktop/glad/ && mkdir build && cd build cmake .. && sudo make -j install
echo "Downloading Im-Guizmo..."
git clone https://github.com/SpinnerX/Im-Guizmo ~/Desktop/
cd ~/Desktop/Im-Guizmo/ && mkdir build && cd build cmake .. && sudo make -j install
fi
if [[ "$os" = "--mac" ]]; then
echo "Checking dependencies for Mac..."
if [ ! -z "/usr/local/include/imgui" ]; then
echo "Installing Imgui..."
git clone https://github.com/SpinnerX/Im-Gui ~/Desktop/
cd ~/Desktop/Im-Gui/ && mkdir build && cd build cmake .. && sudo make -j install
fi
if [ ! -z "/usr/local/include/glad" ]; then
echo "Installing glad..."
git clone https://github.com/SpinnerX/glad
cd ~/Desktop/glad/ && mkdir build && cd build cmake .. && sudo make -j install
fi
if [ ! -z "/usr/local/include/ImGuizmo" ]; then
echo "Downloading Im-Guizmo..."
git clone https://github.com/SpinnerX/Im-Guizmo ~/Desktop/
cd ~/Desktop/Im-Guizmo/ && mkdir build && cd build cmake .. && sudo make -j install
fi
exit 1
else
echo "OS \"$os\" is not supported currently!"
fi