Skip to content
Dmitri Shuralyov edited this page Dec 13, 2021 · 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 root of the glfw repository.
git clone https://github.com/go-gl/glfw
cd glfw

# 'latest' branch in the main GLFW repository points to latest stable release.
# Write the commit it points to the GLFW_C_REVISION.txt file, then regenerate.
echo "$(git ls-remote https://github.com/glfw/glfw refs/heads/latest | cut -f1)" > v3.3/glfw/GLFW_C_REVISION.txt
./scripts/grab-upstream.sh

Generated Wayland source/header files

The scripts/grab-upstream.sh script uses a helper script located at scripts/generate-wayland-protocols.sh to update the Wayland source/header files. The wayland-scanner utility is required.

Clone this wiki locally