Skip to content
Dmitri Shuralyov edited this page Feb 16, 2020 · 11 revisions

Updating GLFW C source

The following steps can be used to update the GLFW C source to latest official release.

# Make sure to be in the directory of the glfw package you want to update.
cd $GOPATH/src/github.com/go-gl/glfw/v3.3/glfw

rm -rf ./glfw/
git clone --depth 1 --branch latest https://github.com/glfw/glfw  # 'latest' branch points to latest stable release.
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 ./.gitattributes
rm -rf ./.mailmap
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

Generating wayland source/header files

A helper script located at scripts/generate-wayland-protocols.sh should be used to update the wayland source/header files. The wayland-scanner utility is required.

scripts/generate-wayland-protocols.sh ./v3.2/glfw/glfw/src
Clone this wiki locally