@SonnyBonds You have two main kinds of consumers: Zig and C (either directly or FFI). For the former you want to create zig modules, like you are doing in the screenshot, while for the latter you want to create libraries (b.addLibrary), which will also install headers that you specify via installHeader. Zig users don't need header files if you give them a translate-c module.
I've recently made this package that you can use as a reference https://github.com/allyourcodebase/rnnoise notice how I'm creating:
- a module that contains the full implementation (+ the translate-c output as the root file)
- a module that only contains translate-c definitions in case that the user just wants those and plans to use a system-provided dynamic library
- static and dynamic library artifacts for non-Zig consumers, which also install public header files.
The only thing that I'm missing in that package is system integration options, which I have yet to really learn how to use.