This repository was archived by the owner on Sep 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsetup-macos.sh
executable file
·77 lines (66 loc) · 1.88 KB
/
setup-macos.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
76
77
#!/bin/sh
# allow modification of this folder
sudo chmod -R 777 ./
# install command line tools for c compilation
echo "Installing command line tools"
sudo xcode-select --install
# download homebrew (if not already installed)
which -s brew
if [[ $? != 0 ]] ; then
sudo echo "Installing Homebrew"
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
else
sudo echo "Updating Homebrew"
brew update
fi
# git is a necessity for pulling packages
echo "Installing git"
brew install git
# http-server to serve content of web build
echo "Installing node and http-server"
brew update
brew install http-server
# necessary downloads for c++ compilation
echo "Installing dependencies via Homebrew"
brew install llvm
brew install cmake
# additional downloads for vcpkg
brew install autoconf
brew install autoconf-archive
brew install automake
brew install bison
brew install gettext
brew install gfortran
brew install gperf
brew install gtk-doc
brew install libtool
brew install meson
brew install mono
brew install nasm
brew install pkg-config
brew install texinfo
brew install yasm
brew install openal-soft
brew remove assimp
brew tap-new $USER/local-assimp
brew extract --version=5.0.1 assimp $USER/local-assimp
brew install [email protected]
# download vcpkg (if not already installed) for installing libraries in a cross platform manner
if [ -d "vcpkg" ]; then
echo "vcpkg already downloaded..."
else
echo "Installing vcpkg..."
git clone https://github.com/Microsoft/vcpkg.git
rm -rf vcpkg/.git
./vcpkg/bootstrap-vcpkg.sh
export VCPKG_ROOT="$(pwd)/vcpkg"
fi
# install c++ libraries via vcpkg
echo "Installing dependencies via vcpkg"
./vcpkg/vcpkg install lua
./vcpkg/vcpkg install glfw3
./vcpkg/vcpkg install yaml-cpp
./vcpkg/vcpkg install bullet3
./vcpkg/vcpkg install qt5
# TODO: enable this on windows and linux
#./vcpkg/vcpkg install assimp (version 5.0.1)