Elektrine lite

← Feed

@SonnyBonds@mastodon.gamedev.place

Post #1215523

2026-03-08 10:35 UTC

Ideally I'd just export the existing library as is to be linked in downstream projects with linkLibrary, but I'm not sure this is possible? Feels like it should be.

Replies (1)

  • This project, which does pretty much the same thing that I'm doing now, uses addObjectFile. I've successfully used that project up until now, so I guess that _should_ work and is the way to go. I wonder why it doesn't like the resulting library when I do it. The only obvious difference I can see is that their module has actual Zig code in it wrapping wgpu, while mine is a pure translation of the C header. https://github.com/bronter/wgpu_native_zig/blob/main/build.zig

    Open ##1215524