-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure-mac.sh
executable file
·53 lines (46 loc) · 1.14 KB
/
configure-mac.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
#!/bin/zsh
JuceVersion="7.0.5"
LLVMVersion="11"
VCPKGVersion="2024.03.19" # Boost 1.84, cpprestsdk 2.10.19
echo "Installing CMake"
brew install cmake
brew install ninja
which -s clang
if [[ $? != 0 ]] ; then
echo "Installing LLVM"
brew install llvm@$LLVMVersion
fi
echo "Installing vcpkg"
git clone https://github.com/microsoft/vcpkg
cd vcpkg
git reset --hard "$VCPKGVersion"
cd ..
./vcpkg/bootstrap-vcpkg.sh
echo "Installing Boost"
BOOST_PACKAGES=(
"boost-any"
"boost-assign"
"boost-date-time"
"boost-dll"
"boost-filesystem"
"boost-format"
"boost-iostreams"
"boost-lexical-cast"
"boost-process"
"boost-preprocessor"
"boost-property-tree"
"boost-signals2"
"boost-uuid"
)
for PACKAGE in $BOOST_PACKAGES; do
./vcpkg/vcpkg install $PACKAGE --triplet "x64-osx"
./vcpkg/vcpkg install $PACKAGE --triplet "arm64-osx"
done
echo "Installing cpprestsdk"
./vcpkg/vcpkg install cpprestsdk --triplet "x64-osx"
./vcpkg/vcpkg install cpprestsdk --triplet "arm64-osx"
echo "Installing JUCE"
if [[ ! -d "JUCE" ]]; then
curl -s -L "https://github.com/juce-framework/JUCE/archive/refs/tags/$JuceVersion.tar.gz" | tar xvz -C .
mv JUCE-$JuceVersion JUCE
fi