media: add stb_image

This commit is contained in:
2026-02-06 01:42:42 +01:00
parent 4f2aad8065
commit 2756957f9b
5 changed files with 8240 additions and 0 deletions

View File

@@ -6,6 +6,18 @@ pub fn build(b: *std.Build) void {
const root_module = b.addModule("media", .{
.root_source_file = b.path("src/root.zig"),
.link_libc = true,
});
root_module.addCSourceFile(.{
.file = b.path("src/stbi/stb_image.c"),
.flags = &.{
"-std=c17",
"-Wall",
"-Wextra",
},
.language = .c,
});
root_module.addImport("vecmath", vm_module);
}