sokol-zig
sokol-zig copied to clipboard
build.zig: Add selection of display server
Add compilation parameters to select enabled display servers. This commit prepares the sokol header's wayland-support feature.
The new parameters are:
-
wayland
(false by default), and -
x11
(true by default).
These can of course be changed, if you so desire.
Hmm, I would have guessed this would fail, as I also forget to add the ubuntu-specific packages to the GH Action prepare-linux stage. :thinking:
I just merged https://github.com/floooh/sokol-zig/pull/30 which also contains an X11 vs Wayland selection (even though the standard bindings don't contain the Wayland PR). I guess this PR is now redundant (I'll just close it, the new PR has a general Config structure, which is a better approach for adding all sorts of build config options in the future).