sokol-zig icon indicating copy to clipboard operation
sokol-zig copied to clipboard

build.zig: Add selection of display server

Open fleischie opened this issue 2 years ago • 1 comments

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.

fleischie avatar Jul 01 '22 12:07 fleischie

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:

fleischie avatar Jul 01 '22 17:07 fleischie

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

floooh avatar Feb 18 '23 14:02 floooh