The question's wording is ambiguous, could mean a few things:
- if you want to
use glfw with zigyou need a wrapper of some kind. either using translate-c or cImport, or using an existing ziggified wrapper - If you already have a wrapper, and want to
compile glfw as a librarythen you can use the existing glfw buildsystem to compile either a dynamic or static library, and then link your application with it - If you want hands-off-don't-care
use glfw with zig, then use an existing wrapper, likemach-glfwor zig-gamedev's wrapper (I believe calledzglfw)