floooh / sokol-zig

Zig bindings for the sokol headers (https://github.com/floooh/sokol)
zlib License
355 stars 49 forks source link

build.zig: Add selection of display server #22

Closed fleischie closed 1 year ago

fleischie commented 2 years ago

Add compilation parameters to select enabled display servers. This commit prepares the sokol header's wayland-support feature.

The new parameters are:

These can of course be changed, if you so desire.

fleischie commented 2 years ago

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:

floooh commented 1 year ago

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).