GLFW Library

This folder holds the GN build file for the GLFW library.

Setup Instructions

  1. Install glfw.

    pw package install glfw
    
  2. Install host OS requirements (only required for Linux) shown below.

Linux

  • Debian / Ubuntu

    sudo apt install libglfw3-dev libglfw3
    
  • Arch Linux

    sudo pacman -S glfw-x11
    

Building

The build file requires the dir_pw_third_party_glfw be set. This can be done as so:

gn gen out --export-compile-commands --args="
  dir_pw_third_party_glfw=\"//environment/packages/glfw\"
"
ninja -C out