webui-dev / webui

Use any web browser or WebView as GUI, with your preferred language in the backend and modern web technologies in the frontend, all in a lightweight portable library.
https://webui.me
MIT License
2.37k stars 146 forks source link

add `build.zig` to support zig build system #283

Closed jinzhongjia closed 6 months ago

jinzhongjia commented 6 months ago

I had completed wrappping of webui in zig

Add this build.zig to allow zig treat c webui as a library

This allows us to use zig's package management system more efficiently

Note: I just complete basic building in this build.zig, not include examples building. If necessary, I will initiate a new PR or commit later.

jinzhongjia commented 6 months ago

Of course, we can use zig as C/C++ compiler in CI.