≈ the.bay.news

How to organize build.zig files for examples folders

Ziggit
How to organize build.zig files for examples folders
Hi all! I am building a game library for 2D games, and I am a bit confused on how to organize the build.zig files. I have a folder with contains a bunch of “example” games that I use as a reference for its usage. So something like that: . └── my-lib ├── build.zig ├── build.zig.zon ├── games │ ├── example1 │ └── example2 └── src My question is: should I add one build.zig file for each game? On my head this would make sense because each game has its own assets, shader...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.