blob: 62620a783041d86bcdc141f45caba726140b3464 [file] [log] [blame]
#!/bin/sh
set -e
# GLFW requires CMake
GLFW_REPO=https://github.com/glfw/glfw
# -----------------------------
# Get & Build GLFW
# -----------------------------
if [ ! -d glfw ]; then
echo "Cloning GLFW."
git clone $GLFW_REPO
else
echo "Already have GLFW, update it."
cd glfw && git fetch && git merge master
cd ..
fi
mkdir -p glfw_build
cd glfw_build
cmake ../glfw -DBUILD_SHARED_LIBS=OFF
make