-
Notifications
You must be signed in to change notification settings - Fork 182
Development
Dmitri Shuralyov edited this page Jun 20, 2017
·
11 revisions
The following steps can be used to update the GLFW C source to latest official release.
cd $GOPATH/src/github.com/go-gl/glfw/v3.2/glfw
rm -rf ./glfw/
git clone --depth 1 --branch latest https://github.com/glfw/glfw.git
cd ./glfw/
git rev-parse HEAD > ../GLFW_C_REVISION.txt
# Only keep the needed sources files in ./src, ./include and ./deps.
rm -rf ./.git
rm -rf ./.gitignore
rm -rf ./.appveyor.yml
rm -rf ./.github
rm -rf ./.travis.yml
rm -rf ./CMake
rm -rf ./CMakeLists.txt
rm -rf ./src/CMakeLists.txt
rm -rf ./src/*.in
rm -rf ./README.md
rm -rf ./cmake_uninstall.cmake.in
rm -rf ./docs
rm -rf ./examples
rm -rf ./tests
You'll need wayland-scanner
and wayland-protocols
.
cd $GOPATH/src/github.com/go-gl/glfw/v3.2/glfw
export GOGLGLFW_PATH=`pwd`
cd /tmp
git clone https://github.com/wayland-project/wayland
cd wayland
./autogen.sh --disable-libraries --disable-documentation --disable-dtd-validation
make wayland-scanner
cd ..
git clone https://github.com/wayland-project/wayland-protocols
cd wayland-protocols
cp ./unstable/pointer-constraints/pointer-constraints-unstable-v1.xml $GOGLGLFW_PATH
cp ./unstable/relative-pointer/relative-pointer-unstable-v1.xml $GOGLGLFW_PATH
cd $GOGLGLFW_PATH
go generate