Here's a basic window with SDL2 in Zig.
zig build run -Doptimize=Debug -Dtarget=wasm32-emscripten
zig build run
Pass a -Dtarget option. For example:
zig build -Dtarget=x86_64-windows
- Sokol Zig for having a nice Emscripten install / build setup that I was able to mostly copy for this project.
- Raylib-Zig for giving for their Emscripten setup which is how I initially got up and running.
- Andrew Kelley for Zig itself, their SDL demo code and everything!
