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.95k stars 172 forks source link

Simplify building examples with Zig #364

Closed ttytm closed 4 months ago

ttytm commented 4 months ago

It’s really handy to have the possibility to build with Zig; it provides everything so fast. I’m just getting into using it more now. Thanks for adding it @jinzhongjia .

The changes simplify building the examples. It removes two nesting levels by handling the "unhappy-path" early.

jinzhongjia commented 4 months ago

To be honest, I don’t recommend continuing to pay attention to version 0.11. The improvement in the build system of 0.12 compared to 0.11 is huge.

ttytm commented 4 months ago

Yep, I think too moving with 0.12 and beyond is the way to go. Lets update in the near future.

jinzhongjia commented 4 months ago

At present, I have transferred the build code corresponding to 0.12 and zig master branch to zig-webui. The build.zig retained in webui is only to ensure compatibility with 0.11

jinzhongjia commented 4 months ago

Currently, zig-webui can also directly package and build dynamic link libraries and static link libraries.