-
Notifications
You must be signed in to change notification settings - Fork 2
/
1_clone.sh
executable file
·76 lines (71 loc) · 2.63 KB
/
1_clone.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
67
68
69
70
71
72
73
74
75
#!/usr/bin/env bash
set -euo pipefail
git_dep () {
url="$1"
name="$2"
if [[ -n "${3+x}" ]]; then
branch="$3"
else
branch=""
fi
if [[ -z "$url" ]]; then
echo "git_dep: missing url (\$1)" >&2
exit 1
fi
if [[ -z "$name" ]]; then
echo "git_dep: missing dependency name (\$2)" >&2
exit 1
fi
if [[ ! -d "d/$name" ]]; then
if [[ -n "$branch" ]]; then
echo -e "-- Cloning [$name]: git clone $url d/$name -b $branch"
git clone "$url" "d/$name" --depth 1 -b "$branch"
else
echo -e "-- Cloning [$name]: git clone $url d/$name"
git clone "$url" "d/$name" --depth 1
fi
else
echo "-- cd d/$name"
cd "d/$name"
if [[ -n "$branch" ]]; then
echo -e "-- git checkout $branch"
git checkout "$branch"
fi
echo -e "-- Updating [$name]: git pull --ff-only"
git pull --ff-only
cd -
fi
}
git_dep https://github.com/juce-framework/JUCE.git JUCE
git_dep https://github.com/fmtlib/fmt.git fmt
git_dep https://github.com/gflags/gflags.git gflags
git_dep https://github.com/google/glog.git glog
git_dep https://github.com/google/googletest.git googletest
git_dep https://github.com/glfw/glfw.git glfw
git_dep https://github.com/ocornut/imgui.git imgui
git_dep https://github.com/libsdl-org/SDL.git SDL release-2.26.1
git_dep https://github.com/libsdl-org/SDL_image.git SDL_image release-2.6.2
git_dep https://github.com/erincatto/box2d.git box2d
git_dep https://github.com/avaneev/r8brain-free-src.git r8brain-free
git_dep https://github.com/kfrlib/kfr.git kfr
git_dep https://github.com/abseil/abseil-cpp.git abseil
git_dep https://github.com/ddiakopoulos/libnyquist.git libnyquist
git_dep https://github.com/cameron314/readerwriterqueue.git readerwriterqueue
git_dep https://github.com/g-truc/glm.git glm
git_dep https://gitlab.com/libeigen/eigen.git eigen
git_dep https://github.com/Themaister/muFFT.git muFFT
git_dep https://github.com/tamaskenez/microlib.git microlib
git_dep https://github.com/tamaskenez/microlib2.git microlib2
rm -rf d/fftw3
readonly fftw_tarball_name='fftw-3.3.10'
tar -xf "${fftw_tarball_name}.tar.gz" -C d
mv "d/${fftw_tarball_name}" d/fftw3
readonly STEAMAUDIO_RELEASE='4.1.2'
readonly STEAMAUDIO_FILENAME_STEM="steamaudio_${STEAMAUDIO_RELEASE}"
if [[ ! -d "d/steamaudio" ]]; then
rm -rf ${STEAMAUDIO_FILENAME_STEM}.zip
wget \
https://github.com/ValveSoftware/steam-audio/releases/download/v${STEAMAUDIO_RELEASE}/${STEAMAUDIO_FILENAME_STEM}.zip
unzip -q ${STEAMAUDIO_FILENAME_STEM}.zip -d d
rm ${STEAMAUDIO_FILENAME_STEM}.zip
fi