Skip to content

tiawl/glfw.zig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

562 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glfw.zig

This is a fork of hexops/glfw which is itself a fork of glfw/glfw.

Why this forkception ?

The intention under this fork is the same as hexops had when they forked glfw/glfw: package it for Zig. So:

  • Unnecessary files have been deleted,
  • The build system has been replaced with build.zig.

However this repository has subtle differences for maintainability tasks:

  • No shell scripting,
  • A cron runs every day to check glfw/glfw and other dependencies. Then it updates this repository if a new release is available.

How to use it

The goal of this repository is not to provide a Zig binding for glfw/glfw. The point of this repository is to abstract the glfw/glfw compilation process with Zig (which is not easy to maintain) to let you focus on your application. So you can use glfw.zig:

  • as raw (see GLFW examples here),
  • as a daily updated interface for your Zig binding of glfw/glfw

Dependencies

The Zig part of this package requires the latest (0.16.0) or the master (0.17.0-dev) Zig release.

For other dependencies see the build.zig.zon

zig build options

These additional options have mainly been implemented for maintainability tasks but they maybe could be useful for edge usecases:

  -Dfetch   Update build.zig.zon then stop execution
  -Dupdate  Update binding

License

This repository is not subject to a unique License:

The parts of this repository originated from this repository are dedicated to the public domain. See the LICENSE file for more details.

For other parts, it is subject to the License restrictions their respective owners choosed. By design, the public domain code is incompatible with the License notion. In this case, the License prevails. So if you have any doubt about a file property, open an issue.

Contributors