mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-11-22 10:08:25 +08:00
The Python script becomes src/main_webgl.zig, run by `zig build webgl` like `zig build docs`. It reads the WebGL IDL, now copied next to the contexts from webref (it was read from a ../wpt checkout), and writes the two contexts back into the tree through UpdateSourceFiles, formatted by std.zig.Ast. It doesn't import the lightpanda module, so it builds for the host in about a second. The output is unchanged but for its header.